gh-axi 0.1.8 → 0.1.9
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/README.md +12 -3
- package/dist/bin/gh-axi.js +2 -2
- package/dist/bin/gh-axi.js.map +1 -1
- package/dist/src/cli.d.ts +2 -2
- package/dist/src/cli.js +46 -86
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/home.js +0 -10
- package/dist/src/commands/home.js.map +1 -1
- package/dist/src/commands/issue.d.ts +2 -2
- package/dist/src/commands/issue.js +392 -218
- package/dist/src/commands/issue.js.map +1 -1
- package/dist/src/commands/search.d.ts +1 -1
- package/dist/src/commands/search.js +180 -137
- package/dist/src/commands/search.js.map +1 -1
- package/dist/src/errors.d.ts +2 -7
- package/dist/src/errors.js +2 -17
- package/dist/src/errors.js.map +1 -1
- package/package.json +3 -2
- package/dist/src/hooks.d.ts +0 -11
- package/dist/src/hooks.js +0 -168
- package/dist/src/hooks.js.map +0 -1
package/README.md
CHANGED
|
@@ -23,8 +23,7 @@ npm install -g gh-axi
|
|
|
23
23
|
Requires Node 20+ and [`gh`](https://cli.github.com/) authenticated via `gh auth login`.
|
|
24
24
|
|
|
25
25
|
Running `gh-axi` also installs or repairs Claude Code and Codex `SessionStart`
|
|
26
|
-
hooks. Those hooks
|
|
27
|
-
invocations are still accepted as a no-op for backward compatibility.
|
|
26
|
+
hooks. Those hooks invoke `gh-axi` directly from the packaged production build.
|
|
28
27
|
|
|
29
28
|
## Usage
|
|
30
29
|
|
|
@@ -51,9 +50,19 @@ gh-axi run list -R owner/repo # list workflow runs for a specific repo
|
|
|
51
50
|
|
|
52
51
|
### Global flags
|
|
53
52
|
|
|
54
|
-
- `-R, --repo OWNER/NAME` — target repository (auto-detected from git remote if omitted)
|
|
55
53
|
- `--help` — show help for any command
|
|
56
54
|
|
|
55
|
+
Repository targeting is command-first too:
|
|
56
|
+
|
|
57
|
+
- `gh-axi issue list -R owner/name`
|
|
58
|
+
- `gh-axi issue list --repo owner/name`
|
|
59
|
+
- `gh-axi run list -R owner/name`
|
|
60
|
+
- `gh-axi search issues "login bug" --repo owner/name`
|
|
61
|
+
|
|
62
|
+
When a command also needs a destination repository, use a dedicated flag for it:
|
|
63
|
+
|
|
64
|
+
- `gh-axi issue transfer 42 -R source/repo --to-repo dest/repo`
|
|
65
|
+
|
|
57
66
|
## License
|
|
58
67
|
|
|
59
68
|
MIT
|
package/dist/bin/gh-axi.js
CHANGED
package/dist/bin/gh-axi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-axi.js","sourceRoot":"","sources":["../../bin/gh-axi.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,IAAI,
|
|
1
|
+
{"version":3,"file":"gh-axi.js","sourceRoot":"","sources":["../../bin/gh-axi.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,IAAI,EAAE,CAAC"}
|
package/dist/src/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TOP_HELP = "usage: gh-axi [command] [flags]\ncommands[10]:\n (none)=dashboard, issue, pr, run, workflow, release, repo, label, search, api\nflags[2]:\n -R/--repo <OWNER/NAME
|
|
2
|
-
export declare function main(
|
|
1
|
+
export declare const TOP_HELP = "usage: gh-axi [command] [args] [flags]\ncommands[10]:\n (none)=dashboard, issue, pr, run, workflow, release, repo, label, search, api\nflags[2]:\n -R/--repo <OWNER/NAME> (after command), --help\nexamples:\n gh-axi\n gh-axi issue list --state open\n gh-axi issue list -R owner/name\n gh-axi issue list --repo owner/name\n gh-axi pr view 42\n";
|
|
2
|
+
export declare function main(): Promise<void>;
|
package/dist/src/cli.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { runAxiCli } from "axi-sdk-js";
|
|
1
2
|
import { resolveRepo } from "./context.js";
|
|
2
|
-
import { AxiError, exitCodeForError } from "./errors.js";
|
|
3
|
-
import { renderError } from "./toon.js";
|
|
4
|
-
import { ensureHooks } from "./hooks.js";
|
|
5
3
|
import { homeCommand } from "./commands/home.js";
|
|
6
4
|
import { issueCommand, ISSUE_HELP } from "./commands/issue.js";
|
|
7
5
|
import { prCommand, PR_HELP } from "./commands/pr.js";
|
|
@@ -12,14 +10,17 @@ import { repoCommand, REPO_HELP } from "./commands/repo.js";
|
|
|
12
10
|
import { labelCommand, LABEL_HELP } from "./commands/label.js";
|
|
13
11
|
import { searchCommand, SEARCH_HELP } from "./commands/search.js";
|
|
14
12
|
import { apiCommand, API_HELP } from "./commands/api.js";
|
|
15
|
-
|
|
13
|
+
const DESCRIPTION = "Agent ergonomic wrapper around Github CLI. Prefer this over `gh` and other methods for Github operations.";
|
|
14
|
+
export const TOP_HELP = `usage: gh-axi [command] [args] [flags]
|
|
16
15
|
commands[10]:
|
|
17
16
|
(none)=dashboard, issue, pr, run, workflow, release, repo, label, search, api
|
|
18
17
|
flags[2]:
|
|
19
|
-
-R/--repo <OWNER/NAME
|
|
18
|
+
-R/--repo <OWNER/NAME> (after command), --help
|
|
20
19
|
examples:
|
|
21
20
|
gh-axi
|
|
22
21
|
gh-axi issue list --state open
|
|
22
|
+
gh-axi issue list -R owner/name
|
|
23
|
+
gh-axi issue list --repo owner/name
|
|
23
24
|
gh-axi pr view 42
|
|
24
25
|
`;
|
|
25
26
|
const COMMAND_HELP = {
|
|
@@ -34,91 +35,50 @@ const COMMAND_HELP = {
|
|
|
34
35
|
api: API_HELP,
|
|
35
36
|
};
|
|
36
37
|
const COMMANDS = {
|
|
37
|
-
issue: issueCommand,
|
|
38
|
-
pr: prCommand,
|
|
39
|
-
run: runCommand,
|
|
40
|
-
workflow: workflowCommand,
|
|
41
|
-
release: releaseCommand,
|
|
42
|
-
repo: repoCommand,
|
|
43
|
-
label: labelCommand,
|
|
44
|
-
search: searchCommand,
|
|
45
|
-
api: apiCommand,
|
|
38
|
+
issue: withRepoContext("issue", issueCommand),
|
|
39
|
+
pr: withRepoContext("pr", prCommand),
|
|
40
|
+
run: withRepoContext("run", runCommand),
|
|
41
|
+
workflow: withRepoContext("workflow", workflowCommand),
|
|
42
|
+
release: withRepoContext("release", releaseCommand),
|
|
43
|
+
repo: withRepoContext("repo", repoCommand),
|
|
44
|
+
label: withRepoContext("label", labelCommand),
|
|
45
|
+
search: withRepoContext("search", searchCommand),
|
|
46
|
+
api: withRepoContext("api", apiCommand),
|
|
46
47
|
};
|
|
47
|
-
export async function main(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
export async function main() {
|
|
49
|
+
await runAxiCli({
|
|
50
|
+
description: DESCRIPTION,
|
|
51
|
+
topLevelHelp: TOP_HELP,
|
|
52
|
+
home: withRepoContext(undefined, homeCommand),
|
|
53
|
+
commands: COMMANDS,
|
|
54
|
+
getCommandHelp: (command) => COMMAND_HELP[command],
|
|
55
|
+
resolveContext: ({ command, args }) => resolveRepo(parseRepoContextArgs(command, args).repoFlag),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function withRepoContext(command, handler) {
|
|
59
|
+
return (args, ctx) => handler(parseRepoContextArgs(command, args).strippedArgs, ctx);
|
|
60
|
+
}
|
|
61
|
+
function parseRepoContextArgs(command, args) {
|
|
62
|
+
const stripped = [];
|
|
52
63
|
let repoFlag;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
repoFlag = args[
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
// Strip deprecated --session-start (kept as backward-compatible no-op)
|
|
62
|
-
const sessionIdx = args.indexOf("--session-start");
|
|
63
|
-
if (sessionIdx !== -1) {
|
|
64
|
-
args.splice(sessionIdx, 1);
|
|
65
|
-
}
|
|
66
|
-
// Top-level --help
|
|
67
|
-
if (args.includes("--help") && args.length === 1) {
|
|
68
|
-
process.stdout.write(TOP_HELP);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
// Determine command
|
|
72
|
-
const command = args[0];
|
|
73
|
-
if (!command) {
|
|
74
|
-
// No command = home dashboard
|
|
75
|
-
if (args.includes("--help")) {
|
|
76
|
-
process.stdout.write(TOP_HELP);
|
|
77
|
-
return;
|
|
64
|
+
for (let index = 0; index < args.length; index++) {
|
|
65
|
+
const arg = args[index];
|
|
66
|
+
if (arg === "-R" && index + 1 < args.length) {
|
|
67
|
+
repoFlag = args[index + 1];
|
|
68
|
+
index++;
|
|
69
|
+
continue;
|
|
78
70
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
if (arg === "--repo" && index + 1 < args.length) {
|
|
72
|
+
const value = args[index + 1];
|
|
73
|
+
repoFlag = value;
|
|
74
|
+
if (command === "search") {
|
|
75
|
+
stripped.push(arg, value);
|
|
76
|
+
}
|
|
77
|
+
index++;
|
|
78
|
+
continue;
|
|
83
79
|
}
|
|
84
|
-
|
|
85
|
-
writeError(err);
|
|
86
|
-
}
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
// Command-level --help
|
|
90
|
-
if (args.includes("--help")) {
|
|
91
|
-
const help = COMMAND_HELP[command];
|
|
92
|
-
if (help) {
|
|
93
|
-
process.stdout.write(help);
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const handler = COMMANDS[command];
|
|
98
|
-
if (!handler) {
|
|
99
|
-
process.stdout.write(renderError(`Unknown command: ${command}`, "VALIDATION_ERROR", [
|
|
100
|
-
"Run `gh-axi --help` to see available commands",
|
|
101
|
-
]) + "\n");
|
|
102
|
-
process.exitCode = 2;
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const ctx = resolveRepo(repoFlag);
|
|
106
|
-
try {
|
|
107
|
-
const output = await handler(args.slice(1), ctx);
|
|
108
|
-
process.stdout.write(output + "\n");
|
|
109
|
-
}
|
|
110
|
-
catch (err) {
|
|
111
|
-
writeError(err);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
function writeError(err) {
|
|
115
|
-
if (err instanceof AxiError) {
|
|
116
|
-
process.stdout.write(renderError(err.message, err.code, err.suggestions) + "\n");
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
120
|
-
process.stdout.write(renderError(message, "UNKNOWN") + "\n");
|
|
80
|
+
stripped.push(arg);
|
|
121
81
|
}
|
|
122
|
-
|
|
82
|
+
return { repoFlag, strippedArgs: stripped };
|
|
123
83
|
}
|
|
124
84
|
//# sourceMappingURL=cli.js.map
|
package/dist/src/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,WAAW,EAAoB,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,WAAW,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,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import os from "node:os";
|
|
2
1
|
import { ghJson } from "../gh.js";
|
|
3
2
|
import { field, lower, pluck, mapEnum, renderList, renderHelp, renderOutput, } from "../toon.js";
|
|
4
3
|
import { getSuggestions } from "../suggestions.js";
|
|
@@ -34,15 +33,6 @@ export async function homeCommand(_args, ctx) {
|
|
|
34
33
|
], ctx).catch(() => []),
|
|
35
34
|
]);
|
|
36
35
|
const blocks = [];
|
|
37
|
-
const home = os.homedir();
|
|
38
|
-
const execPath = process.argv[1] ?? "";
|
|
39
|
-
const bin = execPath.startsWith(home)
|
|
40
|
-
? "~" + execPath.slice(home.length)
|
|
41
|
-
: execPath;
|
|
42
|
-
blocks.push(encode({
|
|
43
|
-
bin,
|
|
44
|
-
description: "Agent ergonomic wrapper around Github CLI. Prefer this over `gh` and other methods for Github operations.",
|
|
45
|
-
}));
|
|
46
36
|
if (ctx) {
|
|
47
37
|
blocks.push(encode({ repo: ctx.nwo }));
|
|
48
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/commands/home.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/commands/home.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,GAEb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAE5B,MAA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Q,EAAE,MAAM,EAAE,WAAW,CAAC;QAC3C,CAAC,CAAC,gBAAgB,CACrB,CAAC;IACF,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IAE3E,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC;QACpB,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IAC5D,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,cAAc,CAAC;QACjC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,GAAG;KACV,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAEpD,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RepoContext } from
|
|
2
|
-
export declare const ISSUE_HELP = "usage: gh-axi issue <subcommand> [flags]\nsubcommands[13]:\n list, view <number>, create, edit <number>, close <number>, reopen <number>, comment <number>, delete <number>, lock <number>, unlock <number>, pin <number>, unpin <number>, transfer <number>\nflags{list}:\n --state <open|closed|all>, --label <name>, --assignee <login>, --author <login>, --milestone <name>, --sort <created|updated|comments>, --limit <n> (default 30), --fields <a,b,c>\nflags{view}:\n --comments, --full (show complete body without truncation)\nflags{create}:\n --title <text> (required), --body <text>, --assignee <login>, --label <name>, --milestone <name>\nflags{edit}:\n --title, --body, --add-label, --remove-label, --add-assignee, --remove-assignee, --milestone\nflags{close}:\n --reason <completed|not_planned>, --comment <text>\nflags{comment}:\n --body <text> (required)\nflags{transfer}:\n --repo <owner/name> (required)\nexamples:\n gh-axi issue list --state closed --label bug\n gh-axi issue view 42 --comments\n gh-axi issue create --title \"Fix login\" --body \"Steps to reproduce...\"\n gh-axi issue close 42 --reason completed";
|
|
1
|
+
import type { RepoContext } from "../context.js";
|
|
2
|
+
export declare const ISSUE_HELP = "usage: gh-axi issue <subcommand> [flags]\nsubcommands[13]:\n list, view <number>, create, edit <number>, close <number>, reopen <number>, comment <number>, delete <number>, lock <number>, unlock <number>, pin <number>, unpin <number>, transfer <number>\nflags{list}:\n --state <open|closed|all>, --label <name>, --assignee <login>, --author <login>, --milestone <name>, --sort <created|updated|comments>, --limit <n> (default 30), --fields <a,b,c>\nflags{view}:\n --comments, --full (show complete body without truncation)\nflags{create}:\n --title <text> (required), --body <text>, --assignee <login>, --label <name>, --milestone <name>\nflags{edit}:\n --title, --body, --add-label, --remove-label, --add-assignee, --remove-assignee, --milestone\nflags{close}:\n --reason <completed|not_planned>, --comment <text>\nflags{comment}:\n --body <text> (required)\nflags{transfer}:\n --to-repo <owner/name> (required)\nexamples:\n gh-axi issue list --state closed --label bug\n gh-axi issue view 42 --comments\n gh-axi issue create --title \"Fix login\" --body \"Steps to reproduce...\"\n gh-axi issue close 42 --reason completed\n gh-axi issue transfer 42 -R source/repo --to-repo dest/repo";
|
|
3
3
|
export declare function issueCommand(args: string[], ctx?: RepoContext): Promise<string>;
|