skillett 0.1.3 → 0.1.7
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/commands/connect.js +12 -4
- package/dist/commands/status.js +10 -2
- package/dist/index.js +13 -0
- package/package.json +44 -44
package/dist/commands/connect.js
CHANGED
|
@@ -38,16 +38,24 @@ export async function connect(integration) {
|
|
|
38
38
|
spinner?.stop();
|
|
39
39
|
if (isTTY) {
|
|
40
40
|
console.log(chalk.bold(` Complete the ${integration} OAuth flow in your browser.`));
|
|
41
|
+
console.log(chalk.cyan(` ${data.oauth_url}`));
|
|
41
42
|
console.log();
|
|
42
43
|
}
|
|
44
|
+
else {
|
|
45
|
+
// Always output the URL in non-TTY mode so agents can surface it
|
|
46
|
+
console.log(JSON.stringify({
|
|
47
|
+
status: "pending",
|
|
48
|
+
integration,
|
|
49
|
+
connection_id: data.connection_id,
|
|
50
|
+
oauth_url: data.oauth_url,
|
|
51
|
+
message: "Open the OAuth URL in a browser to authorize the connection.",
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
43
54
|
try {
|
|
44
55
|
await open(data.oauth_url);
|
|
45
56
|
}
|
|
46
57
|
catch {
|
|
47
|
-
|
|
48
|
-
console.log(chalk.cyan(` ${data.oauth_url}`));
|
|
49
|
-
console.log();
|
|
50
|
-
}
|
|
58
|
+
// Browser couldn't open — URL already printed above
|
|
51
59
|
}
|
|
52
60
|
const pollSpinner = isTTY ? ora(" Waiting for authorization…").start() : null;
|
|
53
61
|
const deadline = Date.now() + POLL_TIMEOUT;
|
package/dist/commands/status.js
CHANGED
|
@@ -5,14 +5,22 @@ import { skillettFetch } from "../lib/api.js";
|
|
|
5
5
|
export async function status() {
|
|
6
6
|
const apiKey = loadApiKey();
|
|
7
7
|
if (!apiKey) {
|
|
8
|
+
const cwd = process.cwd();
|
|
8
9
|
const output = {
|
|
9
10
|
authenticated: false,
|
|
10
|
-
|
|
11
|
+
config_dir: cwd,
|
|
12
|
+
message: "No API key found. Run `skillett login` from this directory, or set SKILLETT_API_KEY as an environment variable.",
|
|
11
13
|
};
|
|
12
14
|
if (process.stdout.isTTY) {
|
|
13
15
|
console.log();
|
|
14
16
|
console.log(chalk.yellow(" Not logged in."));
|
|
15
|
-
console.log(chalk.gray(
|
|
17
|
+
console.log(chalk.gray(` Config directory: ${cwd}`));
|
|
18
|
+
console.log(chalk.gray(" Looking for SKILLETT_API_KEY in .env or environment."));
|
|
19
|
+
console.log();
|
|
20
|
+
console.log(chalk.gray(" To fix, either:"));
|
|
21
|
+
console.log(chalk.gray(" 1. Run `skillett login` from this directory"));
|
|
22
|
+
console.log(chalk.gray(" 2. Set SKILLETT_API_KEY=sk_... as an env var"));
|
|
23
|
+
console.log(chalk.gray(" 3. cd to the directory where you originally ran login"));
|
|
16
24
|
console.log();
|
|
17
25
|
}
|
|
18
26
|
else {
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,19 @@ PASSING PARAMETERS
|
|
|
41
41
|
As flags: skillett run github create_issue --repo acme/webapp --title "Bug"
|
|
42
42
|
As JSON: skillett run github create_issue '{"repo":"acme/webapp","title":"Bug"}'
|
|
43
43
|
|
|
44
|
+
CONFIGURATION
|
|
45
|
+
|
|
46
|
+
Skillett stores config in a .env file in the current working directory.
|
|
47
|
+
All commands must be run from the same directory where you ran \`skillett login\`.
|
|
48
|
+
|
|
49
|
+
Stored variables:
|
|
50
|
+
SKILLETT_API_KEY Your API key (starts with sk_)
|
|
51
|
+
SKILLETT_PLATFORM Detected platform (claude, cursor, windsurf, generic)
|
|
52
|
+
SKILLETT_API_URL API base URL (default: https://api.skillett.dev)
|
|
53
|
+
|
|
54
|
+
You can also set SKILLETT_API_KEY as an environment variable instead of
|
|
55
|
+
using the .env file: SKILLETT_API_KEY=sk_... skillett status
|
|
56
|
+
|
|
44
57
|
OUTPUT
|
|
45
58
|
|
|
46
59
|
All commands output JSON to stdout. Errors include an "error" field.
|
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "skillett",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Skillett CLI — Agent Skills Platform",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"skillett": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsc",
|
|
11
|
-
"dev": "tsx src/index.ts"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"chalk": "^5.4.1",
|
|
15
|
-
"commander": "^13.1.0",
|
|
16
|
-
"dotenv": "^16.5.0",
|
|
17
|
-
"open": "^10.2.0",
|
|
18
|
-
"ora": "^8.2.0",
|
|
19
|
-
"pg": "^8.20.0"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@types/node": "^24.12.0",
|
|
23
|
-
"@types/pg": "^8.20.0",
|
|
24
|
-
"tsx": "^4.19.4",
|
|
25
|
-
"typescript": "~5.9.3"
|
|
26
|
-
},
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"keywords": [
|
|
29
|
-
"ai",
|
|
30
|
-
"agent",
|
|
31
|
-
"skills",
|
|
32
|
-
"cli",
|
|
33
|
-
"gmail",
|
|
34
|
-
"github",
|
|
35
|
-
"google",
|
|
36
|
-
"integrations"
|
|
37
|
-
],
|
|
38
|
-
"engines": {
|
|
39
|
-
"node": ">=18"
|
|
40
|
-
},
|
|
41
|
-
"files": [
|
|
42
|
-
"dist"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "skillett",
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "Skillett CLI — Agent Skills Platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"skillett": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"dev": "tsx src/index.ts"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"chalk": "^5.4.1",
|
|
15
|
+
"commander": "^13.1.0",
|
|
16
|
+
"dotenv": "^16.5.0",
|
|
17
|
+
"open": "^10.2.0",
|
|
18
|
+
"ora": "^8.2.0",
|
|
19
|
+
"pg": "^8.20.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^24.12.0",
|
|
23
|
+
"@types/pg": "^8.20.0",
|
|
24
|
+
"tsx": "^4.19.4",
|
|
25
|
+
"typescript": "~5.9.3"
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"ai",
|
|
30
|
+
"agent",
|
|
31
|
+
"skills",
|
|
32
|
+
"cli",
|
|
33
|
+
"gmail",
|
|
34
|
+
"github",
|
|
35
|
+
"google",
|
|
36
|
+
"integrations"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
]
|
|
44
|
+
}
|