Scheduled work on this computer (spec 3.5.0): Accept scheduled work, scheduled turns, the watch command; team_add names the sub-manager
ci / check (push) Waiting to run
ci / check (push) Waiting to run
remote.scheduled (lembas service scheduled on|off, lembas remote scheduled on|off) said as limits.scheduled; a scheduled session runs in the schedule's mode (Edit when none, Plan refused, lowered to max_mode), reports ok/silent/failed/cancelled and the final reply, waits the schedule's wait on approvals and offers no question, plan card or show. _lembas/monitor judges the watch command by the mode (ask is refused) and hashes the output as it streams. Conformance areas scheduled, silent and monitor run here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
15 files changed
+636
-25
No files matched your search
@@ -37,7 +37,7 @@ test("list --json: one object, the defaults applied", () => {
|
||||
const r = run("list", "--json")
|
||||
expect(r.code).toBe(0)
|
||||
expect(r.out).toHaveLength(1)
|
||||
expect(r.json()).toEqual({ enabled: false, roots: [], max_mode: "edit", terminal: false })
|
||||
expect(r.json()).toEqual({ enabled: false, roots: [], max_mode: "edit", terminal: false, scheduled: false })
|
||||
// Without --json, lines a person reads.
|
||||
const plain = run("list")
|
||||
expect(plain.out.join("\n")).toContain("remote work: off")
|
||||
@@ -54,7 +54,7 @@ test("add: absolute real paths, turns remote work on, skips duplicates and cover
|
||||
const r = run("add", a, link, "--json")
|
||||
expect(r.code).toBe(0)
|
||||
// The link is stored as where it leads.
|
||||
expect(r.json()).toEqual({ enabled: true, roots: [a, b], max_mode: "edit", terminal: false })
|
||||
expect(r.json()).toEqual({ enabled: true, roots: [a, b], max_mode: "edit", terminal: false, scheduled: false })
|
||||
// Again, and a directory inside one: nothing more.
|
||||
const again = run("add", a, join(a, "sub"))
|
||||
expect(again.code).toBe(0)
|
||||
@@ -212,7 +212,7 @@ test("the service links with remote work off, says no roots and refuses everythi
|
||||
// Turned on from outside, as Desktop does: it links again, saying the new roots, and serves.
|
||||
run("add", a)
|
||||
await until(() => hellos.length === 2, "a second hello")
|
||||
expect(hellos[1].limits).toEqual({ roots: [a], max_mode: "edit", require_trust: true })
|
||||
expect(hellos[1].limits).toEqual({ roots: [a], max_mode: "edit", require_trust: true, scheduled: false })
|
||||
expect(states.some((s) => s.detail === "the remote settings changed; linking again")).toBe(true)
|
||||
await ask("initialize", { protocolVersion: 1, clientCapabilities: { _meta: { lembas: { protocol: 2 } } } })
|
||||
expect((await ask("_lembas/directories", {})).result.places.map((p: any) => [p.path, p.accepted])).toEqual([[a, true]])
|
||||
|
||||
Reference in new issue
Block a user