@bentoai/cli 1.1.103 → 1.1.106
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 +75 -18
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -167,28 +167,85 @@ whose agent is deleted before its session starts goes to the root agent.
|
|
|
167
167
|
online. With no override, the CLI uses the recording default stored through
|
|
168
168
|
`local config update --recording-agent`; changing the default workspace clears
|
|
169
169
|
that choice. The widget supplies an explicit per-take selection.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
the
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
170
|
+
A take can stream while it records. `local recording outbox create <dir> --recording`
|
|
171
|
+
runs at capture start, offline, and opens the entry in a `recording` phase with its
|
|
172
|
+
workspace fixed; there is no agent yet. Each `local recording outbox update <id>` then
|
|
173
|
+
sends whatever the take has written so far (the live file list is
|
|
174
|
+
[recording-core's](../recording-core/src/live-take.ts), since no publication exists yet)
|
|
175
|
+
and sends the cloud-owned `recording.live` operation, so the workspace knows the take is
|
|
176
|
+
live. A journal is sent as far as it has grown, but a movie only through its last complete
|
|
177
|
+
top-level box: the writer fills in the open fragment's size when the fragment closes, so
|
|
178
|
+
sending it early would only be sent again at stop. Nothing is committed and a missing file is simply not there yet.
|
|
179
|
+
A tick runs in 5 s rounds until a round finds every file sent: each round brings the journals
|
|
180
|
+
and narration (the live transcript's inputs) fully up to date, then gives each other file one
|
|
181
|
+
write sized, from that file's last write, to fill the rest of the round. `recording.live` goes
|
|
182
|
+
once per tick, and again in any round that sent new input. A backlog left by an outage drains at the link's rate while narration never waits
|
|
183
|
+
more than a round; on a link slower than the take, video falls behind and the transcript
|
|
184
|
+
keeps up, and a tick with nothing to send returns at once. Since a tick can run as long as
|
|
185
|
+
its backlog, the Mac ends a running tick at stop rather than wait for it; a killed tick loses
|
|
186
|
+
nothing, because every write lands at an offset and the next run asks the VM what it staged.
|
|
187
|
+
At stop,
|
|
188
|
+
`local recording outbox finish <id>` freezes the agent (same choices as create) and runs
|
|
189
|
+
the finished-take delivery below, retrying on the backoff until capture's publication
|
|
190
|
+
lands. A take still recording has no handoff and is not an upload.
|
|
191
|
+
|
|
192
|
+
The [outbox](src/recording/outbox.ts) keeps one file and one lock per take under the
|
|
193
|
+
shared CLI state root, so one take's delivery never waits on another's; a run that finds
|
|
194
|
+
a take locked skips it, and a command naming a locked take (`create`, `finish`, `delete`)
|
|
195
|
+
waits for it (the Mac ends the take's tick first, so a stop doesn't wait). Past two minutes
|
|
196
|
+
(`TAKE_LOCK_WAIT_MS`, as long as a stalled upload is kept) it refuses with `TAKE_BUSY` so its
|
|
197
|
+
caller can run it again. It stamps each phase in the entry's `timeline`. A delivered
|
|
198
|
+
take keeps its local copy for a day (`LOCAL_COPY_RETENTION_MS`), so it can still be saved
|
|
199
|
+
from this Mac without a download; printed entries carry `localCopyUntil` while it lasts, and
|
|
200
|
+
the first `update` after that removes the files and records `localCopyRemovedAt`. A failed create prints
|
|
201
|
+
its durable entry; `local recording outbox list` exposes its error and retry time.
|
|
202
|
+
`local recording outbox update` retries every entry that is due (past its backoff,
|
|
203
|
+
interrupted mid-delivery, or held only for sign-in) and streams every live take; with an
|
|
204
|
+
ID it runs just that take, and `--now` skips the backoff, never a hold, for a Mac that
|
|
205
|
+
just woke or found its network again. Backoff counts only runs that moved nothing (no
|
|
206
|
+
bytes staged, no phase advanced), and stays within 30 s while a take records and for ten
|
|
207
|
+
minutes after stop, so a flaky uplink or a gateway update costs seconds; gateway updates,
|
|
208
|
+
bad gateways and refused connections retry this way. Other holds (capacity, refusals)
|
|
209
|
+
wait for the person: rerunning `local recording outbox create <dir>` (or `finish`)
|
|
210
|
+
retries one, overriding backoff; its frozen workspace and agent never change.
|
|
211
|
+
`local recording outbox delete <recording-id>` gives up on one, live or stopped: it aborts
|
|
212
|
+
the take's open upload sessions where it can reach the VM (the gateway sweeps the rest),
|
|
213
|
+
removes its entry and deletes its take from the Mac. A take that committed anything to the
|
|
214
|
+
workspace (or reached `uploaded` or `adopted`) is also deleted there with `recording.delete`;
|
|
215
|
+
while the workspace can't be reached its entry stays as a `deleting` tombstone, with its
|
|
216
|
+
local files already gone, that `update` retries on the usual backoff until the delete lands.
|
|
217
|
+
A tombstone hands nothing over and shows no upload. A delivered (`done`) take is the
|
|
218
|
+
library's to delete.
|
|
219
|
+
|
|
220
|
+
The [uploader](src/recording/uploader.ts) sends a take's files at once, each into a
|
|
221
|
+
resumable [upload session](../contract/src/drive/upload-sessions.ts), so the link never
|
|
222
|
+
idles on one file's round trips; writes are large for the same reason. The first failure
|
|
223
|
+
ends the run: no request starts after it and writes in flight are cut, never a commit.
|
|
224
|
+
Every write starts at the size the VM has staged, so a retry never resends what arrived, a
|
|
225
|
+
run cut off mid-write loses nothing, and only a request that stops moving is abandoned. The
|
|
226
|
+
size the VM last answered is kept with the session, so a run after a clean one writes
|
|
227
|
+
without asking first; a run cut off mid-write leaves none, and a stale one only costs the
|
|
228
|
+
VM's refusal, which names its size. At stop, one local pass gives each finished file its chunk digests and
|
|
229
|
+
SHA-256; each file is committed with its chunk list, and a commit that names chunks the
|
|
230
|
+
VM holds differently (a movie's patched header) gets exactly those chunks again; one it
|
|
231
|
+
holds no session for (its answer was lost, so it already landed) sends the file again. The
|
|
232
|
+
take receipt (`take.receipt.json`, [schema](../recording-core/src/take-receipt.ts))
|
|
233
|
+
built from that pass is staged beside the members and committed last, so its presence marks a complete take (a file
|
|
234
|
+
streamed live that the finished take doesn't list has its session aborted first), and
|
|
235
|
+
adoption checks it against the VM's commit records without reading the files. When
|
|
236
|
+
adoption still finds members missing or mismatched, the retry sends those again. One
|
|
237
|
+
upload grant covers the take and is reused until shortly before it expires; a rejected
|
|
238
|
+
grant is minted afresh once. A retry after an uncertain session response replays its
|
|
239
|
+
saved creation body, preserving API idempotency.
|
|
184
240
|
|
|
185
241
|
`local recording handoff get` renders the saved take facts and available session
|
|
186
242
|
URL without network access or source media. A recording ID selects one take;
|
|
187
243
|
omitting it selects the latest outbox entry. This is the Mac paste shortcut's
|
|
188
|
-
owner, so it keeps working after
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
244
|
+
owner, so it keeps working after the local copy is gone and while offline.
|
|
245
|
+
While the take is on this Mac (uploading, and for a day after delivery) its
|
|
246
|
+
`localFiles` lists the take's files, by the uploader's own definition of a take, so
|
|
247
|
+
an agent on the Mac can start on a long take before it lands; `localCopyUntil` says
|
|
248
|
+
when a delivered take's files go, and the field disappears with the files. `inWorkspace` turns true once the
|
|
192
249
|
workspace adopted the take, so the pair says where an agent can read it, or that
|
|
193
250
|
it was lost before upload. The Mac never claims transcript state: a narration file
|
|
194
251
|
may hold no sound, and only the workspace's transcription can tell.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bentoai/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.106",
|
|
4
4
|
"description": "Bento CLI — one subscription for every kind of AI: image, video, voice generation, agent sessions, workspace files, memory, integrations, and paid data services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@bentoai/cli-darwin-arm64": "1.1.
|
|
29
|
-
"@bentoai/cli-darwin-x64": "1.1.
|
|
30
|
-
"@bentoai/cli-linux-x64": "1.1.
|
|
31
|
-
"@bentoai/cli-linux-arm64": "1.1.
|
|
28
|
+
"@bentoai/cli-darwin-arm64": "1.1.106",
|
|
29
|
+
"@bentoai/cli-darwin-x64": "1.1.106",
|
|
30
|
+
"@bentoai/cli-linux-x64": "1.1.106",
|
|
31
|
+
"@bentoai/cli-linux-arm64": "1.1.106",
|
|
32
32
|
"@mariozechner/clipboard": "0.3.9"
|
|
33
33
|
}
|
|
34
34
|
}
|