@rikalabs/parallel 0.3.0 → 0.3.1

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
@@ -67,16 +67,12 @@ cat urls.txt | parallel extract --stdin --concurrency 10
67
67
 
68
68
  Run `parallel --help` for full documentation.
69
69
 
70
- ## Agents
70
+ ## Claude Code
71
71
 
72
- Give your AI coding agent web search and extraction capabilities:
72
+ Add web search to Claude Code:
73
73
 
74
74
  ```bash
75
- # Claude Code / pi-coding-agent
76
75
  mkdir -p ~/.claude/skills/parallel && curl -so ~/.claude/skills/parallel/SKILL.md https://raw.githubusercontent.com/Rika-Labs/parallel/main/SKILL.md
77
-
78
- # Codex / OpenCode / Amp
79
- curl -s https://raw.githubusercontent.com/Rika-Labs/parallel/main/AGENTS.md >> AGENTS.md
80
76
  ```
81
77
 
82
78
  ---
package/dist/index.js CHANGED
@@ -41251,6 +41251,8 @@ function makeRequest(endpoint, body) {
41251
41251
  message = "Invalid API key. Check your key with 'parallel config get-key'";
41252
41252
  } else if (response.status === 402) {
41253
41253
  message = "Insufficient credits. Add credits at https://platform.parallel.ai";
41254
+ } else if (response.status === 422) {
41255
+ message = `Validation error: ${text9}`;
41254
41256
  } else if (response.status === 429) {
41255
41257
  message = "Rate limit exceeded. Try again later.";
41256
41258
  }
@@ -41407,10 +41409,11 @@ function runExtracts(urls, stdin3, objective, excerpts, fullContent, concurrency
41407
41409
  if (allUrls.length === 0) {
41408
41410
  return yield* exports_Effect.fail(new Error("No URLs provided. Provide URLs as arguments or use --stdin"));
41409
41411
  }
41412
+ const useExcerpts = excerpts || !fullContent;
41410
41413
  const requests = allUrls.map((url2) => ({
41411
41414
  urls: [url2],
41412
41415
  objective: exports_Option.isSome(objective) ? objective.value : undefined,
41413
- excerpts,
41416
+ excerpts: useExcerpts,
41414
41417
  full_content: fullContent
41415
41418
  }));
41416
41419
  const results = yield* exports_Effect.forEach(requests, (req) => extract(req), { concurrency });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rikalabs/parallel",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A Unix-friendly CLI for the Parallel Search and Extract APIs",
5
5
  "keywords": [
6
6
  "parallel",