@andocorp/cli 0.5.9 → 0.5.12
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 +54 -5
- package/dist/cli.js +393 -78
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@ ando send '#deploys' "v41 is out"
|
|
|
9
9
|
pytest 2>&1 | ando send '#ci' --code # standard input, as a code block
|
|
10
10
|
ando send '#deploys' "rolled back" --thread <message-id>
|
|
11
11
|
ando ask @release-agent "what shipped since Friday?" --in '#releases'
|
|
12
|
+
ando wiki sync ./wiki # two-way sync workspace Wiki to local Markdown
|
|
13
|
+
ando workroom watch --all --agent my-agent --on-wake ./wake.sh
|
|
12
14
|
```
|
|
13
15
|
|
|
14
16
|
`send` prints a link to the message. `ask` posts the question with the agent
|
|
@@ -34,7 +36,10 @@ doing, and keeps the connector running in the background, starting it again
|
|
|
34
36
|
after a restart. Run it again in another repository to add that one.
|
|
35
37
|
|
|
36
38
|
Each task works in its own checkout under `~/.ando-tasks`, on its own branch,
|
|
37
|
-
made from what you've committed, so your folder is never touched.
|
|
39
|
+
made from what you've committed, so your folder is never touched. Follow-ups in
|
|
40
|
+
the same thread reuse it. Once nothing in the thread is still open (its tasks
|
|
41
|
+
archived, done or cancelled, and its pull requests merged or closed), `up`
|
|
42
|
+
clears the checkout, unless it has commits that were never pushed. The checkout
|
|
38
43
|
also brings what git doesn't hold:
|
|
39
44
|
|
|
40
45
|
- gitignored `.env*` files and `.claude/settings.local.json`
|
|
@@ -81,9 +86,48 @@ channel. `ando login` checks the key with one read and saves it with the API
|
|
|
81
86
|
URL to `$XDG_CONFIG_HOME/ando/cli.json` (`~/.config/ando/cli.json` by
|
|
82
87
|
default), readable only by you. Use `ando login --key-stdin` to pipe a key in.
|
|
83
88
|
|
|
84
|
-
`ANDO_API_KEY`, `ANDO_API_URL` and `ANDO_WEB_URL` override the saved values.
|
|
89
|
+
`ANDO_API_KEY`, `ANDO_API_URL`, `ANDO_MCP_URL` and `ANDO_WEB_URL` override the saved values.
|
|
85
90
|
The key is never printed, including in errors and `--json` output.
|
|
86
91
|
|
|
92
|
+
## Wiki disk sync
|
|
93
|
+
|
|
94
|
+
`ando wiki sync <dir>` keeps an Ando Wiki scope (`workspace` by default, or
|
|
95
|
+
`channel:<id>`, `member:<id>`, `repository:<owner/name>`) synced with a local
|
|
96
|
+
folder of Markdown files using YAML frontmatter (`id`, `title`, `scope`,
|
|
97
|
+
`revision`) and a `.ando-wiki-sync.json` checkpoint file.
|
|
98
|
+
|
|
99
|
+
- Local-only edits push with `expectedRevision` and a deterministic
|
|
100
|
+
`idempotencyKey`.
|
|
101
|
+
- Remote-only edits pull atomically into the local `.md` file.
|
|
102
|
+
- Unmarked local `.md` files create new Wiki pages and write the assigned `id`
|
|
103
|
+
and `revision` back into frontmatter.
|
|
104
|
+
- Concurrent edits never overwrite your local file: the remote copy is written
|
|
105
|
+
to `<file>.conflict.md` and held until you edit the local file and re-sync.
|
|
106
|
+
- Pages with an active live-editing session in Ando are skipped on push unless
|
|
107
|
+
`--force` is passed.
|
|
108
|
+
- Needs an API key with `documents:read` and `documents:write` scopes.
|
|
109
|
+
|
|
110
|
+
## Workrooms
|
|
111
|
+
|
|
112
|
+
Watch Hyperion durable workrooms over real-time SSE and wake local agent
|
|
113
|
+
harnesses (Antigravity, Claude Code, Codex, or any shell hook) with durable
|
|
114
|
+
cursor recovery:
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
ando workroom list [--chat <chat-id>] [--attention] [--json]
|
|
118
|
+
ando workroom watch <workroom-id-or-url...> --agent <label> --on-wake <cmd>
|
|
119
|
+
ando workroom watch --all --agent <label> --antigravity-session <conversation-id>
|
|
120
|
+
ando workroom status [workroom-id-or-url] [--agent <label>] [--json]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- `--on-wake <cmd>` receives a JSON wake envelope on standard input (`from_seq`,
|
|
124
|
+
`to_seq`, `events`, `trigger_reasons`) and requires exit code `0` as a verified
|
|
125
|
+
wake receipt before advancing `last_woken_seq`.
|
|
126
|
+
- `--all` or `--chat <chat-id>` automatically discovers active workrooms,
|
|
127
|
+
attaches new rooms, and gracefully drains settled ones.
|
|
128
|
+
- `--jsonl` streams NDJSON envelopes to standard output without advancing wake
|
|
129
|
+
cursors unless `--ack-stdout` is also passed.
|
|
130
|
+
|
|
87
131
|
## Behaviour
|
|
88
132
|
|
|
89
133
|
- A target is `#channel-name` or a conversation id. A name that matches no
|
|
@@ -120,6 +164,11 @@ pnpm --filter @andocorp/cli run build && node packages/cli/dist/cli.js --help
|
|
|
120
164
|
Against a local stack, log in with `--api-url http://127.0.0.1:<convex site
|
|
121
165
|
port>/public-api/v1 --web-url http://dev.ando.so:<web port>`.
|
|
122
166
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
167
|
+
Merges to `main` touching `packages/cli`, `packages/machine`, the bundled
|
|
168
|
+
connector host (`apps/web/electron/local-tools`), `packages/sdk` runtime
|
|
169
|
+
files, or workspace dependency catalog (`pnpm-workspace.yaml`) automatically
|
|
170
|
+
test, pack, publish, and verify `@andocorp/cli` on npm via
|
|
171
|
+
OIDC trusted publishing (`.github/workflows/publish-cli.yml`), auto-incrementing
|
|
172
|
+
the patch version when `package.json`'s version is already published and
|
|
173
|
+
skipping stale or unchanged commits. Bump `version` in `package.json` explicitly
|
|
174
|
+
for minor, major, or prerelease jumps.
|