thepopebot 1.2.76-beta.35 → 1.2.76-beta.36
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
|
@@ -18,19 +18,22 @@ There are three action types:
|
|
|
18
18
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
|
-
"name": "
|
|
22
|
-
"schedule": "
|
|
21
|
+
"name": "weekly-report",
|
|
22
|
+
"schedule": "0 9 * * 1",
|
|
23
23
|
"type": "agent",
|
|
24
|
-
"
|
|
24
|
+
"scope": "agents/reporter",
|
|
25
|
+
"job": "Generate the weekly report and open a PR.",
|
|
26
|
+
"user_id": "57e959ab-d288-4623-8cda-829c995b7251",
|
|
25
27
|
"enabled": false
|
|
26
28
|
}
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
Optional fields:
|
|
30
|
-
|
|
32
|
+
|
|
33
|
+
- **`"scope"`** *(recommended)* — e.g. `"agents/my-agent"`. Routes the cron to a **scoped agent** under `agents/<name>/`. Its `SYSTEM.md`, skills directory, and working directory all switch to that subdirectory. Scoping is technically optional (a cron without `scope` runs from the repo root using the default `agent-job/SYSTEM.md`), but in practice you almost always want a scoped agent so the job has a clearly-defined identity, prompt, and skill set. See `agents/CLAUDE.md` for the full pattern.
|
|
34
|
+
- **`"user_id"`** *(optional)* — sets the owner of the agent-job. Used by internal systems like `send-dm` to route the completion message; with no owner, the message goes to all admins. Set for personal crons; leave out for shared/system crons. Find user ids in Admin > Users.
|
|
31
35
|
- `"agent_backend"` (e.g. `"claude-code"`, `"codex-cli"`, `"gemini-cli"`, `"pi"`, `"opencode"`, `"kimi-cli"`) — pick which coding agent runs the job, overriding the default set in Admin > Event Handler > Coding Agents.
|
|
32
36
|
- `"llm_model"` — override the model used within the selected coding agent (provider is implicit in the agent).
|
|
33
|
-
- `"user_id"` — attribute the job to a specific user. The completion DM (after PR merge) routes to that user's inbox. If omitted, the completion broadcasts to every admin subscribed to system messages.
|
|
34
37
|
|
|
35
38
|
**`command`** — Runs a shell command on the event handler (working directory: project root).
|
|
36
39
|
|
|
@@ -38,17 +38,20 @@ JSON array of webhook trigger definitions. Loaded at server boot by `lib/trigger
|
|
|
38
38
|
|
|
39
39
|
### Action types
|
|
40
40
|
|
|
41
|
-
Three types — `agent`, `command`, `webhook
|
|
41
|
+
Three types — `agent`, `command`, `webhook`:
|
|
42
42
|
|
|
43
43
|
```json
|
|
44
|
-
{ "type": "agent", "
|
|
44
|
+
{ "type": "agent", "scope": "agents/triage", "job": "Process: {{body}}" }
|
|
45
45
|
{ "type": "command", "command": "echo 'webhook received: {{body}}' >> logs/webhook.log" }
|
|
46
46
|
{ "type": "webhook", "url": "https://example.com/hook", "method": "POST", "headers": {}, "vars": { "source": "github" } }
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
#### Optional fields on `agent` actions
|
|
50
50
|
|
|
51
|
-
`
|
|
51
|
+
- **`"scope"`** *(recommended)* — e.g. `"agents/triage"`. Routes the action to a **scoped agent** under `agents/<name>/`. Its `SYSTEM.md`, skills directory, and working directory all switch to that subdirectory. Scoping is technically optional (an action without `scope` runs from the repo root using the default `agent-job/SYSTEM.md`), but in practice you almost always want a scoped agent so each trigger has a clearly-defined identity, prompt, and skill set. See `agents/CLAUDE.md` for the full pattern.
|
|
52
|
+
- **`"user_id"`** *(optional)* — sets the owner of the agent-job. Used by internal systems like `send-dm` to route the completion message; with no owner, the message goes to all admins. Set for per-user integrations; leave out for shared/system triggers. Find user ids in Admin > Users.
|
|
53
|
+
- `"agent_backend"` (e.g. `"claude-code"`, `"codex-cli"`, `"gemini-cli"`, `"pi"`, `"opencode"`, `"kimi-cli"`) — pick which coding agent runs the action, overriding the default set in Admin > Event Handler > Coding Agents.
|
|
54
|
+
- `"llm_model"` — override the model used within the selected coding agent (provider is implicit in the agent).
|
|
52
55
|
|
|
53
56
|
### Template tokens (in `job` and `command` strings)
|
|
54
57
|
|