@tonbo/yield 0.2.3 → 0.3.1
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 +9 -8
- package/dist/bin/yield.js +4617 -3800
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ yield daemon uninstall
|
|
|
60
60
|
yield daemon run [--since <date>]
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
`install` writes a user service that runs `yield daemon run` with the current Node.js and starts it: a launchd agent at `~/Library/LaunchAgents/dev.tonbo.yield.plist` on macOS (`RunAtLoad`, `KeepAlive`) or a systemd user unit at `~/.config/systemd/user/tonbo-yield.service` on Linux (`Restart=always`). The service logs to `${XDG_STATE_HOME:-$HOME/.local/state}/tonbo-yield/daemon.log`. `uninstall` stops and removes it and keeps the capture state. `run` captures in the foreground and logs to stderr. `status` reports whether the capture runs, its last upload, how many sessions it tracks and skipped, the sessions it blocked and its recent errors.
|
|
63
|
+
`install` writes a user service that runs `yield daemon run` with the current Node.js and starts it: a launchd agent at `~/Library/LaunchAgents/dev.tonbo.yield.plist` on macOS (`RunAtLoad`, `KeepAlive`) or a systemd user unit at `~/.config/systemd/user/tonbo-yield.service` on Linux (`Restart=always`). The service logs to `${XDG_STATE_HOME:-$HOME/.local/state}/tonbo-yield/daemon.log`. `uninstall` stops and removes it and keeps the capture state. `run` captures in the foreground and logs to stderr. `status` reports whether the capture runs, its last upload, how many sessions it tracks and skipped, the sessions it blocked and its recent errors. A systemd user service stops when the user's last login session ends, so on Linux `install` turns lingering on (`loginctl enable-linger`, without prompting) and, when the system does not allow that, prints the `sudo loginctl enable-linger <user>` to run; `status` reports whether the capture survives logout (`linger` in `--json`, null off Linux).
|
|
64
64
|
|
|
65
65
|
The capture follows [`contracts/sessions/capture-v1.json`](../../contracts/sessions/capture-v1.json), which the build embeds (`pnpm generate:contracts`):
|
|
66
66
|
|
|
@@ -116,8 +116,8 @@ The recall commands read the git-ingester's queries at `https://git.tonbo.dev/ap
|
|
|
116
116
|
## Handoff
|
|
117
117
|
|
|
118
118
|
```console
|
|
119
|
-
yield [--session <id>] [--task <text>] [--recover | --new]
|
|
120
|
-
yield take <link> [--into <directory>]
|
|
119
|
+
yield [--session <id>] [--task <text>] [--to <who>] [--recover | --new]
|
|
120
|
+
yield take <link> [--into <directory>] [--account <organization>]
|
|
121
121
|
yield done "<result>"
|
|
122
122
|
yield need-human "<why>"
|
|
123
123
|
yield pull <session-or-link> [--patch]
|
|
@@ -125,12 +125,13 @@ yield show <link>
|
|
|
125
125
|
yield renew <link> [--result]
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
A handoff is in the Project of the folder it is made in. In a personal Project you hand a session to yourself on another computer or harness. In a shared team Project (`yield connect --account <organization>`) you hand it to any member, or with `--to <name>` to one member; `--to claude-code` or `--to codex` is you on that harness. A member's login of the organization is what makes and takes team handoffs, so the teammate needs one on their computer (`yield login --account <organization>`). Handing off to a device is not available in this release.
|
|
129
129
|
|
|
130
|
-
- Bare `yield` hands off the current session of this Project (`--session` when more than one is live). The daemon captures the session up to now and publishes a snapshot of the worktree, gitd pins that exact commit, and the command prints a `/y/<id>` link. After a lost response, `--recover` retries the same snapshot and `--new` takes a fresh one.
|
|
131
|
-
- `take` restores the pinned snapshot into a new `tonbo/h/<short id>` worktree on top of a base commit you already have, and prints the session's recent turns. The source worktree is never touched.
|
|
132
|
-
- Inside that worktree, `done` pushes and pins the result and records the handoff done; `need-human` records that it is waiting on you.
|
|
133
|
-
- `pull` fetches the latest unpulled result of a session (or a handoff link) onto a branch, or with `--patch` into a patch file, without changing your worktree.
|
|
130
|
+
- Bare `yield` hands off the current session of this Project (`--session` when more than one is live). The daemon captures the session up to now and publishes a snapshot of the worktree, gitd pins that exact commit, and the command prints a `/y/<id>` link and who it is for. After a lost response, `--recover` retries the same snapshot and `--new` takes a fresh one. A session that started before its folder was shared stays personal and cannot be handed to the team.
|
|
131
|
+
- `take` restores the pinned snapshot into a new `tonbo/h/<short id>` worktree on top of a base commit you already have, and prints the task, the session's files and its recent turns (read from the team's store for a team handoff). The source worktree is never touched. Without `--account` it tries your personal account and then each organization this computer is logged in to; a handoff you may not take is not found.
|
|
132
|
+
- Inside that worktree, `done` pushes and pins the result and records the handoff done; `need-human` records that it is waiting on you. Both use the login of the account the handoff is in.
|
|
133
|
+
- `pull` fetches the latest unpulled result of a session (or a handoff link) onto a branch, or with `--patch` into a patch file, without changing your worktree. The author pulls a teammate's result the same way.
|
|
134
|
+
- `show` prints a handoff's state, author, who it is for and who took it, and its captured context, without taking it. Any member can show a team handoff.
|
|
134
135
|
|
|
135
136
|
## The Tonbo skill
|
|
136
137
|
|