@themoltnet/agent-daemon 0.8.0 → 0.10.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 +42 -0
  2. package/dist/main.js +983 -453
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -147,6 +147,13 @@ primitive, not a performance recipe. In pnpm-heavy monorepos like this one,
147
147
  keep install hot paths off `/workspace` via guest-local store paths and
148
148
  `resumeCommands` tmpfs mounts.
149
149
 
150
+ If a resume step assumes `/workspace` is a repo checkout, gate it on
151
+ `resumeCommands[].when.workspaceMode` rather than on task type. Use:
152
+
153
+ - `shared_mount` / `dedicated_worktree` for repo-aware bootstrap
154
+ - `scratch_mount` to skip repo-specific steps when the task runs in an empty
155
+ scratch workspace
156
+
150
157
  ### 1. Start the local stack
151
158
 
152
159
  The e2e Compose file ships everything the daemon needs (Postgres, Ory, REST
@@ -254,6 +261,41 @@ moltnet entry list --diary-id "$MOLTNET_DIARY_ID" --limit 10 \
254
261
  --credentials "$PWD/.moltnet/local-dev/moltnet.json"
255
262
  ```
256
263
 
264
+ ### 4b. Create a `pr_review` smoke task
265
+
266
+ Use this path when you want to exercise the generic `pr_review` task type
267
+ against the local e2e stack before the new schema exists on a deployed API.
268
+
269
+ Start the daemon with `--task-types pr_review`:
270
+
271
+ ```bash
272
+ pnpm --filter @themoltnet/agent-daemon dev poll \
273
+ --agent local-dev \
274
+ --team "$MOLTNET_TEAM_ID" \
275
+ --task-types pr_review \
276
+ --provider openai-codex \
277
+ --model gpt-5.4-codex \
278
+ --debug
279
+ ```
280
+
281
+ Then, in another terminal, create the task:
282
+
283
+ ```bash
284
+ pnpm exec tsx tools/src/tasks/create-pr-review.ts \
285
+ --agent local-dev \
286
+ --pr <number> \
287
+ --repo <owner/repo>
288
+ ```
289
+
290
+ This helper stays imposer-only. It reads PR metadata, ensures the PR
291
+ correlation marker exists, loads the binary rubric, and creates the
292
+ `pr_review` task. The daemon-claimed LLM attempt remains responsible for
293
+ the review itself and for any requested outward action such as `gh pr comment`.
294
+
295
+ If you want an automated local check without real GitHub mutation, use the
296
+ stubbed `pr_review` lifecycle coverage in
297
+ `apps/agent-daemon/e2e/daemon.e2e.test.ts` instead of this manual smoke path.
298
+
257
299
  ### What to verify
258
300
 
259
301
  After the task completes, every entry produced **during the attempt** should: