@atollhq/skill-codex 0.4.7 → 0.4.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
CHANGED
|
@@ -7,9 +7,9 @@ Gives your Codex agent the ability to manage tasks, goals, KPIs, initiatives, mi
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx @atollhq/skill-codex --profile agent-a --key sk_atoll_... --org your-org-id --project project-id --team team-id
|
|
10
|
+
npx @atollhq/skill-codex@latest --profile agent-a --key sk_atoll_... --org your-org-id --project project-id --team team-id
|
|
11
11
|
# or
|
|
12
|
-
ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-codex
|
|
12
|
+
ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-codex@latest
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Optional defaults: `--project`, `--team`, and `--base-url` are stored with the selected mode. Use `--no-project`, `--no-team`, or `--no-base-url` to clear previously saved defaults. Pass `--profile` to store credentials and defaults only in that named Atoll CLI profile. The installer does not write global `ATOLL_*` exports to `~/.zshrc` or `~/.bashrc` in profile mode. Use `atoll --profile agent-a ...` for profile-scoped commands, or omit `--profile` to use env-var mode.
|
|
@@ -26,6 +26,8 @@ This does five things:
|
|
|
26
26
|
|
|
27
27
|
For profile mode, Codex has the Atoll skill immediately and terminal commands can use `atoll --profile agent-a ...`. For env-var mode, the installer writes `ATOLL_ENV_MODE=1` with the credential exports; open a fresh shell or `source` your profile.
|
|
28
28
|
|
|
29
|
+
Use `@latest` in the `npx` command so npm does not reuse a stale cached installer. In profile mode, the installer prints its package version and a verification command; run `atoll --profile agent-a agent-context --json` if you need to confirm the profile was created.
|
|
30
|
+
|
|
29
31
|
## Using the integration
|
|
30
32
|
|
|
31
33
|
Once installed, ask Codex anything task-related:
|
package/bin/install.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { homedir } from 'node:os'
|
|
|
6
6
|
import { fileURLToPath } from 'node:url'
|
|
7
7
|
|
|
8
8
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
9
|
+
const packageJson = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'))
|
|
9
10
|
|
|
10
11
|
function parseArgs(argv) {
|
|
11
12
|
const args = {}
|
|
@@ -26,8 +27,8 @@ function parseArgs(argv) {
|
|
|
26
27
|
|
|
27
28
|
function printUsage() {
|
|
28
29
|
console.log(`
|
|
29
|
-
Usage: npx @atollhq/skill-codex [--profile <name>] --key <api-key> --org <org-id> [--project <id>] [--team <id-or-slug>] [--base-url <url>]
|
|
30
|
-
or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-codex
|
|
30
|
+
Usage: npx @atollhq/skill-codex@latest [--profile <name>] --key <api-key> --org <org-id> [--project <id>] [--team <id-or-slug>] [--base-url <url>]
|
|
31
|
+
or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-codex@latest
|
|
31
32
|
|
|
32
33
|
Options:
|
|
33
34
|
--profile Atoll CLI profile name to create/update. Profile mode does not write shell env vars.
|
|
@@ -61,6 +62,8 @@ else args.baseUrl ??= process.env.ATOLL_BASE_URL
|
|
|
61
62
|
|
|
62
63
|
if (args.help) { printUsage(); process.exit(0) }
|
|
63
64
|
|
|
65
|
+
console.log(`Running @atollhq/skill-codex installer v${packageJson.version}`)
|
|
66
|
+
|
|
64
67
|
if (!args.key || !args.org) {
|
|
65
68
|
console.error('Error: provide --key and --org, or set ATOLL_API_KEY and ATOLL_ORG_ID\n')
|
|
66
69
|
printUsage()
|
|
@@ -192,6 +195,7 @@ if (args.profile) {
|
|
|
192
195
|
writeAtollProfile()
|
|
193
196
|
console.log('No Atoll shell exports were written.')
|
|
194
197
|
console.log(`Run profile-scoped commands with: atoll --profile ${args.profile} ...`)
|
|
198
|
+
console.log(`Verify the profile with: atoll --profile ${args.profile} agent-context --json`)
|
|
195
199
|
console.log(`\nDone! Codex has the Atoll skill installed, and the Atoll CLI profile "${args.profile}" is active.`)
|
|
196
200
|
process.exit(0)
|
|
197
201
|
}
|
package/package.json
CHANGED
|
@@ -429,7 +429,7 @@ URL must be an HTTPS DNS hostname. IP literals, `localhost`, and `.local` hosts
|
|
|
429
429
|
|--------|----------|-------------|
|
|
430
430
|
| GET | `/api/orgs/{id}/agents` | List agents (owner/admin) |
|
|
431
431
|
| GET | `/api/orgs/{id}/agents/manageable` | List agents the current human can manage |
|
|
432
|
-
| POST | `/api/orgs/{id}/agents` | Create org, project-scoped, or personal agent |
|
|
432
|
+
| POST | `/api/orgs/{id}/agents` | Create org agent (`{ name, role?, setupScoped? }`), project-scoped agent (`{ name, projectIds }` or legacy `{ name, projectId, projectIds? }`), or personal agent (`{ name, personal: true }`) |
|
|
433
433
|
| DELETE | `/api/orgs/{id}/agents/{agentId}` | Revoke manageable agent |
|
|
434
434
|
| PATCH | `/api/orgs/{id}/agents/{agentId}/projects` | Replace project access for a manageable non-personal agent |
|
|
435
435
|
| POST | `/api/orgs/{id}/projects/{projectId}/agents` | Grant selected manageable agents access to a project |
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
- [Heartbeat Response](#heartbeat-response)
|
|
16
16
|
- [Analytics Response](#analytics-response)
|
|
17
17
|
- [Plan Limit Errors](#plan-limit-errors)
|
|
18
|
+
- [Agent Fields](#agent-fields)
|
|
18
19
|
- [Enums](#enums)
|
|
19
20
|
|
|
20
21
|
---
|
|
@@ -73,6 +74,10 @@ Creation endpoints may return `402` when an org reaches its billing plan limit:
|
|
|
73
74
|
|
|
74
75
|
`resource` is one of `humans`, `agents`, `activeProjects`, or `activeIssues`.
|
|
75
76
|
|
|
77
|
+
## Agent Fields
|
|
78
|
+
|
|
79
|
+
Create org-wide agents with `{ "name": "...", "role": "member", "setupScoped": false }`; org-wide creation is owner/admin-only. Create project-scoped agents with non-empty `projectIds`, for example `{ "name": "...", "projectIds": ["project-uuid"] }`; `projectId` remains accepted as a legacy/default-project alias and is merged with `projectIds`. Project-scoped agents are created as guests, and human members may only scope them to projects they can access. Create personal agents with `{ "name": "...", "personal": true }`; personal agents inherit their human owner's project access and reject explicit `projectId`/`projectIds`.
|
|
80
|
+
|
|
76
81
|
## Goal Fields
|
|
77
82
|
|
|
78
83
|
```json
|