feat(bridge): establish local pi status bridge
Deliver the initial local bridge, Noctalia v4/v5 adapters, desktop client, service unit, tests, and implementation documentation for persistent Pi status and control.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { publishNoctaliaState } from "../src/client/noctalia-ipc.js";
|
||||
|
||||
test("publishes presentation state through Noctalia's documented IPC command", async () => {
|
||||
const calls = [];
|
||||
await publishNoctaliaState(
|
||||
{
|
||||
state: "streaming",
|
||||
projectLabel: "feature",
|
||||
attentionCount: 2,
|
||||
detail: "Streaming",
|
||||
},
|
||||
{ execute: async (command, args) => calls.push({ command, args }) },
|
||||
);
|
||||
|
||||
assert.deepEqual(calls, [
|
||||
{
|
||||
command: "qs",
|
||||
args: [
|
||||
"-c",
|
||||
"noctalia-shell",
|
||||
"ipc",
|
||||
"call",
|
||||
"plugin:pi-status-bridge",
|
||||
"setBridgeState",
|
||||
"streaming",
|
||||
"feature",
|
||||
"2",
|
||||
"Streaming",
|
||||
],
|
||||
},
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user