@phnx-labs/agents-cli 1.22.45 → 1.22.47

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.
Files changed (177) hide show
  1. package/CHANGELOG.md +303 -0
  2. package/LICENSE +102 -182
  3. package/README.md +54 -17
  4. package/dist/cli/command-registry.d.ts +2 -1
  5. package/dist/cli/command-registry.js +6 -2
  6. package/dist/commands/accounts.js +56 -12
  7. package/dist/commands/auth.d.ts +2 -0
  8. package/dist/commands/auth.js +229 -0
  9. package/dist/commands/browser-sessions-picker.js +9 -7
  10. package/dist/commands/browser.js +266 -15
  11. package/dist/commands/config.js +26 -4
  12. package/dist/commands/cost.d.ts +1 -1
  13. package/dist/commands/detach.d.ts +13 -0
  14. package/dist/commands/detach.js +11 -8
  15. package/dist/commands/exec.js +55 -38
  16. package/dist/commands/feed-watch.d.ts +2 -0
  17. package/dist/commands/feed-watch.js +28 -0
  18. package/dist/commands/feed.js +27 -0
  19. package/dist/commands/feedback.js +3 -19
  20. package/dist/commands/insights.d.ts +1 -1
  21. package/dist/commands/insights.js +2 -2
  22. package/dist/commands/lease.js +3 -3
  23. package/dist/commands/routines.js +1 -1
  24. package/dist/commands/sessions-picker-factory.d.ts +2 -1
  25. package/dist/commands/sessions-picker-factory.js +1 -1
  26. package/dist/commands/sessions-stop.d.ts +24 -0
  27. package/dist/commands/sessions-stop.js +66 -0
  28. package/dist/commands/sessions-trace.d.ts +82 -0
  29. package/dist/commands/sessions-trace.js +387 -0
  30. package/dist/commands/sessions.js +4 -0
  31. package/dist/commands/ssh.d.ts +15 -0
  32. package/dist/commands/ssh.js +194 -16
  33. package/dist/commands/teams.js +34 -2
  34. package/dist/commands/view.d.ts +2 -0
  35. package/dist/commands/view.js +19 -32
  36. package/dist/commands/watchdog.js +9 -14
  37. package/dist/lib/account-capabilities.d.ts +4 -0
  38. package/dist/lib/account-capabilities.js +13 -9
  39. package/dist/lib/account-registry.d.ts +2 -0
  40. package/dist/lib/account-registry.js +30 -2
  41. package/dist/lib/accounting/rotate.d.ts +9 -0
  42. package/dist/lib/accounting/rotate.js +12 -2
  43. package/dist/lib/accounting/usage.d.ts +92 -6
  44. package/dist/lib/accounting/usage.js +329 -75
  45. package/dist/lib/agent-modes.js +29 -1
  46. package/dist/lib/agent-spec/agents.d.ts +4 -3
  47. package/dist/lib/agent-spec/agents.js +20 -7
  48. package/dist/lib/analytics/mix-commands.d.ts +1 -1
  49. package/dist/lib/analytics/mix-commands.js +2 -2
  50. package/dist/lib/auth-health.d.ts +13 -3
  51. package/dist/lib/auth-health.js +50 -8
  52. package/dist/lib/browser/devices.d.ts +19 -0
  53. package/dist/lib/browser/devices.js +23 -0
  54. package/dist/lib/browser/ipc.d.ts +1 -1
  55. package/dist/lib/browser/ipc.js +33 -7
  56. package/dist/lib/browser/profiles.d.ts +106 -1
  57. package/dist/lib/browser/profiles.js +300 -17
  58. package/dist/lib/browser/remote-control.d.ts +26 -2
  59. package/dist/lib/browser/remote-control.js +33 -3
  60. package/dist/lib/browser/runtime-state.d.ts +9 -0
  61. package/dist/lib/browser/runtime-state.js +24 -8
  62. package/dist/lib/browser/service.d.ts +37 -0
  63. package/dist/lib/browser/service.js +78 -20
  64. package/dist/lib/browser/sessions-list.d.ts +1 -3
  65. package/dist/lib/browser/sessions-list.js +3 -16
  66. package/dist/lib/browser/types.d.ts +12 -1
  67. package/dist/lib/cli-resources.js +17 -15
  68. package/dist/lib/codex-policy.d.ts +11 -1
  69. package/dist/lib/codex-policy.js +20 -5
  70. package/dist/lib/config-keys.d.ts +4 -3
  71. package/dist/lib/config-keys.js +17 -7
  72. package/dist/lib/daemon/runner.js +15 -2
  73. package/dist/lib/daemon-ticks.js +2 -2
  74. package/dist/lib/device-config.d.ts +25 -8
  75. package/dist/lib/device-config.js +90 -17
  76. package/dist/lib/devices/config-migration.d.ts +7 -0
  77. package/dist/lib/devices/config-migration.js +67 -3
  78. package/dist/lib/devices/harness-inventory.js +20 -3
  79. package/dist/lib/devices/health.d.ts +27 -2
  80. package/dist/lib/devices/health.js +39 -9
  81. package/dist/lib/devices/interactive-host.d.ts +15 -0
  82. package/dist/lib/devices/interactive-host.js +53 -0
  83. package/dist/lib/devices/registry.d.ts +61 -4
  84. package/dist/lib/devices/registry.js +94 -38
  85. package/dist/lib/devices/stats-cache.d.ts +6 -0
  86. package/dist/lib/devices/stats-cache.js +10 -2
  87. package/dist/lib/exec.d.ts +25 -3
  88. package/dist/lib/exec.js +75 -22
  89. package/dist/lib/feed/answer.d.ts +29 -0
  90. package/dist/lib/feed/answer.js +145 -0
  91. package/dist/lib/feed/attention.d.ts +83 -0
  92. package/dist/lib/feed/attention.js +0 -0
  93. package/dist/lib/feed/feed.d.ts +109 -0
  94. package/dist/lib/feed/feed.js +154 -3
  95. package/dist/lib/feed/pr-status.d.ts +14 -0
  96. package/dist/lib/feed/pr-status.js +47 -0
  97. package/dist/lib/feed/watch.d.ts +59 -0
  98. package/dist/lib/feed/watch.js +180 -0
  99. package/dist/lib/fleet/capture.js +6 -0
  100. package/dist/lib/fleet/remote-login.js +8 -3
  101. package/dist/lib/fleet/types.d.ts +17 -0
  102. package/dist/lib/harness/adapter.d.ts +11 -0
  103. package/dist/lib/harness/adapters/claude.js +38 -24
  104. package/dist/lib/harness/adapters/codex.js +2 -4
  105. package/dist/lib/hooks/cache.js +8 -0
  106. package/dist/lib/hooks/match.d.ts +3 -0
  107. package/dist/lib/hooks/match.js +25 -0
  108. package/dist/lib/hosts/passthrough.js +16 -0
  109. package/dist/lib/hosts/registry.js +7 -0
  110. package/dist/lib/identity/client.d.ts +53 -0
  111. package/dist/lib/identity/client.js +106 -0
  112. package/dist/lib/identity/index.d.ts +115 -0
  113. package/dist/lib/identity/index.js +82 -0
  114. package/dist/lib/menubar/MenubarHelper.app/Contents/CodeResources +0 -0
  115. package/dist/lib/menubar/MenubarHelper.app/Contents/MacOS/MenubarHelper +0 -0
  116. package/dist/lib/menubar/install-menubar.d.ts +13 -0
  117. package/dist/lib/menubar/install-menubar.js +26 -2
  118. package/dist/lib/open-url.d.ts +60 -2
  119. package/dist/lib/open-url.js +167 -12
  120. package/dist/lib/probe.d.ts +8 -0
  121. package/dist/lib/probe.js +105 -0
  122. package/dist/lib/refresh-coordinator.d.ts +1 -1
  123. package/dist/lib/refresh-coordinator.js +1 -1
  124. package/dist/lib/secrets/Agents CLI.app/Contents/CodeResources +0 -0
  125. package/dist/lib/secrets/Agents CLI.app/Contents/Info.plist +2 -0
  126. package/dist/lib/secrets/Agents CLI.app/Contents/MacOS/Agents CLI +0 -0
  127. package/dist/lib/secrets/Agents CLI.app/Contents/Resources/AppIcon.icns +0 -0
  128. package/dist/lib/secrets/Agents CLI.app/Contents/_CodeSignature/CodeResources +13 -1
  129. package/dist/lib/session/active.d.ts +67 -0
  130. package/dist/lib/session/active.js +69 -1
  131. package/dist/lib/session/db.js +4 -2
  132. package/dist/lib/session/discover.d.ts +2 -0
  133. package/dist/lib/session/discover.js +12 -6
  134. package/dist/lib/session/prompt.d.ts +35 -0
  135. package/dist/lib/session/prompt.js +56 -0
  136. package/dist/lib/session/remote/watch.d.ts +1 -1
  137. package/dist/lib/session/remote/watch.js +6 -1
  138. package/dist/lib/session/render.js +7 -3
  139. package/dist/lib/session/session-cache.js +5 -1
  140. package/dist/lib/session/trajectory-compare.d.ts +47 -0
  141. package/dist/lib/session/trajectory-compare.js +116 -0
  142. package/dist/lib/session/trajectory-html.d.ts +15 -0
  143. package/dist/lib/session/trajectory-html.js +750 -0
  144. package/dist/lib/session/trajectory-lineage.d.ts +92 -0
  145. package/dist/lib/session/trajectory-lineage.js +195 -0
  146. package/dist/lib/session/trajectory-text.d.ts +37 -0
  147. package/dist/lib/session/trajectory-text.js +277 -0
  148. package/dist/lib/session/trajectory.d.ts +102 -0
  149. package/dist/lib/session/trajectory.js +335 -0
  150. package/dist/lib/startup/command-registry.d.ts +5 -2
  151. package/dist/lib/startup/command-registry.js +8 -5
  152. package/dist/lib/state.d.ts +1 -1
  153. package/dist/lib/state.js +4 -2
  154. package/dist/lib/teams/agents.js +9 -0
  155. package/dist/lib/terminal/inject.d.ts +19 -0
  156. package/dist/lib/terminal/inject.js +19 -9
  157. package/dist/lib/tmux/session.d.ts +46 -13
  158. package/dist/lib/tmux/session.js +173 -27
  159. package/dist/lib/types.d.ts +16 -0
  160. package/dist/lib/usage-backoff.d.ts +2 -1
  161. package/dist/lib/usage-backoff.js +60 -19
  162. package/dist/lib/usage-refresh.d.ts +17 -3
  163. package/dist/lib/usage-refresh.js +57 -11
  164. package/dist/lib/view-types.d.ts +2 -2
  165. package/dist/lib/watchdog/log.d.ts +1 -1
  166. package/dist/lib/watchdog/log.js +1 -1
  167. package/dist/lib/watchdog/runner.d.ts +36 -45
  168. package/dist/lib/watchdog/runner.js +150 -119
  169. package/dist/lib/watchdog/service.d.ts +0 -1
  170. package/dist/lib/watchdog/service.js +0 -1
  171. package/dist/lib/watchdog/watchdog-agent.d.ts +38 -0
  172. package/dist/lib/watchdog/watchdog-agent.js +59 -0
  173. package/dist/lib/watchdog/watchdog.d.ts +11 -2
  174. package/dist/lib/watchdog/watchdog.js +37 -104
  175. package/package.json +2 -2
  176. package/dist/commands/usage.d.ts +0 -27
  177. package/dist/commands/usage.js +0 -96
