@band-app/server 0.58.0 → 0.60.0

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 (131) hide show
  1. package/dist/client/_shell.html +0 -0
  2. package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  3. package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  4. package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  5. package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  6. package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  7. package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  8. package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  9. package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  10. package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  11. package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  12. package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  13. package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  14. package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  15. package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  16. package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  17. package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  18. package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  19. package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  20. package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  21. package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  22. package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  23. package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  24. package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  25. package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  26. package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  27. package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  28. package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  29. package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  30. package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  31. package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  32. package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  33. package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  34. package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  35. package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  36. package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  37. package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  38. package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  39. package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  40. package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  41. package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  42. package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  43. package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  44. package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  45. package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  46. package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  47. package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  48. package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  49. package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  50. package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  51. package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  52. package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  53. package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  54. package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  55. package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  56. package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  57. package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  58. package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  59. package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  60. package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  61. package/dist/client/assets/{TerminalPanel-DZpYM-2e.js → TerminalPanel-B15ghqjC.js} +1 -1
  62. package/dist/client/assets/{_basePickBy-6zU_l56i.js → _basePickBy-DnTEmDSj.js} +1 -1
  63. package/dist/client/assets/{_baseUniq-BmNIWTzJ.js → _baseUniq-vhCiyIYf.js} +1 -1
  64. package/dist/client/assets/{arc-C2guaHsn.js → arc-CZ4Bw9uS.js} +1 -1
  65. package/dist/client/assets/{architectureDiagram-VXUJARFQ-CC-6zRwy.js → architectureDiagram-VXUJARFQ-CvqgWcYx.js} +1 -1
  66. package/dist/client/assets/{blockDiagram-VD42YOAC-SUU89nqx.js → blockDiagram-VD42YOAC-D8REfakL.js} +1 -1
  67. package/dist/client/assets/{c4Diagram-YG6GDRKO-Brqvl68E.js → c4Diagram-YG6GDRKO-BIgJnhrx.js} +1 -1
  68. package/dist/client/assets/channel-DaBOqDcm.js +1 -0
  69. package/dist/client/assets/{chunk-4BX2VUAB-aSJIRJbo.js → chunk-4BX2VUAB-BO8PrQP3.js} +1 -1
  70. package/dist/client/assets/{chunk-55IACEB6-Be_ygmcl.js → chunk-55IACEB6-DO5fHd1T.js} +1 -1
  71. package/dist/client/assets/{chunk-B4BG7PRW-DO9kuFIX.js → chunk-B4BG7PRW-CAtAtkCf.js} +1 -1
  72. package/dist/client/assets/{chunk-DI55MBZ5-Cs6PrThE.js → chunk-DI55MBZ5-DRnZO_Tx.js} +1 -1
  73. package/dist/client/assets/{chunk-FMBD7UC4-NBjR-LSj.js → chunk-FMBD7UC4-DzqqzV_F.js} +1 -1
  74. package/dist/client/assets/{chunk-QN33PNHL-CthBcGPW.js → chunk-QN33PNHL-DETRpC4Q.js} +1 -1
  75. package/dist/client/assets/{chunk-QZHKN3VN-DFzP7rYv.js → chunk-QZHKN3VN-D6X6jOAA.js} +1 -1
  76. package/dist/client/assets/{chunk-TZMSLE5B-BtqUkL_w.js → chunk-TZMSLE5B-C8IfJ5NA.js} +1 -1
  77. package/dist/client/assets/classDiagram-2ON5EDUG-CovRsOYg.js +1 -0
  78. package/dist/client/assets/classDiagram-v2-WZHVMYZB-CovRsOYg.js +1 -0
  79. package/dist/client/assets/clone-CEAieby9.js +1 -0
  80. package/dist/client/assets/{cose-bilkent-S5V4N54A-DhyKm2TQ.js → cose-bilkent-S5V4N54A-DMKRB7Bs.js} +1 -1
  81. package/dist/client/assets/{dagre-6UL2VRFP-NY1AKNho.js → dagre-6UL2VRFP-C_cXM9p2.js} +1 -1
  82. package/dist/client/assets/{diagram-PSM6KHXK-CCYOdCnq.js → diagram-PSM6KHXK-D_A2BJh_.js} +1 -1
  83. package/dist/client/assets/{diagram-QEK2KX5R-EcSNtDiG.js → diagram-QEK2KX5R-BnKjlyrI.js} +1 -1
  84. package/dist/client/assets/{diagram-S2PKOQOG-Cvp7SMU7.js → diagram-S2PKOQOG-R4tiwc1I.js} +1 -1
  85. package/dist/client/assets/{erDiagram-Q2GNP2WA-BF1T1k5o.js → erDiagram-Q2GNP2WA-CNV08IQO.js} +1 -1
  86. package/dist/client/assets/{flowDiagram-NV44I4VS-PZ3CeJSZ.js → flowDiagram-NV44I4VS-BAXwfe4s.js} +1 -1
  87. package/dist/client/assets/{ganttDiagram-JELNMOA3-BHzq_mda.js → ganttDiagram-JELNMOA3-Bk3PXBP9.js} +1 -1
  88. package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-CEkwii1J.js → gitGraphDiagram-V2S2FVAM-C8tujQgm.js} +1 -1
  89. package/dist/client/assets/{graph-CKhBarkm.js → graph-BIBqorc8.js} +1 -1
  90. package/dist/client/assets/{highlighted-body-B3W2YXNL-Cyw8VbMw.js → highlighted-body-B3W2YXNL-NymhDWI2.js} +1 -1
  91. package/dist/client/assets/{index-gv92vNY4.js → index-BKBEQAUS.js} +1 -1
  92. package/dist/client/assets/{index-78ZDd0_e.js → index-BYs8YaN9.js} +1 -1
  93. package/dist/client/assets/{index-DsKR-Mzt.js → index-BYzUhLmm.js} +1 -1
  94. package/dist/client/assets/{index-Bunws-S6.js → index-BvS6Fo_E.js} +1 -1
  95. package/dist/client/assets/{index-CXP92XgX.js → index-C6Buf5vO.js} +1 -1
  96. package/dist/client/assets/{index-s6CshXgO.js → index-Cqclrque.js} +1 -1
  97. package/dist/client/assets/{index-D5VI3PBL.js → index-D9qmTeqK.js} +1 -1
  98. package/dist/client/assets/{index-Co0BifvH.js → index-DJlBcjuS.js} +1 -1
  99. package/dist/client/assets/{index-vgGRpYpH.js → index-DSUNlkvo.js} +1 -1
  100. package/dist/client/assets/{index-BcU6fwij.js → index-Dc6DOl2V.js} +1 -1
  101. package/dist/client/assets/{index-ufFGOVtC.js → index-Dg2MZcDG.js} +1 -1
  102. package/dist/client/assets/{index-9FdHLIm3.js → index-PQDlzdDe.js} +1 -1
  103. package/dist/client/assets/{index-CQzYQxW2.js → index-secZqOa5.js} +1 -1
  104. package/dist/client/assets/{infoDiagram-HS3SLOUP-AFDG1cfu.js → infoDiagram-HS3SLOUP-GzU-nr0a.js} +1 -1
  105. package/dist/client/assets/{journeyDiagram-XKPGCS4Q-OD_QroD7.js → journeyDiagram-XKPGCS4Q-Dv_GZIcq.js} +1 -1
  106. package/dist/client/assets/{kanban-definition-3W4ZIXB7-DAnN30hM.js → kanban-definition-3W4ZIXB7-BuCDku9Z.js} +1 -1
  107. package/dist/client/assets/{layout-B5dwS7ni.js → layout-C1BWvm3U.js} +1 -1
  108. package/dist/client/assets/{main-BbrdKUoC.js → main-CW1tJAHn.js} +314 -310
  109. package/dist/client/assets/main-CYIZgqYb.css +1 -0
  110. package/dist/client/assets/{mindmap-definition-VGOIOE7T-AKV3Q3Hd.js → mindmap-definition-VGOIOE7T-D-ySOJ80.js} +1 -1
  111. package/dist/client/assets/{pieDiagram-ADFJNKIX-i4GRsEWp.js → pieDiagram-ADFJNKIX-BCPXro4s.js} +1 -1
  112. package/dist/client/assets/{quadrantDiagram-AYHSOK5B-DNSnhdH3.js → quadrantDiagram-AYHSOK5B-6iX-Hvg-.js} +1 -1
  113. package/dist/client/assets/{requirementDiagram-UZGBJVZJ-iUlIxrQo.js → requirementDiagram-UZGBJVZJ-CZu5itKP.js} +1 -1
  114. package/dist/client/assets/{sankeyDiagram-TZEHDZUN-BSJNlHPV.js → sankeyDiagram-TZEHDZUN-C7dzQDVd.js} +1 -1
  115. package/dist/client/assets/{sequenceDiagram-WL72ISMW-CjyKPEZX.js → sequenceDiagram-WL72ISMW-Q9GYKo64.js} +1 -1
  116. package/dist/client/assets/{stateDiagram-FKZM4ZOC-DpwtZO7l.js → stateDiagram-FKZM4ZOC-DcAjq5pM.js} +1 -1
  117. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-D0LqsI9r.js +1 -0
  118. package/dist/client/assets/{timeline-definition-IT6M3QCI-C36BxQGp.js → timeline-definition-IT6M3QCI-CkyryJCh.js} +1 -1
  119. package/dist/client/assets/{treemap-GDKQZRPO-B4ZwYsLv.js → treemap-GDKQZRPO-BW9t3c2Z.js} +1 -1
  120. package/dist/client/assets/{worktree._worktreeId-BuDv4Wcj.js → worktree._worktreeId-BvQb_KmW.js} +1 -1
  121. package/dist/client/assets/{worktree._worktreeId-7gZfrkWN.js → worktree._worktreeId-CWpDyVL-.js} +1 -1
  122. package/dist/client/assets/{xychartDiagram-PRI3JC2R-B5IPrNpQ.js → xychartDiagram-PRI3JC2R-DxUmnBlk.js} +1 -1
  123. package/dist/openapi.json +759 -260
  124. package/dist/start-server.mjs +1216 -548
  125. package/package.json +11 -11
  126. package/dist/client/assets/channel-Cw0fhbpQ.js +0 -1
  127. package/dist/client/assets/classDiagram-2ON5EDUG-B6EGY8M-.js +0 -1
  128. package/dist/client/assets/classDiagram-v2-WZHVMYZB-B6EGY8M-.js +0 -1
  129. package/dist/client/assets/clone-BfwFgnQO.js +0 -1
  130. package/dist/client/assets/main-CsceWi1l.css +0 -1
  131. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-Cq_p4YyT.js +0 -1
