@openagt/skill-github 0.1.10 → 0.1.11
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/accounts.d.ts +69 -27
- package/dist/accounts.d.ts.map +1 -1
- package/dist/accounts.js +181 -70
- package/dist/accounts.js.map +1 -1
- package/dist/cli.d.ts +10 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +127 -57
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/profile.d.ts +27 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +29 -0
- package/dist/profile.js.map +1 -0
- package/dist/repos.d.ts +19 -0
- package/dist/repos.d.ts.map +1 -0
- package/dist/repos.js +28 -0
- package/dist/repos.js.map +1 -0
- package/package.json +4 -4
- package/dist/me.d.ts +0 -17
- package/dist/me.d.ts.map +0 -1
- package/dist/me.js +0 -18
- package/dist/me.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openagt/skill-github",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "GitHub as a skill for coding agents: the project's pull requests and issues through gh, and the one command OpenAgent and the scheduler run for the git host: requests, open, merge, home, and replies, what came on the pull requests this machine's agents opened since each ended.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"./SKILL.md": "./SKILL.md"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@openagt/agent-data": "0.0.
|
|
41
|
-
"@openagt/skill-logs": "0.1.
|
|
40
|
+
"@openagt/agent-data": "0.0.14",
|
|
41
|
+
"@openagt/skill-logs": "0.1.11"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^20.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "cp ../../skills/github/SKILL.md SKILL.md && tsc -p tsconfig.build.json",
|
|
49
49
|
"typecheck": "tsc --noEmit",
|
|
50
|
-
"test": "tsc -p tsconfig.test.json && node --test --test-timeout=60000 'dist-test/**/*.test.js'",
|
|
50
|
+
"test": "tsc -p tsconfig.test.json && XDG_CONFIG_HOME=$(mktemp -d) node --test --test-timeout=60000 'dist-test/**/*.test.js'",
|
|
51
51
|
"clean": "rm -rf dist dist-test SKILL.md"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/dist/me.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type GhRunner } from './gh.js';
|
|
2
|
-
/**
|
|
3
|
-
* Who is signed in to GitHub through `gh`: what OpenAgent shows of the person at the foot of its
|
|
4
|
-
* sidebar, their login, name and picture. Asked of `gh` as `create` asks for the account.
|
|
5
|
-
*/
|
|
6
|
-
export type MeOutcome = {
|
|
7
|
-
ok: true;
|
|
8
|
-
login: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
avatar?: string;
|
|
11
|
-
} | {
|
|
12
|
-
ok: false;
|
|
13
|
-
reason: 'not-logged-in';
|
|
14
|
-
detail: string;
|
|
15
|
-
};
|
|
16
|
-
export declare function signedIn(cwd: string, gh: GhRunner): Promise<MeOutcome>;
|
|
17
|
-
//# sourceMappingURL=me.d.ts.map
|
package/dist/me.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/me.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAErD;;;GAGG;AAEH,MAAM,MAAM,SAAS,GACjB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3D;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAa5E"}
|
package/dist/me.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { errorMessage } from './gh.js';
|
|
2
|
-
export async function signedIn(cwd, gh) {
|
|
3
|
-
let answer;
|
|
4
|
-
try {
|
|
5
|
-
answer = JSON.parse(await gh(['api', 'user', '--jq', '{login: .login, name: .name, avatar: .avatar_url}'], cwd));
|
|
6
|
-
}
|
|
7
|
-
catch (err) {
|
|
8
|
-
return { ok: false, reason: 'not-logged-in', detail: errorMessage(err) };
|
|
9
|
-
}
|
|
10
|
-
const text = (value) => (typeof value === 'string' && value.trim() ? value.trim() : undefined);
|
|
11
|
-
const login = text(answer['login']);
|
|
12
|
-
if (!login)
|
|
13
|
-
return { ok: false, reason: 'not-logged-in', detail: 'gh named no account' };
|
|
14
|
-
const name = text(answer['name']);
|
|
15
|
-
const avatar = text(answer['avatar']);
|
|
16
|
-
return { ok: true, login, ...(name ? { name } : {}), ...(avatar?.startsWith('https://') ? { avatar } : {}) };
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=me.js.map
|
package/dist/me.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"me.js","sourceRoot":"","sources":["../src/me.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,SAAS,CAAA;AAWrD,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,GAAW,EAAE,EAAY;IACtD,IAAI,MAA+B,CAAA;IACnC,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,C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