@oss-autopilot/core 1.10.0 → 1.11.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.
- package/dist/cli-registry.js +64 -0
- package/dist/cli.bundle.cjs +70 -68
- package/dist/cli.js +17 -0
- package/dist/commands/config.js +13 -1
- package/dist/commands/dashboard-server.js +28 -6
- package/dist/commands/index.d.ts +7 -0
- package/dist/commands/index.js +7 -0
- package/dist/commands/setup.d.ts +1 -0
- package/dist/commands/setup.js +29 -1
- package/dist/commands/state-cmd.d.ts +22 -0
- package/dist/commands/state-cmd.js +64 -0
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +12 -0
- package/dist/core/gist-state-store.d.ts +12 -0
- package/dist/core/gist-state-store.js +49 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/state-schema.d.ts +29 -0
- package/dist/core/state-schema.js +4 -0
- package/dist/core/state.d.ts +5 -0
- package/dist/core/state.js +32 -3
- package/dist/core/types.d.ts +3 -2
- package/dist/core/types.js +2 -1
- package/package.json +1 -1
package/dist/core/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Core types for the Open Source Contribution Agent
|
|
3
3
|
*/
|
|
4
|
-
import type { FetchedPRStatus, RepoSignals, TrackedIssue, IssueVettingResult, IssueScope, AgentConfig, AgentState } from './state-schema.js';
|
|
5
|
-
export type { IssueStatus, FetchedPRStatus, ProjectCategory, IssueScope, RepoSignals, RepoScore, StoredMergedPR, StoredClosedPR, AnalyzedIssueConversation, ContributionGuidelines, IssueVettingResult, TrackedIssue, ShelvedPRRef, StatusOverride, AgentConfig, LocalRepoCache, ClosedPR, MergedPR, DailyDigest, AgentState, } from './state-schema.js';
|
|
4
|
+
import type { FetchedPRStatus, RepoSignals, TrackedIssue, IssueVettingResult, IssueScope, DiffTool, AgentConfig, AgentState } from './state-schema.js';
|
|
5
|
+
export type { IssueStatus, FetchedPRStatus, ProjectCategory, IssueScope, DiffTool, RepoSignals, RepoScore, StoredMergedPR, StoredClosedPR, AnalyzedIssueConversation, ContributionGuidelines, IssueVettingResult, TrackedIssue, ShelvedPRRef, StatusOverride, AgentConfig, LocalRepoCache, ClosedPR, MergedPR, DailyDigest, AgentState, } from './state-schema.js';
|
|
6
6
|
/** CI pipeline status for a PR's latest commit. */
|
|
7
7
|
export type CIStatus = 'passing' | 'failing' | 'pending' | 'unknown';
|
|
8
8
|
/**
|
|
@@ -237,6 +237,7 @@ export declare const DEFAULT_CONFIG: AgentConfig;
|
|
|
237
237
|
export declare const INITIAL_STATE: AgentState;
|
|
238
238
|
export declare const PROJECT_CATEGORIES: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
239
239
|
export declare const ISSUE_SCOPES: ("advanced" | "beginner" | "intermediate")[];
|
|
240
|
+
export declare const DIFF_TOOLS: readonly DiffTool[];
|
|
240
241
|
export declare const SCOPE_LABELS: Record<IssueScope, string[]>;
|
|
241
242
|
/** Priority tier for issue search results. Ordered: merged_pr > preferred_org > starred > normal. */
|
|
242
243
|
export type SearchPriority = 'merged_pr' | 'preferred_org' | 'starred' | 'normal';
|
package/dist/core/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Core types for the Open Source Contribution Agent
|
|
3
3
|
*/
|
|
4
|
-
import { AgentConfigSchema, AgentStateSchema, ProjectCategorySchema, IssueScopeSchema } from './state-schema.js';
|
|
4
|
+
import { AgentConfigSchema, AgentStateSchema, ProjectCategorySchema, IssueScopeSchema, DiffToolSchema, } from './state-schema.js';
|
|
5
5
|
/**
|
|
6
6
|
* Check if a repo should be excluded based on its star count.
|
|
7
7
|
* Returns true if the repo is below the threshold or has unknown star count.
|
|
@@ -17,6 +17,7 @@ export const INITIAL_STATE = AgentStateSchema.parse({ version: 3 });
|
|
|
17
17
|
// ── Const arrays (derived from Zod schemas for runtime iteration) ────
|
|
18
18
|
export const PROJECT_CATEGORIES = ProjectCategorySchema.options;
|
|
19
19
|
export const ISSUE_SCOPES = IssueScopeSchema.options;
|
|
20
|
+
export const DIFF_TOOLS = DiffToolSchema.options;
|
|
20
21
|
export const SCOPE_LABELS = {
|
|
21
22
|
beginner: ['good first issue', 'help wanted', 'easy', 'up-for-grabs', 'first-timers-only', 'beginner'],
|
|
22
23
|
intermediate: ['enhancement', 'feature', 'feature-request', 'contributions welcome'],
|