@oss-autopilot/core 1.11.0 → 1.12.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
@@ -53,7 +53,8 @@ All commands support `--json` for structured output:
53
53
  ## Library Usage
54
54
 
55
55
  ```typescript
56
- import { PRMonitor, StateManager, IssueDiscovery } from '@oss-autopilot/core';
56
+ import { PRMonitor, getStateManager } from '@oss-autopilot/core';
57
+ import { runSearch, runVet } from '@oss-autopilot/core/commands';
57
58
 
58
59
  const token = process.env.GITHUB_TOKEN!;
59
60
 
@@ -62,12 +63,14 @@ const monitor = new PRMonitor(token);
62
63
  const result = await monitor.fetchUserOpenPRs();
63
64
 
64
65
  // Manage state
65
- const state = StateManager.getInstance();
66
+ const state = getStateManager();
66
67
  const currentState = state.getState();
67
68
 
68
- // Discover contributable issues
69
- const discovery = new IssueDiscovery(token);
70
- const issues = await discovery.searchIssues({ languages: ['typescript'], maxResults: 5 });
69
+ // Search for contributable issues (delegates to @oss-scout/core)
70
+ const searchResult = await runSearch({ maxResults: 10 });
71
+
72
+ // Vet a specific issue
73
+ const vetResult = await runVet({ issueUrl: 'https://github.com/owner/repo/issues/123' });
71
74
  ```
72
75
 
73
76
  ## Claude Code Plugin