@rikalabs/parallel 0.3.0 → 0.3.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/README.md +2 -6
- package/dist/index.js +8 -4
- package/package.json +1 -1
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
|
-
##
|
|
70
|
+
## Claude Code
|
|
71
71
|
|
|
72
|
-
|
|
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
|
}
|
|
@@ -41285,7 +41287,7 @@ function formatSearchResponse(response, format6, pretty6) {
|
|
|
41285
41287
|
if (result.excerpts.length > 0) {
|
|
41286
41288
|
lines3.push(`Excerpts:`);
|
|
41287
41289
|
for (const excerpt of result.excerpts) {
|
|
41288
|
-
lines3.push(` ${excerpt
|
|
41290
|
+
lines3.push(` ${excerpt}`);
|
|
41289
41291
|
}
|
|
41290
41292
|
}
|
|
41291
41293
|
lines3.push("");
|
|
@@ -41316,11 +41318,12 @@ function formatExtractResponse(response, format6, pretty6) {
|
|
|
41316
41318
|
if (result.excerpts && result.excerpts.length > 0) {
|
|
41317
41319
|
lines3.push(`Excerpts:`);
|
|
41318
41320
|
for (const excerpt of result.excerpts) {
|
|
41319
|
-
lines3.push(` ${excerpt
|
|
41321
|
+
lines3.push(` ${excerpt}`);
|
|
41320
41322
|
}
|
|
41321
41323
|
}
|
|
41322
41324
|
if (result.full_content) {
|
|
41323
|
-
lines3.push(`Full Content
|
|
41325
|
+
lines3.push(`Full Content:`);
|
|
41326
|
+
lines3.push(result.full_content);
|
|
41324
41327
|
}
|
|
41325
41328
|
lines3.push("");
|
|
41326
41329
|
}
|
|
@@ -41407,10 +41410,11 @@ function runExtracts(urls, stdin3, objective, excerpts, fullContent, concurrency
|
|
|
41407
41410
|
if (allUrls.length === 0) {
|
|
41408
41411
|
return yield* exports_Effect.fail(new Error("No URLs provided. Provide URLs as arguments or use --stdin"));
|
|
41409
41412
|
}
|
|
41413
|
+
const useExcerpts = excerpts || !fullContent;
|
|
41410
41414
|
const requests = allUrls.map((url2) => ({
|
|
41411
41415
|
urls: [url2],
|
|
41412
41416
|
objective: exports_Option.isSome(objective) ? objective.value : undefined,
|
|
41413
|
-
excerpts,
|
|
41417
|
+
excerpts: useExcerpts,
|
|
41414
41418
|
full_content: fullContent
|
|
41415
41419
|
}));
|
|
41416
41420
|
const results = yield* exports_Effect.forEach(requests, (req) => extract(req), { concurrency });
|