opencode-pilot 0.7.1 → 0.7.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-pilot",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "type": "module",
5
5
  "main": "plugin/index.js",
6
6
  "description": "Automation daemon for OpenCode - polls for work and spawns sessions",
@@ -95,6 +95,11 @@ export async function pollOnce(options = {}) {
95
95
  // Load configuration
96
96
  loadRepoConfig(configPath);
97
97
 
98
+ // Ensure poller is initialized for state tracking
99
+ if (!pollerInstance) {
100
+ pollerInstance = createPoller({ configPath });
101
+ }
102
+
98
103
  // Get all sources
99
104
  const sources = getAllSources();
100
105
 
@@ -154,8 +159,8 @@ export async function pollOnce(options = {}) {
154
159
  const sortedItems = sortByPriority(readyItems, sortConfig);
155
160
 
156
161
  // Process ready items
157
- // Get reprocess_on config from provider (e.g., ['state', 'updated_at'] for GitHub)
158
- const reprocessOn = toolProviderConfig?.reprocess_on || source.reprocess_on;
162
+ // Get reprocess_on config: source-level overrides provider-level
163
+ const reprocessOn = source.reprocess_on || toolProviderConfig?.reprocess_on;
159
164
 
160
165
  debug(`Processing ${sortedItems.length} sorted items`);
161
166
  for (const item of sortedItems) {
@@ -40,7 +40,14 @@ my-prs-feedback:
40
40
  mcp: github
41
41
  name: search_issues
42
42
  args:
43
- q: "is:pr author:@me state:open review:changes_requested"
43
+ # Catches PRs with any review activity (comments, reviews, or changes requested)
44
+ # Note: comments:>0 includes both review comments and issue comments
45
+ q: "is:pr author:@me state:open comments:>0"
44
46
  item:
45
47
  id: "{html_url}"
46
48
  repo: "{repository_full_name}"
49
+ # Reprocess when PR is updated (new commits pushed, new comments, etc.)
50
+ # This ensures we re-trigger after addressing review feedback
51
+ reprocess_on:
52
+ - state
53
+ - updated_at
@@ -565,7 +565,9 @@ sources:
565
565
  const sources = getSources();
566
566
 
567
567
  assert.strictEqual(sources[0].name, 'my-prs-feedback');
568
- assert.strictEqual(sources[0].args.q, 'is:pr author:@me state:open review:changes_requested');
568
+ assert.strictEqual(sources[0].args.q, 'is:pr author:@me state:open comments:>0');
569
+ // This preset includes updated_at in reprocess_on to catch new commits
570
+ assert.deepStrictEqual(sources[0].reprocess_on, ['state', 'updated_at']);
569
571
  });
570
572
 
571
573
  test('expands linear/my-issues preset with required args', async () => {