@sechroom/cli 2026.9.21-rc.1b62900dd → 2026.9.23-rc.2cbecc45e

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.
Files changed (2) hide show
  1. package/dist/index.js +35 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10207,15 +10207,29 @@ Examples:
10207
10207
  emit(data, cmd.optsWithGlobals().json);
10208
10208
  });
10209
10209
  registerDeskRooms(desk);
10210
+ registerDeskWorkspaces(desk);
10210
10211
  }
10211
10212
  function registerDeskRooms(desk) {
10212
10213
  const rooms = desk.command("rooms").description("Governed Desk rooms: which user a device is, and who may be invited").addHelpText(
10213
10214
  "after",
10214
10215
  `
10215
10216
  Examples:
10217
+ $ sechroom desk rooms get esper-demo
10216
10218
  $ sechroom desk rooms peer esper-demo 12D3KooWJ1TsijH7H5F74hfAD5XishQz3sxrmAtVY37GtNd9CqYf
10217
10219
  $ sechroom desk rooms invitees esper-demo --json`
10218
10220
  );
10221
+ rooms.command("get <roomId>").description(
10222
+ "Whether the room is governed by Sechroom, its ceiling when you can read it, and whether you may be in it (GET /desk/rooms/{roomId})"
10223
+ ).action(async (roomId, _opts, cmd) => {
10224
+ const cfg = resolveConfig(cmd.optsWithGlobals());
10225
+ const data = await runApi(
10226
+ `Reading Desk room ${roomId}`,
10227
+ async () => (await makeClient(cfg)).GET("/desk/rooms/{roomId}", {
10228
+ params: { path: { roomId } }
10229
+ })
10230
+ );
10231
+ emit(data, cmd.optsWithGlobals().json);
10232
+ });
10219
10233
  rooms.command("peer <roomId> <peerId>").description(
10220
10234
  "Which Sechroom user a Desk device belongs to and whether they may be in the room (GET /desk/rooms/{roomId}/peers/{peerId})"
10221
10235
  ).action(async (roomId, peerId, _opts, cmd) => {
@@ -10241,6 +10255,27 @@ Examples:
10241
10255
  emit(data, cmd.optsWithGlobals().json);
10242
10256
  });
10243
10257
  }
10258
+ function registerDeskWorkspaces(desk) {
10259
+ const workspaces = desk.command("workspaces").description("Desk room ceilings: which user a device is, before a room is registered").addHelpText(
10260
+ "after",
10261
+ `
10262
+ Examples:
10263
+ $ sechroom desk workspaces peer ws-abc123 12D3KooWJ1TsijH7H5F74hfAD5XishQz3sxrmAtVY37GtNd9CqYf
10264
+ $ sechroom desk workspaces peer ws-abc123 12D3KooWJ1TsijH7H5F74hfAD5XishQz3sxrmAtVY37GtNd9CqYf --json`
10265
+ );
10266
+ workspaces.command("peer <workspaceId> <peerId>").description(
10267
+ "Which Sechroom user a Desk device belongs to and whether they may be in a room under this ceiling (GET /desk/workspaces/{workspaceId}/peers/{peerId})"
10268
+ ).action(async (workspaceId, peerId, _opts, cmd) => {
10269
+ const cfg = resolveConfig(cmd.optsWithGlobals());
10270
+ const data = await runApi(
10271
+ `Checking Desk peer ${peerId} under workspace ${workspaceId}`,
10272
+ async () => (await makeClient(cfg)).GET("/desk/workspaces/{ceilingId}/peers/{peerId}", {
10273
+ params: { path: { ceilingId: workspaceId, peerId } }
10274
+ })
10275
+ );
10276
+ emit(data, cmd.optsWithGlobals().json);
10277
+ });
10278
+ }
10244
10279
 
10245
10280
  // src/commands/egress.ts
10246
10281
  import { Option } from "commander";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sechroom/cli",
3
- "version": "2026.9.21-rc.1b62900dd",
3
+ "version": "2026.9.23-rc.2cbecc45e",
4
4
  "description": "Command-line interface for Sechroom — sign in, wire your AI tools, and work with your sechroom from the terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",