@postplus/cli 0.1.43 → 0.1.44

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.
@@ -599,7 +599,7 @@ async function runResearchCollect(args) {
599
599
  const outputPath = flags.values.get('output') ?? null;
600
600
  return runHostedCommand({
601
601
  request: () => postHostedJson({
602
- body: { runHandle, runHandleType: 'public-content-collection' },
602
+ body: { runHandle, runHandleType: 'hosted-collection' },
603
603
  pathName: '/api/postplus-cli/hosted/collection',
604
604
  skillName: null,
605
605
  }),
@@ -687,8 +687,19 @@ async function runResearchScrape(args) {
687
687
  const verb = 'scrape';
688
688
  const targets = RESEARCH_VERB_TARGETS.get(verb);
689
689
  if (!first || first.startsWith('--')) {
690
- const valid = targets ? [...targets.keys()].join(', ') : '';
691
- throw new Error(`postplus research ${verb} requires a source key. Valid: ${valid}.`);
690
+ const flags = parseFlags(args, new Set(['json']));
691
+ const runHandle = requireFlag(flags, 'run-handle');
692
+ const outputPath = flags.values.get('output') ?? null;
693
+ return runHostedCommand({
694
+ request: () => postHostedJson({
695
+ body: { runHandle, runHandleType: 'public-content-collection' },
696
+ pathName: '/api/postplus-cli/hosted/collection',
697
+ skillName: null,
698
+ }),
699
+ errorInputLabel: 'research-scrape-run-handle',
700
+ json: flags.booleans.has('json'),
701
+ outputPath,
702
+ });
692
703
  }
693
704
  const sourceKey = first;
694
705
  const resolved = targets?.get(sourceKey);
@@ -1014,6 +1025,7 @@ Usage:
1014
1025
  postplus research collect <collection-key> --request <input.json> [--skill <skill-id>] [--max-charge-usd <usd>] [--output <result.json>]
1015
1026
  postplus research collect --run-handle <runHandle> [--output <result.json>]
1016
1027
  postplus research scrape <source-key> --request <input-array.json> [--skill <skill-id>] [--max-charge-usd <usd>] [--output <result.json>]
1028
+ postplus research scrape --run-handle <runHandle> [--output <result.json>]
1017
1029
  `);
1018
1030
  }
1019
1031
  function printDomainVerbHelp(domain) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postplus/cli",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
5
5
  "type": "module",
6
6
  "description": "PostPlus CLI for PostPlus Cloud auth, status, and diagnostics.",