borgmcp-server 0.1.4 → 0.1.7
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.
- package/README.md +32 -11
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/coordination-api.d.ts +2 -1
- package/dist/coordination-api.js +298 -89
- package/dist/coordination-api.js.map +1 -1
- package/dist/credentials.d.ts +4 -6
- package/dist/credentials.js +43 -19
- package/dist/credentials.js.map +1 -1
- package/dist/debug-log.d.ts +2 -3
- package/dist/debug-log.js +2 -3
- package/dist/debug-log.js.map +1 -1
- package/dist/enrollment.d.ts +3 -11
- package/dist/enrollment.js +21 -60
- package/dist/enrollment.js.map +1 -1
- package/dist/https-server.d.ts +2 -20
- package/dist/https-server.js +33 -51
- package/dist/https-server.js.map +1 -1
- package/dist/message-taxonomy.d.ts +38 -0
- package/dist/message-taxonomy.js +218 -0
- package/dist/message-taxonomy.js.map +1 -0
- package/dist/migrations.js +28 -0
- package/dist/migrations.js.map +1 -1
- package/dist/service.d.ts +4 -1
- package/dist/service.js +25 -10
- package/dist/service.js.map +1 -1
- package/dist/store.d.ts +66 -8
- package/dist/store.js +525 -100
- package/dist/store.js.map +1 -1
- package/npm-shrinkwrap.json +6 -7
- package/package.json +2 -2
- package/src/coordination-api.ts +312 -86
- package/src/credentials.ts +44 -26
- package/src/debug-log.ts +5 -5
- package/src/enrollment.ts +32 -78
- package/src/https-server.ts +44 -82
- package/src/message-taxonomy.ts +284 -0
- package/src/migrations.ts +28 -0
- package/src/service.ts +29 -9
- package/src/store.ts +593 -121
- package/dist/protocol-draft.d.ts +0 -2
- package/dist/protocol-draft.js +0 -31
- package/dist/protocol-draft.js.map +0 -1
- package/src/protocol-draft.ts +0 -32
package/dist/protocol-draft.d.ts
DELETED
package/dist/protocol-draft.js
DELETED
|
@@ -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"}
|
package/src/protocol-draft.ts
DELETED
|
@@ -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
|
-
}
|