@themoltnet/agent-daemon 0.27.2 → 0.28.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.
package/README.md CHANGED
@@ -244,10 +244,11 @@ and private diary id.
244
244
  ### 3. Start the daemon against the local stack
245
245
 
246
246
  The daemon picks up the API URL from the agent's `moltnet.json`. It is a
247
- workspace package, not a global CLI — invoke it via `pnpm --filter`:
247
+ workspace package, not a global CLI — invoke it through Nx so execution stays
248
+ rooted in the workspace task graph:
248
249
 
249
250
  ```bash
250
- pnpm --filter @themoltnet/agent-daemon dev poll \
251
+ pnpm exec nx run @themoltnet/agent-daemon:dev -- poll \
251
252
  --agent local-dev \
252
253
  --team "$MOLTNET_TEAM_ID" \
253
254
  --task-types fulfill_brief \
@@ -259,8 +260,8 @@ pnpm --filter @themoltnet/agent-daemon dev poll \
259
260
  registered type.
260
261
  - Pick a runtime profile whose provider/model matches your Pi auth credits.
261
262
  Set `MOLTNET_AGENT_PROFILE` to the profile UUID or team-scoped profile name.
262
- - `dev` (= `tsx watch src/main.ts`) is fine for local. Use `cli` for a
263
- one-shot run without watch.
263
+ - `dev` (= `tsx watch src/main.ts`) is fine for local. Use the Nx `cli` target
264
+ for a one-shot run without watch.
264
265
 
265
266
  Leave it running. It idles until a task lands in its queue.
266
267
 
@@ -325,7 +326,7 @@ against the local e2e stack before the new schema exists on a deployed API.
325
326
  Start the daemon with `--task-types pr_review`:
326
327
 
327
328
  ```bash
328
- pnpm --filter @themoltnet/agent-daemon dev poll \
329
+ pnpm exec nx run @themoltnet/agent-daemon:dev -- poll \
329
330
  --agent local-dev \
330
331
  --team "$MOLTNET_TEAM_ID" \
331
332
  --task-types pr_review \
package/dist/main.js CHANGED
@@ -11010,6 +11010,7 @@ async function runPolling(opts) {
11010
11010
  topK: profile.topK,
11011
11011
  maxOutputTokens: profile.maxOutputTokens,
11012
11012
  sandboxConfig: sandbox.config,
11013
+ forwardEnv: profile.requiredEnv,
11013
11014
  makeExecutionPlan: (task) => executionPlans.getOrCreate(task),
11014
11015
  makeOnTurnEvent: makeTurnEventHandlerFactory(taskLogger),
11015
11016
  maxTurns: common.maxTurns,
@@ -11264,6 +11265,7 @@ async function runOnce(argv) {
11264
11265
  topK: profile.topK,
11265
11266
  maxOutputTokens: profile.maxOutputTokens,
11266
11267
  sandboxConfig: sandbox.config,
11268
+ forwardEnv: profile.requiredEnv,
11267
11269
  makeExecutionPlan: (claimedTask) => executionPlans.getOrCreate(claimedTask),
11268
11270
  onTurnEvent: makeTurnEventHandler(rootLogger, { taskId }),
11269
11271
  maxTurns: opts.maxTurns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/agent-daemon",
3
- "version": "0.27.2",
3
+ "version": "0.28.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "description": "MoltNet agent daemon — claims and executes tasks (fulfill_brief, assess_brief) from the MoltNet task-service via Pi-headless. CLI: moltnet-agent.",
@@ -45,19 +45,19 @@
45
45
  "@opentelemetry/semantic-conventions": "^1.39.0",
46
46
  "pino": "^10.3.1",
47
47
  "pino-pretty": "^13.1.3",
48
- "@themoltnet/sdk": "0.115.0",
49
- "@themoltnet/pi-extension": "0.29.0",
50
- "@themoltnet/agent-runtime": "0.32.0"
48
+ "@themoltnet/agent-runtime": "0.33.0",
49
+ "@themoltnet/pi-extension": "0.30.0",
50
+ "@themoltnet/sdk": "0.116.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "tsx": "^4.7.0",
54
54
  "typescript": "~5.9.2",
55
55
  "vite": "^8.0.0",
56
56
  "vitest": "^3.0.0",
57
+ "@moltnet/bootstrap": "0.1.0",
57
58
  "@moltnet/crypto-service": "0.1.0",
58
- "@moltnet/observability": "0.1.0",
59
59
  "@moltnet/tasks": "0.1.0",
60
- "@moltnet/bootstrap": "0.1.0"
60
+ "@moltnet/observability": "0.1.0"
61
61
  },
62
62
  "nx": {
63
63
  "tags": [