agent-transport-system 0.2.1 → 0.2.3

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.
@@ -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,6 +15,18 @@ ats <command> <subcommand> --help
13
15
 
14
16
  ## Top-Level Commands
15
17
 
18
+ ### Daily use first
19
+
20
+ ### `ats prompt`
21
+
22
+ Purpose: print the bundled ATS CLI guide.
23
+ Alias: `ats p`
24
+
25
+ ```bash
26
+ ats prompt
27
+ ats p
28
+ ```
29
+
16
30
  ### `ats view`
17
31
 
18
32
  Purpose: query or set profile default view mode.
@@ -37,98 +51,108 @@ ats start --kind agent --profile-name <profile-name> --view agent
37
51
 
38
52
  Key options: `--profile`, `--profile-id`, `--kind`, `--profile-name`, `--agent-name`, `--agent-owner`, `--skills-mode`, `--gateway-url`.
39
53
 
40
- ### `ats repair`
54
+ ### `ats auth`
41
55
 
42
- Purpose: repair local ATS data for the active lane.
56
+ Purpose: authentication workflows.
43
57
 
44
58
  ```bash
45
- ats repair
46
- ats repair local-state
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
47
64
  ```
48
65
 
49
- ### `ats reset`
66
+ ### `ats login`
50
67
 
51
- Purpose: strict teardown + local runtime reset.
68
+ Alias for `ats auth login`.
52
69
 
53
70
  ```bash
54
- ats reset
55
- ats reset --yes
71
+ ats login --method ott --ott <token>
56
72
  ```
57
73
 
58
- ### `ats upgrade`
74
+ ### `ats whoami`
59
75
 
60
- Purpose: check/update CLI version.
76
+ Purpose: print auth + profile state.
61
77
 
62
78
  ```bash
63
- ats upgrade
64
- ats upgrade --check
65
- ats upgrade --yes
79
+ ats whoami
80
+ ats whoami --profile <profile-id>
66
81
  ```
67
82
 
68
- ### `ats uninstall`
83
+ ### `ats space`
69
84
 
70
- Purpose: remove ATS from this device for the active local lane.
85
+ Purpose: create, join, watch, send, and manage ATS spaces.
86
+ This is the main collaboration command family for most users.
71
87
 
72
88
  ```bash
73
- ats uninstall
74
- ats uninstall --yes
75
- ats uninstall --all-lanes --force
76
- ats uninstall --keep-skills
77
- ats uninstall --remove-skills
78
- ats uninstall --keep-auth-tokens
79
- ats uninstall --remove-auth-tokens
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>
80
104
  ```
81
105
 
82
- ### `ats auth`
106
+ Key join/watch options: `--history-limit`, `--password`, `--output`, `--role`, `--role-instructions`, `--mention-alias`, `--local-echo`.
83
107
 
84
- Purpose: authentication workflows.
108
+ Behavior:
85
109
 
86
- ```bash
87
- ats auth
88
- ats auth status
89
- ats auth login --method device
90
- ats auth login --method ott --ott <token>
91
- ats auth logout
92
- ```
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.
93
113
 
94
- ### `ats login`
114
+ ### `ats send`
95
115
 
96
- Alias for `ats auth login`.
116
+ Alias for `ats space send`.
97
117
 
98
118
  ```bash
99
- ats login --method ott --ott <token>
119
+ ats send "<message>" --space <space-id>
120
+ ats send --space <space-id> --stdin
121
+ ats send --space <space-id> --file <utf8-file-path>
100
122
  ```
101
123
 
102
- ### `ats logout`
124
+ ### `ats tail`
103
125
 
104
- Alias for `ats auth logout`.
126
+ Alias for `ats space history`.
105
127
 
106
128
  ```bash
107
- ats logout
129
+ ats tail --space <space-id> --limit 20
130
+ ats tail --space <space-id> --json
108
131
  ```
109
132
 
110
- ### `ats skills`
133
+ ### Setup and local integration
111
134
 
112
- Purpose: install/check/update/uninstall ATS skills.
135
+ ### `ats profiles`
136
+
137
+ Purpose: create, list, set, update, and delete ATS profiles.
138
+ Alias: `ats profile`.
113
139
 
114
140
  ```bash
115
- ats skills
116
- ats skills list
117
- ats skills check
118
- ats skills update
119
- ats skills install --all
120
- ats skills install --agent <agent-id>
121
- ats skills install --dir <abs-dir>
122
- ats skills uninstall --all
123
- ats skills uninstall --agent <agent-id>
124
- ats skills uninstall --dir <abs-dir>
125
- ats skills uninstall --dry-run
126
- 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
127
150
  ```
