@parcha/agentrun 0.2.1 → 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/package.json CHANGED
@@ -1,63 +1,39 @@
1
1
  {
2
2
  "name": "@parcha/agentrun",
3
- "version": "0.2.1",
4
- "description": "TypeScript SDK for AgentRun: create agents, run them, and collect results",
3
+ "version": "0.3.4",
4
+ "description": "Start AgentRun on this machine with one command: npx @parcha/agentrun",
5
5
  "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": {
12
- "types": "./dist/index.d.ts",
13
- "default": "./dist/index.js"
14
- },
15
- "require": {
16
- "types": "./dist/index.d.cts",
17
- "default": "./dist/index.cjs"
18
- }
19
- }
6
+ "license": "Apache-2.0",
7
+ "bin": {
8
+ "agentrun": "./bin/agentrun.mjs"
20
9
  },
21
10
  "files": [
22
- "dist",
11
+ "bin",
12
+ "lib",
23
13
  "README.md",
24
- "CHANGELOG.md"
14
+ "LICENSE",
15
+ "NOTICE"
25
16
  ],
26
- "sideEffects": false,
27
- "engines": {
28
- "node": ">=20.9.0"
17
+ "dependencies": {
18
+ "@parcha/agentrun-serve": "0.1.0-beta.29"
29
19
  },
30
- "publishConfig": {
31
- "access": "public"
20
+ "scripts": {
21
+ "test": "node --test 'test/*.test.mjs'"
22
+ },
23
+ "engines": {
24
+ "node": ">=22.19.0"
32
25
  },
33
- "homepage": "https://agentrun.ai",
34
26
  "repository": {
35
27
  "type": "git",
36
- "url": "git+https://github.com/Parcha-ai/agentrun-js.git"
28
+ "url": "git+https://github.com/Parcha-ai/agentrun.git",
29
+ "directory": "packages/agentrun"
37
30
  },
38
31
  "bugs": {
39
- "url": "https://github.com/Parcha-ai/agentrun-js/issues"
32
+ "url": "https://github.com/Parcha-ai/agentrun/issues"
40
33
  },
41
- "keywords": [
42
- "agentrun",
43
- "grep",
44
- "agents",
45
- "sdk"
46
- ],
47
- "scripts": {
48
- "build": "tsup",
49
- "typecheck": "tsc -p tsconfig.json --noEmit",
50
- "test": "tsx --test tests/*.test.ts",
51
- "lint": "tsc -p tsconfig.json --noEmit",
52
- "check": "npm run typecheck && npm test && npm run build && npm pack --dry-run",
53
- "prepack": "npm run build"
54
- },
55
- "devDependencies": {
56
- "@types/node": "^22.0.0",
57
- "ajv": "^8.17.0",
58
- "ajv-formats": "^3.0.1",
59
- "tsup": "^8.5.1",
60
- "tsx": "^4.20.0",
61
- "typescript": "^5.9.0"
34
+ "homepage": "https://agentrun.ai",
35
+ "publishConfig": {
36
+ "access": "public",
37
+ "tag": "beta"
62
38
  }
63
39
  }
package/CHANGELOG.md DELETED
@@ -1,27 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.2.1
4
-
5
- - Agent records from `getAgent` and `listAgents` expose `instructions`, `skills`, and `tools`, the names `new Agent()` takes. `system_prompt`, `skill_names`, and `mcp_tool_names` still hold the same values.
6
- - `getBatchResults` rows are typed as the new `BatchResultRow`: `row_number`, `status`, `raw_status`, `run_id`, `headline`, `excerpt`, `report_link`, `structured_output`, `is_public`, and error fields. They no longer advertise `question` or `row_data`, which the results endpoint does not return; those are on `getBatch(id).rows`. The README batch examples now match.
7
-
8
- ## 0.2.0 (unreleased)
9
-
10
- Rewrite targeting the unified v2 API. Requires the unified v2 backend.
11
-
12
- - Default base URL is `https://api.grep.ai/api/v2`. `AGENTRUN_API_KEY` and `AGENTRUN_BASE_URL` are read from the environment in Node.
13
- - Package restructured into `errors`, `models`, `ops`, `http`, `client`, `agent`, and `batch`, mirroring the Python SDK.
14
- - 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.
15
- - Run, batch, and row statuses are mapped to a short SDK vocabulary; the original is in `raw_status`.
16
- - 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`.
17
- - Every method returns a promise, so validation failures reject instead of throwing.
18
- - Request limits from the API contract (skill lengths, `maxCostUsd`, batch name, build context) are checked locally.
19
- - `formInputs` on batches and loops, `records` on campaigns, `includeRows` on `getBatch`, `getUsage`, `iterRuns`, `Agent.save`, `Skill.read`.
20
- - `outputSchema` accepts a JSON schema or any object with `toJSONSchema()`.
21
- - `downloadCampaignArtifact` returns an `Artifact`, a `Blob` with the server's `filename`.
22
- - Dual ESM and CommonJS build with type declarations. No runtime dependencies.
23
- - `tests/fixtures/public-v2.json` carries the backend's OpenAPI contract; every request is validated against it in tests.
24
-
25
- ## 0.1.0
26
-
27
- Initial release against the pre-release website proxy.