borgmcp 4.10.0 → 5.0.1
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/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/assimilate-cmd.d.ts +115 -0
- package/dist/assimilate-cmd.d.ts.map +1 -1
- package/dist/assimilate-cmd.js +611 -761
- package/dist/assimilate-cmd.js.map +1 -1
- package/dist/opencode-drone.d.ts.map +1 -1
- package/dist/opencode-drone.js.map +1 -1
- package/dist/server-handshake.d.ts +5 -5
- package/dist/server-handshake.d.ts.map +1 -1
- package/dist/server-handshake.js +3 -3
- package/dist/server-handshake.js.map +1 -1
- package/docs/RELEASING.md +2 -2
- package/package.json +2 -2
- package/src/assimilate-cmd.ts +1108 -1056
- package/src/opencode-drone.ts +1 -0
- package/src/server-handshake.ts +5 -5
package/src/opencode-drone.ts
CHANGED
|
@@ -272,6 +272,7 @@ const OPEN_CODE_RECONCILIATION_DELAY_MS = 3_000;
|
|
|
272
272
|
const OPEN_CODE_RECONCILIATION_ATTEMPTS = 20;
|
|
273
273
|
const OPEN_CODE_DELIVERY_HISTORY_LIMIT = 256;
|
|
274
274
|
|
|
275
|
+
/** Session identity is the exact id + directory pair, never OpenCode project scope. */
|
|
275
276
|
interface SessionBinding {
|
|
276
277
|
version: 5;
|
|
277
278
|
sessionId: string;
|
package/src/server-handshake.ts
CHANGED
|
@@ -144,7 +144,7 @@ async function readHandshakeBodyWithTimeout(response: Response): Promise<string>
|
|
|
144
144
|
* TLS, confirm the server speaks the exact protocol tag BEFORE any bearer is
|
|
145
145
|
* created, sent, or a seat attached. Sends NO Authorization header, cookie,
|
|
146
146
|
* query, or body; rejects redirects; and bounds the response. A tag mismatch,
|
|
147
|
-
* an extra field, or any transport anomaly fails closed here — no
|
|
147
|
+
* an extra field, or any transport anomaly fails closed here — no credential-store
|
|
148
148
|
* write and no attach. The bearer is proven only at attach.
|
|
149
149
|
*/
|
|
150
150
|
export async function preflightBorgServerTag(
|
|
@@ -214,7 +214,7 @@ export interface ServerAttachResult {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* Attach an enrolled client principal to one granted cube/role over protocol
|
|
217
|
+
* Attach an enrolled client principal to one granted cube/role over protocol v14.
|
|
218
218
|
* The client CSPRNG-generates the session bearer and persists it PENDING in the
|
|
219
219
|
* local 0600 credential store (keyed by the stable per-seat identity) BEFORE
|
|
220
220
|
* this request, so an interrupted/lost response is recovered by re-sending the
|
|
@@ -223,7 +223,7 @@ export interface ServerAttachResult {
|
|
|
223
223
|
* activates that pending record in place; the server never returns a bearer.
|
|
224
224
|
*/
|
|
225
225
|
/**
|
|
226
|
-
* The PREPARE + network half of an attach, WITHOUT the
|
|
226
|
+
* The PREPARE + network half of an attach, WITHOUT the file-store pending→ACTIVE
|
|
227
227
|
* transition. The deferred `activate` / `scrubPending` thunks let the cube-lock-
|
|
228
228
|
* owning orchestration (assimilate) FINALIZE binding-FIRST: write the cubes
|
|
229
229
|
* binding referencing this exact pending record under the cube lock, THEN call
|
|
@@ -897,7 +897,7 @@ export async function associateLocalBorgServerRepositoryCube(
|
|
|
897
897
|
|
|
898
898
|
/**
|
|
899
899
|
* Create one repository cube through the narrow owner capability. The retry
|
|
900
|
-
* key is persisted in the
|
|
900
|
+
* key is persisted in the private file store before network I/O and reused exactly
|
|
901
901
|
* after an ambiguous transport result. Ordinary clients are denied locally
|
|
902
902
|
* before any create request is sent.
|
|
903
903
|
*/
|
|
@@ -1077,7 +1077,7 @@ export async function connectEnrolledBorgServer(
|
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
|
-
/** Resolve the same-user server CA and its authority-bound
|
|
1080
|
+
/** Resolve the same-user server CA and its authority-bound file-store credential. */
|
|
1081
1081
|
export async function resolveBorgServerAuthority(
|
|
1082
1082
|
origin: string,
|
|
1083
1083
|
deps: {
|