@camilyos/codex-antigravity-kit 0.1.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.d.cts ADDED
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
package/dist/cli.js ADDED
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runBrainstorm,
4
+ runDelegate,
5
+ runDoctor,
6
+ runExecute,
7
+ runInit,
8
+ runPlan,
9
+ runReview,
10
+ runStatus
11
+ } from "./chunk-URIBUKLX.js";
12
+
13
+ // src/cli.ts
14
+ import { Command } from "commander";
15
+ import { resolve } from "path";
16
+ var program = new Command();
17
+ program.name("codex-antigravity-kit").description("Codex brain + Antigravity worker orchestration kit").version("0.1.0");
18
+ program.command("init").option("--root <path>", "Project root", process.cwd()).option("--force", "Overwrite existing kit files", false).action((options) => {
19
+ runInit({ root: resolve(options.root), force: options.force });
20
+ });
21
+ program.command("doctor").option("--root <path>", "Project root", process.cwd()).action((options) => {
22
+ runDoctor({ root: resolve(options.root) });
23
+ });
24
+ program.command("status").option("--root <path>", "Project root", process.cwd()).action((options) => {
25
+ runStatus({ root: resolve(options.root) });
26
+ });
27
+ program.command("brainstorm").requiredOption("--task <id>", "Task ID").option("--spec <path>", "Path to task SPEC markdown file").option("--prompt <text>", "Task specification prompt text").option("--agent <name>", "Explicit agent override (web-engineer, mobile-engineer, game-engineer, researcher, business-analyst, codex)").option("--root <path>", "Project root", process.cwd()).action((options) => {
28
+ runBrainstorm({
29
+ root: resolve(options.root),
30
+ task: options.task,
31
+ spec: options.spec ? resolve(options.spec) : void 0,
32
+ prompt: options.prompt,
33
+ agent: options.agent
34
+ });
35
+ });
36
+ program.command("plan").requiredOption("--task <id>", "Task ID").option("--spec <path>", "Path to task SPEC markdown file").option("--agent <name>", "Explicit agent override").option("--root <path>", "Project root", process.cwd()).action((options) => {
37
+ runPlan({
38
+ root: resolve(options.root),
39
+ task: options.task,
40
+ spec: options.spec ? resolve(options.spec) : void 0,
41
+ agent: options.agent
42
+ });
43
+ });
44
+ program.command("execute").requiredOption("--task <id>", "Task ID").option("--plan <path>", "Path to plan markdown file").option("--file <path>", "Path to markdown description file to execute").option("--spec <path>", "Path to task SPEC markdown file").option("--agent <name>", "Explicit agent override").option("--repair-request <path>", "Path to repair request markdown").option("--timeout-ms <number>", "Worker timeout in ms", "600000").option("--root <path>", "Project root", process.cwd()).action(
45
+ async (options) => {
46
+ await runExecute({
47
+ root: resolve(options.root),
48
+ task: options.task,
49
+ plan: options.plan ? resolve(options.plan) : void 0,
50
+ file: options.file ? resolve(options.file) : void 0,
51
+ spec: options.spec ? resolve(options.spec) : void 0,
52
+ agent: options.agent,
53
+ repairRequest: options.repairRequest ? resolve(options.repairRequest) : void 0,
54
+ timeoutMs: Number(options.timeoutMs)
55
+ });
56
+ }
57
+ );
58
+ program.command("delegate").requiredOption("--task <id>", "Task ID").requiredOption("--spec <path>", "Path to task SPEC markdown file").option("--repair-request <path>", "Path to repair request markdown").option("--timeout-ms <number>", "Worker timeout in ms", "600000").option("--root <path>", "Project root", process.cwd()).action(
59
+ async (options) => {
60
+ await runDelegate({
61
+ root: resolve(options.root),
62
+ task: options.task,
63
+ spec: resolve(options.spec),
64
+ repairRequest: options.repairRequest ? resolve(options.repairRequest) : void 0,
65
+ timeoutMs: Number(options.timeoutMs)
66
+ });
67
+ }
68
+ );
69
+ program.command("review").requiredOption("--task <id>", "Task ID").requiredOption("--outcome <value>", "PASS | FAIL | BLOCKED").option("--review-file <path>", "Path to review markdown").option("--root <path>", "Project root", process.cwd()).action((options) => {
70
+ const outcome = options.outcome.toUpperCase();
71
+ if (!["PASS", "FAIL", "BLOCKED"].includes(outcome)) {
72
+ throw new Error("--outcome must be PASS, FAIL, or BLOCKED");
73
+ }
74
+ runReview({
75
+ root: resolve(options.root),
76
+ task: options.task,
77
+ outcome,
78
+ reviewFile: options.reviewFile ? resolve(options.reviewFile) : void 0
79
+ });
80
+ });
81
+ program.parseAsync(process.argv).catch((error) => {
82
+ console.error(error instanceof Error ? error.message : String(error));
83
+ process.exitCode = 1;
84
+ });