@oss-autopilot/core 3.22.3 → 3.24.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 +43 -1
- package/dist/cli.bundle.cjs +112 -110
- package/dist/commands/daily.d.ts +8 -1
- package/dist/commands/daily.js +33 -3
- package/dist/commands/features.js +5 -11
- package/dist/commands/guidelines.d.ts +15 -0
- package/dist/commands/guidelines.js +22 -0
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/overnight-push-prep.d.ts +91 -0
- package/dist/commands/overnight-push-prep.js +335 -0
- package/dist/commands/overnight.d.ts +16 -2
- package/dist/commands/overnight.js +33 -14
- package/dist/commands/scout-bridge.js +38 -8
- package/dist/commands/search.js +20 -26
- package/dist/commands/setup.js +9 -0
- package/dist/core/config-registry.js +6 -0
- package/dist/core/issue-grading.d.ts +8 -10
- package/dist/core/issue-grading.js +8 -10
- package/dist/core/state-schema.d.ts +34 -2
- package/dist/core/state-schema.js +29 -2
- package/dist/formatters/json.d.ts +50 -0
- package/dist/formatters/json.js +36 -0
- package/package.json +2 -2
package/dist/formatters/json.js
CHANGED
|
@@ -43,6 +43,7 @@ export function toCompactDailyOutput(output) {
|
|
|
43
43
|
warnings: output.warnings,
|
|
44
44
|
strategySummary: output.strategySummary,
|
|
45
45
|
listUpdates: output.listUpdates,
|
|
46
|
+
pendingLearnings: output.pendingLearnings,
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
@@ -294,6 +295,10 @@ export const AttentionSummarySchema = z.object({
|
|
|
294
295
|
waiting: z.number().int().nonnegative(),
|
|
295
296
|
});
|
|
296
297
|
/** Mirrors {@link MergedPRListUpdate} (#1463). */
|
|
298
|
+
const PendingLearningsSchema = z.object({
|
|
299
|
+
repos: z.array(z.string()),
|
|
300
|
+
prCount: z.number().int().nonnegative(),
|
|
301
|
+
});
|
|
297
302
|
const MergedPRListUpdateSchema = z.object({
|
|
298
303
|
prUrl: z.string(),
|
|
299
304
|
issueUrl: z.string(),
|
|
@@ -314,6 +319,7 @@ export const DailyOutputSchema = z.object({
|
|
|
314
319
|
warnings: z.array(DailyWarningSchema),
|
|
315
320
|
strategySummary: StrategyResultSchema.nullable().optional(),
|
|
316
321
|
listUpdates: z.array(MergedPRListUpdateSchema).optional(),
|
|
322
|
+
pendingLearnings: PendingLearningsSchema.optional(),
|
|
317
323
|
});
|
|
318
324
|
export const CompactDailyOutputSchema = z.object({
|
|
319
325
|
digest: DailyDigestCompactSchema,
|
|
@@ -327,6 +333,7 @@ export const CompactDailyOutputSchema = z.object({
|
|
|
327
333
|
warnings: z.array(DailyWarningSchema),
|
|
328
334
|
strategySummary: StrategyResultSchema.nullable().optional(),
|
|
329
335
|
listUpdates: z.array(MergedPRListUpdateSchema).optional(),
|
|
336
|
+
pendingLearnings: PendingLearningsSchema.optional(),
|
|
330
337
|
});
|
|
331
338
|
// ── Search output schema (#1147) ─────────────────────────────────────
|
|
332
339
|
const SearchPrioritySchema = z.enum(['merged_pr', 'preferred_org', 'starred', 'normal']);
|
|
@@ -753,6 +760,35 @@ export const LocalReposOutputSchema = z.object({
|
|
|
753
760
|
cachedAt: z.string(),
|
|
754
761
|
fromCache: z.boolean(),
|
|
755
762
|
});
|
|
763
|
+
/** One prepared branch as `overnight push-prep` (#1698) handled it. */
|
|
764
|
+
const PushPrepResultSchema = z.object({
|
|
765
|
+
url: z.string(),
|
|
766
|
+
branch: z.string(),
|
|
767
|
+
/** `skipped`: a gate said no (nothing to fix tonight). `failed`: the push itself broke. */
|
|
768
|
+
status: z.enum(['pushed', 'planned', 'skipped', 'failed']),
|
|
769
|
+
remote: z.string().optional(),
|
|
770
|
+
repo: z.string().optional(),
|
|
771
|
+
/** Always under `refs/heads/prep/`. */
|
|
772
|
+
ref: z.string().startsWith('refs/heads/prep/').optional(),
|
|
773
|
+
compareUrl: z.string().optional(),
|
|
774
|
+
reason: z.string().optional(),
|
|
775
|
+
});
|
|
776
|
+
export const OvernightPushPrepOutputSchema = z.object({
|
|
777
|
+
dryRun: z.boolean(),
|
|
778
|
+
login: z.string(),
|
|
779
|
+
reportPath: z.string(),
|
|
780
|
+
results: z.array(PushPrepResultSchema),
|
|
781
|
+
pushed: z.number().int().nonnegative(),
|
|
782
|
+
planned: z.number().int().nonnegative(),
|
|
783
|
+
skipped: z.number().int().nonnegative(),
|
|
784
|
+
/** Any failed push makes the CLI exit 1, so a scheduler sees it. */
|
|
785
|
+
failed: z.number().int().nonnegative(),
|
|
786
|
+
/** The report file was missing and has been recreated with only the prepared section. */
|
|
787
|
+
reportRecreated: z.literal(true).optional(),
|
|
788
|
+
/** The pushes and state are recorded, but the report file could not be rewritten. */
|
|
789
|
+
reportWarning: z.string().optional(),
|
|
790
|
+
gistSyncWarning: z.string().optional(),
|
|
791
|
+
});
|
|
756
792
|
/**
|
|
757
793
|
* Convert a full StartupOutput to the compact format (#763).
|
|
758
794
|
* Uses destructuring to auto-forward any new fields added to StartupOutput.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.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.
|
|
58
|
+
"@oss-scout/core": "^1.7.0",
|
|
59
59
|
"commander": "^15.0.0",
|
|
60
60
|
"zod": "^4.5.4"
|
|
61
61
|
},
|