borgmcp-server 0.1.1 → 0.1.5

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 (61) hide show
  1. package/README.md +70 -22
  2. package/THIRD_PARTY_NOTICES.md +1 -0
  3. package/dist/cli.js +62 -11
  4. package/dist/cli.js.map +1 -1
  5. package/dist/coordination-api.d.ts +3 -1
  6. package/dist/coordination-api.js +476 -78
  7. package/dist/coordination-api.js.map +1 -1
  8. package/dist/credentials.d.ts +13 -7
  9. package/dist/credentials.js +77 -15
  10. package/dist/credentials.js.map +1 -1
  11. package/dist/debug-log.d.ts +76 -0
  12. package/dist/debug-log.js +124 -0
  13. package/dist/debug-log.js.map +1 -0
  14. package/dist/enrollment.d.ts +3 -11
  15. package/dist/enrollment.js +21 -60
  16. package/dist/enrollment.js.map +1 -1
  17. package/dist/https-server.d.ts +5 -20
  18. package/dist/https-server.js +108 -50
  19. package/dist/https-server.js.map +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/message-taxonomy.d.ts +38 -0
  22. package/dist/message-taxonomy.js +218 -0
  23. package/dist/message-taxonomy.js.map +1 -0
  24. package/dist/migrations.d.ts +4 -0
  25. package/dist/migrations.js +99 -0
  26. package/dist/migrations.js.map +1 -1
  27. package/dist/operator-error.d.ts +2 -1
  28. package/dist/operator-error.js +23 -5
  29. package/dist/operator-error.js.map +1 -1
  30. package/dist/role-section.d.ts +14 -0
  31. package/dist/role-section.js +87 -0
  32. package/dist/role-section.js.map +1 -0
  33. package/dist/service.d.ts +14 -4
  34. package/dist/service.js +243 -25
  35. package/dist/service.js.map +1 -1
  36. package/dist/start-options.d.ts +5 -1
  37. package/dist/start-options.js +17 -3
  38. package/dist/start-options.js.map +1 -1
  39. package/dist/store.d.ts +106 -8
  40. package/dist/store.js +772 -120
  41. package/dist/store.js.map +1 -1
  42. package/npm-shrinkwrap.json +6 -7
  43. package/package.json +2 -2
  44. package/src/cli.ts +61 -11
  45. package/src/coordination-api.ts +490 -72
  46. package/src/credentials.ts +103 -19
  47. package/src/debug-log.ts +165 -0
  48. package/src/enrollment.ts +32 -78
  49. package/src/https-server.ts +113 -78
  50. package/src/index.ts +1 -1
  51. package/src/message-taxonomy.ts +284 -0
  52. package/src/migrations.ts +102 -0
  53. package/src/operator-error.ts +40 -6
  54. package/src/role-section.ts +108 -0
  55. package/src/service.ts +268 -27
  56. package/src/start-options.ts +21 -4
  57. package/src/store.ts +887 -142
  58. package/dist/protocol-draft.d.ts +0 -2
  59. package/dist/protocol-draft.js +0 -31
  60. package/dist/protocol-draft.js.map +0 -1
  61. package/src/protocol-draft.ts +0 -32
@@ -1,2 +0,0 @@
1
- import type { ProtocolInfoDocument, ServiceLimits } from "./https-server.js";
2
- export declare function createPart2ProtocolInfo(limits: ServiceLimits): ProtocolInfoDocument;
@@ -1,31 +0,0 @@
1
- export function createPart2ProtocolInfo(limits) {
2
- return {
3
- protocol_version: "1",
4
- package: {
5
- name: "borgmcp-shared",
6
- version: "0.3.0",
7
- },
8
- capabilities: [
9
- "coordination.core",
10
- "auth.bearer",
11
- "auth.revocation",
12
- "auth.retry-safe-enrollment",
13
- "scope.cube-isolation",
14
- "transport.tls",
15
- "authority.no-cloud-fallback",
16
- "log.cursor",
17
- "stream.sse",
18
- "stream.replay",
19
- "acks",
20
- "claims",
21
- "decisions",
22
- ],
23
- limits: {
24
- max_request_bytes: limits.maxRequestBodyBytes,
25
- max_log_message_bytes: 10_240,
26
- max_read_page_size: 500,
27
- max_replay_page_size: 200,
28
- },
29
- };
30
- }
31
- //# sourceMappingURL=protocol-draft.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protocol-draft.js","sourceRoot":"","sources":["../src/protocol-draft.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,uBAAuB,CAAC,MAAqB;IAC3D,OAAO;QACL,gBAAgB,EAAE,GAAG;QACrB,OAAO,EAAE;YACP,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,OAAO;SACjB;QACD,YAAY,EAAE;YACZ,mBAAmB;YACnB,aAAa;YACb,iBAAiB;YACjB,4BAA4B;YAC5B,sBAAsB;YACtB,eAAe;YACf,6BAA6B;YAC7B,YAAY;YACZ,YAAY;YACZ,eAAe;YACf,MAAM;YACN,QAAQ;YACR,WAAW;SACZ;QACD,MAAM,EAAE;YACN,iBAAiB,EAAE,MAAM,CAAC,mBAAmB;YAC7C,qBAAqB,EAAE,MAAM;YAC7B,kBAAkB,EAAE,GAAG;YACvB,oBAAoB,EAAE,GAAG;SAC1B;KACF,CAAC;AACJ,CAAC"}
@@ -1,32 +0,0 @@
1
- import type { ProtocolInfoDocument, ServiceLimits } from "./https-server.js";
2
-
3
- export function createPart2ProtocolInfo(limits: ServiceLimits): ProtocolInfoDocument {
4
- return {
5
- protocol_version: "1",
6
- package: {
7
- name: "borgmcp-shared",
8
- version: "0.3.0",
9
- },
10
- capabilities: [
11
- "coordination.core",
12
- "auth.bearer",
13
- "auth.revocation",
14
- "auth.retry-safe-enrollment",
15
- "scope.cube-isolation",
16
- "transport.tls",
17
- "authority.no-cloud-fallback",
18
- "log.cursor",
19
- "stream.sse",
20
- "stream.replay",
21
- "acks",
22
- "claims",
23
- "decisions",
24
- ],
25
- limits: {
26
- max_request_bytes: limits.maxRequestBodyBytes,
27
- max_log_message_bytes: 10_240,
28
- max_read_page_size: 500,
29
- max_replay_page_size: 200,
30
- },
31
- };
32
- }