@pi-unipi/web-api 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/web-api",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Web search, read, and summarize tools with provider-based backend selection for Pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -36,7 +36,7 @@ function getInfoRegistry() {
36
36
 
37
37
  export default function (pi: ExtensionAPI) {
38
38
  // Register skills directory
39
- const skillsDir = new URL("./skills", import.meta.url).pathname;
39
+ const skillsDir = new URL("../skills", import.meta.url).pathname;
40
40
  pi.on("resources_discover", async (_event, _ctx) => {
41
41
  return {
42
42
  skillPaths: [skillsDir],
package/src/tools.ts CHANGED
@@ -69,9 +69,10 @@ function selectProvider(
69
69
  const allProviders = registry.getProvidersForCapability(capability);
70
70
  const providerNames = allProviders.map((p) => p.name).join(", ");
71
71
  throw new Error(
72
- `No ${capability} provider available.\n` +
73
- `Configure providers via /unipi:web-settings\n` +
74
- `Available providers: ${providerNames}`
72
+ `No ${capability} provider configured.\n` +
73
+ `→ Run /unipi:web-settings to enable providers and add API keys.\n` +
74
+ `→ Free options: DuckDuckGo (search), Jina Reader (read).\n` +
75
+ `→ Available providers: ${providerNames}`
75
76
  );
76
77
  }
77
78