@pantheon.ai/agents 0.0.14 → 0.0.16
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/README.md +4 -2
- package/dist/index.js +8513 -657
- package/dist/token-B1_fh4ov.js +50 -0
- package/dist/token-error-B9tnlSZq.js +72 -0
- package/dist/token-util-TO_8V0Wr.js +7 -0
- package/dist/token-util-rhrS-6qe.js +356 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -42,10 +42,12 @@ Notes:
|
|
|
42
42
|
|
|
43
43
|
The schema lives in `packages/agents/src/db/schema/tidb.sql`.
|
|
44
44
|
|
|
45
|
-
If you have an existing DB,
|
|
45
|
+
If you have an existing DB, apply:
|
|
46
46
|
|
|
47
47
|
```sql
|
|
48
48
|
ALTER TABLE task ADD COLUMN cancelled_at DATETIME NULL;
|
|
49
|
+
ALTER TABLE task ADD COLUMN parent_task_id BIGINT NULL;
|
|
50
|
+
CREATE INDEX idx_task_agent_parent ON task(agent, parent_task_id);
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
## Start the server (HTTP + MCP)
|
|
@@ -80,7 +82,7 @@ curl -sS -H "Authorization: Bearer $TOKEN" \\
|
|
|
80
82
|
|
|
81
83
|
curl -sS -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \\
|
|
82
84
|
-X POST http://127.0.0.1:8000/api/v1/agents/<agent>/tasks \\
|
|
83
|
-
-d '{ "project_id": "<project_id>", "task": "Do the thing" }'
|
|
85
|
+
-d '{ "project_id": "<project_id>", "task": "Do the thing", "parent_task_id": "<task_id_optional>" }'
|
|
84
86
|
|
|
85
87
|
curl -sS -H "Authorization: Bearer $TOKEN" \\
|
|
86
88
|
-X POST http://127.0.0.1:8000/api/v1/agents/<agent>/tasks/<task_id>/cancel
|