probe-research 0.30.0 → 0.32.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.
@@ -148,8 +148,10 @@ const FIX_MIN = "0.385.0";
148
148
  * 0.457.0 since fixes-1107b T4 + T6a (#4527): the pages' `import review --chats-*` narrowing (big-history.md),
149
149
  * T5's `wandb key request|receive` (0.454.0), PR B's `notice`/`notices` and `--sessions missed` (0.454.0), and
150
150
  * PR C's confirmed `service stop` (0.455.0); 0.456.0 was cut before #4527 merged.
151
+ * 0.461.0 since probe auto mode (#4543): `session control` and `install --session-control`, the pages' "Who
152
+ * turns Probe on or off in each chat?"; 0.460.0 was cut before #4543 merged.
151
153
  */
152
- const AGENT_MIN_CLI = "0.459.0";
154
+ const AGENT_MIN_CLI = "0.461.0";
153
155
  /** `install` flags only AGENT_MIN_CLI knows (D36). */
154
156
  const AGENT_INSTALL_FLAGS = Object.freeze(["--recommended", "--who-records", "--session-default", "--session-control",
155
157
  "--profile", "--attempt"]);
@@ -829,11 +831,14 @@ function sleep(ms) {
829
831
  }
830
832
 
831
833
  /** Run an agent's call (`step`) under the backstop; a call it had to stop answers `run_again` (75). */
832
- async function runAgentCall(cmd, cmdArgs, startedMs, step) {
834
+ async function runAgentCall(cmd, cmdArgs, startedMs, step, watch = null) {
833
835
  const ran = await agentRun.runWithBackstop(cmd, cmdArgs, { deadlineMs: startedMs + agentRun.AGENT_BUDGET_MS });
834
836
  if (ran.stopped) {
837
+ // `sign-in --wait`'s (fixes-1108): a call stopped unsaved still says whether the person approved, read once
838
+ // after the CLI is gone, so the agent never says "still waiting" to someone who approved.
839
+ if (watch) await watch.update();
835
840
  await refuseAgent(step, agentRun.Reason.RUN_AGAIN, "Stopped at the agent's time limit: run the same command again.",
836
- agentRun.EXIT_AGAIN);
841
+ agentRun.EXIT_AGAIN, watch ? watch.getFacts() : {});
837
842
  }
838
843
  if (ran.error) await refuseAgent(step, agentRun.Reason.INCOMPLETE, `could not run ${cmd}: ${ran.error}`, 1);
839
844
  if (SHIM_REASONS[ran.code]) {
@@ -1034,7 +1039,7 @@ async function waitForSignIn(json, startedMs) {
1034
1039
  // Read only while it waited for the install: a `probe` already here is handed the sign-in at once.
1035
1040
  if (watch.hasWatched()) await sayInstalled(watch, startedMs);
1036
1041
  return runAgentCall(probe, ["wizard", "--action", "login", "--pending", ...(json ? ["--json"] : [])], startedMs,
1037
- AgentStep.SIGN_IN_WAIT);
1042
+ AgentStep.SIGN_IN_WAIT, watch);
1038
1043
  }
1039
1044
 
1040
1045
  /** Probe installed during the wait (PR39): approved, say so, and hand the CLI the save only with time for it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "probe-research",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "description": "Setup wizard for Probe Research in your coding agents. Runs from zero with npx.",
5
5
  "bin": {
6
6
  "probe-research": "bin/probe-research.js"