@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 +8 -5
- package/dist/cli.bundle.cjs +67 -108
- package/dist/commands/daily.js +17 -0
- package/dist/commands/index.d.ts +3 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/scout-bridge.d.ts +15 -0
- package/dist/commands/scout-bridge.js +63 -0
- package/dist/commands/search.d.ts +1 -1
- package/dist/commands/search.js +10 -13
- package/dist/commands/vet-list.d.ts +1 -1
- package/dist/commands/vet-list.js +4 -5
- package/dist/commands/vet.d.ts +1 -1
- package/dist/commands/vet.js +4 -5
- package/dist/core/index.d.ts +0 -2
- package/dist/core/index.js +1 -2
- package/package.json +2 -1
- package/dist/core/category-mapping.d.ts +0 -19
- package/dist/core/category-mapping.js +0 -58
- package/dist/core/issue-discovery.d.ts +0 -94
- package/dist/core/issue-discovery.js +0 -591
- package/dist/core/issue-eligibility.d.ts +0 -38
- package/dist/core/issue-eligibility.js +0 -151
- package/dist/core/issue-filtering.d.ts +0 -51
- package/dist/core/issue-filtering.js +0 -103
- package/dist/core/issue-scoring.d.ts +0 -43
- package/dist/core/issue-scoring.js +0 -97
- package/dist/core/issue-vetting.d.ts +0 -33
- package/dist/core/issue-vetting.js +0 -306
- package/dist/core/repo-health.d.ts +0 -24
- package/dist/core/repo-health.js +0 -194
- package/dist/core/search-budget.d.ts +0 -62
- package/dist/core/search-budget.js +0 -129
- package/dist/core/search-phases.d.ts +0 -83
- package/dist/core/search-phases.js +0 -238
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,
|
|
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 =
|
|
66
|
+
const state = getStateManager();
|
|
66
67
|
const currentState = state.getState();
|
|
67
68
|
|
|
68
|
-
//
|
|
69
|
-
const
|
|
70
|
-
|
|
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
|