@scrappycoco/cli 0.8.4 → 0.8.6

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/dist/index.js +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -639,6 +639,9 @@ var ApiClient = class {
639
639
  }
640
640
  delayMs = Math.min(delayMs * 2, maxDelayMs);
641
641
  }
642
+ if (job.result_expired) {
643
+ throw new CliError(`Job ${job.job_id} results expired after 30 days. Use your saved copy or submit a new execution.`, EXIT.api, job);
644
+ }
642
645
  if (!job.result || typeof job.result !== "object" || Array.isArray(job.result)) {
643
646
  throw new CliError(`Job ${job.job_id} completed without a result.`, EXIT.api, job);
644
647
  }
@@ -1541,7 +1544,7 @@ catalog.command("inspect <capability-id>").action(async (capabilityId, _options,
1541
1544
  globals(command).json || false
1542
1545
  );
1543
1546
  });
1544
- program.command("run [capability-id]").description("Run a capability directly; use Discover only when configuration is uncertain").option("--config <discovery-id>", "run a finalized multi-step configuration").option("-f, --file <path>", "canonical request JSON file").option("--input <json>", "capability input JSON; use url or urls for web.extract_content").option("--provider <id>", "provider ID; repeat for an ordered fallback waterfall", collect, []).option("--provider-options <json>", "provider-native options keyed by provider ID").option("--concurrency <number>", "batch concurrency (default 3, maximum 10)").option("--limit <number>", "maximum records").option("--idempotency-key <key>", "stable retry key").option("--retry-failed <run-id>", "retry only failed URLs from a partial batch run").option("--detach", "queue the job and return immediately").addOption(new Option("--format <format>", "output record format").choices(["json", "jsonl", "csv"]).default("json")).option("-o, --output <path>", "write records to a file").action(async (capabilityId, options, command) => {
1547
+ program.command("run [capability-id]").description("Run a capability directly; use Discover only when configuration is uncertain").option("--config <discovery-id>", "run a finalized multi-step configuration").option("-f, --file <path>", "canonical request JSON file").option("--input <json>", "capability input JSON; use items for batches, urls for extraction, queries for search").option("--provider <id>", "provider ID; repeat for an ordered fallback waterfall", collect, []).option("--provider-options <json>", "provider-native options keyed by provider ID").option("--concurrency <number>", "individual-request concurrency; native provider batches use upstream concurrency").option("--limit <number>", "maximum records").option("--idempotency-key <key>", "stable retry key").option("--retry-failed <run-id>", "retry only failed inputs from a partial batch run").option("--detach", "queue the job and return immediately").addOption(new Option("--format <format>", "output record format").choices(["json", "jsonl", "csv"]).default("json")).option("-o, --output <path>", "write records to a file").action(async (capabilityId, options, command) => {
1545
1548
  if (options.retryFailed) {
1546
1549
  if (capabilityId || options.config) {
1547
1550
  throw new CliError("Do not combine --retry-failed with a capability ID or --config.", EXIT.usage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrappycoco/cli",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "CLI for Scrappycoco scraper discovery and execution",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,7 +36,7 @@
36
36
  "license": "MIT",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "https://github.com/Albert-Tam/ai-scraper-project.git",
39
+ "url": "git+https://github.com/Albert-Tam/ai-scraper-project.git",
40
40
  "directory": "cli"
41
41
  },
42
42
  "publishConfig": {