pi-sdk-web 0.3.7 → 0.3.8

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.
@@ -1773,7 +1773,10 @@ class PiWebClient {
1773
1773
  ];
1774
1774
  const filtered = commands
1775
1775
  .filter((c) => {
1776
- const name = (c.name || '').replace(/^skill:/, '').toLowerCase();
1776
+ // Match against the raw command name (with skill:/prompt prefixes, e.g.
1777
+ // "skill:meeting-discuss") so typing "/skill" surfaces every skill
1778
+ // command instead of only ones whose bare name contains "skill".
1779
+ const name = (c.name || '').toLowerCase();
1777
1780
  const desc = (c.description || c.source || '').toLowerCase();
1778
1781
  return name.includes(query) || desc.includes(query);
1779
1782
  })
@@ -1781,7 +1784,7 @@ class PiWebClient {
1781
1784
  // Exact-name match first, then name-prefix, then name-contains,
1782
1785
  // then description-contains (avoids unrelated commands flooding the list)
1783
1786
  const score = (c) => {
1784
- const name = (c.name || '').replace(/^skill:/, '').toLowerCase();
1787
+ const name = (c.name || '').toLowerCase();
1785
1788
  if (name === query) return 0;
1786
1789
  if (name.startsWith(query)) return 1;
1787
1790
  if (name.includes(query)) return 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sdk-web",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Browser Web access for Pi (AI coding agent) via the Pi SDK - standalone module, zero modification to Pi itself",
5
5
  "type": "module",
6
6
  "bin": {