@atollhq/skill-codex 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 +2 -0
- package/bin/install.mjs +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ Gives your Codex agent the ability to manage tasks, goals, KPIs, initiatives, mi
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npx @atollhq/skill-codex --key sk_atoll_... --org your-org-id
|
|
11
|
+
# or
|
|
12
|
+
ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-codex
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Get an API key from **Settings > Members > Add Agent** (or **Create API Key** for integrations) in the Atoll app.
|
package/bin/install.mjs
CHANGED
|
@@ -20,10 +20,11 @@ function parseArgs(argv) {
|
|
|
20
20
|
function printUsage() {
|
|
21
21
|
console.log(`
|
|
22
22
|
Usage: npx @atollhq/skill-codex --key <api-key> --org <org-id>
|
|
23
|
+
or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-codex
|
|
23
24
|
|
|
24
25
|
Options:
|
|
25
|
-
--key Atoll API key (sk_atoll_...)
|
|
26
|
-
--org Organization ID
|
|
26
|
+
--key Atoll API key (sk_atoll_...). Defaults to ATOLL_API_KEY.
|
|
27
|
+
--org Organization ID. Defaults to ATOLL_ORG_ID.
|
|
27
28
|
--help Show this help message
|
|
28
29
|
|
|
29
30
|
Installs the Atoll integration for Codex CLI:
|
|
@@ -34,11 +35,13 @@ Installs the Atoll integration for Codex CLI:
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
const args = parseArgs(process.argv)
|
|
38
|
+
args.key ??= process.env.ATOLL_API_KEY
|
|
39
|
+
args.org ??= process.env.ATOLL_ORG_ID
|
|
37
40
|
|
|
38
41
|
if (args.help) { printUsage(); process.exit(0) }
|
|
39
42
|
|
|
40
43
|
if (!args.key || !args.org) {
|
|
41
|
-
console.error('Error: --key and --org
|
|
44
|
+
console.error('Error: provide --key and --org, or set ATOLL_API_KEY and ATOLL_ORG_ID\n')
|
|
42
45
|
printUsage()
|
|
43
46
|
process.exit(1)
|
|
44
47
|
}
|