@pify/autopilot 0.1.0 → 0.1.1

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
@@ -33,6 +33,8 @@ It drives each turn on `agent_settled` (fully idle) via a triggered message, so
33
33
 
34
34
  Give a goal (recommended) and it works toward that, one concrete step per turn; without one it just continues the current task. It stops on any of: the done signal, the turn cap, no progress, an error, or `/autopilot off`.
35
35
 
36
+ **With [`@pify/goal`](https://github.com/pifydev/goal):** both self-drive the idle agent, so arm only one at a time — running both just means the turn gets nudged twice. Pick autopilot for "keep going until done" or goal for its evidence-gated, budgeted completion.
37
+
36
38
  ## Settings
37
39
 
38
40
  `.pi/autopilot.json` (project) or `<agentDir>/autopilot.json` (global):
@@ -91,9 +91,14 @@ export default function autopilot(pi: ExtensionAPI) {
91
91
  turns++;
92
92
  renderStatus(ctx);
93
93
  try {
94
+ // deliverAs "followUp" (not "nextTurn"): while idle, pi runs a message
95
+ // delivered as followUp/steer immediately (triggerTurn → _runAgentPrompt),
96
+ // whereas a "nextTurn" message is only QUEUED into whatever turn starts
97
+ // next and never drives one itself — which meant autopilot armed but never
98
+ // actually advanced. followUp is what @pify/goal uses to self-drive too.
94
99
  await pi.sendMessage(
95
100
  { customType: NUDGE_TYPE, content: nudgeText(), display: false },
96
- { triggerTurn: true, deliverAs: "nextTurn" },
101
+ { triggerTurn: true, deliverAs: "followUp" },
97
102
  );
98
103
  } catch {
99
104
  // A /reload or a busy session makes the captured handle throw; stop
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pify/autopilot",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Let the main agent keep going on its own between turns — opt-in, hard-capped by turn count and a no-progress breaker, and it never runs while you are being asked something",
5
5
  "keywords": [
6
6
  "pi-package",