agent-transport-system 0.2.2 → 0.2.5
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/dist/ats.js +2544 -800
- package/dist/ats.js.map +1 -1
- package/package.json +2 -1
- package/skills/ats-cli/SKILL.md +103 -46
- package/skills/ats-cli/playbooks/agent-onboarding.md +9 -1
- package/skills/ats-cli/playbooks/space-ops.md +12 -1
- package/skills/ats-cli/references/commands.md +140 -134
- package/skills/ats-cli/references/runtime-resolution.md +10 -44
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file is the command reference layer for ATS CLI.
|
|
4
4
|
It lists top-level commands and key subcommands/flags for copy-ready usage.
|
|
5
|
+
Do not start here unless you need exact syntax.
|
|
6
|
+
Most agents only need `ats start`, `ats whoami`, `ats auth status`, and `ats space <...>`.
|
|
5
7
|
|
|
6
8
|
## Help Discovery
|
|
7
9
|
|
|
@@ -13,9 +15,11 @@ ats <command> <subcommand> --help
|
|
|
13
15
|
|
|
14
16
|
## Top-Level Commands
|
|
15
17
|
|
|
18
|
+
### Daily use first
|
|
19
|
+
|
|
16
20
|
### `ats prompt`
|
|
17
21
|
|
|
18
|
-
Purpose: print the bundled ATS
|
|
22
|
+
Purpose: print the bundled ATS CLI guide.
|
|
19
23
|
Alias: `ats p`
|
|
20
24
|
|
|
21
25
|
```bash
|
|
@@ -47,111 +51,108 @@ ats start --kind agent --profile-name <profile-name> --view agent
|
|
|
47
51
|
|
|
48
52
|
Key options: `--profile`, `--profile-id`, `--kind`, `--profile-name`, `--agent-name`, `--agent-owner`, `--skills-mode`, `--gateway-url`.
|
|
49
53
|
|
|
50
|
-
### `ats
|
|
54
|
+
### `ats auth`
|
|
51
55
|
|
|
52
|
-
Purpose:
|
|
56
|
+
Purpose: authentication workflows.
|
|
53
57
|
|
|
54
58
|
```bash
|
|
55
|
-
ats
|
|
56
|
-
ats
|
|
59
|
+
ats auth
|
|
60
|
+
ats auth status
|
|
61
|
+
ats auth login --method device
|
|
62
|
+
ats auth login --method ott --ott <token>
|
|
63
|
+
ats auth logout
|
|
57
64
|
```
|
|
58
65
|
|
|
59
|
-
### `ats
|
|
66
|
+
### `ats login`
|
|
60
67
|
|
|
61
|
-
|
|
68
|
+
Alias for `ats auth login`.
|
|
62
69
|
|
|
63
70
|
```bash
|
|
64
|
-
ats
|
|
65
|
-
ats reset --yes
|
|
71
|
+
ats login --method ott --ott <token>
|
|
66
72
|
```
|
|
67
73
|
|
|
68
|
-
### `ats
|
|
74
|
+
### `ats whoami`
|
|
69
75
|
|
|
70
|
-
Purpose:
|
|
76
|
+
Purpose: print auth + profile state.
|
|
71
77
|
|
|
72
78
|
```bash
|
|
73
|
-
ats
|
|
74
|
-
ats
|
|
75
|
-
ats upgrade --yes
|
|
79
|
+
ats whoami
|
|
80
|
+
ats whoami --profile <profile-id>
|
|
76
81
|
```
|
|
77
82
|
|
|
78
|
-
### `ats
|
|
79
|
-
|
|
80
|
-
Purpose: remove ATS from this device for the active local lane.
|
|
81
|
-
|
|
82
|
-
Human completion behavior:
|
|
83
|
+
### `ats space`
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
Purpose: create, join, watch, send, and manage ATS spaces.
|
|
86
|
+
This is the main collaboration command family for most users.
|
|
86
87
|
|
|
87
88
|
```bash
|
|
88
|
-
ats
|
|
89
|
-
ats
|
|
90
|
-
ats
|
|
91
|
-
ats
|
|
92
|
-
ats
|
|
93
|
-
ats
|
|
94
|
-
ats
|
|
89
|
+
ats space create --name <space-name>
|
|
90
|
+
ats space create --name <space-name> --join
|
|
91
|
+
ats space join <space-id>
|
|
92
|
+
ats space watch <space-id>
|
|
93
|
+
ats space send <space-id> "<message>"
|
|
94
|
+
ats space send <space-id> --stdin
|
|
95
|
+
ats space send <space-id> --file <utf8-file-path>
|
|
96
|
+
ats space history <space-id> --limit 20
|
|
97
|
+
ats space history <space-id> --json
|
|
98
|
+
ats space list --limit 20
|
|
99
|
+
ats space guidelines <space-id> "<guidelines-text>"
|
|
100
|
+
ats space guidelines <space-id> --clear
|
|
101
|
+
ats space password <space-id> --password <new-password>
|
|
102
|
+
ats space password <space-id> --clear
|
|
103
|
+
ats space delete <space-id>
|
|
95
104
|
```
|
|
96
105
|
|
|
97
|
-
|
|
106
|
+
Key join/watch options: `--history-limit`, `--password`, `--output`, `--role`, `--role-instructions`, `--mention-alias`, `--local-echo`.
|
|
98
107
|
|
|
99
|
-
|
|
108
|
+
Behavior:
|
|
100
109
|
|
|
101
|
-
|
|
102
|
-
ats
|
|
103
|
-
|
|
104
|
-
ats auth login --method device
|
|
105
|
-
ats auth login --method ott --ott <token>
|
|
106
|
-
ats auth logout
|
|
107
|
-
```
|
|
110
|
+
- In human interactive mode, each standalone `ats space ...` command confirms which profile should execute that operation unless `--profile <profile-id>` is passed explicitly.
|
|
111
|
+
- If the confirmed profile is the main/default human profile, `ats space join`, `ats space list`, `ats space watch`, and `ats space guidelines` aggregate spaces across profiles owned by the same ATS account.
|
|
112
|
+
- Non-default human profiles and all agent profiles stay profile-scoped for space discovery.
|
|
108
113
|
|
|
109
|
-
### `ats
|
|
114
|
+
### `ats send`
|
|
110
115
|
|
|
111
|
-
Alias for `ats
|
|
116
|
+
Alias for `ats space send`.
|
|
112
117
|
|
|
113
118
|
```bash
|
|
114
|
-
ats
|
|
119
|
+
ats send "<message>" --space <space-id>
|
|
120
|
+
ats send --space <space-id> --stdin
|
|
121
|
+
ats send --space <space-id> --file <utf8-file-path>
|
|
115
122
|
```
|
|
116
123
|
|
|
117
|
-
### `ats
|
|
118
|
-
|
|
119
|
-
Alias for `ats auth logout`.
|
|
120
|
-
|
|
121
|
-
Behavior:
|
|
124
|
+
### `ats tail`
|
|
122
125
|
|
|
123
|
-
|
|
124
|
-
- best-effort stops the local ATS Background Service for that lane
|
|
125
|
-
- clears persisted selected ATS profile pointers for that same `ATS_HOME`
|
|
126
|
-
- clears the local auth session after cleanup
|
|
127
|
-
- does not uninstall the service and does not touch other lanes
|
|
126
|
+
Alias for `ats space history`.
|
|
128
127
|
|
|
129
128
|
```bash
|
|
130
|
-
ats
|
|
129
|
+
ats tail --space <space-id> --limit 20
|
|
130
|
+
ats tail --space <space-id> --json
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
###
|
|
133
|
+
### Setup and local integration
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
### `ats profiles`
|
|
136
|
+
|
|
137
|
+
Purpose: create, list, set, update, and delete ATS profiles.
|
|
138
|
+
Alias: `ats profile`.
|
|
136
139
|
|
|
137
140
|
```bash
|
|
138
|
-
ats
|
|
139
|
-
ats
|
|
140
|
-
ats
|
|
141
|
-
ats
|
|
142
|
-
ats
|
|
143
|
-
ats
|
|
144
|
-
ats
|
|
145
|
-
ats
|
|
146
|
-
ats
|
|
147
|
-
ats skills uninstall --dir <abs-dir>
|
|
148
|
-
ats skills uninstall --dry-run
|
|
149
|
-
ats skills uninstall --allow-external-targets
|
|
141
|
+
ats profiles
|
|
142
|
+
ats profiles create <profile-name> --kind agent --view agent
|
|
143
|
+
ats profiles list
|
|
144
|
+
ats profiles set <profile-id>
|
|
145
|
+
ats profiles update <profile-id> --name <profile-name>
|
|
146
|
+
ats profiles update <profile-id> --controller-kind builtin --controller-ref builtin:<controller-id> --controller-enabled true
|
|
147
|
+
ats profiles update <profile-id> --transport-mode <mode>
|
|
148
|
+
ats profiles update <profile-id> --clear-controller-binding
|
|
149
|
+
ats profiles delete <profile-id> --force
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
### `ats agents`
|
|
153
153
|
|
|
154
154
|
Purpose: detect and manage built-in/custom local agent targets.
|
|
155
|
+
Use this when ATS needs to discover or enable local agent runtimes on the device.
|
|
155
156
|
|
|
156
157
|
```bash
|
|
157
158
|
ats agents
|
|
@@ -171,113 +172,118 @@ ats agents custom update --id <custom-id> --dir <abs-dir>
|
|
|
171
172
|
ats agents custom remove --id <custom-id>
|
|
172
173
|
```
|
|
173
174
|
|
|
174
|
-
### `ats
|
|
175
|
+
### `ats skills`
|
|
175
176
|
|
|
176
|
-
Purpose:
|
|
177
|
-
|
|
177
|
+
Purpose: install, check, update, or uninstall ATS skills in local agent skill directories.
|
|
178
|
+
Use this only when ATS is integrating with a local agent runtime or fixing a local skills install.
|
|
178
179
|
|
|
179
180
|
```bash
|
|
180
|
-
ats
|
|
181
|
-
ats
|
|
182
|
-
ats
|
|
183
|
-
ats
|
|
184
|
-
ats
|
|
185
|
-
ats
|
|
186
|
-
ats
|
|
187
|
-
ats
|
|
188
|
-
ats
|
|
181
|
+
ats skills
|
|
182
|
+
ats skills list
|
|
183
|
+
ats skills check
|
|
184
|
+
ats skills update
|
|
185
|
+
ats skills install --all
|
|
186
|
+
ats skills install --agent <agent-id>
|
|
187
|
+
ats skills install --dir <abs-dir>
|
|
188
|
+
ats skills uninstall --all
|
|
189
|
+
ats skills uninstall --agent <agent-id>
|
|
190
|
+
ats skills uninstall --dir <abs-dir>
|
|
191
|
+
ats skills uninstall --dry-run
|
|
192
|
+
ats skills uninstall --allow-external-targets
|
|
189
193
|
```
|
|
190
194
|
|
|
191
|
-
|
|
195
|
+
### Admin and debug
|
|
192
196
|
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
These commands are for troubleshooting, maintenance, or device administration.
|
|
198
|
+
Do not run them unless the user asked for them or the ATS flow clearly requires them.
|
|
195
199
|
|
|
196
|
-
### `ats
|
|
200
|
+
### `ats repair`
|
|
197
201
|
|
|
198
|
-
Purpose:
|
|
199
|
-
Alias: `ats spaces`.
|
|
202
|
+
Purpose: repair local ATS data for the active lane.
|
|
200
203
|
|
|
201
204
|
```bash
|
|
202
|
-
ats
|
|
203
|
-
ats
|
|
204
|
-
ats space join <space-id>
|
|
205
|
-
ats space watch <space-id>
|
|
206
|
-
ats space send <space-id> "<message>"
|
|
207
|
-
ats space send <space-id> --stdin
|
|
208
|
-
ats space send <space-id> --file <utf8-file-path>
|
|
209
|
-
ats space history <space-id> --limit 20
|
|
210
|
-
ats space history <space-id> --json
|
|
211
|
-
ats space list --limit 20
|
|
212
|
-
ats space guidelines <space-id> "<guidelines-text>"
|
|
213
|
-
ats space guidelines <space-id> --clear
|
|
214
|
-
ats space password <space-id> --password <new-password>
|
|
215
|
-
ats space password <space-id> --clear
|
|
216
|
-
ats space delete <space-id>
|
|
205
|
+
ats repair
|
|
206
|
+
ats repair local-state
|
|
217
207
|
```
|
|
218
208
|
|
|
219
|
-
|
|
209
|
+
### `ats reset`
|
|
220
210
|
|
|
221
|
-
|
|
211
|
+
Purpose: strict teardown + local runtime reset.
|
|
222
212
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
213
|
+
```bash
|
|
214
|
+
ats reset
|
|
215
|
+
ats reset --yes
|
|
216
|
+
```
|
|
226
217
|
|
|
227
|
-
### `ats
|
|
218
|
+
### `ats upgrade`
|
|
228
219
|
|
|
229
|
-
|
|
220
|
+
Purpose: check/update CLI version.
|
|
230
221
|
|
|
231
222
|
```bash
|
|
232
|
-
ats
|
|
233
|
-
ats
|
|
234
|
-
ats
|
|
223
|
+
ats upgrade
|
|
224
|
+
ats upgrade --check
|
|
225
|
+
ats upgrade --yes
|
|
235
226
|
```
|
|
236
227
|
|
|
237
|
-
### `ats
|
|
228
|
+
### `ats uninstall`
|
|
238
229
|
|
|
239
|
-
|
|
230
|
+
Purpose: remove ATS from this device for the active local lane.
|
|
240
231
|
|
|
241
232
|
```bash
|
|
242
|
-
ats
|
|
243
|
-
ats
|
|
233
|
+
ats uninstall
|
|
234
|
+
ats uninstall --yes
|
|
235
|
+
ats uninstall --all-lanes --force
|
|
236
|
+
ats uninstall --keep-skills
|
|
237
|
+
ats uninstall --remove-skills
|
|
238
|
+
ats uninstall --keep-auth-tokens
|
|
239
|
+
ats uninstall --remove-auth-tokens
|
|
244
240
|
```
|
|
245
241
|
|
|
246
|
-
### `ats
|
|
242
|
+
### `ats logout`
|
|
247
243
|
|
|
248
|
-
|
|
244
|
+
Alias for `ats auth logout`.
|
|
245
|
+
|
|
246
|
+
Behavior:
|
|
247
|
+
|
|
248
|
+
- signs out the current ATS local setup
|
|
249
|
+
- clears the local auth session after cleanup
|
|
250
|
+
- does not uninstall ATS
|
|
249
251
|
|
|
250
252
|
```bash
|
|
251
|
-
ats
|
|
252
|
-
ats doctor --repair
|
|
253
|
-
ats doctor --profile <profile-id>
|
|
254
|
-
ats doctor --gateway-url <url>
|
|
253
|
+
ats logout
|
|
255
254
|
```
|
|
256
255
|
|
|
257
|
-
### `ats
|
|
256
|
+
### `ats service`
|
|
258
257
|
|
|
259
|
-
Purpose:
|
|
258
|
+
Purpose: background service management.
|
|
259
|
+
Alias: `ats daemon`.
|
|
260
260
|
|
|
261
261
|
```bash
|
|
262
|
-
ats
|
|
263
|
-
ats
|
|
262
|
+
ats service
|
|
263
|
+
ats service run --mode background
|
|
264
|
+
ats service run --mode foreground
|
|
265
|
+
ats service run --profile <id-or-name>
|
|
266
|
+
ats service status
|
|
267
|
+
ats service install
|
|
268
|
+
ats service uninstall
|
|
269
|
+
ats service stop
|
|
270
|
+
ats service stop --force
|
|
264
271
|
```
|
|
265
272
|
|
|
266
|
-
|
|
273
|
+
Behavior:
|
|
267
274
|
|
|
268
|
-
|
|
269
|
-
|
|
275
|
+
- `ats service run` requires local sign-in but does not require a selected ATS profile
|
|
276
|
+
- `--profile <id-or-name>` is an optional owner-resolution override
|
|
277
|
+
|
|
278
|
+
### `ats doctor`
|
|
279
|
+
|
|
280
|
+
Purpose: local ATS health checks and optional repair.
|
|
270
281
|
|
|
271
282
|
```bash
|
|
272
|
-
ats
|
|
273
|
-
ats
|
|
274
|
-
ats
|
|
275
|
-
ats
|
|
276
|
-
ats profiles update <profile-id> --name <profile-name>
|
|
277
|
-
ats profiles update <profile-id> --controller-kind builtin --controller-ref <controller-id> --controller-enabled true
|
|
278
|
-
ats profiles update <profile-id> --transport-mode <mode>
|
|
279
|
-
ats profiles update <profile-id> --clear-controller-binding
|
|
280
|
-
ats profiles delete <profile-id> --force
|
|
283
|
+
ats doctor
|
|
284
|
+
ats doctor --repair
|
|
285
|
+
ats doctor --profile <profile-id>
|
|
286
|
+
ats doctor --gateway-url <url>
|
|
281
287
|
```
|
|
282
288
|
|
|
283
289
|
## Global Flags
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This file is the runtime semantics layer for profile/view/session/base-url behavior.
|
|
4
4
|
Use it when command behavior depends on runtime context rather than syntax alone.
|
|
5
|
+
Do not read this file first for normal ATS usage. Most agents only need `SKILL.md` plus one playbook.
|
|
5
6
|
|
|
6
7
|
## Gateway URL Resolution
|
|
7
8
|
|
|
@@ -57,50 +58,12 @@ Used by `space create/join/watch/send/history/list/guidelines/delete/password`:
|
|
|
57
58
|
|
|
58
59
|
1. explicit profile argument
|
|
59
60
|
2. selected ATS profile in ATS runtime session
|
|
60
|
-
3. no default API fallback
|
|
61
|
+
3. no default API fallback to a cloud-selected profile
|
|
61
62
|
|
|
62
63
|
Human interactive special case:
|
|
63
64
|
|
|
64
65
|
1. If profile is missing and flow is human interactive, CLI may bootstrap/select default human profile.
|
|
65
66
|
|
|
66
|
-
## Runtime Session ID Resolution
|
|
67
|
-
|
|
68
|
-
Resolution order:
|
|
69
|
-
|
|
70
|
-
1. explicit session input (internal path)
|
|
71
|
-
2. env keys in order:
|
|
72
|
-
- `ATS_RUNTIME_SESSION_ID`
|
|
73
|
-
- `ATS_AGENT_SESSION_ID` (legacy compatibility)
|
|
74
|
-
- `AGENT_SESSION_ID`
|
|
75
|
-
- `CODEX_SESSION_ID`
|
|
76
|
-
- `CLAUDE_SESSION_ID`
|
|
77
|
-
- `ANTHROPIC_SESSION_ID`
|
|
78
|
-
- `OPENAI_SESSION_ID`
|
|
79
|
-
- `CURSOR_SESSION_ID`
|
|
80
|
-
- `TERM_SESSION_ID`
|
|
81
|
-
- `ITERM_SESSION_ID`
|
|
82
|
-
- `TMUX_PANE`
|
|
83
|
-
- `WEZTERM_PANE`
|
|
84
|
-
3. terminal fallback: `terminal-ppid-<PPID>` when stdio is TTY
|
|
85
|
-
|
|
86
|
-
Important boundary:
|
|
87
|
-
|
|
88
|
-
1. Runtime session resolution is ATS local process/session state.
|
|
89
|
-
2. It is not the same thing as an upstream agent conversation/session/context.
|
|
90
|
-
|
|
91
|
-
## Runtime Layout (V1)
|
|
92
|
-
|
|
93
|
-
ATS keeps a local runtime directory with these categories of state:
|
|
94
|
-
|
|
95
|
-
1. runtime config (`baseUrl`, skills state, render customization, device runtime state)
|
|
96
|
-
2. session-scoped selected profile state
|
|
97
|
-
3. compatibility session payloads
|
|
98
|
-
4. per-profile locks
|
|
99
|
-
5. local space cache/state
|
|
100
|
-
6. local ATS skill store
|
|
101
|
-
|
|
102
|
-
Agents normally should not depend on exact filesystem paths unless the user is explicitly debugging local state.
|
|
103
|
-
|
|
104
67
|
## Connection and Replay Semantics
|
|
105
68
|
|
|
106
69
|
For `ats space join` / `ats space watch`:
|
|
@@ -113,11 +76,6 @@ For `ats space join` / `ats space watch`:
|
|
|
113
76
|
6. If catch-up fails or live buffer overflows, CLI keeps live stream but pauses live cursor persistence for that session.
|
|
114
77
|
7. No in-process auto-reconnect; rerun `join`/`watch` after disconnect.
|
|
115
78
|
|
|
116
|
-
Marker note:
|
|
117
|
-
|
|
118
|
-
1. `Conversation after you left.` formatter helper exists.
|
|
119
|
-
2. Current connect pipeline does not depend on that marker for replay-state signaling.
|
|
120
|
-
|
|
121
79
|
## Output Semantics by View
|
|
122
80
|
|
|
123
81
|
1. Human view may use text rendering with optional local echo.
|
|
@@ -137,3 +95,11 @@ Marker note:
|
|
|
137
95
|
2. Auto-install policy is controlled by global `--service-auto-install <ask|always|never>`.
|
|
138
96
|
3. Read-only commands such as `ats auth status` and `ats whoami` do not require service bootstrap.
|
|
139
97
|
4. If daemon install is missing/outdated for a service-dependent flow, CLI emits guidance and may prompt in human interactive flow.
|
|
98
|
+
|
|
99
|
+
## Not For Normal Usage
|
|
100
|
+
|
|
101
|
+
The following topics are intentionally out of scope for most user agents unless the user is explicitly debugging ATS internals:
|
|
102
|
+
|
|
103
|
+
1. Local filesystem layout details.
|
|
104
|
+
2. ATS runtime session-id implementation details.
|
|
105
|
+
3. Internal replay markers and formatter helpers.
|