@howaboua/pi-better-skills-tool 0.0.8 → 0.0.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-better-skills-tool
2
2
 
3
+ ## 0.0.9
4
+
5
+ - Skills discovery and invalid-input errors now show the JavaScript string-call syntax.
6
+
3
7
  ## 0.0.8
4
8
 
5
9
  - ### Improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-better-skills-tool",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Progressive skill discovery for Pi, Code Mode and Notebook Mode.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "pack:dry": "npm pack --dry-run"
40
40
  },
41
41
  "peerDependencies": {
42
- "@howaboua/pi-codex-conversion": ">=3.0.48",
42
+ "@howaboua/pi-codex-conversion": ">=3.0.49",
43
43
  "@earendil-works/pi-coding-agent": ">=1.0.0",
44
44
  "@earendil-works/pi-tui": ">=1.0.0",
45
45
  "typebox": "*"
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "devDependencies": {
53
- "@howaboua/pi-codex-conversion": "3.0.48",
53
+ "@howaboua/pi-codex-conversion": "3.0.49",
54
54
  "@biomejs/biome": "^2.5.10",
55
55
  "@earendil-works/pi-coding-agent": "1.1.0",
56
56
  "@earendil-works/pi-tui": "1.1.0",
package/src/catalog.ts CHANGED
@@ -166,7 +166,7 @@ export function runSkills(
166
166
  request.commands
167
167
  .map((command) =>
168
168
  command.action === "help"
169
- ? `Commands: list [category...] | read <skill> [skill-or-reference...] | help. Join commands with ;\n\n${formatSkillList(skills)}`
169
+ ? `Commands: list [category...] | read <skill> [skill-or-reference...] | help. Join commands with ;\nJS: tools.skills("read <skill>")\n\n${formatSkillList(skills)}`
170
170
  : command.action === "list"
171
171
  ? formatSkillList(skills, command.categories)
172
172
  : readSkillPackage(skills, command.name, command.selectors),
package/src/tool.ts CHANGED
@@ -25,7 +25,7 @@ export interface SkillsToolOptions {
25
25
  export function prepareSkillsCodeModeInput(input: unknown): SkillsParameters {
26
26
  if (input === undefined) return {};
27
27
  if (typeof input !== "string")
28
- throw new Error("skills expects a string command");
28
+ throw new Error('Expected string: tools.skills("read <skill>")');
29
29
  return { command: input };
30
30
  }
31
31