@parcha/agentrun 0.2.0 → 0.3.4

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/CHANGELOG.md DELETED
@@ -1,22 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.2.0 (unreleased)
4
-
5
- Rewrite targeting the unified v2 API. Requires the unified v2 backend.
6
-
7
- - Default base URL is `https://api.grep.ai/api/v2`. `AGENTRUN_API_KEY` and `AGENTRUN_BASE_URL` are read from the environment in Node.
8
- - Package restructured into `errors`, `models`, `ops`, `http`, `client`, `agent`, and `batch`, mirroring the Python SDK.
9
- - Requests are serialised to the v2 vocabulary (`question`, `expert_id`, `domain`, `json_schema`, `batch_name`, `questions`, `inputs`). Every record exposes `id` whatever the API calls it.
10
- - Run, batch, and row statuses are mapped to a short SDK vocabulary; the original is in `raw_status`.
11
- - One error class per HTTP status family. Errors read the API's `{"error": {...}}` envelope and carry `statusCode`, `body`, and `requestId`. Non-JSON bodies raise `InvalidResponseError`; local deadlines raise `PollTimeoutError`.
12
- - Every method returns a promise, so validation failures reject instead of throwing.
13
- - Request limits from the API contract (skill lengths, `maxCostUsd`, batch name, build context) are checked locally.
14
- - `formInputs` on batches and loops, `records` on campaigns, `includeRows` on `getBatch`, `getUsage`, `iterRuns`, `Agent.save`, `Skill.read`.
15
- - `outputSchema` accepts a JSON schema or any object with `toJSONSchema()`.
16
- - `downloadCampaignArtifact` returns an `Artifact`, a `Blob` with the server's `filename`.
17
- - Dual ESM and CommonJS build with type declarations. No runtime dependencies.
18
- - `tests/fixtures/public-v2.json` carries the backend's OpenAPI contract; every request is validated against it in tests.
19
-
20
- ## 0.1.0
21
-
22
- Initial release against the pre-release website proxy.