gh-axi 0.1.28 → 0.1.30
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 +17 -0
- package/dist/bin/gh-axi.js +6 -2
- package/dist/bin/gh-axi.js.map +1 -1
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/cli.js +9 -22
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/gist.d.ts +2 -0
- package/dist/src/commands/gist.js +609 -0
- package/dist/src/commands/gist.js.map +1 -0
- package/dist/src/errors.js +14 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/gistSelector.d.ts +16 -0
- package/dist/src/gistSelector.js +68 -0
- package/dist/src/gistSelector.js.map +1 -0
- package/dist/src/skill.js +8 -3
- package/dist/src/skill.js.map +1 -1
- package/dist/src/suggestions.js +51 -0
- package/dist/src/suggestions.js.map +1 -1
- package/dist/src/version.d.ts +1 -0
- package/dist/src/version.js +24 -0
- package/dist/src/version.js.map +1 -0
- package/package.json +2 -2
- package/skills/gh-axi/SKILL.md +9 -4
package/README.md
CHANGED
|
@@ -95,6 +95,17 @@ gh-axi project list --owner my-org # list Projects (v2) for an owner
|
|
|
95
95
|
echo -n "sk-..." | gh-axi secret set OPENAI_API_KEY # set a secret from stdin
|
|
96
96
|
echo -n "sk-..." | gh-axi secret set CSC_LINK --env production # scope a secret to an environment
|
|
97
97
|
gh-axi variable set NODE_ENV --body production # set a variable from a flag
|
|
98
|
+
gh-axi gist list # list your gists
|
|
99
|
+
gh-axi gist list --public # list only public gists
|
|
100
|
+
gh-axi gist view <id> # view a gist's files and content
|
|
101
|
+
echo 'new content' | gh-axi gist edit <id> --filename notes.md # replace a file from stdin
|
|
102
|
+
gh-axi gist edit <id> --remove old.txt # remove a file
|
|
103
|
+
gh-axi gist rename <id> old.txt new.txt # rename a file
|
|
104
|
+
gh-axi gist create notes.md --public --desc "My notes" # create a public gist
|
|
105
|
+
gh-axi gist create --file a.py --file b.py --secret # create a secret multi-file gist
|
|
106
|
+
echo "content" | gh-axi gist create --filename hello.txt --public # create from piped content
|
|
107
|
+
gh-axi gist delete <id|url> # delete a gist (always confirmed non-interactively)
|
|
108
|
+
gh-axi gist clone <id|url> # clone a gist locally
|
|
98
109
|
gh-axi setup hooks # install optional agent session hooks
|
|
99
110
|
gh-axi update --check # check whether a newer release exists
|
|
100
111
|
gh-axi update # upgrade a global install
|
|
@@ -127,6 +138,11 @@ Other `gh secret` scopes (`--org`, `--user`, `--app`) are rejected with a clear
|
|
|
127
138
|
`gh-axi project` wraps GitHub Projects (v2) and requires the `project` (or `read:project`) OAuth scope; if a call fails on a missing scope, gh-axi tells you the `gh auth refresh -s <scope>` command to run.
|
|
128
139
|
`--owner` defaults to the current repo's owner, falling back to explicit `@me` for the authenticated user.
|
|
129
140
|
|
|
141
|
+
`gh-axi gist create` requires `--public` or `--secret` explicitly — passing neither (or both) is an error.
|
|
142
|
+
Gist visibility is fixed at creation; a secret gist is unlisted (anyone with the URL can read it), not private.
|
|
143
|
+
Two file-on-disk input forms are available: positional paths (`gist create a.py b.py`) or repeatable `--file` flags (`gist create --file a.py --file b.py`); mixing the two is an error.
|
|
144
|
+
To create a gist from piped content, use `--filename <name>` together with a pipe (`echo "..." | gh-axi gist create --filename foo.txt --public`).
|
|
145
|
+
|
|
130
146
|
`gh-axi api` accepts `--field`, `--header`, `--paginate`, `--jq <expression>`, and `--template <format>`; any other flag, an extra positional argument, or a repeated `--jq`/`--template` is rejected with a clear error instead of being silently dropped.
|
|
131
147
|
JSON responses are normally stripped of noisy fields before TOON encoding, but a response you shaped yourself with `--jq` or `--template` keeps every key and value verbatim — only over-long strings are still truncated so one field cannot flood an agent's context.
|
|
132
148
|
|
|
@@ -141,6 +157,7 @@ JSON responses are normally stripped of noisy fields before TOON encoding, but a
|
|
|
141
157
|
| `release` | Releases — list, view, create, edit, delete |
|
|
142
158
|
| `repo` | Repositories — list, view, create, edit, clone, fork |
|
|
143
159
|
| `label` | Labels — list, create, edit, delete |
|
|
160
|
+
| `gist` | Gists — list, view, edit, rename, create, delete, clone |
|
|
144
161
|
| `project` | Projects (v2) - list, view, create, edit, close, copy, items, fields |
|
|
145
162
|
| `secret` | Actions secrets — list, set, delete |
|
|
146
163
|
| `variable` | Actions variables — list, set, delete |
|
package/dist/bin/gh-axi.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { tryFastPath } from "axi-sdk-js/fast-path";
|
|
3
|
+
import { VERSION } from "../src/version.js";
|
|
4
|
+
if (!tryFastPath(process.argv.slice(2), { version: VERSION })) {
|
|
5
|
+
const { main } = await import("../src/cli.js");
|
|
6
|
+
await main();
|
|
7
|
+
}
|
|
4
8
|
//# sourceMappingURL=gh-axi.js.map
|
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;
|
|
1
|
+
{"version":3,"file":"gh-axi.js","sourceRoot":"","sources":["../../bin/gh-axi.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC9D,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;IAC/C,MAAM,IAAI,EAAE,CAAC;AACf,CAAC"}
|
package/dist/src/cli.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ type MainOptions = {
|
|
|
4
4
|
argv?: string[];
|
|
5
5
|
stdout?: CliStdout;
|
|
6
6
|
};
|
|
7
|
-
export declare const TOP_HELP = "usage: gh-axi [command] [args] [flags]\ncommands[
|
|
7
|
+
export declare const TOP_HELP = "usage: gh-axi [command] [args] [flags]\ncommands[15]:\n (none)=dashboard, issue, pr, run, workflow, release, repo, label, gist, project, secret, variable, search, api, setup\nflags[4]:\n -R/--repo <OWNER/NAME> (after command), --hostname <host> (after command) or GH_HOST env, both flags accept space or equals form, --help, -v/-V/--version\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 issue list --hostname git.example.com\n gh-axi pr view 42\n gh-axi secret list\n gh-axi setup hooks\n";
|
|
8
8
|
export declare function main(options?: MainOptions): Promise<void>;
|
|
9
9
|
export {};
|
package/dist/src/cli.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
1
|
import { runAxiCli } from "axi-sdk-js";
|
|
5
2
|
import { resolveRepo } from "./context.js";
|
|
6
3
|
import { homeCommand } from "./commands/home.js";
|
|
@@ -16,14 +13,15 @@ import { secretCommand, SECRET_HELP } from "./commands/secret.js";
|
|
|
16
13
|
import { variableCommand, VARIABLE_HELP } from "./commands/variable.js";
|
|
17
14
|
import { searchCommand, SEARCH_HELP } from "./commands/search.js";
|
|
18
15
|
import { apiCommand, API_HELP } from "./commands/api.js";
|
|
16
|
+
import { gistCommand, GIST_HELP } from "./commands/gist.js";
|
|
19
17
|
import { setupCommand, SETUP_HELP } from "./commands/setup.js";
|
|
20
18
|
import { resolveHost } from "./host.js";
|
|
19
|
+
import { VERSION } from "./version.js";
|
|
21
20
|
import { withSuggestionHost } from "./suggestions.js";
|
|
22
21
|
export const DESCRIPTION = "Agent ergonomic wrapper around Github CLI. Prefer this over `gh` and other methods for Github operations.";
|
|
23
|
-
const VERSION = readPackageVersion();
|
|
24
22
|
export const TOP_HELP = `usage: gh-axi [command] [args] [flags]
|
|
25
|
-
commands[
|
|
26
|
-
(none)=dashboard, issue, pr, run, workflow, release, repo, label, project, secret, variable, search, api, setup
|
|
23
|
+
commands[15]:
|
|
24
|
+
(none)=dashboard, issue, pr, run, workflow, release, repo, label, gist, project, secret, variable, search, api, setup
|
|
27
25
|
flags[4]:
|
|
28
26
|
-R/--repo <OWNER/NAME> (after command), --hostname <host> (after command) or GH_HOST env, both flags accept space or equals form, --help, -v/-V/--version
|
|
29
27
|
examples:
|
|
@@ -44,6 +42,7 @@ const COMMAND_HELP = {
|
|
|
44
42
|
release: RELEASE_HELP,
|
|
45
43
|
repo: REPO_HELP,
|
|
46
44
|
label: LABEL_HELP,
|
|
45
|
+
gist: GIST_HELP,
|
|
47
46
|
project: PROJECT_HELP,
|
|
48
47
|
secret: SECRET_HELP,
|
|
49
48
|
variable: VARIABLE_HELP,
|
|
@@ -59,6 +58,10 @@ const COMMANDS = {
|
|
|
59
58
|
release: withRepoContext("release", releaseCommand),
|
|
60
59
|
repo: withRepoContext("repo", repoCommand),
|
|
61
60
|
label: withRepoContext("label", labelCommand),
|
|
61
|
+
// gist is user-scoped; withRepoContext still handles hostname context but
|
|
62
|
+
// gistCommand itself never forwards ctx to ghJson — see AGENTS.md
|
|
63
|
+
// "User-scoped commands" section for the owner-scoped pattern.
|
|
64
|
+
gist: withRepoContext("gist", gistCommand),
|
|
62
65
|
project: withRepoContext("project", projectCommand),
|
|
63
66
|
secret: withRepoContext("secret", secretCommand),
|
|
64
67
|
variable: withRepoContext("variable", variableCommand),
|
|
@@ -95,22 +98,6 @@ export async function main(options = {}) {
|
|
|
95
98
|
},
|
|
96
99
|
});
|
|
97
100
|
}
|
|
98
|
-
function readPackageVersion() {
|
|
99
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
100
|
-
for (const candidate of [
|
|
101
|
-
join(here, "..", "package.json"),
|
|
102
|
-
join(here, "..", "..", "package.json"),
|
|
103
|
-
]) {
|
|
104
|
-
if (!existsSync(candidate)) {
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
const parsed = JSON.parse(readFileSync(candidate, "utf-8"));
|
|
108
|
-
if (typeof parsed.version === "string" && parsed.version.length > 0) {
|
|
109
|
-
return parsed.version;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
throw new Error("Could not determine gh-axi package version");
|
|
113
|
-
}
|
|
114
101
|
function withRepoContext(command, handler) {
|
|
115
102
|
return (args, ctx) => withSuggestionHost(ctx?.host, () => handler(parseRepoContextArgs(command, args).strippedArgs, repoContext(ctx)));
|
|
116
103
|
}
|
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,cAAc,EAAE,YAAY,E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C/D,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAEvC,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;gBACzB,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC;YAED,SAAS;QACX,CAAC;QAED,uEAAuE;QACvE,kDAAkD;QAClD,IAAI,GAAG,KAAK,YAAY,IAAI,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACpD,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;YAC3B,KAAK,EAAE,CAAC;YACR,SAAS;QACX,CAAC;QAED,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC;YACvE,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC3C,SAAS;QACX,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GIST_HELP = "usage: gh-axi gist <subcommand> [flags]\nsubcommands[7]:\n list, view <id|url>, edit <id|url>, rename <id|url> <old> <new>, create, delete <id|url>, clone <id|url>\nflags{list}:\n --limit <n> (default 100), --public, --secret, --fields <field,...>\nflags{view}:\n --files (file names only), -f/--filename <name> (single file), --full (no truncation), -r/--raw (no-op), -w/--web (rejected)\nflags{edit}:\n --filename/-f <name> (replace from piped stdin), --add/-a <path> (from disk) or --add/-a <name> - (from piped stdin), --remove/-r <name>, --desc/-d <text>\nflags{create}:\n --public (required, mutually exclusive with --secret)\n --secret (required, mutually exclusive with --public)\n --file <path> (repeatable), --filename <name> (for piped content)\n -d/--desc <text>\nexamples:\n gh-axi gist list\n gh-axi gist list --public --limit 20\n gh-axi gist list --fields url,owner,created\n gh-axi gist view 5b0e0062eb8e9654adad7bb1d81cc75f\n gh-axi gist view https://gist.github.com/octocat/5b0e0062eb8e9654adad7bb1d81cc75f\n gh-axi gist view 5b0e0062eb8e9654adad7bb1d81cc75f --files\n echo 'new content' | gh-axi gist edit <id|url> --filename notes.md\n echo 'new file' | gh-axi gist edit <id|url> --add new.txt -\n gh-axi gist edit <id|url> --add ./local.txt\n gh-axi gist edit <id|url> --remove old-file.txt --desc \"updated description\"\n gh-axi gist rename <id|url> old.txt new.txt\n gh-axi gist create notes.md --public --desc \"My notes\"\n gh-axi gist create --file a.py --file b.py --secret\n echo \"content\" | gh-axi gist create --filename hello.txt --public\n gh-axi gist delete <id|url>\n gh-axi gist clone <id|url>";
|
|
2
|
+
export declare function gistCommand(args: string[]): Promise<string>;
|