Row 94, round 2. Rocko built it, Dewey approved it (comment 28104) on manifest 53b01ea9 (16 paths, basee918a915). The bus keeps a messages view with read state, where delivered but not read stays read:false. The CLI gains messages and follow, and inbox leaves out messages already read while inbox --json stays byte-compatible. The Console gets a Messages page and an unread count in the nav. Mos gave the go under decision 123 (public/ files). Sage gate on645489e4plus the patch, 12:52:14Z to 12:55:44Z: bus 115, cli 129, webui 104, all fail 0. Every scripts/test-*.sh exited 0 (auth 15, conductor 17, config 24, discord 66, extension-package 18, foundation 44, queue 27, release 14, task 98). Manifest 16/16 before and after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
543 B
JavaScript
14 lines
543 B
JavaScript
// Shared by the S4 CLI and S5 WebUI. Client-only: never opens bus.sqlite.
|
|
export function views(client) {
|
|
return Object.freeze({
|
|
inbox: () => client.call('inbox'),
|
|
tasks: () => client.call('tasks'),
|
|
agents: () => client.call('agents'),
|
|
trail: (subject) => client.call('trail', { subject }),
|
|
decisions: (list) => client.call('decisions', { list }),
|
|
credentials: () => client.call('credentials'),
|
|
replies: (id) => client.call('replies', { id }),
|
|
messages: (args = {}) => client.call('messages', args),
|
|
});
|
|
}
|