package/LICENSE CHANGED
@@ -1,185 +1,105 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction, and
10
- distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
- owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all other entities
16
- that control, are controlled by, or are under common control with that entity.
17
- For the purposes of this definition, "control" means (i) the power, direct or
18
- indirect, to cause the direction or management of such entity, whether by
19
- contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
- outstanding shares, or (iii) beneficial ownership of such entity.
21
-
22
- "You" (or "Your") shall mean an individual or Legal Entity exercising
23
- permissions granted by this License.
24
-
25
- "Source" form shall mean the preferred form for making modifications, including
26
- but not limited to software source code, documentation source, and configuration
27
- files.
28
-
29
- "Object" form shall mean any form resulting from mechanical transformation or
30
- translation of a Source form, including but not limited to compiled object code,
31
- generated documentation, and conversions to other media types.
32
-
33
- "Work" shall mean the work of authorship, whether in Source or Object form,
34
- made available under the License, as indicated by a copyright notice that is
35
- included in or attached to the work (an example is provided in the Appendix
36
- below).
37
-
38
- "Derivative Works" shall mean any work, whether in Source or Object form, that
39
- is based on (or derived from) the Work and for which the editorial revisions,
40
- annotations, elaborations, or other modifications represent, as a whole, an
41
- original work of authorship. For the purposes of this License, Derivative Works
42
- shall not include works that remain separable from, or merely link (or bind by
43
- name) to the interfaces of, the Work and Derivative Works thereof.
44
-
45
- "Contribution" shall mean any work of authorship, including the original
46
- version of the Work and any modifications or additions to that Work or
47
- Derivative Works thereof, that is intentionally submitted to Licensor for
48
- inclusion in the Work by the copyright owner or by an individual or Legal Entity
49
- authorized to submit on behalf of the copyright owner. For the purposes of this
50
- definition, "submitted" means any form of electronic, verbal, or written
51
- communication sent to the Licensor or its representatives, including but not
52
- limited to communication on electronic mailing lists, source code control
53
- systems, and issue tracking systems that are managed by, or on behalf of, the
54
- Licensor for the purpose of discussing and improving the Work, but excluding
55
- communication that is conspicuously marked or otherwise designated in writing by
56
- the copyright owner as "Not a Contribution."
57
-
58
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
59
- of whom a Contribution has been received by Licensor and subsequently
60
- incorporated within the Work.
61
-
62
- 2. Grant of Copyright License. Subject to the terms and conditions of this
63
- License, each Contributor hereby grants to You a perpetual, worldwide,
64
- non-exclusive, no-charge, royalty-free, irrevocable copyright license to
65
- reproduce, prepare Derivative Works of, publicly display, publicly perform,
66
- sublicense, and distribute the Work and such Derivative Works in Source or
67
- Object form.
68
-
69
- 3. Grant of Patent License. Subject to the terms and conditions of this License,
70
- each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
71
- no-charge, royalty-free, irrevocable (except as stated in this section) patent
72
- license to make, have made, use, offer to sell, sell, import, and otherwise
73
- transfer the Work, where such license applies only to those patent claims
74
- licensable by such Contributor that are necessarily infringed by their
75
- Contribution(s) alone or by combination of their Contribution(s) with the Work
76
- to which such Contribution(s) was submitted. If You institute patent litigation
77
- against any entity (including a cross-claim or counterclaim in a lawsuit)
78
- alleging that the Work or a Contribution incorporated within the Work
79
- constitutes direct or contributory patent infringement, then any patent licenses
80
- granted to You under this License for that Work shall terminate as of the date
81
- such litigation is filed.
82
-
83
- 4. Redistribution. You may reproduce and distribute copies of the Work or
84
- Derivative Works thereof in any medium, with or without modifications, and in
85
- Source or Object form, provided that You meet the following conditions:
86
-
87
- (a) You must give any other recipients of the Work or Derivative Works a copy of
88
- this License; and
89
-
90
- (b) You must cause any modified files to carry prominent notices stating that
91
- You changed the files; and
92
-
93
- (c) You must retain, in the Source form of any Derivative Works that You
94
- distribute, all copyright, patent, trademark, and attribution notices from the
95
- Source form of the Work, excluding those notices that do not pertain to any part
96
- of the Derivative Works; and
97
-
98
- (d) If the Work includes a "NOTICE" text file as part of its distribution, then
99
- any Derivative Works that You distribute must include a readable copy of the
100
- attribution notices contained within such NOTICE file, excluding those notices
101
- that do not pertain to any part of the Derivative Works, in at least one of the
102
- following places: within a NOTICE text file distributed as part of the
103
- Derivative Works; within the Source form or documentation, if provided along
104
- with the Derivative Works; or, within a display generated by the Derivative
105
- Works, if and wherever such third-party notices normally appear.
106
-
107
- The contents of the NOTICE file are for informational purposes only and do not
108
- modify the License. You may add Your own attribution notices within Derivative
109
- Works that You distribute, alongside or as an addendum to the NOTICE text from
110
- the Work, provided that such additional attribution notices cannot be construed
111
- as modifying the License.
112
-
113
- You may add Your own copyright statement to Your modifications and may provide
114
- additional or different license terms and conditions for use, reproduction, or
115
- distribution of Your modifications, or for any such Derivative Works as a whole,
116
- provided Your use, reproduction, and distribution of the Work otherwise complies
117
- with the conditions stated in this License.
118
-
119
- 5. Submission of Contributions. Unless You explicitly state otherwise, any
120
- Contribution intentionally submitted for inclusion in the Work by You to the
121
- Licensor shall be under the terms and conditions of this License, without any
122
- additional terms or conditions. Notwithstanding the above, nothing herein shall
123
- supersede or modify the terms of any separate license agreement you may have
124
- executed with Licensor regarding such Contributions.
125
-
126
- 6. Trademarks. This License does not grant permission to use the trade names,
127
- trademarks, service marks, or product names of the Licensor, except as required
128
- for reasonable and customary use in describing the origin of the Work and
129
- reproducing the content of the NOTICE file.
130
-
131
- 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
132
- writing, Licensor provides the Work (and each Contributor provides its
133
- Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
134
- KIND, either express or implied, including, without limitation, any warranties or
135
- conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
136
- PARTICULAR PURPOSE. You are solely responsible for determining the
137
- appropriateness of using or redistributing the Work and assume any risks
138
- associated with Your exercise of permissions under this License.
139
-
140
- 8. Limitation of Liability. In no event and under no legal theory, whether in
141
- tort (including negligence), contract, or otherwise, unless required by
142
- applicable law (such as deliberate and grossly negligent acts) or agreed to in
143
- writing, shall any Contributor be liable to You for damages, including any
144
- direct, indirect, special, incidental, or consequential damages of any character
145
- arising as a result of this License or out of the use or inability to use the
146
- Work (including but not limited to damages for loss of goodwill, work stoppage,
147
- computer failure or malfunction, or any and all other commercial damages or
148
- losses), even if such Contributor has been advised of the possibility of such
149
- damages.
150
-
151
- 9. Accepting Warranty or Additional Liability. While redistributing the Work or
152
- Derivative Works thereof, You may choose to offer, and charge a fee for,
153
- acceptance of support, warranty, indemnity, or other liability obligations
154
- and/or rights consistent with this License. However, in accepting such
155
- obligations, You may act only on Your own behalf and on Your sole
156
- responsibility, not on behalf of any other Contributor, and only if You agree to
157
- indemnify, defend, and hold each Contributor harmless for any liability incurred
158
- by, or claims asserted against, such Contributor by reason of your accepting any
159
- such warranty or additional liability.
160
-
161
- END OF TERMS AND CONDITIONS
162
-
163
- APPENDIX: How to apply the Apache License to your work.
164
-
165
- To apply the Apache License to your work, attach the following boilerplate
166
- notice, with the fields enclosed by brackets "[]" replaced with your own
167
- identifying information. (Don't include the brackets!) The text should be
168
- enclosed in the appropriate comment syntax for the file format. We also
169
- recommend that a file or class name and description of purpose be included on
170
- the same "printed page" as the copyright notice for easier identification
171
- within third-party archives.
172
-
173
- Copyright [yyyy] [name of copyright owner]
174
-
175
- Licensed under the Apache License, Version 2.0 (the "License");
176
- you may not use this file except in compliance with the License.
1
+ # Functional Source License, Version 1.1, Apache 2.0 Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-Apache-2.0
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 Phoenix Horizon, Inc.
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
177
98
  You may obtain a copy of the License at
178
99
 
179
- http://www.apache.org/licenses/LICENSE-2.0
100
+ http://www.apache.org/licenses/LICENSE-2.0
180
101
 
181
- Unless required by applicable law or agreed to in writing, software
182
- distributed under the License is distributed on an "AS IS" BASIS,
183
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184
- See the License for the specific language governing permissions and
185
- limitations under the License.
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.
package/README.md CHANGED
@@ -54,7 +54,7 @@ agents setup status # readiness for browser, computer, fleet,
54
54
  agents run claude "explain this repo" # run any agent on your existing subscription
55
55
  ```
56
56
 
57
- `agents setup` is interactive and idempotent -- safe to re-run on any machine. Once core setup exists, it opens a status-aware menu for browser, computer, secrets, fleet, share, watchdog, and device preferences; each choice delegates to the same wizard available under `agents setup <capability>`. In CI or another non-TTY, bare setup prints the checklist without prompting. The `agi-cli.sh` one-liner installs this same canonical `@phnx-labs/agents-cli` package. Prefer bun? `bun install -g @phnx-labs/agents-cli` works too.
57
+ Everything here — and every other command in this README — is free and needs no account; the optional `agents auth login` exists only for [team spaces](#sign-in). `agents setup` is interactive and idempotent -- safe to re-run on any machine. Once core setup exists, it opens a status-aware menu for browser, computer, secrets, fleet, share, watchdog, and device preferences; each choice delegates to the same wizard available under `agents setup <capability>`. In CI or another non-TTY, bare setup prints the checklist without prompting. The `agi-cli.sh` one-liner installs this same canonical `@phnx-labs/agents-cli` package. Prefer bun? `bun install -g @phnx-labs/agents-cli` works too.
58
58
 
59
59
  Full path -- installing harnesses, logging in, smoke-testing `agents teams`, and setting up your own fleet: [`apps/cli/docs/QUICKSTART.md`](apps/cli/docs/QUICKSTART.md).
60
60
 
@@ -81,6 +81,7 @@ Also available as `ag` -- all commands work with both `agents` and `ag`.
81
81
  - [Plugins](#plugins)
82
82
  - [Make it yours](#make-it-yours)
83
83
  - [Browser](#browser)
84
+ - [Sign in](#sign-in)
84
85
  - [Accounts](#accounts)
85
86
  - [Secrets](#secrets)
86
87
  - [Routines](#routines)
@@ -223,8 +224,8 @@ Supports plan (read-only), edit, auto, and skip modes, effort levels, JSON outpu
223
224
  Treat `skip` as a last-resort escape hatch. In direct-exec runs (without `--acp`),
224
225
  agi-cli forwards the harness's native no-prompt flag; it does not add another
225
226
  safety layer. Prefer `auto` where it adds a safer automatic policy (smart classifier
226
- on Claude/Copilot, native high-auto mode on Droid, or interactive Kimi), or `edit`
227
- everywhere else. For headless Kimi, `edit`, `auto`, and `skip` all use the same
227
+ on Claude/Copilot, never-prompt over a sandbox on Codex, native high-auto mode on
228
+ Droid, or interactive Kimi), or `edit` everywhere else. For headless Kimi, `edit`, `auto`, and `skip` all use the same
228
229
  already-auto-approved `-p` behavior, so prefer `edit` rather than signaling a blanket
229
230
  bypass. Harnesses without a native bypass flag reject direct-exec `skip`.
230
231
 
@@ -246,11 +247,13 @@ permission requests at the ACP protocol layer: it selects `allow_always` when of
246
247
  otherwise the first permission option offered by the server. The same last-resort
247
248
  warning applies.
248
249
 
249
- Codex has no native smart-classifier mode, so `agents run codex --mode auto` resolves
250
- to sandboxed `edit` and can still prompt. When `--mode` is omitted for Codex, the same
251
- safe writable mode is used: the workspace, `~/.agents`, and regenerable toolchain caches
252
- are writable; network access is enabled; and approvals are requested on demand. An
253
- explicit `--mode plan` keeps the filesystem read-only while leaving network access on.
250
+ Codex has three managed permission profiles rather than a smart classifier. `edit`
251
+ and `auto` share one sandbox the workspace, `~/.agents`, and regenerable toolchain
252
+ caches are writable, and network access is enabled and differ only in approvals:
253
+ `edit` requests them on demand, while `auto` never prompts, so a sandbox-denied
254
+ command fails and the agent works around it instead of stopping on a dialog nobody
255
+ is watching. When `--mode` is omitted for Codex, `edit` is used. An explicit
256
+ `--mode plan` keeps the filesystem read-only while leaving network access on.
254
257
  `agents run codex --mode skip` is different:
255
258
  it bypasses approvals **and** removes the sandbox. `full` remains an alias for `skip`,
256
259
  but new scripts should use the explicit `skip` name.
@@ -294,6 +297,11 @@ agents sessions render a1b2c3d4 -o session.md
294
297
  # Or publish it as a link in one step (unlisted + redacted by default)
295
298
  agents sessions share a1b2c3d4
296
299
 
300
+ # Visualize a session as a trajectory -- tool-call waterfall, timing, stalls, errors
301
+ agents trace a1b2c3d4 # opens the HTML (a person at a terminal)
302
+ agents trace a1b2c3d4 --text --errors-only # compact text an agent reads in-context
303
+ agents sessions trace a1b2c3d4 --json # the versioned sessions-trace envelope
304
+
297
305
  # Just the last 3 turns, user messages only
298
306
  agents sessions a1b2c3d4 --last 3 --include user
299
307
 
@@ -433,6 +441,8 @@ agents feed --flat # one row per agent (legacy)
433
441
  agents feed --device mac-mini # scope the view to one or more hosts
434
442
  agents feed --local # skip the SSH fan-out
435
443
  agents feed --json # blocks stamped with their outcome key
444
+ agents feed watch --json # versioned agents + attention + activity NDJSON
445
+ agents feed answer <key> --choice 0 # first answer wins; route over the recorded reply rail
436
446
  agents feed post --title "Halfway done" "CI green, watching merge" # title + body
437
447
  ```
438
448
 
@@ -599,7 +609,7 @@ agents hosts check gpu-box # reachable? which agi-cli version?
599
609
 
600
610
  # Run there instead of locally
601
611
  agents run claude --device gpu-box "profile this build" # headless: follows live by default
602
- agents run claude --device gpu-box # no prompt → interactive TTY over SSH (tmux-backed)
612
+ agents run claude --device gpu-box # no prompt → direct interactive TTY over SSH
603
613
  agents accounts sync work --device gpu-box # portable provider account only; native OAuth stays local
604
614
  agents run claude --device auto "…" # affinity-pick host from 14d usage (harness stays claude)
605
615
  agents run claude --device auto "…" # same — auto is a host value, not a harness name
@@ -637,10 +647,12 @@ agents devices sync # ingest `tailscale status`
637
647
  agents devices ignore ipad # sync the dismissal via agents.yaml fleet.discovery
638
648
  agents repo push user # carry device decisions to the other machines
639
649
  agents repo pull user # pull and reconcile them into this machine's registry
640
- agents devices list # fleet + headroom: load, mem, idle/busy which box has room (cache-first)
650
+ agents devices list # spec (cores/RAM/disk) + load/mem/disk + headroom + role + description
641
651
  agents devices list --live # force a live probe of every device (alias of --refresh)
642
- agents devices list --full # add per-device cores and free/total RAM
652
+ agents devices list --full # add per-device free/total RAM detail
643
653
  agents devices list --no-stats # instant: names/addresses only, skip the probe
654
+ agents devices describe mac-mini "signing + notarize box" # one-line purpose, synced + shown in the list
655
+ agents devices ignored # dismissed nodes — when, and which machine dismissed them
644
656
  agents devices config zion interactive.host zion # the device agents show YOU artifacts on (★ in the list)
645
657
  agents devices config mac-mini agents.max-concurrent 4 # per-device settings (tracked devices/<name>/agents.yaml)
646
658
  agents devices config mac-mini scheduler.enabled off # bare `devices config <name>` opens a settings menu (TTY)
@@ -813,7 +825,7 @@ tools:
813
825
  ---
814
826
  ```
815
827
 
816
- Workflows that need to write — post PR comments, edit files, send Slack — should run with `--mode edit`, or `--mode auto` on Claude Code and GitHub Copilot. Reserve `--mode skip` (legacy alias: `full`) for last-resort bypasses. `agents run` defaults to `--mode plan` for other harnesses; Codex defaults to its safe writable profile. An explicit Codex `--mode plan` is read-only with network access.
828
+ Workflows that need to write — post PR comments, edit files, send Slack — should run with `--mode edit`, or `--mode auto` on Claude Code, GitHub Copilot, and Codex. Reserve `--mode skip` (legacy alias: `full`) for last-resort bypasses. `agents run` defaults to `--mode plan` for other harnesses; Codex defaults to its safe writable profile. An explicit Codex `--mode plan` is read-only with network access.
817
829
 
818
830
  Resolution is project > user > system: a `<repo>/.agents/workflows/<name>/` overrides a same-named workflow in `~/.agents/workflows/`. Commit project workflows with your repo so teammates get the same pipeline.
819
831
 
@@ -897,7 +909,7 @@ agents setup mine remove jack --purge
897
909
 
898
910
  Under the hood, `init` drops a pure pass-through shim in `~/.agents/.cache/shims/<name>` (already on `PATH`) that sets `AGENTS_BRAND` and forwards every argument to the same binary — nothing is copied or forked. The brand's config lives in `~/.agents/agents.yaml` (`brands.<name>`), so it rides `agents repo push/pull` across your fleet. Disabling a command hides it **only** under that brand; plain `agents` / `ag` keep every command. Curated skills/plugins/MCP ride a per-brand [resource profile](apps/cli/docs/profiles.md). Full reference: [Make it yours](apps/cli/docs/mine.md).
899
911
 
900
- > Personal use is free and Apache-2.0. Redistributing a branded build commercially will require a license in a future release.
912
+ > Branded builds are free for personal and commercial use alike. New versions ship under FSL-1.1-Apache-2.0: every user and company may use, modify, and redistribute; only offering agents-cli itself as a competing commercial product or service is barred, and each version automatically becomes Apache-2.0 two years after release.
901
913
 
902
914
  ---
903
915
 
@@ -1002,6 +1014,29 @@ agents browser profiles create cloud \
1002
1014
 
1003
1015
  ---
1004
1016
 
1017
+ ## Sign in
1018
+
1019
+ Signing in is **optional**. Every local feature — `agents run`, sessions, teams, fleet dispatch, secrets, browser, computer — works with no account. The one thing an account unlocks is **team spaces**, the hosted surface under `agents auth space`. `agents auth` signs this machine in to **Phoenix ID**, the Phoenix Labs account layer behind team spaces. Sign-in is Google-only and runs a device-code flow: the CLI shows a code, your browser confirms it, and the CLI picks the session up.
1020
+
1021
+ ```bash
1022
+ agents auth login # shows a code, opens a Phoenix-branded page
1023
+ agents auth whoami # who this machine is signed in as (--json)
1024
+ agents auth logout # clears THIS machine; no other device is touched
1025
+
1026
+ agents auth space create "Design Team" # spaces are the team primitive
1027
+ agents auth space list # spaces you belong to
1028
+ agents auth space invite ada@example.com --role member
1029
+ agents auth space members # who is in it
1030
+ agents auth space role ada@example.com admin
1031
+ agents auth space remove ada@example.com # or remove yourself to leave
1032
+ ```
1033
+
1034
+ The session lives in this machine's agents state dir, so `logout` here signs out nothing else. `whoami` and every `space` subcommand take `--json`. `PHOENIX_ID_BASE` points the CLI at a different account service (a local one, for instance); it defaults to the deployed Phoenix ID service.
1035
+
1036
+ Distinct from **Accounts** below: this is *your human identity*; those are the *harness credentials* an agent runs under.
1037
+
1038
+ ---
1039
+
1005
1040
  ## Accounts
1006
1041
 
1007
1042
  Give a provider credential a durable name once, reuse it everywhere -- across harnesses, across machines.
@@ -1290,7 +1325,7 @@ Two repos with the same shape, different roles:
1290
1325
 
1291
1326
  See [docs/concepts.md](apps/cli/docs/concepts.md) for the full mental model: DotAgents repos, resource kinds, and how resolution works end-to-end.
1292
1327
 
1293
- Other useful commands: `agents doctor` checks CLI availability and resource sync drift, `agents usage` shows available quota/rate-limit data for installed agents, `agents config budget` shows cross-vendor spend caps and current spend-to-cap (and enforces pre-flight estimates + a hard-cap kill-switch on every run — see [docs/observability.md](apps/cli/docs/observability.md#budget-guardrails-agents-budget)), `agents import` adopts an existing unmanaged install, `agents trash` lists and restores soft-deleted version directories, and `agents subagents` installs reusable subagent definitions for parent-agent workflows.
1328
+ Other useful commands: `agents doctor` checks CLI availability and resource sync drift, `agents view` shows per-account quota/rate-limit data for installed agents, `agents config budget` shows cross-vendor spend caps and current spend-to-cap (and enforces pre-flight estimates + a hard-cap kill-switch on every run — see [docs/observability.md](apps/cli/docs/observability.md#budget-guardrails-agents-budget)), `agents import` adopts an existing unmanaged install, `agents trash` lists and restores soft-deleted version directories, and `agents subagents` installs reusable subagent definitions for parent-agent workflows.
1294
1329
 
1295
1330
  ---
1296
1331
 
@@ -1475,7 +1510,7 @@ Claude Code, Codex CLI, Antigravity, Grok Build, and others each have their own
1475
1510
 
1476
1511
  ### Is it free?
1477
1512
 
1478
- Yes. This developer tool is entirely free because we believe developers should have the best tools — fast and robust — so they can create the best products for their users.
1513
+ Yes — every feature, with no account and no signup. `agents run`, sessions, teams, fleet dispatch, secrets, browser, and computer automation all work the moment you install. The optional `agents auth login` exists only to unlock hosted team spaces (`agents auth space`); there are no paid tiers. This developer tool is entirely free because we believe developers should have the best tools — fast and robust — so they can create the best products for their users.
1479
1514
 
1480
1515
  ### Is this like `nvm` / `mise` / `asdf` for AI agents?
1481
1516
 
@@ -1509,7 +1544,9 @@ macOS and Linux. Windows via WSL works but isn't first-class yet.
1509
1544
 
1510
1545
  **macOS-only features:** Keychain-based secrets (`agents secrets`, `agents accounts add`) require macOS. Default iCloud sync for bundles requires macOS + iCloud Keychain enabled; use `--no-icloud-sync` for device-local bundles. On Linux, use environment variables or `.env` files for API keys. Native Linux credential store support is planned.
1511
1546
 
1512
- Interactive tmux-backed runs require tmux 3.2 or newer.
1547
+ Interactive runs spawn directly by default. Enable `tmux.enabled` on a device to
1548
+ give each run an addressable pane for `agents message`, injection, and `agents
1549
+ focus`; tmux-backed runs require tmux 3.2 or newer.
1513
1550
 
1514
1551
  ### Do I need Node.js?
1515
1552
 
@@ -1568,4 +1605,4 @@ Commands in [`apps/cli/src/commands/`](apps/cli/src/commands/), libraries in [`a
1568
1605
 
1569
1606
  ## License
1570
1607
 
1571
- Apache-2.0 -- see [LICENSE](./LICENSE).
1608
+ FSL-1.1-Apache-2.0 -- see [LICENSE](./LICENSE). Free for every user and company to use, modify, and redistribute; the only barred use is offering agents-cli itself as a competing commercial product or service. Each version automatically becomes Apache-2.0 two years after its release.
@@ -63,8 +63,8 @@ export declare const loadMenubar: ModuleLoader;
63
63
  export declare const loadSync: ModuleLoader;
64
64
  export declare const loadRefreshRules: ModuleLoader;
65
65
  export declare const loadFactory: ModuleLoader;
66
- export declare const loadUsage: ModuleLoader;
67
66
  export declare const loadInsights: ModuleLoader;
67
+ export declare const loadTrace: ModuleLoader;
68
68
  export declare const loadPerf: ModuleLoader;
69
69
  export declare const loadPty: ModuleLoader;
70
70
  export declare const loadTmux: ModuleLoader;
@@ -90,6 +90,7 @@ export declare const loadWebhooks: ModuleLoader;
90
90
  export declare const loadHumans: ModuleLoader;
91
91
  export declare const loadAccounts: ModuleLoader;
92
92
  export declare const loadDaemon: ModuleLoader;
93
+ export declare const loadAuth: ModuleLoader;
93
94
  /**
94
95
  * Commands whose modules pull in the SQLite-backed session/cloud stack. They are
95
96
  * registered AFTER `applyGlobalHelpConventions` (mirroring main's order: help
@@ -65,8 +65,8 @@ export const loadMenubar = async () => (await import('../commands/menubar.js')).
65
65
  export const loadSync = async () => (await import('../commands/sync.js')).registerSyncCommand;
66
66
  export const loadRefreshRules = async () => (await import('../commands/refresh-rules.js')).registerRefreshRulesCommand;
67
67
  export const loadFactory = async () => (await import('../commands/factory.js')).registerFactoryCommands;
68
- export const loadUsage = async () => (await import('../commands/usage.js')).registerUsageCommand;
69
68
  export const loadInsights = async () => (await import('../commands/insights.js')).registerInsightsCommand;
69
+ export const loadTrace = async () => (await import('../commands/sessions-trace.js')).registerTraceCommand;
70
70
  export const loadPerf = async () => (await import('../commands/perf.js')).registerPerfCommand;
71
71
  export const loadPty = async () => (await import('../commands/pty.js')).registerPtyCommands;
72
72
  export const loadTmux = async () => (await import('../commands/tmux.js')).registerTmuxCommands;
@@ -93,6 +93,7 @@ export const loadWebhooks = async () => (await import('../commands/webhook.js'))
93
93
  export const loadHumans = async () => (await import('../commands/humans.js')).registerHumansCommands;
94
94
  export const loadAccounts = async () => (await import('../commands/accounts.js')).registerAccountsCommand;
95
95
  export const loadDaemon = async () => (await import('../commands/daemon.js')).registerDaemonCommand;
96
+ export const loadAuth = async () => (await import('../commands/auth.js')).registerAuthCommand;
96
97
  /**
97
98
  * Commands whose modules pull in the SQLite-backed session/cloud stack. They are
98
99
  * registered AFTER `applyGlobalHelpConventions` (mirroring main's order: help
@@ -171,8 +172,10 @@ export const COMMAND_LOADERS = {
171
172
  sync: [loadSync],
172
173
  'refresh-rules': [loadRefreshRules],
173
174
  factory: [loadFactory],
174
- usage: [loadUsage],
175
175
  insights: [loadInsights],
176
+ // `agents trace` is a top-level alias of `agents sessions trace` (precedent:
177
+ // `agents insights` aliases `agents sessions insights`). One implementation.
178
+ trace: [loadTrace],
176
179
  perf: [loadPerf],
177
180
  pty: [loadPty],
178
181
  tmux: [loadTmux],
@@ -207,6 +210,7 @@ export const COMMAND_LOADERS = {
207
210
  webhooks: [loadWebhooks],
208
211
  humans: [loadHumans],
209
212
  daemon: [loadDaemon],
213
+ auth: [loadAuth],
210
214
  };
211
215
  /**
212
216
  * Register every module in {@link COMMAND_LOADERS} onto one fresh program and