@apmantza/greedysearch-pi 1.0.8 → 1.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.
Files changed (2) hide show
  1. package/package.json +26 -26
  2. package/search.mjs +4 -2
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
- {
2
- "name": "@apmantza/greedysearch-pi",
3
- "version": "1.0.8",
4
- "description": "Pi extension: search Perplexity, Bing Copilot, and Google AI simultaneously — synthesized AI answers, not just links",
5
- "type": "module",
6
- "keywords": [
7
- "pi-package"
8
- ],
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/apmantza/GreedySearch-pi"
12
- },
13
- "license": "MIT",
14
- "pi": {
15
- "extensions": [
16
- "./index.ts"
17
- ],
18
- "skills": [
19
- "./skills"
20
- ]
21
- },
22
- "peerDependencies": {
23
- "@mariozechner/pi-coding-agent": "*",
24
- "@sinclair/typebox": "*"
25
- }
26
- }
1
+ {
2
+ "name": "@apmantza/greedysearch-pi",
3
+ "version": "1.0.9",
4
+ "description": "Pi extension: search Perplexity, Bing Copilot, and Google AI simultaneously — synthesized AI answers, not just links",
5
+ "type": "module",
6
+ "keywords": [
7
+ "pi-package"
8
+ ],
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/apmantza/GreedySearch-pi"
12
+ },
13
+ "license": "MIT",
14
+ "pi": {
15
+ "extensions": [
16
+ "./index.ts"
17
+ ],
18
+ "skills": [
19
+ "./skills"
20
+ ]
21
+ },
22
+ "peerDependencies": {
23
+ "@mariozechner/pi-coding-agent": "*",
24
+ "@sinclair/typebox": "*"
25
+ }
26
+ }
package/search.mjs CHANGED
@@ -222,12 +222,14 @@ async function main() {
222
222
 
223
223
  await ensureChrome();
224
224
 
225
- const short = args.includes('--short');
225
+ const full = args.includes('--full');
226
+ const short = !full; // brief by default; --full opts into complete answers
226
227
  const fetchSource = args.includes('--fetch-top-source');
227
228
  const outIdx = args.indexOf('--out');
228
229
  const outFile = outIdx !== -1 ? args[outIdx + 1] : null;
229
230
  const rest = args.filter((a, i) =>
230
- a !== '--short' &&
231
+ a !== '--full' &&
232
+ a !== '--short' && // keep accepting --short for back-compat
231
233
  a !== '--fetch-top-source' &&
232
234
  a !== '--out' &&
233
235
  (outIdx === -1 || i !== outIdx + 1)