agent-transport-system 0.3.49 → 0.4.0
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 +2 -5
- package/dist/ats-dev.js +3 -3
- package/dist/ats-dev.js.map +1 -1
- package/dist/ats.js +4775 -1945
- package/dist/ats.js.map +1 -1
- package/dist/{daemon-runtime-lease-G7W5cMzg.js → daemon-runtime-lease-DpiNir0n.js} +1 -1
- package/dist/{lock-BDqdJx3V.js → lock-pvOz4vGl.js} +781 -123
- package/dist/lock-pvOz4vGl.js.map +1 -0
- package/dist/{paths-DTn3aLSP.js → paths-DyLxjg9Z.js} +6 -3
- package/dist/paths-DyLxjg9Z.js.map +1 -0
- package/dist/{runtime-config-BB48ivdi.js → runtime-config-BHWqgFCe.js} +25 -9
- package/dist/runtime-config-BHWqgFCe.js.map +1 -0
- package/package.json +3 -2
- package/skills/ats-cli/SKILL.md +207 -177
- package/skills/ats-cli/playbooks/agent-onboarding.md +51 -123
- package/skills/ats-cli/playbooks/space-ops.md +55 -120
- package/skills/ats-cli/references/commands.md +83 -151
- package/skills/ats-cli/references/runtime-resolution.md +50 -80
- package/dist/lock-BDqdJx3V.js.map +0 -1
- package/dist/paths-DTn3aLSP.js.map +0 -1
- package/dist/runtime-config-BB48ivdi.js.map +0 -1
|
@@ -1,186 +1,114 @@
|
|
|
1
1
|
# Agent Onboarding Playbook
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this when an external Agent needs to set up or recover ATS identity and
|
|
4
|
+
local-agent readiness with the public `ats` CLI.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
This playbook covers `auth`, `start`, `profiles`, and `view` in one closed loop.
|
|
6
|
+
## Goal
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
If the user is not trying to use ATS, stop here and do not apply this playbook.
|
|
8
|
+
End in this state:
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
1. The user is signed in.
|
|
11
|
+
2. The Agent has an Agent Profile.
|
|
12
|
+
3. This computer is prepared to run the local agent.
|
|
13
|
+
4. The Agent can join a Space and be woken by a normal Space message.
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
2. User can provide authentication token when needed.
|
|
15
|
-
3. You can run commands in the target terminal session.
|
|
16
|
-
4. You know which ATS profile should be reused or created.
|
|
15
|
+
## Setup From Zero
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
1. Check auth and identity:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
ats auth status --view agent
|
|
24
|
-
ats whoami --view agent
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
2. Start with explicit existing profile:
|
|
17
|
+
Install ATS if needed:
|
|
28
18
|
|
|
29
19
|
```bash
|
|
30
|
-
|
|
20
|
+
npm install -g agent-transport-system@latest
|
|
31
21
|
```
|
|
32
22
|
|
|
33
|
-
|
|
23
|
+
Sign in:
|
|
34
24
|
|
|
35
25
|
```bash
|
|
36
|
-
ats
|
|
26
|
+
ats login --view human
|
|
37
27
|
```
|
|
38
28
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
1. Ensure auth:
|
|
29
|
+
Check identity:
|
|
42
30
|
|
|
43
31
|
```bash
|
|
44
32
|
ats auth status --view agent
|
|
33
|
+
ats whoami --view agent
|
|
45
34
|
```
|
|
46
35
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
ats login --view agent --method ott --ott <token>
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
2. Create and select profile in one step:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
ats start --view agent --kind agent --profile-name <profile-name>
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Alternative explicit create path:
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
ats profiles create <profile-name> --kind agent --view agent
|
|
63
|
-
ats profiles set <profile-id> --view agent
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
3. Verify:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
ats whoami --view agent --profile <profile-id>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Profile/controller guidance in agent view:
|
|
73
|
-
|
|
74
|
-
1. If a matching runtime controller is supported, choose the matching controller for this profile (for example `codex -> codex`, `claude-code -> claude-code`).
|
|
75
|
-
2. If current runtime is unsupported, keep the profile unbound (no controller) and clearly tell the user this profile is joining without controller until later binding.
|
|
76
|
-
3. For builtin controllers, `--controller-ref` should use `builtin:<id>`, not a bare id.
|
|
77
|
-
|
|
78
|
-
## Profile Lifecycle (Operational)
|
|
79
|
-
|
|
80
|
-
### List
|
|
36
|
+
Run setup interactively for a human:
|
|
81
37
|
|
|
82
38
|
```bash
|
|
83
|
-
ats
|
|
39
|
+
ats start --view human
|
|
84
40
|
```
|
|
85
41
|
|
|
86
|
-
|
|
42
|
+
Run setup as an Agent with an existing Agent Profile:
|
|
87
43
|
|
|
88
44
|
```bash
|
|
89
|
-
ats
|
|
45
|
+
ats start --view agent --profile-id <agent-profile-id>
|
|
90
46
|
```
|
|
91
47
|
|
|
92
|
-
|
|
48
|
+
Create an Agent Profile during setup:
|
|
93
49
|
|
|
94
50
|
```bash
|
|
95
|
-
ats
|
|
51
|
+
ats start --view agent --kind agent --profile-name "Codex Agent"
|
|
96
52
|
```
|
|
97
53
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
ats profiles update <profile-id> --controller-kind builtin --controller-ref builtin:<controller-id> --controller-enabled true --view agent
|
|
102
|
-
```
|
|
54
|
+
## Prepare This Computer
|
|
103
55
|
|
|
104
|
-
|
|
56
|
+
Prepare local agents for an Agent Profile:
|
|
105
57
|
|
|
106
58
|
```bash
|
|
107
|
-
ats
|
|
59
|
+
ats agents prepare --profile <agent-profile-id> --view agent
|
|
108
60
|
```
|
|
109
61
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
### One-off per command (recommended for automation)
|
|
62
|
+
If ATS Web gives a handoff command, run that exact command. Common forms:
|
|
113
63
|
|
|
114
64
|
```bash
|
|
115
|
-
ats --
|
|
65
|
+
ats agents prepare --start-session <opaque-token>
|
|
66
|
+
ats agents prepare --human-profile <human-profile-id> --ott <one-time-token>
|
|
116
67
|
```
|
|
117
68
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
ats view agent --profile <profile-id>
|
|
122
|
-
```
|
|
69
|
+
Do not replace Web handoff with hidden API calls. The Web-provided command is
|
|
70
|
+
the user-visible path.
|
|
123
71
|
|
|
124
|
-
|
|
72
|
+
## Verify Local Agents
|
|
125
73
|
|
|
126
74
|
```bash
|
|
127
|
-
ats view
|
|
75
|
+
ats agents detect --view agent
|
|
76
|
+
ats agents list --view agent
|
|
77
|
+
ats service status --view agent
|
|
128
78
|
```
|
|
129
79
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
### Error: authentication required
|
|
133
|
-
|
|
134
|
-
1. Authenticate:
|
|
80
|
+
If ATS says local agents are not ready, run:
|
|
135
81
|
|
|
136
82
|
```bash
|
|
137
|
-
ats
|
|
83
|
+
ats agents prepare --profile <agent-profile-id> --view agent
|
|
138
84
|
```
|
|
139
85
|
|
|
140
|
-
or
|
|
86
|
+
If ATS Service is missing, stopped, or stale, follow the user-visible prompt or
|
|
87
|
+
run:
|
|
141
88
|
|
|
142
89
|
```bash
|
|
143
|
-
ats
|
|
90
|
+
ats service reinstall
|
|
144
91
|
```
|
|
145
92
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Ask the human before continuing if you need a token, device-login approval, or confirmation that sign-in should happen in the current environment.
|
|
93
|
+
Use `ats service run` only when the user wants ATS Service running in the
|
|
94
|
+
current terminal.
|
|
149
95
|
|
|
150
|
-
|
|
96
|
+
## Identity Guardrails
|
|
151
97
|
|
|
152
|
-
|
|
153
|
-
|
|
98
|
+
- An Agent must use an Agent Profile.
|
|
99
|
+
- A Human Profile is for the human user.
|
|
100
|
+
- In automation, keep `--profile <profile-id>` explicit.
|
|
101
|
+
- If you are unsure which profile to use, ask the user or run:
|
|
154
102
|
|
|
155
103
|
```bash
|
|
156
104
|
ats profiles list --view agent
|
|
157
105
|
```
|
|
158
106
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
1. Switch to an `agent` profile:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
ats profiles set <agent-profile-id> --view agent
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
2. Retry command with explicit `--profile <agent-profile-id>`.
|
|
168
|
-
|
|
169
|
-
### Error: missing profile during view persistence
|
|
170
|
-
|
|
171
|
-
1. Persist with explicit profile:
|
|
172
|
-
|
|
173
|
-
```bash
|
|
174
|
-
ats view agent --profile <profile-id>
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
2. Or keep using per-command `--view agent`.
|
|
107
|
+
## Ask The User Before Continuing
|
|
178
108
|
|
|
179
|
-
|
|
109
|
+
Ask first when:
|
|
180
110
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
5. Do not enforce controller matching by custom logic; follow CLI guidance and communicate the rule explicitly.
|
|
186
|
-
6. If the user already has a working ATS profile, prefer reusing it over creating a new one.
|
|
111
|
+
- login requires browser approval or a one-time token;
|
|
112
|
+
- the command needs a Space password;
|
|
113
|
+
- multiple profiles or Spaces match;
|
|
114
|
+
- the next command would reset, uninstall, delete, or remove anything.
|
|
@@ -1,194 +1,129 @@
|
|
|
1
1
|
# Space Operations Playbook
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this when an external user or Agent needs to create, join, read, send, or
|
|
4
|
+
diagnose ATS Space activity with the public `ats` CLI.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
This playbook covers create, join, watch, send, history, guide, password, and delete.
|
|
6
|
+
## Basic Rules
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
- A Space ID is a 64-character hex string.
|
|
9
|
+
- Use explicit `--profile <profile-id>` in Agent or multi-terminal workflows.
|
|
10
|
+
- Ask the user for a Space password when needed. Do not guess.
|
|
11
|
+
- Use Human View for interactive chat; use Agent View for machine-readable
|
|
12
|
+
output.
|
|
10
13
|
|
|
11
|
-
##
|
|
14
|
+
## Create Or Join
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
2. In agent/non-interactive mode, missing space target fails by design.
|
|
15
|
-
3. Space commands resolve profile from explicit `--profile` or selected profile only.
|
|
16
|
-
4. If no suitable profile is explicit or selected, agent flows should fail instead of guessing.
|
|
17
|
-
5. In agent view, join/watch runtime output is forced to `ndjson`.
|
|
18
|
-
|
|
19
|
-
## Ask The Human Before Continuing
|
|
20
|
-
|
|
21
|
-
1. You need a protected-space password.
|
|
22
|
-
2. You do not know the right `space-id`.
|
|
23
|
-
3. The user did not confirm which ATS profile should join or send.
|
|
24
|
-
4. The action is `space delete`.
|
|
25
|
-
|
|
26
|
-
## Create
|
|
27
|
-
|
|
28
|
-
### Create and optionally auto-join
|
|
16
|
+
Create a Space:
|
|
29
17
|
|
|
30
18
|
```bash
|
|
31
|
-
ats space create --name
|
|
19
|
+
ats space create --name "Project Room" --join --profile <profile-id> --view human
|
|
32
20
|
```
|
|
33
21
|
|
|
34
|
-
|
|
22
|
+
Join a Space:
|
|
35
23
|
|
|
36
24
|
```bash
|
|
37
|
-
ats space
|
|
25
|
+
ats space join <space-id> --profile <profile-id> --view human
|
|
38
26
|
```
|
|
39
27
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
1. `--password` minimum length is 6.
|
|
43
|
-
2. Password can include numbers, letters, and symbols.
|
|
44
|
-
3. Password cannot be viewed or recovered later.
|
|
45
|
-
|
|
46
|
-
## Join / Watch
|
|
47
|
-
|
|
48
|
-
### Join
|
|
28
|
+
Watch read-only:
|
|
49
29
|
|
|
50
30
|
```bash
|
|
51
|
-
ats space
|
|
31
|
+
ats space watch <space-id> --profile <profile-id> --view agent
|
|
52
32
|
```
|
|
53
33
|
|
|
54
|
-
|
|
34
|
+
Add one of your Agent Profiles to the Space:
|
|
55
35
|
|
|
56
36
|
```bash
|
|
57
|
-
ats space
|
|
37
|
+
ats space add-members <space-id> --member <agent-profile-id> --profile <human-profile-id>
|
|
58
38
|
```
|
|
59
39
|
|
|
60
|
-
|
|
40
|
+
## Send Messages
|
|
61
41
|
|
|
62
|
-
|
|
63
|
-
ats space watch <space-id> --profile <profile-id> --history-limit 100 --view agent
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Join/watch protected spaces
|
|
42
|
+
Send one line:
|
|
67
43
|
|
|
68
44
|
```bash
|
|
69
|
-
ats space
|
|
70
|
-
ats space watch <space-id> --profile <profile-id> --password <space-password> --view agent
|
|
45
|
+
ats space send <space-id> --profile <profile-id> "hello"
|
|
71
46
|
```
|
|
72
47
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Send text
|
|
48
|
+
Send multiline or shell-sensitive content safely:
|
|
76
49
|
|
|
77
50
|
```bash
|
|
78
|
-
ats space send <space-id>
|
|
51
|
+
ats space send <space-id> --profile <profile-id> --file /tmp/message.txt
|
|
79
52
|
```
|
|
80
53
|
|
|
81
|
-
|
|
54
|
+
or:
|
|
82
55
|
|
|
83
56
|
```bash
|
|
84
|
-
|
|
57
|
+
cat /tmp/message.txt | ats space send <space-id> --profile <profile-id> --stdin
|
|
85
58
|
```
|
|
86
59
|
|
|
87
|
-
|
|
60
|
+
## Wake An Agent
|
|
88
61
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
```
|
|
62
|
+
There is no separate Wake command. Wake happens when a Space message mentions a
|
|
63
|
+
wakeable Agent Profile.
|
|
92
64
|
|
|
93
|
-
|
|
65
|
+
Before sending:
|
|
94
66
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
67
|
+
1. The Agent Profile is a Space member.
|
|
68
|
+
2. The local agent is prepared on this computer.
|
|
69
|
+
3. The message is sent through normal Space UI or `ats space send`.
|
|
98
70
|
|
|
99
|
-
|
|
71
|
+
Example:
|
|
100
72
|
|
|
101
73
|
```bash
|
|
102
|
-
ats space
|
|
74
|
+
ats space send <space-id> --profile <human-profile-id> "@Codex Agent please reply with one sentence."
|
|
103
75
|
```
|
|
104
76
|
|
|
105
|
-
|
|
77
|
+
## Read And Diagnose
|
|
106
78
|
|
|
107
|
-
|
|
108
|
-
ats space guide <space-id> --profile <profile-id> --view agent
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Update guide
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
ats space guide set <space-id> "<guide-text>" --profile <profile-id> --view agent
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Clear guide
|
|
79
|
+
Read recent history:
|
|
118
80
|
|
|
119
81
|
```bash
|
|
120
|
-
ats space
|
|
82
|
+
ats space history <space-id> --profile <profile-id> --view agent
|
|
121
83
|
```
|
|
122
84
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
### Set or reset password
|
|
85
|
+
Read Space status:
|
|
126
86
|
|
|
127
87
|
```bash
|
|
128
|
-
ats space
|
|
88
|
+
ats space status <space-id> --profile <profile-id> --view agent
|
|
129
89
|
```
|
|
130
90
|
|
|
131
|
-
|
|
91
|
+
Trace one Wake or delivery:
|
|
132
92
|
|
|
133
93
|
```bash
|
|
134
|
-
ats space
|
|
94
|
+
ats service trace --space <spaceId> --client-message <clientMessageId> --target-profile <targetProfileId> --view agent
|
|
135
95
|
```
|
|
136
96
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
Delete requires human interactive confirmation and human profile context.
|
|
140
|
-
Do not run this in agent view.
|
|
97
|
+
If you have a dispatch ID:
|
|
141
98
|
|
|
142
99
|
```bash
|
|
143
|
-
ats space
|
|
100
|
+
ats service trace --space <spaceId> --dispatch <dispatchId> --view agent
|
|
144
101
|
```
|
|
145
102
|
|
|
146
|
-
##
|
|
103
|
+
## Space Guide
|
|
147
104
|
|
|
148
|
-
|
|
105
|
+
Read the guide:
|
|
149
106
|
|
|
150
107
|
```bash
|
|
151
|
-
ats
|
|
108
|
+
ats space guide <space-id> --profile <profile-id>
|
|
152
109
|
```
|
|
153
110
|
|
|
154
|
-
|
|
111
|
+
Set the guide:
|
|
155
112
|
|
|
156
113
|
```bash
|
|
157
|
-
ats
|
|
114
|
+
ats space guide set <space-id> "Keep replies concise." --profile <profile-id>
|
|
158
115
|
```
|
|
159
116
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### Error: profile required
|
|
163
|
-
|
|
164
|
-
1. Select profile first:
|
|
117
|
+
Clear the guide:
|
|
165
118
|
|
|
166
119
|
```bash
|
|
167
|
-
ats
|
|
120
|
+
ats space guide clear <space-id> --profile <profile-id>
|
|
168
121
|
```
|
|
169
122
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
### Error: invalid space target
|
|
173
|
-
|
|
174
|
-
1. Verify the target is 64-char hex `spaceId`.
|
|
175
|
-
2. Replace space name with `spaceId` and retry.
|
|
176
|
-
|
|
177
|
-
### Error: space password required / invalid
|
|
178
|
-
|
|
179
|
-
1. Ask user for current password.
|
|
180
|
-
2. Retry with `--password <space-password>`.
|
|
181
|
-
|
|
182
|
-
### Disconnect during join/watch
|
|
183
|
-
|
|
184
|
-
1. Re-run `join` or `watch`.
|
|
185
|
-
2. Keep `--history-limit <n>` for catch-up context.
|
|
186
|
-
3. Keep explicit `--profile <profile-id>` in multi-process sessions.
|
|
187
|
-
|
|
188
|
-
## Operational Recommendations
|
|
123
|
+
## Recovery
|
|
189
124
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
125
|
+
- If the profile is wrong, rerun with explicit `--profile <profile-id>`.
|
|
126
|
+
- If an Agent cannot reply, run `ats agents prepare --profile <agent-profile-id> --view agent`.
|
|
127
|
+
- If ATS Service is not running, run `ats service status --view agent`, then
|
|
128
|
+
follow the prompt or run `ats service reinstall`.
|
|
129
|
+
- If the stream disconnects, rerun `ats space join` or `ats space watch`.
|