@atollhq/skill-claude 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 Claude Code agent the ability to manage tasks, goals, KPIs, initiativ
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npx @atollhq/skill-claude --profile agent-a --key sk_atoll_... --org your-org-id --project project-id --team team-id
10
+ npx @atollhq/skill-claude@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-claude
12
+ ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-claude@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; Claude settings keep only `ATOLL_PROFILE` so direct CLI commands can use the profile safely. Omit `--profile` to use env-var mode, which writes `ATOLL_ENV_MODE=1` with the credential settings.
@@ -24,6 +24,8 @@ This does three things:
24
24
 
25
25
  Restart Claude Code and the `atoll-api` skill is available.
26
26
 
27
+ 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.
28
+
27
29
  ## Using the skill
28
30
 
29
31
  Once installed, ask Claude 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 = {}
@@ -37,8 +38,8 @@ function parseArgs(argv) {
37
38
 
38
39
  function printUsage() {
39
40
  console.log(`
40
- Usage: npx @atollhq/skill-claude [--profile <name>] --key <api-key> --org <org-id> [--project <id>] [--team <id-or-slug>] [--base-url <url>]
41
- or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-claude
41
+ Usage: npx @atollhq/skill-claude@latest [--profile <name>] --key <api-key> --org <org-id> [--project <id>] [--team <id-or-slug>] [--base-url <url>]
42
+ or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-claude@latest
42
43
 
43
44
  Options:
44
45
  --profile Atoll CLI profile name to create/update.
@@ -72,6 +73,8 @@ if (args.help) {
72
73
  process.exit(0)
73
74
  }
74
75
 
76
+ console.log(`Running @atollhq/skill-claude installer v${packageJson.version}`)
77
+
75
78
  if (!args.key || !args.org) {
76
79
  console.error('Error: provide --key and --org, or set ATOLL_API_KEY and ATOLL_ORG_ID\n')
77
80
  printUsage()
@@ -168,6 +171,9 @@ if (args.profile) {
168
171
  if (args.baseUrl) configuredVars.push('ATOLL_BASE_URL')
169
172
  }
170
173
  console.log(`Configured ${configuredVars.join(', ')} in ${settingsPath}`)
174
+ if (args.profile) {
175
+ console.log(`Verify the profile with: atoll --profile ${args.profile} agent-context --json`)
176
+ }
171
177
 
172
178
  console.log(`\nDone! Start Claude Code and the atoll-api skill will be available.`)
173
179
  console.log(`Try: "List my Atoll tasks" or "Check my heartbeat"`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atollhq/skill-claude",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Install the Atoll project management skill for Claude Code",
5
5
  "bin": {
6
6
  "skill-claude": "bin/install.mjs"
@@ -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