feat(P05): ship infrastructure — Gitea API client, release notes, npm publishConfig, ciagent projects cmd, --project flag
---ci--- phase: 5 milestone: v1.0 plan: 05 task: SHIP-01-04 MULTI-01 MULTI-02 status: execute ---/ci---
This commit is contained in:
+13
-1
@@ -2,6 +2,8 @@
|
||||
|
||||
import { Command } from "commander";
|
||||
import { VERSION } from "../version.js";
|
||||
import { CIAgentFiles } from "../core/ciagent-files.js";
|
||||
import { isCIAgentInitialized } from "../core/config.js";
|
||||
import {
|
||||
createInitCommand,
|
||||
createRunCommand,
|
||||
@@ -14,6 +16,7 @@ import {
|
||||
createClarifyCommand,
|
||||
createRollbackCommand,
|
||||
createShipCommand,
|
||||
createProjectsCommand,
|
||||
} from "./commands.js";
|
||||
|
||||
const program = new Command();
|
||||
@@ -22,6 +25,14 @@ program
|
||||
.name("ciagent")
|
||||
.description("CIAgent — Continuous Intelligence: autonomous AI-driven software engineering harness")
|
||||
.version(VERSION)
|
||||
.option("--project <slug>", "Specify which project to operate on")
|
||||
.hook("preAction", () => {
|
||||
const opts = program.opts();
|
||||
if (opts.project && isCIAgentInitialized(process.cwd())) {
|
||||
const ciFiles = new CIAgentFiles(process.cwd());
|
||||
ciFiles.setProjectSlug(opts.project);
|
||||
}
|
||||
})
|
||||
.addCommand(createInitCommand())
|
||||
.addCommand(createRunCommand())
|
||||
.addCommand(createQuickCommand())
|
||||
@@ -32,6 +43,7 @@ program
|
||||
.addCommand(createAuditCommand())
|
||||
.addCommand(createClarifyCommand())
|
||||
.addCommand(createRollbackCommand())
|
||||
.addCommand(createShipCommand());
|
||||
.addCommand(createShipCommand())
|
||||
.addCommand(createProjectsCommand());
|
||||
|
||||
program.parse();
|
||||
Reference in New Issue
Block a user