@trawlme/skills 1.4.13 → 1.4.14
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/package.json
CHANGED
|
@@ -62,10 +62,10 @@ Optional flags: `--no-autofix` (skip the auto-fix retry on a failed first run),
|
|
|
62
62
|
One call: the server generates the extraction code (AI), creates a **persistent, self-healing scrap**, and triggers its first run (auto-fix on failure by default). Requires an api-key scoped `trawl:scraps:create` (or a session JWT). Response: `{ success, scrap, historyId }` — newer servers also send `runId`, the same value (prefer `runId`, fall back to `historyId`).
|
|
63
63
|
|
|
64
64
|
Critical semantics for agents:
|
|
65
|
-
- **Ask the user before running it** — `trawl create` sends the URL + prompt to Trawl, creates a persistent scrap, enables a
|
|
65
|
+
- **Ask the user before running it** — `trawl create` sends the URL + prompt to Trawl, creates a persistent scrap, enables a WEEKLY schedule, and consumes quota (LLM generation + a real run). Obtain explicit user confirmation immediately before executing; never fire it speculatively.
|
|
66
66
|
- **NOT idempotent + not instant** — generation + probes + first run legitimately take many minutes (since CLI 4.0.4 it arms a 4800s ceiling for `create`, far above the 30s default; a global `TRAWL_TIMEOUT` override clamps it). On a client-side timeout the scrap **may still have been created server-side**: run `trawl list` before retrying — a retry creates a DUPLICATE scrap and burns quota.
|
|
67
|
-
- **
|
|
68
|
-
- **`success:false` (exit 1) ≠ retry** — the scrap EXISTS
|
|
67
|
+
- **Weekly schedule by default** — a wizard scrap is created with a weekly cron (Monday 07:00 UTC, `0 7 * * 1`); it re-runs and meters every week until you change it (`trawl scraps update <id> --cron <expr>` or `--no-cron`).
|
|
68
|
+
- **`success:false` (exit 1) ≠ retry** — the scrap EXISTS; the setup already made its one repair (none with `--no-autofix`) and nothing retries it in the background. Check `trawl data <id>` / `trawl run-info <runId>`, then fix it with `trawl scraps update` or wait for its next scheduled run (which can still self-heal unless autofix is off); never re-run `create`.
|
|
69
69
|
- **On success, human mode proves the value (since 2.3.0)** — after a successful first run, `create` prints a small best-effort data sample (item count, field names, one truncated value) below the scrap summary, then `Next step: trawl data <id>` (with `trawl get <id>` noted as the secondary, metadata-only view). The sample is bonus output only: any fetch/parse failure is swallowed silently and never turns a successful create into an error. `--json` is unaffected — it always returns the raw `{ success, scrap, historyId }` payload (plus `runId` on newer servers) with no sample appended.
|
|
70
70
|
- Distinct from `trawl scraps create` below (raw Puppeteer script, no AI).
|
|
71
71
|
|