@alook/cli 0.0.60 → 0.0.62

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
@@ -1,6 +1,6 @@
1
1
  # @alook/cli
2
2
 
3
- Alook CLI — register and run always-on AI coding agents.
3
+ Alook CLI — register machines, run the daemon, and manage agents from the command line.
4
4
 
5
5
  ## Install
6
6
 
@@ -8,39 +8,140 @@ Alook CLI — register and run always-on AI coding agents.
8
8
  npx @alook/cli <command>
9
9
  ```
10
10
 
11
- Or install globally:
11
+ ## Quick Start
12
+
13
+ 1. Generate a machine token from the [Alook dashboard](https://alook.ai).
14
+ 2. Register this machine:
12
15
 
13
16
  ```bash
14
- npm install -g @alook/cli
15
- alook <command>
17
+ npx @alook/cli register --token al_xxxxxxxxxxxxxxxxxxxxxxxx
16
18
  ```
17
19
 
18
- ## Quick start
19
-
20
- Register this machine with your Alook account:
20
+ 3. Start the daemon:
21
21
 
22
22
  ```bash
23
- npx @alook/cli register --token al_xxxxxxxxxxxxxxxxxxxxxxxx
23
+ npx @alook/cli daemon start
24
24
  ```
25
25
 
26
- You can generate a token from the Alook dashboard.
26
+ The daemon runs in the background, polling for tasks and dispatching them to your local AI runtimes (Claude, Codex, or OpenCode).
27
27
 
28
28
  ## Commands
29
29
 
30
30
  | Command | Description |
31
31
  | --- | --- |
32
- | `alook register` | Register this machine with your Alook account. |
33
- | `alook status` | Show current registration status. |
34
- | `alook daemon` | Manage the local Alook daemon. |
35
- | `alook email` | Manage agent emails. |
36
- | `alook config` | Manage CLI configuration. |
37
- | `alook version` | Print the CLI version. |
32
+ | `register --token <token>` | Register this machine with your Alook account |
33
+ | `status` | Show registration status and linked workspace |
34
+ | `daemon start` | Start the background daemon |
35
+ | `daemon stop` | Stop the daemon |
36
+ | `email pull --agent_id <id>` | Download agent emails |
37
+ | `email send --agent_id <id> --to <addr> --subject "..." --body-file <path>` | Send an email |
38
+ | `calendar set --agent_id <id> --event_title "..." --datetime <YYYY-MM-DDTHH:MM>` | Create a scheduled event |
39
+ | `issue create --agent_id <id> --title "..."` | Create and dispatch an issue |
40
+ | `sync upload-artifact --agent_id <id> --conversation_id <id> --file <path>` | Upload a file artifact |
41
+ | `config show` | Show current configuration |
42
+ | `update` | Update CLI to the latest version |
43
+ | `version` | Print CLI version |
44
+
45
+ Run `npx @alook/cli <command> --help` for all subcommand options.
46
+
47
+ <details>
48
+ <summary><strong>daemon</strong> — manage the background daemon</summary>
49
+
50
+ ```bash
51
+ alook daemon start # Start in background
52
+ alook daemon start --foreground # Start in foreground (for debugging)
53
+ alook daemon stop # Stop the daemon
54
+ alook daemon status # Check if the daemon is running
55
+ ```
56
+
57
+ </details>
58
+
59
+ <details>
60
+ <summary><strong>email</strong> — pull, send, reply, forward, and manage sender whitelist</summary>
61
+
62
+ ```bash
63
+ alook email pull --agent_id <id> # Download inbox
64
+ alook email pull --agent_id <id> --status unread # Unread only
65
+ alook email pull --agent_id <id> --folder sent # Sent emails
66
+ alook email set --agent_id <id> --email_id <id> --status read # Mark as read
67
+
68
+ alook email send --agent_id <id> --to <addr> --subject "Hi" --body-file body.html
69
+ alook email send ... --in-reply-to <email_id> # Reply to a thread
70
+ alook email send ... --attachment report.pdf # Attach a file
71
+ alook email forward --agent_id <id> --email_id <id> --to <addr> --note "FYI"
72
+
73
+ alook email whitelist list --agent_id <id> # List allowed senders
74
+ alook email whitelist add --agent_id <id> <email> # Allow a sender
75
+ alook email whitelist delete --agent_id <id> <email> # Remove a sender
76
+ ```
77
+
78
+ Options: `--from <addr>` to send from a custom mailbox, `--limit <n>` / `--offset <n>` for pagination, `--json` for machine-readable output.
79
+
80
+ </details>
81
+
82
+ <details>
83
+ <summary><strong>calendar</strong> — schedule one-off or recurring agent events</summary>
84
+
85
+ When an event fires, a new task is dispatched to the agent with the event title as the prompt.
86
+
87
+ ```bash
88
+ alook calendar set --agent_id <id> --event_title "Daily standup" --datetime 2026-05-16T09:00
89
+ alook calendar set ... --repeat 1week --repeat_stop_date 2026-12-31
90
+
91
+ alook calendar list --agent_id <id> # List upcoming events
92
+ alook calendar show --agent_id <id> --event_id <id> # Show full detail
93
+ alook calendar update --agent_id <id> --event_id <id> --datetime 2026-05-17T10:00
94
+ alook calendar delete --agent_id <id> --event_id <id>
95
+ ```
96
+
97
+ Datetime is always local time (`YYYY-MM-DDTHH:MM`). Repeat intervals: `1hour`, `1day`, `1week`, `1month`, etc.
98
+
99
+ </details>
100
+
101
+ <details>
102
+ <summary><strong>issue</strong> — create and manage issues assigned to agents</summary>
103
+
104
+ ```bash
105
+ alook issue create --agent_id <id> --title "Fix login bug"
106
+ alook issue create --agent_id <id> --title "Refactor auth" --body-file spec.md
107
+
108
+ alook issue list --agent_id <id> # Active issues
109
+ alook issue list --agent_id <id> --completed # Completed/closed issues
110
+ alook issue show --agent_id <id> --issue_id <id> # Full detail + conversation
111
+ alook issue update --agent_id <id> --issue_id <id> --status done
112
+ alook issue comment --agent_id <id> --issue_id <id> --body "Looks good"
113
+ ```
114
+
115
+ Statuses: `todo`, `in_progress`, `review`, `done`, `closed`, `canceled`, `failed`.
116
+
117
+ </details>
118
+
119
+ <details>
120
+ <summary><strong>config</strong> — manage CLI configuration</summary>
38
121
 
39
- Run `alook <command> --help` for subcommand options.
122
+ ```bash
123
+ alook config show # Show current config
124
+ alook config path # Show config file path
125
+ ```
126
+
127
+ Config is stored at `~/.alook/config.json` and includes:
128
+
129
+ - `server_url` — Alook server URL
130
+ - `profiles` — per-profile settings with workspace bindings
131
+ - `watched_workspaces` — workspaces the daemon monitors (each with `id`, `name`, `token`, `agent_ids`)
132
+
133
+ </details>
134
+
135
+ ## Global Options
136
+
137
+ ```
138
+ --server <url> Override server URL
139
+ --profile <name> Use a specific config profile
140
+ ```
40
141
 
41
142
  ## Requirements
42
143
 
43
- - Node.js 20
144
+ - Node.js >= 20
44
145
 
45
146
  ## License
46
147