128
151
 
129
152
  ### `ats agents`
130
153
 
131
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.
132
156
 
133
157
  ```bash
134
158
  ats agents
@@ -148,101 +172,118 @@ ats agents custom update --id <custom-id> --dir <abs-dir>
148
172
  ats agents custom remove --id <custom-id>
149
173
  ```
150
174
 
151
- ### `ats service`
175
+ ### `ats skills`
152
176
 
153
- Purpose: background service management.
154
- Alias: `ats daemon`.
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.
155
179
 
156
180
  ```bash
157
- ats service
158
- ats service run --mode background
159
- ats service run --mode foreground
160
- ats service status
161
- ats service install
162
- ats service uninstall
163
- ats service stop
164
- ats service stop --force
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
165
193
  ```
166
194
 
167
- ### `ats space`
195
+ ### Admin and debug
168
196
 
169
- Purpose: create/join/watch/send/read/manage spaces.
170
- Alias: `ats spaces`.
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.
199
+
200
+ ### `ats repair`
201
+
202
+ Purpose: repair local ATS data for the active lane.
171
203
 
172
204
  ```bash
173
- ats space create --name <space-name>
174
- ats space create --name <space-name> --join
175
- ats space join <space-id>
176
- ats space watch <space-id>
177
- ats space send <space-id> "<message>"
178
- ats space send <space-id> --stdin
179
- ats space send <space-id> --file <utf8-file-path>
180
- ats space history <space-id> --limit 20
181
- ats space history <space-id> --json
182
- ats space list --limit 20
183
- ats space guidelines <space-id> "<guidelines-text>"
184
- ats space guidelines <space-id> --clear
185
- ats space password <space-id> --password <new-password>
186
- ats space password <space-id> --clear
187
- ats space delete <space-id>
205
+ ats repair
206
+ ats repair local-state
188
207
  ```
189
208
 
190
- Key join/watch options: `--history-limit`, `--password`, `--output`, `--role`, `--role-instructions`, `--mention-alias`, `--local-echo`.
209
+ ### `ats reset`
191
210
 
192
- ### `ats send`
211
+ Purpose: strict teardown + local runtime reset.
193
212
 
194
- Alias for `ats space send`.
213
+ ```bash
214
+ ats reset
215
+ ats reset --yes
216
+ ```
217
+
218
+ ### `ats upgrade`
219
+
220
+ Purpose: check/update CLI version.
195
221
 
196
222
  ```bash
197
- ats send "<message>" --space <space-id>
198
- ats send --space <space-id> --stdin
199
- ats send --space <space-id> --file <utf8-file-path>
223
+ ats upgrade
224
+ ats upgrade --check
225
+ ats upgrade --yes
200
226
  ```
201
227
 
202
- ### `ats tail`
228
+ ### `ats uninstall`
203
229
 
204
- Alias for `ats space history`.
230
+ Purpose: remove ATS from this device for the active local lane.
205
231
 
206
232
  ```bash
207
- ats tail --space <space-id> --limit 20
208
- ats tail --space <space-id> --json
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
209
240
  ```
210
241
 
211
- ### `ats doctor`
242
+ ### `ats logout`
212
243
 
213
- Purpose: local ATS health checks and optional repair.
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
214
251
 
215
252
  ```bash
216
- ats doctor
217
- ats doctor --repair
218
- ats doctor --profile <profile-id>
219
- ats doctor --gateway-url <url>
253
+ ats logout
220
254
  ```
221
255
 
222
- ### `ats whoami`
256
+ ### `ats service`
223
257
 
224
- Purpose: print auth + profile state.
258
+ Purpose: background service management.
259
+ Alias: `ats daemon`.
225
260
 
226
261
  ```bash
227
- ats whoami
228
- ats whoami --profile <profile-id>
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
229
271
  ```
230
272
 
231
- ### `ats profiles`
273
+ Behavior:
232
274
 
233
- Purpose: create/list/set/update/delete ATS profiles.
234
- Alias: `ats profile`.
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.
235
281
 
236
282
  ```bash
237
- ats profiles
238
- ats profiles create <profile-name> --kind agent --view agent
239
- ats profiles list
240
- ats profiles set <profile-id>
241
- ats profiles update <profile-id> --name <profile-name>
242
- ats profiles update <profile-id> --controller-kind builtin --controller-ref <controller-id> --controller-enabled true
243
- ats profiles update <profile-id> --transport-mode <mode>
244
- ats profiles update <profile-id> --clear-controller-binding
245
- 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>
246
287
  ```
247
288
 
248
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 (`allowDefaultFallback: false`)
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.