@pantheon.ai/agents 0.0.17 → 0.1.0

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 (3) hide show
  1. package/README.md +8 -4
  2. package/dist/index.js +1134 -647
  3. package/package.json +3 -1
package/README.md CHANGED
@@ -18,18 +18,21 @@ npm run -w @pantheon.ai/agents build
18
18
  - `DATABASE_URL` (required): MySQL/TiDB connection string for the task list database.
19
19
  - `PANTHEON_API_KEY` (required for some commands): Used to query/execute Pantheon branches.
20
20
  - `PANTHEON_AGENTS_API_TOKEN` (optional): Bearer token for API auth when running `pantheon-agents server` (defaults for `--token`).
21
+ - `DEFAULT_PANTHEON_PROJECT_ID` (optional): Default project id used by CLI commands when `--project-id` is omitted.
22
+ - `DEFAULT_PANTHEON_ROOT_BRANCH_ID` (optional): Default root branch id used by `pantheon-agents config` when `--root-branch-id` is omitted.
21
23
 
22
24
  Command requirements:
23
25
 
24
26
  - `pantheon-agents add-task|delete-task|show-config|show-tasks`: requires `DATABASE_URL`
25
27
  - `pantheon-agents run`: requires `DATABASE_URL` + `PANTHEON_API_KEY`
26
- - `pantheon-agents config`: requires `DATABASE_URL`, and requires `PANTHEON_API_KEY` when `--bootstrap` is enabled (default) or when `--root-branch-id` is not provided
28
+ - `pantheon-agents config`: requires `DATABASE_URL`, and requires `PANTHEON_API_KEY` only when neither `--root-branch-id` nor `DEFAULT_PANTHEON_ROOT_BRANCH_ID` is provided
27
29
  - `pantheon-agents reconfig`: requires `DATABASE_URL` + `PANTHEON_API_KEY`
28
30
  - `pantheon-agents server`: requires `DATABASE_URL`; auth uses `--token` or env `PANTHEON_AGENTS_API_TOKEN` (unless `--no-auth`)
29
31
 
30
32
  Notes:
31
33
 
32
- - `PANTHEON_API_KEY` is also required for config-related server endpoints/tools that read Pantheon branch output or re-bootstrap configs.
34
+ - `PANTHEON_API_KEY` is required for config re-bootstrap server endpoints/tools (`configs.reconfig`), but not for config reads (`configs.get`).
35
+ - `config`, `reconfig`, `add-task`, and `show-config` can omit `--project-id` when `DEFAULT_PANTHEON_PROJECT_ID` is set.
33
36
 
34
37
  ## Show tasks output modes
35
38
 
@@ -48,6 +51,7 @@ If you have an existing DB, apply:
48
51
  ALTER TABLE task ADD COLUMN cancelled_at DATETIME NULL;
49
52
  ALTER TABLE task ADD COLUMN parent_task_id BIGINT NULL;
50
53
  CREATE INDEX idx_task_agent_parent ON task(agent, parent_task_id);
54
+ ALTER TABLE agent_project_config ADD COLUMN setup_script VARCHAR(255) NOT NULL DEFAULT 'codex';
51
55
  ```
52
56
 
53
57
  ## Start the server (HTTP + MCP)
@@ -90,14 +94,14 @@ curl -sS -H "Authorization: Bearer $TOKEN" \\
90
94
  curl -sS -H "Authorization: Bearer $TOKEN" \\
91
95
  -X DELETE http://127.0.0.1:8000/api/v1/agents/<agent>/tasks/<task_id>
92
96
 
93
- # Get agent config (includes bootstrap branch output)
97
+ # Get agent config
94
98
  curl -sS -H "Authorization: Bearer $TOKEN" \\
95
99
  http://127.0.0.1:8000/api/v1/agents/<agent>/configs/<project_id>
96
100
 
97
101
  # Re-bootstrap agent config (like `pantheon-agents reconfig`)
98
102
  curl -sS -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \\
99
103
  -X POST http://127.0.0.1:8000/api/v1/agents/<agent>/configs/<project_id>/reconfig \\
100
- -d '{ "role": "reviewer", "skills": ["style-reviewer"] }'
104
+ -d '{ "role": "reviewer", "skills": ["style-reviewer"], "setup_script": "custom-build" }'
101
105
  ```
102
106
 
103
107
  ### MCP (HTTP+SSE)