@oss-autopilot/core 3.31.6 → 3.33.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.
@@ -40,6 +40,14 @@ interface SearchOptions {
40
40
  * an interactive search rather than a scheduled one.
41
41
  */
42
42
  full?: boolean;
43
+ /**
44
+ * Persist the seen-set and rotation cursor (default true). A headless search
45
+ * on a second machine that shares the Gist state must pass false: otherwise
46
+ * every issue it surfaces is hidden from the user's interactive searches for
47
+ * the seen-set TTL. With false nothing is checkpointed, so the rotation
48
+ * cursor does not advance either; pair it with `full`.
49
+ */
50
+ record?: boolean;
43
51
  }
44
52
  /**
45
53
  * Parse and validate a comma-separated `--strategy` value into scout strategies.
@@ -185,15 +185,18 @@ export async function runSearch(options) {
185
185
  // Record everything scout surfaced this round into the durable seen-set so
186
186
  // the next search rotates past it (#1528). Done before the own-PR filter so
187
187
  // hidden-but-surfaced issues also rotate out. Persists to AgentState.
188
- recordSearchSeen(stateManager, result.candidates.map((c) => c.issue.url));
189
- // Scout advanced its broad-phase language cursor in its own (provided,
190
- // non-persisted) state; copy it back so the next run starts from the next
191
- // language slice instead of offset 0 every time (#1630).
192
- stateManager.setSearchRotation(scout.getState().searchRotation);
193
- // In Gist mode setSearchSeen only writes the local cache; without a
194
- // checkpoint the seen-set never reaches the Gist and the next startup's
195
- // Gist refetch overwrites the cache with the empty remote copy (#1629).
196
- const gistSyncWarning = await maybeCheckpoint(stateManager, MODULE);
188
+ let gistSyncWarning = null;
189
+ if (options.record !== false) {
190
+ recordSearchSeen(stateManager, result.candidates.map((c) => c.issue.url));
191
+ // Scout advanced its broad-phase language cursor in its own (provided,
192
+ // non-persisted) state; copy it back so the next run starts from the next
193
+ // language slice instead of offset 0 every time (#1630).
194
+ stateManager.setSearchRotation(scout.getState().searchRotation);
195
+ // In Gist mode setSearchSeen only writes the local cache; without a
196
+ // checkpoint the seen-set never reaches the Gist and the next startup's
197
+ // Gist refetch overwrites the cache with the empty remote copy (#1629).
198
+ gistSyncWarning = await maybeCheckpoint(stateManager, MODULE);
199
+ }
197
200
  // #1354: never surface issues the user already has an open PR for. Uses
198
201
  // scout's structured linked-PR metadata when present; candidates without it
199
202
  // pass through (the issue-scout agent re-checks via verify-issue anyway).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oss-autopilot/core",
3
- "version": "3.31.6",
3
+ "version": "3.33.0",
4
4
  "description": "CLI and core library for managing open source contributions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -55,7 +55,7 @@
55
55
  "@octokit/plugin-retry": "^8.1.1",
56
56
  "@octokit/plugin-throttling": "^11.0.5",
57
57
  "@octokit/rest": "^22.0.1",
58
- "@oss-scout/core": "^1.10.2",
58
+ "@oss-scout/core": "^1.12.0",
59
59
  "commander": "^15.0.0",
60
60
  "zod": "^4.6.7"
61
61
  },