package/dist/openapi.json CHANGED
@@ -248,12 +248,11 @@
248
248
  ]
249
249
  }
250
250
  },
251
- "/hooks.check": {
251
+ "/resources.snapshot": {
252
252
  "get": {
253
- "operationId": "hooks.check",
254
- "description": "The hub's own host.",
253
+ "operationId": "resources.snapshot",
255
254
  "tags": [
256
- "hooks"
255
+ "resources"
257
256
  ],
258
257
  "responses": {
259
258
  "200": {
@@ -267,7 +266,46 @@
267
266
  "type": "object",
268
267
  "properties": {
269
268
  "data": {
270
- "$ref": "#/components/schemas/HooksStatus"
269
+ "$ref": "#/components/schemas/ResourcesReport"
270
+ }
271
+ },
272
+ "required": [
273
+ "data"
274
+ ]
275
+ }
276
+ },
277
+ "required": [
278
+ "result"
279
+ ]
280
+ }
281
+ }
282
+ }
283
+ },
284
+ "default": {
285
+ "$ref": "#/components/responses/Error"
286
+ }
287
+ }
288
+ }
289
+ },
290
+ "/resources.storage": {
291
+ "get": {
292
+ "operationId": "resources.storage",
293
+ "tags": [
294
+ "resources"
295
+ ],
296
+ "responses": {
297
+ "200": {
298
+ "description": "Successful response",
299
+ "content": {
300
+ "application/json": {
301
+ "schema": {
302
+ "type": "object",
303
+ "properties": {
304
+ "result": {
305
+ "type": "object",
306
+ "properties": {
307
+ "data": {
308
+ "$ref": "#/components/schemas/ResourceStorageView"
271
309
  }
272
310
  },
273
311
  "required": [
@@ -301,6 +339,9 @@
301
339
  "type": "string"
302
340
  }
303
341
  },
342
+ "required": [
343
+ "hostId"
344
+ ],
304
345
  "additionalProperties": false
305
346
  }
306
347
  }
@@ -309,10 +350,10 @@
309
350
  ]
310
351
  }
311
352
  },
312
- "/hooks.hosts": {
353
+ "/hooks.check": {
313
354
  "get": {
314
- "operationId": "hooks.hosts",
315
- "description": "Every host with its hooks status.",
355
+ "operationId": "hooks.check",
356
+ "description": "The hub's own host.",
316
357
  "tags": [
317
358
  "hooks"
318
359
  ],
@@ -328,19 +369,7 @@
328
369
  "type": "object",
329
370
  "properties": {
330
371
  "data": {
331
- "type": "object",
332
- "properties": {
333
- "hosts": {
334
- "type": "array",
335
- "items": {
336
- "$ref": "#/components/schemas/HostHooksView"
337
- }
338
- }
339
- },
340
- "required": [
341
- "hosts"
342
- ],
343
- "additionalProperties": false
372
+ "$ref": "#/components/schemas/HooksStatus"
344
373
  }
345
374
  },
346
375
  "required": [
@@ -358,12 +387,34 @@
358
387
  "default": {
359
388
  "$ref": "#/components/responses/Error"
360
389
  }
361
- }
390
+ },
391
+ "parameters": [
392
+ {
393
+ "name": "input",
394
+ "in": "query",
395
+ "required": true,
396
+ "style": "deepObject",
397
+ "content": {
398
+ "application/json": {
399
+ "schema": {
400
+ "type": "object",
401
+ "properties": {
402
+ "hostId": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ "additionalProperties": false
407
+ }
408
+ }
409
+ }
410
+ }
411
+ ]
362
412
  }
363
413
  },
364
- "/hooks.install": {
365
- "post": {
366
- "operationId": "hooks.install",
414
+ "/hooks.hosts": {
415
+ "get": {
416
+ "operationId": "hooks.hosts",
417
+ "description": "Every host with its hooks status.",
367
418
  "tags": [
368
419
  "hooks"
369
420
  ],
@@ -381,12 +432,15 @@
381
432
  "data": {
382
433
  "type": "object",
383
434
  "properties": {
384
- "ok": {
385
- "type": "boolean"
435
+ "hosts": {
436
+ "type": "array",
437
+ "items": {
438
+ "$ref": "#/components/schemas/HostHooksView"
439
+ }
386
440
  }
387
441
  },
388
442
  "required": [
389
- "ok"
443
+ "hosts"
390
444
  ],
391
445
  "additionalProperties": false
392
446
  }
@@ -406,29 +460,12 @@
406
460
  "default": {
407
461
  "$ref": "#/components/responses/Error"
408
462
  }
409
- },
410
- "requestBody": {
411
- "required": true,
412
- "content": {
413
- "application/json": {
414
- "schema": {
415
- "type": "object",
416
- "properties": {
417
- "hostId": {
418
- "type": "string"
419
- }
420
- },
421
- "additionalProperties": false
422
- }
423
- }
424
- }
425
463
  }
426
464
  }
427
465
  },
428
- "/hooks.remove": {
466
+ "/hooks.install": {
429
467
  "post": {
430
- "operationId": "hooks.remove",
431
- "description": "Removes Band's entries and leaves every other hook and setting.",
468
+ "operationId": "hooks.install",
432
469
  "tags": [
433
470
  "hooks"
434
471
  ],
@@ -490,137 +527,12 @@
490
527
  }
491
528
  }
492
529
  },
493
- "/host.readFile": {
494
- "get": {
495
- "operationId": "host.readFile",
496
- "tags": [
497
- "host"
498
- ],
499
- "responses": {
500
- "200": {
501
- "description": "Successful response",
502
- "content": {
503
- "application/json": {
504
- "schema": {
505
- "type": "object",
506
- "properties": {
507
- "result": {
508
- "type": "object",
509
- "properties": {
510
- "data": {
511
- "oneOf": [
512
- {
513
- "type": "object",
514
- "properties": {
515
- "tooLarge": {
516
- "type": "boolean",
517
- "const": true
518
- },
519
- "size": {
520
- "type": "number"
521
- },
522
- "binary": {},
523
- "content": {},
524
- "language": {}
525
- },
526
- "required": [
527
- "tooLarge",
528
- "size"
529
- ],
530
- "additionalProperties": false
531
- },
532
- {
533
- "type": "object",
534
- "properties": {
535
- "binary": {
536
- "type": "boolean",
537
- "const": true
538
- },
539
- "size": {
540
- "type": "number"
541
- },
542
- "tooLarge": {},
543
- "content": {},
544
- "language": {}
545
- },
546
- "required": [
547
- "binary",
548
- "size"
549
- ],
550
- "additionalProperties": false
551
- },
552
- {
553
- "type": "object",
554
- "properties": {
555
- "content": {
556
- "type": "string"
557
- },
558
- "size": {
559
- "type": "number"
560
- },
561
- "language": {
562
- "type": "string"
563
- },
564
- "tooLarge": {},
565
- "binary": {}
566
- },
567
- "required": [
568
- "content",
569
- "size",
570
- "language"
571
- ],
572
- "additionalProperties": false
573
- }
574
- ]
575
- }
576
- },
577
- "required": [
578
- "data"
579
- ]
580
- }
581
- },
582
- "required": [
583
- "result"
584
- ]
585
- }
586
- }
587
- }
588
- },
589
- "default": {
590
- "$ref": "#/components/responses/Error"
591
- }
592
- },
593
- "parameters": [
594
- {
595
- "name": "input",
596
- "in": "query",
597
- "required": true,
598
- "style": "deepObject",
599
- "content": {
600
- "application/json": {
601
- "schema": {
602
- "type": "object",
603
- "properties": {
604
- "absolutePath": {
605
- "type": "string"
606
- }
607
- },
608
- "required": [
609
- "absolutePath"
610
- ],
611
- "additionalProperties": false
612
- }
613
- }
614
- }
615
- }
616
- ]
617
- }
618
- },
619
- "/host.saveFile": {
530
+ "/hooks.remove": {
620
531
  "post": {
621
- "operationId": "host.saveFile",
532
+ "operationId": "hooks.remove",
533
+ "description": "Removes Band's entries and leaves every other hook and setting.",
622
534
  "tags": [
623
- "host"
535
+ "hooks"
624
536
  ],
625
537
  "responses": {
626
538
  "200": {
@@ -669,17 +581,10 @@
669
581
  "schema": {
670
582
  "type": "object",
671
583
  "properties": {
672
- "content": {
673
- "type": "string"
674
- },
675
- "absolutePath": {
584
+ "hostId": {
676
585
  "type": "string"
677
586
  }
678
587
  },
679
- "required": [
680
- "content",
681
- "absolutePath"
682
- ],
683
588
  "additionalProperties": false
684
589
  }
685
590
  }
@@ -18568,9 +18473,10 @@
18568
18473
  }
18569
18474
  }
18570
18475
  },
18571
- "/worktree.createFile": {
18572
- "post": {
18573
- "operationId": "worktree.createFile",
18476
+ "/worktree.readExternalFile": {
18477
+ "get": {
18478
+ "operationId": "worktree.readExternalFile",
18479
+ "description": "A file outside the worktree, read on the worktree's own worker (never the\nhub's disk). Left out of the relay and the direct path: device tokens only.",
18574
18480
  "tags": [
18575
18481
  "worktree"
18576
18482
  ],
@@ -18586,7 +18492,205 @@
18586
18492
  "type": "object",
18587
18493
  "properties": {
18588
18494
  "data": {
18589
- "type": "object",
18495
+ "oneOf": [
18496
+ {
18497
+ "type": "object",
18498
+ "properties": {
18499
+ "tooLarge": {
18500
+ "type": "boolean",
18501
+ "const": true
18502
+ },
18503
+ "size": {
18504
+ "type": "number"
18505
+ }
18506
+ },
18507
+ "required": [
18508
+ "tooLarge",
18509
+ "size"
18510
+ ],
18511
+ "additionalProperties": false
18512
+ },
18513
+ {
18514
+ "type": "object",
18515
+ "properties": {
18516
+ "binary": {
18517
+ "type": "boolean",
18518
+ "const": true
18519
+ },
18520
+ "size": {
18521
+ "type": "number"
18522
+ }
18523
+ },
18524
+ "required": [
18525
+ "binary",
18526
+ "size"
18527
+ ],
18528
+ "additionalProperties": false
18529
+ },
18530
+ {
18531
+ "type": "object",
18532
+ "properties": {
18533
+ "content": {
18534
+ "type": "string"
18535
+ },
18536
+ "size": {
18537
+ "type": "number"
18538
+ },
18539
+ "language": {
18540
+ "type": "string"
18541
+ }
18542
+ },
18543
+ "required": [
18544
+ "content",
18545
+ "size",
18546
+ "language"
18547
+ ],
18548
+ "additionalProperties": false
18549
+ }
18550
+ ]
18551
+ }
18552
+ },
18553
+ "required": [
18554
+ "data"
18555
+ ]
18556
+ }
18557
+ },
18558
+ "required": [
18559
+ "result"
18560
+ ]
18561
+ }
18562
+ }
18563
+ }
18564
+ },
18565
+ "default": {
18566
+ "$ref": "#/components/responses/Error"
18567
+ }
18568
+ },
18569
+ "parameters": [
18570
+ {
18571
+ "name": "input",
18572
+ "in": "query",
18573
+ "required": true,
18574
+ "style": "deepObject",
18575
+ "content": {
18576
+ "application/json": {
18577
+ "schema": {
18578
+ "type": "object",
18579
+ "properties": {
18580
+ "worktreeId": {
18581
+ "type": "string"
18582
+ },
18583
+ "absolutePath": {
18584
+ "type": "string"
18585
+ }
18586
+ },
18587
+ "required": [
18588
+ "worktreeId",
18589
+ "absolutePath"
18590
+ ],
18591
+ "additionalProperties": false
18592
+ }
18593
+ }
18594
+ }
18595
+ }
18596
+ ]
18597
+ }
18598
+ },
18599
+ "/worktree.saveExternalFile": {
18600
+ "post": {
18601
+ "operationId": "worktree.saveExternalFile",
18602
+ "tags": [
18603
+ "worktree"
18604
+ ],
18605
+ "responses": {
18606
+ "200": {
18607
+ "description": "Successful response",
18608
+ "content": {
18609
+ "application/json": {
18610
+ "schema": {
18611
+ "type": "object",
18612
+ "properties": {
18613
+ "result": {
18614
+ "type": "object",
18615
+ "properties": {
18616
+ "data": {
18617
+ "type": "object",
18618
+ "properties": {
18619
+ "ok": {
18620
+ "type": "boolean",
18621
+ "const": true
18622
+ }
18623
+ },
18624
+ "required": [
18625
+ "ok"
18626
+ ],
18627
+ "additionalProperties": false
18628
+ }
18629
+ },
18630
+ "required": [
18631
+ "data"
18632
+ ]
18633
+ }
18634
+ },
18635
+ "required": [
18636
+ "result"
18637
+ ]
18638
+ }
18639
+ }
18640
+ }
18641
+ },
18642
+ "default": {
18643
+ "$ref": "#/components/responses/Error"
18644
+ }
18645
+ },
18646
+ "requestBody": {
18647
+ "required": true,
18648
+ "content": {
18649
+ "application/json": {
18650
+ "schema": {
18651
+ "type": "object",
18652
+ "properties": {
18653
+ "worktreeId": {
18654
+ "type": "string"
18655
+ },
18656
+ "content": {
18657
+ "type": "string"
18658
+ },
18659
+ "absolutePath": {
18660
+ "type": "string"
18661
+ }
18662
+ },
18663
+ "required": [
18664
+ "worktreeId",
18665
+ "content",
18666
+ "absolutePath"
18667
+ ],
18668
+ "additionalProperties": false
18669
+ }
18670
+ }
18671
+ }
18672
+ }
18673
+ }
18674
+ },
18675
+ "/worktree.createFile": {
18676
+ "post": {
18677
+ "operationId": "worktree.createFile",
18678
+ "tags": [
18679
+ "worktree"
18680
+ ],
18681
+ "responses": {
18682
+ "200": {
18683
+ "description": "Successful response",
18684
+ "content": {
18685
+ "application/json": {
18686
+ "schema": {
18687
+ "type": "object",
18688
+ "properties": {
18689
+ "result": {
18690
+ "type": "object",
18691
+ "properties": {
18692
+ "data": {
18693
+ "type": "object",
18590
18694
  "properties": {
18591
18695
  "ok": {
18592
18696
  "type": "boolean",
@@ -24467,62 +24571,457 @@
24467
24571
  ],
24468
24572
  "additionalProperties": false
24469
24573
  },
24470
- "HooksStatus": {
24574
+ "ResourcesReport": {
24471
24575
  "type": "object",
24472
24576
  "properties": {
24473
- "installed": {
24474
- "type": "boolean",
24475
- "description": "Band's current hook is present for every hook event."
24476
- },
24477
- "outdated": {
24478
- "type": "boolean",
24479
- "description": "Band has hooks, but not the current set (fewer events, or an older command)."
24480
- },
24481
- "other_hooks_exist": {
24482
- "type": "boolean",
24483
- "description": "The settings also hold hooks that are not Band's."
24577
+ "takenAt": {
24578
+ "type": "number"
24484
24579
  },
24485
- "version": {
24486
- "type": "number",
24487
- "description": "The version of the hook set this build installs."
24580
+ "machines": {
24581
+ "type": "array",
24582
+ "items": {
24583
+ "$ref": "#/components/schemas/ResourceMachine"
24584
+ }
24488
24585
  }
24489
24586
  },
24490
24587
  "required": [
24491
- "installed",
24492
- "outdated",
24493
- "other_hooks_exist",
24494
- "version"
24588
+ "takenAt",
24589
+ "machines"
24495
24590
  ],
24496
24591
  "additionalProperties": false
24497
24592
  },
24498
- "HostHooksView": {
24593
+ "ResourceMachine": {
24499
24594
  "type": "object",
24500
24595
  "properties": {
24501
- "hostId": {
24502
- "type": "string"
24596
+ "id": {
24597
+ "type": "string",
24598
+ "description": "`local` for the hub's own machine, else the worker id."
24599
+ },
24600
+ "role": {
24601
+ "type": "string",
24602
+ "enum": [
24603
+ "hub",
24604
+ "worker"
24605
+ ],
24606
+ "description": "`hub` for the hub's machine (its built-in worker included), `worker` for any other."
24503
24607
  },
24504
24608
  "name": {
24505
24609
  "type": "string"
24506
24610
  },
24507
- "online": {
24508
- "type": "boolean"
24611
+ "version": {
24612
+ "type": [
24613
+ "string",
24614
+ "null"
24615
+ ]
24509
24616
  },
24510
- "hasClaudeCode": {
24617
+ "builtInWorker": {
24511
24618
  "type": "boolean",
24512
- "description": "Whether Claude Code can start on the host."
24619
+ "description": "Whether the hub's machine also runs the built-in `local` worker."
24620
+ },
24621
+ "onBattery": {
24622
+ "type": [
24623
+ "boolean",
24624
+ "null"
24625
+ ]
24513
24626
  },
24514
24627
  "status": {
24515
- "oneOf": [
24516
- {
24517
- "$ref": "#/components/schemas/HooksStatus"
24518
- },
24519
- {
24520
- "type": "null"
24521
- }
24522
- ],
24523
- "description": "Null when the host is offline or could not be read; `error` says why."
24628
+ "type": "string",
24629
+ "enum": [
24630
+ "ok",
24631
+ "unavailable"
24632
+ ]
24524
24633
  },
24525
- "error": {
24634
+ "reason": {
24635
+ "type": [
24636
+ "string",
24637
+ "null"
24638
+ ],
24639
+ "enum": [
24640
+ "offline",
24641
+ "no-answer"
24642
+ ],
24643
+ "description": "Why a machine shows no numbers."
24644
+ },
24645
+ "snapshot": {
24646
+ "oneOf": [
24647
+ {
24648
+ "allOf": [
24649
+ {
24650
+ "$ref": "#/components/schemas/Omit"
24651
+ },
24652
+ {
24653
+ "type": "object",
24654
+ "properties": {
24655
+ "processes": {
24656
+ "type": "array",
24657
+ "items": {
24658
+ "$ref": "#/components/schemas/ResourceProcessView"
24659
+ }
24660
+ }
24661
+ },
24662
+ "required": [
24663
+ "processes"
24664
+ ],
24665
+ "additionalProperties": false
24666
+ }
24667
+ ]
24668
+ },
24669
+ {
24670
+ "type": "null"
24671
+ }
24672
+ ]
24673
+ }
24674
+ },
24675
+ "required": [
24676
+ "id",
24677
+ "role",
24678
+ "name",
24679
+ "version",
24680
+ "builtInWorker",
24681
+ "onBattery",
24682
+ "status",
24683
+ "reason",
24684
+ "snapshot"
24685
+ ],
24686
+ "additionalProperties": false
24687
+ },
24688
+ "Omit": {
24689
+ "type": "object",
24690
+ "properties": {
24691
+ "hostname": {
24692
+ "type": "string"
24693
+ },
24694
+ "os": {
24695
+ "type": "string"
24696
+ },
24697
+ "cores": {
24698
+ "type": "number"
24699
+ },
24700
+ "memTotalBytes": {
24701
+ "type": "number",
24702
+ "description": "RAM of the machine and what is in use, in bytes."
24703
+ },
24704
+ "memUsedBytes": {
24705
+ "type": "number"
24706
+ },
24707
+ "machineCpuPercent": {
24708
+ "type": [
24709
+ "number",
24710
+ "null"
24711
+ ],
24712
+ "description": "Machine CPU over the sampling window, 0 to 100. Null when it could not be read."
24713
+ },
24714
+ "loadAverage": {
24715
+ "type": "number"
24716
+ },
24717
+ "windowMs": {
24718
+ "type": "number",
24719
+ "description": "How long the sampling window was, in milliseconds."
24720
+ },
24721
+ "takenAt": {
24722
+ "type": "number"
24723
+ }
24724
+ },
24725
+ "required": [
24726
+ "hostname",
24727
+ "os",
24728
+ "cores",
24729
+ "memTotalBytes",
24730
+ "memUsedBytes",
24731
+ "machineCpuPercent",
24732
+ "loadAverage",
24733
+ "windowMs",
24734
+ "takenAt"
24735
+ ],
24736
+ "additionalProperties": false
24737
+ },
24738
+ "ResourceProcessView": {
24739
+ "type": "object",
24740
+ "properties": {
24741
+ "worktree": {
24742
+ "$ref": "#/components/schemas/ResourceWorktreeRef"
24743
+ },
24744
+ "chat": {
24745
+ "$ref": "#/components/schemas/ResourceChatRef"
24746
+ },
24747
+ "kind": {
24748
+ "type": "string",
24749
+ "enum": [
24750
+ "terminal",
24751
+ "agent",
24752
+ "browser",
24753
+ "hub",
24754
+ "worker",
24755
+ "mcp",
24756
+ "terminal-daemon",
24757
+ "agent-daemon",
24758
+ "lsp",
24759
+ "simulator",
24760
+ "other"
24761
+ ],
24762
+ "description": "What a Band process on a machine is for."
24763
+ },
24764
+ "chatId": {
24765
+ "type": "string"
24766
+ },
24767
+ "worktreeId": {
24768
+ "type": "string",
24769
+ "description": "Ids from the process environment (`BAND_WORKTREE_ID`, `BAND_CHAT_ID`, `BAND_TERMINAL_ID`)."
24770
+ },
24771
+ "terminalId": {
24772
+ "type": "string"
24773
+ },
24774
+ "name": {
24775
+ "type": "string",
24776
+ "description": "Short name: the shell, the agent adapter, the language server."
24777
+ },
24778
+ "pid": {
24779
+ "type": "number"
24780
+ },
24781
+ "rssBytes": {
24782
+ "type": "number",
24783
+ "description": "Resident memory of the process and its children, in bytes."
24784
+ },
24785
+ "cpuPercent": {
24786
+ "type": "number",
24787
+ "description": "CPU of the process and its children over the sampling window, in percent of one core."
24788
+ },
24789
+ "processCount": {
24790
+ "type": "number",
24791
+ "description": "How many processes the numbers cover (the process and its descendants)."
24792
+ }
24793
+ },
24794
+ "required": [
24795
+ "kind",
24796
+ "name",
24797
+ "pid",
24798
+ "rssBytes",
24799
+ "cpuPercent",
24800
+ "processCount"
24801
+ ],
24802
+ "additionalProperties": false
24803
+ },
24804
+ "ResourceWorktreeRef": {
24805
+ "type": "object",
24806
+ "properties": {
24807
+ "id": {
24808
+ "type": "string"
24809
+ },
24810
+ "repo": {
24811
+ "type": "string"
24812
+ },
24813
+ "branch": {
24814
+ "type": "string"
24815
+ },
24816
+ "title": {
24817
+ "type": [
24818
+ "string",
24819
+ "null"
24820
+ ]
24821
+ }
24822
+ },
24823
+ "required": [
24824
+ "id",
24825
+ "repo",
24826
+ "branch",
24827
+ "title"
24828
+ ],
24829
+ "additionalProperties": false
24830
+ },
24831
+ "ResourceChatRef": {
24832
+ "type": "object",
24833
+ "properties": {
24834
+ "id": {
24835
+ "type": "string"
24836
+ },
24837
+ "name": {
24838
+ "type": "string"
24839
+ },
24840
+ "agent": {
24841
+ "type": "string"
24842
+ },
24843
+ "running": {
24844
+ "type": "boolean"
24845
+ },
24846
+ "idleMs": {
24847
+ "type": [
24848
+ "number",
24849
+ "null"
24850
+ ],
24851
+ "description": "Milliseconds since the agent last sent anything. Null when unknown."
24852
+ },
24853
+ "idle": {
24854
+ "type": "boolean",
24855
+ "description": "True when the agent has been quiet for an hour and runs no turn."
24856
+ }
24857
+ },
24858
+ "required": [
24859
+ "id",
24860
+ "name",
24861
+ "agent",
24862
+ "running",
24863
+ "idleMs",
24864
+ "idle"
24865
+ ],
24866
+ "additionalProperties": false
24867
+ },
24868
+ "ResourceStorageView": {
24869
+ "type": "object",
24870
+ "properties": {
24871
+ "worktrees": {
24872
+ "type": "array",
24873
+ "items": {
24874
+ "$ref": "#/components/schemas/ResourceStorageWorktree"
24875
+ }
24876
+ },
24877
+ "state": {
24878
+ "type": "array",
24879
+ "items": {
24880
+ "type": "object",
24881
+ "properties": {
24882
+ "name": {
24883
+ "type": "string"
24884
+ },
24885
+ "sizeBytes": {
24886
+ "type": "number"
24887
+ }
24888
+ },
24889
+ "required": [
24890
+ "name",
24891
+ "sizeBytes"
24892
+ ],
24893
+ "additionalProperties": false
24894
+ }
24895
+ },
24896
+ "disk": {
24897
+ "oneOf": [
24898
+ {
24899
+ "$ref": "#/components/schemas/ResourceDisk"
24900
+ },
24901
+ {
24902
+ "type": "null"
24903
+ }
24904
+ ]
24905
+ }
24906
+ },
24907
+ "required": [
24908
+ "worktrees",
24909
+ "state",
24910
+ "disk"
24911
+ ],
24912
+ "additionalProperties": false
24913
+ },
24914
+ "ResourceStorageWorktree": {
24915
+ "type": "object",
24916
+ "properties": {
24917
+ "sizeBytes": {
24918
+ "type": "number"
24919
+ },
24920
+ "error": {
24921
+ "type": "string"
24922
+ },
24923
+ "id": {
24924
+ "type": "string"
24925
+ },
24926
+ "repo": {
24927
+ "type": "string"
24928
+ },
24929
+ "branch": {
24930
+ "type": "string"
24931
+ },
24932
+ "title": {
24933
+ "type": [
24934
+ "string",
24935
+ "null"
24936
+ ]
24937
+ }
24938
+ },
24939
+ "required": [
24940
+ "sizeBytes",
24941
+ "id",
24942
+ "repo",
24943
+ "branch",
24944
+ "title"
24945
+ ],
24946
+ "additionalProperties": false
24947
+ },
24948
+ "ResourceDisk": {
24949
+ "type": "object",
24950
+ "properties": {
24951
+ "path": {
24952
+ "type": "string",
24953
+ "description": "The folder the numbers describe."
24954
+ },
24955
+ "totalBytes": {
24956
+ "type": "number"
24957
+ },
24958
+ "freeBytes": {
24959
+ "type": "number"
24960
+ }
24961
+ },
24962
+ "required": [
24963
+ "path",
24964
+ "totalBytes",
24965
+ "freeBytes"
24966
+ ],
24967
+ "additionalProperties": false
24968
+ },
24969
+ "HooksStatus": {
24970
+ "type": "object",
24971
+ "properties": {
24972
+ "installed": {
24973
+ "type": "boolean",
24974
+ "description": "Band's current hook is present for every hook event."
24975
+ },
24976
+ "outdated": {
24977
+ "type": "boolean",
24978
+ "description": "Band has hooks, but not the current set (fewer events, or an older command)."
24979
+ },
24980
+ "other_hooks_exist": {
24981
+ "type": "boolean",
24982
+ "description": "The settings also hold hooks that are not Band's."
24983
+ },
24984
+ "version": {
24985
+ "type": "number",
24986
+ "description": "The version of the hook set this build installs."
24987
+ }
24988
+ },
24989
+ "required": [
24990
+ "installed",
24991
+ "outdated",
24992
+ "other_hooks_exist",
24993
+ "version"
24994
+ ],
24995
+ "additionalProperties": false
24996
+ },
24997
+ "HostHooksView": {
24998
+ "type": "object",
24999
+ "properties": {
25000
+ "hostId": {
25001
+ "type": "string"
25002
+ },
25003
+ "name": {
25004
+ "type": "string"
25005
+ },
25006
+ "online": {
25007
+ "type": "boolean"
25008
+ },
25009
+ "hasClaudeCode": {
25010
+ "type": "boolean",
25011
+ "description": "Whether Claude Code can start on the host."
25012
+ },
25013
+ "status": {
25014
+ "oneOf": [
25015
+ {
25016
+ "$ref": "#/components/schemas/HooksStatus"
25017
+ },
25018
+ {
25019
+ "type": "null"
25020
+ }
25021
+ ],
25022
+ "description": "Null when the host is offline or could not be read; `error` says why."
25023
+ },
25024
+ "error": {
24526
25025
  "type": "string"
24527
25026
  }
24528
25027
  },
@@ -24961,6 +25460,24 @@
24961
25460
  "install": {
24962
25461
  "type": "string"
24963
25462
  },
25463
+ "resources": {
25464
+ "type": "object",
25465
+ "properties": {
25466
+ "cpu": {
25467
+ "type": "number"
25468
+ },
25469
+ "memory": {
25470
+ "type": "string"
25471
+ },
25472
+ "disk": {
25473
+ "type": "string"
25474
+ }
25475
+ },
25476
+ "required": [
25477
+ "cpu"
25478
+ ],
25479
+ "additionalProperties": false
25480
+ },
24964
25481
  "build": {
24965
25482
  "type": "object",
24966
25483
  "properties": {
@@ -24996,24 +25513,6 @@
24996
25513
  "items": {
24997
25514
  "type": "string"
24998
25515
  }
24999
- },
25000
- "resources": {
25001
- "type": "object",
25002
- "properties": {
25003
- "cpu": {
25004
- "type": "number"
25005
- },
25006
- "memory": {
25007
- "type": "string"
25008
- },
25009
- "disk": {
25010
- "type": "string"
25011
- }
25012
- },
25013
- "required": [
25014
- "cpu"
25015
- ],
25016
- "additionalProperties": false
25017
25516
  }
25018
25517
  },
25019
25518
  "additionalProperties": false
@@ -25329,6 +25828,24 @@
25329
25828
  "install": {
25330
25829
  "type": "string"
25331
25830
  },
25831
+ "resources": {
25832
+ "type": "object",
25833
+ "properties": {
25834
+ "cpu": {
25835
+ "type": "number"
25836
+ },
25837
+ "memory": {
25838
+ "type": "string"
25839
+ },
25840
+ "disk": {
25841
+ "type": "string"
25842
+ }
25843
+ },
25844
+ "required": [
25845
+ "cpu"
25846
+ ],
25847
+ "additionalProperties": false
25848
+ },
25332
25849
  "build": {
25333
25850
  "type": "object",
25334
25851
  "properties": {
@@ -25364,24 +25881,6 @@
25364
25881
  "items": {
25365
25882
  "type": "string"
25366
25883
  }
25367
- },
25368
- "resources": {
25369
- "type": "object",
25370
- "properties": {
25371
- "cpu": {
25372
- "type": "number"
25373
- },
25374
- "memory": {
25375
- "type": "string"
25376
- },
25377
- "disk": {
25378
- "type": "string"
25379
- }
25380
- },
25381
- "required": [
25382
- "cpu"
25383
- ],
25384
- "additionalProperties": false
25385
25884
  }
25386
25885
  },
25387
25886
  "additionalProperties": false