@oss-autopilot/core 1.15.1 → 1.15.2
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 +32 -0
- package/dist/cli.bundle.cjs +63 -59
- package/dist/commands/daily.d.ts +9 -0
- package/dist/commands/daily.js +4 -1
- package/dist/commands/scout-bridge.js +2 -1
- package/dist/commands/skip-add.d.ts +25 -0
- package/dist/commands/skip-add.js +48 -0
- package/dist/commands/skip-file-parser.d.ts +25 -0
- package/dist/commands/skip-file-parser.js +92 -0
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -317,6 +317,38 @@ export const commands = [
|
|
|
317
317
|
});
|
|
318
318
|
},
|
|
319
319
|
},
|
|
320
|
+
// ── Skip Add ───────────────────────────────────────────────────────────
|
|
321
|
+
{
|
|
322
|
+
name: 'skip-add',
|
|
323
|
+
localOnly: true,
|
|
324
|
+
register(program) {
|
|
325
|
+
program
|
|
326
|
+
.command('skip-add <issue-url>')
|
|
327
|
+
.description('Append an issue URL to the skipped-issues file (idempotent)')
|
|
328
|
+
.option('--path <file>', 'Skipped-issues file path (falls back to config.skippedIssuesPath)')
|
|
329
|
+
.option('--json', 'Output as JSON')
|
|
330
|
+
.action(async (issueUrl, options) => {
|
|
331
|
+
try {
|
|
332
|
+
const { runSkipAdd } = await import('./commands/skip-add.js');
|
|
333
|
+
const data = runSkipAdd({ issueUrl, skipFilePath: options.path });
|
|
334
|
+
if (options.json) {
|
|
335
|
+
outputJson(data);
|
|
336
|
+
}
|
|
337
|
+
else if (data.added) {
|
|
338
|
+
console.log(`Added to skip list: ${data.url} (${data.date})`);
|
|
339
|
+
console.log(` File: ${data.path}`);
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
console.log(`Already on skip list: ${data.url}`);
|
|
343
|
+
console.log(` File: ${data.path}`);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
catch (err) {
|
|
347
|
+
handleCommandError(err, options.json);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
},
|
|
320
352
|
// ── Track ──────────────────────────────────────────────────────────────
|
|
321
353
|
{
|
|
322
354
|
name: 'track',
|