@task0/cli 0.7.0 → 0.9.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.
Files changed (3) hide show
  1. package/README.md +14 -6
  2. package/dist/main.js +808 -619
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -65,15 +65,19 @@ task0 run <id> # drive the full triage → plan → refine → exec lo
65
65
  ## Run as a service (autostart on login / boot)
66
66
 
67
67
  `task0 daemon register` installs an OS-level autostart service in addition to
68
- recording the daemon identity. After registering you can sign out, reboot, and
69
- the daemon reconnects on its own.
68
+ recording the daemon identity. The server URL comes from the active profile's
69
+ `api_url` set it once per profile, then `register` reads it. After registering
70
+ you can sign out, reboot, and the daemon reconnects on its own.
70
71
 
71
72
  ```sh
72
- # user-level (default) starts at user login, no sudo needed
73
- task0 daemon register --server https://central.example.com:4318
73
+ # 1. Tell the active profile which server to talk to (once per profile)
74
+ task0 profile set api_url https://central.example.com:4318
74
75
 
75
- # system-level — starts at boot, runs without an active login
76
- sudo -E task0 daemon register --system --server https://central.example.com:4318
76
+ # 2a. user-level (default) — starts at user login, no sudo needed
77
+ task0 daemon register
78
+
79
+ # 2b. system-level — starts at boot, runs without an active login
80
+ sudo -E task0 daemon register --system
77
81
 
78
82
  # pause / resume without forgetting the identity
79
83
  task0 daemon stop
@@ -83,6 +87,10 @@ task0 daemon start
83
87
  task0 daemon logout
84
88
  ```
85
89
 
90
+ To target a different server for one invocation without writing it to the
91
+ profile, export `TASK0_API_URL` — it overrides the profile's `api_url` for
92
+ that shell session.
93
+
86
94
  Per platform:
87
95
 
88
96
  | Platform | Scope | File written |