@pi-chamber/web 0.9.6 → 0.9.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/dist/assets/{DiagramView-0Iq1ak1I.js → DiagramView-BvrCkm_z.js} +1 -1
- package/dist/assets/{DiffView-DD1AFRi3.js → DiffView-DMvRLRN1.js} +1 -1
- package/dist/assets/{FileSaveConflictDialog-CoKwDovb.js → FileSaveConflictDialog-DGa9u43J.js} +1 -1
- package/dist/assets/{FilesView-B_BF39ef.js → FilesView-CNHu4RnC.js} +4 -4
- package/dist/assets/{GitView-LFEpCasf.js → GitView-Cbepz-bR.js} +3 -3
- package/dist/assets/{JsonTreeView-Cwjgvh4g.js → JsonTreeView-C2X5oXQm.js} +1 -1
- package/dist/assets/{MarkdownRendererImpl-_7kV1yNw.js → MarkdownRendererImpl-BanSCkPy.js} +2 -2
- package/dist/assets/{PatchDiff-DG43C1HW.js → PatchDiff-i_9BIlgo.js} +1 -1
- package/dist/assets/{SessionSwitcherContent-DCFXPY3d.js → SessionSwitcherContent-DxS_rFuS.js} +1 -1
- package/dist/assets/{SessionSwitcherDropdown-QY7FKuEQ.js → SessionSwitcherDropdown-AVghToww.js} +2 -2
- package/dist/assets/{SessionUnreadDot-DGT31A3z.js → SessionUnreadDot-CDRZswx-.js} +1 -1
- package/dist/assets/SettingsView-hyAGp836.js +2 -0
- package/dist/assets/SettingsWindow-BfPUzBbq.js +1 -0
- package/dist/assets/{ToolOutputDialog-IlCrS6BR.js → ToolOutputDialog-CJ87b80H.js} +5 -5
- package/dist/assets/{ToolPartDiffPreview-D68JV0rR.js → ToolPartDiffPreview-bF486Lz1.js} +1 -1
- package/dist/assets/{VirtualizedFileDiff-Bl-rAYeh.js → VirtualizedFileDiff-CFpvcZ1g.js} +1 -1
- package/dist/assets/{collapsible-BjniCdZ5.js → collapsible-DesjbW8a.js} +1 -1
- package/dist/assets/{computeVirtualFileMetrics-FSOm2VrW.js → computeVirtualFileMetrics-CsAu9rOt.js} +1 -1
- package/dist/assets/{contextFileOpenGuard-Bxb6AIPa.js → contextFileOpenGuard-rILslsBJ.js} +1 -1
- package/dist/assets/{gitStatusPredicates-DxolDpMd.js → gitStatusPredicates-D_31YElh.js} +1 -1
- package/dist/assets/index-BXgR2dKM.css +1 -0
- package/dist/assets/index-BZpvAhrX.js +8 -0
- package/dist/assets/{index-Dh58uD3I.js → index-CXLVW_GG.js} +1 -1
- package/dist/assets/{isDiffPlainText-D3_04XCh.js → isDiffPlainText-BX609Lau.js} +1 -1
- package/dist/assets/{isFilePlainText-CHouYQhH.js → isFilePlainText-FgBWqu9b.js} +1 -1
- package/dist/assets/{main-CH3EqGJI.js → main-C_pL2r_k.js} +2 -2
- package/dist/assets/{main-HzTrVvbB.js → main-tv2uysSs.js} +7 -7
- package/dist/assets/{markdownCore-DJU4KvHP.js → markdownCore-D3Ibaffd.js} +1 -1
- package/dist/assets/{miniChat-Ca3TpaaA.js → miniChat-B0xQlBzZ.js} +2 -2
- package/dist/assets/{mobile-lj4gpGsO.js → mobile-BmSlVuhn.js} +2 -2
- package/dist/assets/renderElectronMiniChatApp-C4xZzAnn.js +2 -0
- package/dist/assets/renderMobileApp-Bi8wTGd5.js +11 -0
- package/dist/assets/runtimeEndpointReset-B6_gFvBD.js +53 -0
- package/dist/assets/{runtimeSurface-CE_VNjdH.js → runtimeSurface-egSD9pqj.js} +1 -1
- package/dist/assets/{useAppFontEffects-BvFAP9zG.js → useAppFontEffects-C9QQrBIx.js} +104 -104
- package/dist/assets/{useFilesViewSearch-BD79p3A2.js → useFilesViewSearch-BTZutbn-.js} +2 -2
- package/dist/assets/{usePushVisibilityBeacon-CWg0j-Wg.js → usePushVisibilityBeacon-BZcHxSo-.js} +1 -1
- package/dist/assets/useSwitcherItems-Dw5tHQh8.js +1 -0
- package/dist/assets/{vendor-codemirror-language-data-CP3j3-xu.js → vendor-codemirror-language-data-0f_rLdj_.js} +2 -2
- package/dist/assets/{web-components-DWuadqra.js → web-components-CYngz9Ml.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/mini-chat.html +3 -3
- package/dist/mobile.html +3 -3
- package/package.json +1 -1
- package/server/index.js +17 -3
- package/server/lib/client-auth/DOCUMENTATION.md +184 -0
- package/server/lib/client-auth/live-revocation.test.js +567 -0
- package/server/lib/client-auth/principal-tracker.js +383 -0
- package/server/lib/client-auth/principal-tracker.test.js +321 -0
- package/server/lib/client-auth/remote-clients.js +31 -0
- package/server/lib/client-auth/remote-clients.test.js +44 -0
- package/server/lib/pi/event-stream.js +269 -0
- package/server/lib/pi/event-stream.test.js +776 -0
- package/server/lib/pi/routes.js +76 -25
- package/server/lib/pi/routes.test.js +48 -4
- package/server/lib/pi/session-daemon/DOCUMENTATION.md +5 -4
- package/server/lib/pi/session-daemon/ipc-client.js +19 -15
- package/server/lib/pi/session-daemon/ipc-client.test.js +113 -1
- package/server/lib/pi/session-daemon/session-daemon-epoch.test.js +349 -0
- package/server/lib/pi/session-daemon/session-daemon.js +55 -6
- package/server/lib/pi/session-daemon/session-daemon.test.js +10 -4
- package/server/lib/pi/session-daemon/session-replay.test.js +8 -3
- package/server/lib/pi/session-daemon/supervisor.js +30 -5
- package/server/lib/pi/session-daemon/supervisor.test.js +4 -3
- package/server/lib/pi/ui-settings-store.js +1 -1
- package/server/lib/pi/ui-settings-store.test.js +3 -1
- package/server/lib/server/core-routes.js +11 -1
- package/server/lib/stt/DOCUMENTATION.md +2 -0
- package/server/lib/stt/runtime.js +39 -2
- package/server/lib/stt/runtime.test.js +53 -0
- package/server/lib/terminal/DOCUMENTATION.md +2 -0
- package/server/lib/terminal/runtime.js +48 -2
- package/server/lib/terminal/runtime.test.js +35 -0
- package/server/lib/ui-auth/DOCUMENTATION.md +13 -4
- package/server/lib/ui-auth/ui-auth.js +98 -0
- package/server/lib/ui-auth/ui-auth.test.js +249 -0
- package/server/lib/workspace/host.js +3 -1
- package/dist/assets/SettingsView-eG-wN-yY.js +0 -2
- package/dist/assets/SettingsWindow-Dvnp8YrA.js +0 -1
- package/dist/assets/index-BpmGBboM.css +0 -1
- package/dist/assets/index-DZnzXhTs.js +0 -8
- package/dist/assets/renderElectronMiniChatApp-rUFfaD-T.js +0 -2
- package/dist/assets/renderMobileApp-CcWQ1sCf.js +0 -11
- package/dist/assets/runtimeEndpointReset-D2MmSbDk.js +0 -53
- package/dist/assets/useSwitcherItems-CazJ6Yox.js +0 -1
|
@@ -2,6 +2,8 @@ import { afterAll, describe, expect, it } from 'bun:test';
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
+
import crypto from 'node:crypto';
|
|
6
|
+
import { createPrincipalTracker } from '../client-auth/principal-tracker.js';
|
|
5
7
|
|
|
6
8
|
const dataDir = fs.mkdtempSync(path.join(os.tmpdir(), 'pichamber-ui-auth-test-'));
|
|
7
9
|
process.env.PICHAMBER_DATA_DIR = dataDir;
|
|
@@ -300,3 +302,250 @@ describe('ui auth client credential seam', () => {
|
|
|
300
302
|
expect(expiresAt).toBeLessThanOrEqual(Date.now() + 124_000);
|
|
301
303
|
});
|
|
302
304
|
});
|
|
305
|
+
|
|
306
|
+
describe('ui auth live revocation', () => {
|
|
307
|
+
const createRealClientAuth = async () => {
|
|
308
|
+
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'pichamber-ui-auth-revoke-'));
|
|
309
|
+
const remoteClientAuthRuntime = (await import('../client-auth/remote-clients.js')).createRemoteClientAuthRuntime({
|
|
310
|
+
fsPromises: fs.promises,
|
|
311
|
+
path,
|
|
312
|
+
crypto,
|
|
313
|
+
storePath: path.join(dir, 'remote-clients.json'),
|
|
314
|
+
});
|
|
315
|
+
return { dir, remoteClientAuthRuntime };
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const createEventStreamResponse = () => {
|
|
319
|
+
const res = createResponse();
|
|
320
|
+
res.destroyed = false;
|
|
321
|
+
res.writableEnded = false;
|
|
322
|
+
res.destroyCalls = 0;
|
|
323
|
+
res.destroy = () => {
|
|
324
|
+
res.destroyCalls += 1;
|
|
325
|
+
res.destroyed = true;
|
|
326
|
+
};
|
|
327
|
+
return res;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
const eventStreamReq = (headers = {}) => ({
|
|
331
|
+
method: 'GET',
|
|
332
|
+
path: '/api/pi/events',
|
|
333
|
+
url: '/api/pi/events',
|
|
334
|
+
headers,
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
it('denies an already-minted URL token at establishment after revocation (mint/open race)', async () => {
|
|
338
|
+
const { dir, remoteClientAuthRuntime } = await createRealClientAuth();
|
|
339
|
+
try {
|
|
340
|
+
const created = await remoteClientAuthRuntime.createClient({ label: 'Phone' });
|
|
341
|
+
const createUiAuth = await loadCreateUiAuth();
|
|
342
|
+
const auth = createUiAuth({
|
|
343
|
+
password: 'secret',
|
|
344
|
+
clientAuthController: remoteClientAuthRuntime,
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
const mintRes = createResponse();
|
|
348
|
+
await auth.handleUrlAuthToken({
|
|
349
|
+
method: 'POST',
|
|
350
|
+
path: '/auth/url-token',
|
|
351
|
+
headers: { authorization: `Bearer ${created.token}`, accept: 'application/json' },
|
|
352
|
+
}, mintRes);
|
|
353
|
+
const urlToken = mintRes.body.token;
|
|
354
|
+
expect(urlToken.startsWith('oc_url_')).toBe(true);
|
|
355
|
+
|
|
356
|
+
// Establishment still works before revocation.
|
|
357
|
+
const wsPath = '/api/terminal/ws';
|
|
358
|
+
const beforeRevoke = {
|
|
359
|
+
method: 'GET',
|
|
360
|
+
path: wsPath,
|
|
361
|
+
url: `${wsPath}?oc_url_token=${encodeURIComponent(urlToken)}`,
|
|
362
|
+
headers: { connection: 'Upgrade', upgrade: 'websocket' },
|
|
363
|
+
};
|
|
364
|
+
expect(await auth.ensureSessionToken(beforeRevoke, createResponse())).toBe(`client:${created.client.id}`);
|
|
365
|
+
|
|
366
|
+
// Revoke, then try to open with the token minted moments earlier.
|
|
367
|
+
await remoteClientAuthRuntime.revokeClient(created.client.id);
|
|
368
|
+
for (const path of ['/api/terminal/ws', '/api/stt/ws']) {
|
|
369
|
+
const openReq = {
|
|
370
|
+
method: 'GET',
|
|
371
|
+
path,
|
|
372
|
+
url: `${path}?oc_url_token=${encodeURIComponent(urlToken)}`,
|
|
373
|
+
headers: { connection: 'Upgrade', upgrade: 'websocket' },
|
|
374
|
+
};
|
|
375
|
+
expect(await auth.ensureSessionToken(openReq, createResponse())).toBe(null);
|
|
376
|
+
}
|
|
377
|
+
const sseReq = {
|
|
378
|
+
method: 'GET',
|
|
379
|
+
path: '/api/pi/events',
|
|
380
|
+
url: `/api/pi/events?oc_url_token=${encodeURIComponent(urlToken)}`,
|
|
381
|
+
headers: {},
|
|
382
|
+
};
|
|
383
|
+
const sseRes = createResponse();
|
|
384
|
+
let opened = false;
|
|
385
|
+
await auth.requireAuth(sseReq, sseRes, () => { opened = true; });
|
|
386
|
+
expect(opened).toBe(false);
|
|
387
|
+
expect(sseRes.statusCode).toBe(401);
|
|
388
|
+
auth.dispose();
|
|
389
|
+
} finally {
|
|
390
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
|
|
394
|
+
it('tracks authenticated SSE connections under the verified principal and closes them on revocation', async () => {
|
|
395
|
+
const { dir, remoteClientAuthRuntime } = await createRealClientAuth();
|
|
396
|
+
try {
|
|
397
|
+
const revokedDevice = await remoteClientAuthRuntime.createClient({ label: 'Phone' });
|
|
398
|
+
const otherDevice = await remoteClientAuthRuntime.createClient({ label: 'Tablet' });
|
|
399
|
+
const createUiAuth = await loadCreateUiAuth();
|
|
400
|
+
const tracker = createPrincipalTracker();
|
|
401
|
+
const liveRevocation = {
|
|
402
|
+
trackLiveConnection: ({ principal, close }) => tracker.track({ principal, close }),
|
|
403
|
+
clientRevoked: (clientId) => tracker.closePrincipal(`client:${clientId}`, 'credential-revoked'),
|
|
404
|
+
revokeAllLive: (reason) => tracker.closeAll(reason),
|
|
405
|
+
};
|
|
406
|
+
const auth = createUiAuth({
|
|
407
|
+
password: 'secret',
|
|
408
|
+
clientAuthController: remoteClientAuthRuntime,
|
|
409
|
+
liveRevocation,
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
const revokedRes = createEventStreamResponse();
|
|
413
|
+
const otherRes = createEventStreamResponse();
|
|
414
|
+
await auth.requireAuth(eventStreamReq({ authorization: `Bearer ${revokedDevice.token}` }), revokedRes, () => {});
|
|
415
|
+
await auth.requireAuth(eventStreamReq({ authorization: `Bearer ${otherDevice.token}` }), otherRes, () => {});
|
|
416
|
+
|
|
417
|
+
// Both streams are tracked under their store-derived principal — never
|
|
418
|
+
// under a client-supplied ID.
|
|
419
|
+
expect(tracker.countPrincipal(`client:${revokedDevice.client.id}`)).toBe(1);
|
|
420
|
+
expect(tracker.countPrincipal(`client:${otherDevice.client.id}`)).toBe(1);
|
|
421
|
+
expect(revokedRes.destroyCalls).toBe(0);
|
|
422
|
+
|
|
423
|
+
// The auth-owning revoke route: store write, then immediate close.
|
|
424
|
+
await remoteClientAuthRuntime.revokeClient(revokedDevice.client.id);
|
|
425
|
+
expect(liveRevocation.clientRevoked(revokedDevice.client.id)).toBe(1);
|
|
426
|
+
|
|
427
|
+
expect(revokedRes.destroyCalls).toBe(1);
|
|
428
|
+
// The other device keeps its live connection.
|
|
429
|
+
expect(otherRes.destroyCalls).toBe(0);
|
|
430
|
+
expect(tracker.countPrincipal(`client:${otherDevice.client.id}`)).toBe(1);
|
|
431
|
+
|
|
432
|
+
// A revoked device cannot reconnect.
|
|
433
|
+
const reconnectRes = createResponse();
|
|
434
|
+
let reconnected = false;
|
|
435
|
+
await auth.requireAuth(eventStreamReq({ authorization: `Bearer ${revokedDevice.token}` }), reconnectRes, () => { reconnected = true; });
|
|
436
|
+
expect(reconnected).toBe(false);
|
|
437
|
+
expect(reconnectRes.statusCode).toBe(401);
|
|
438
|
+
|
|
439
|
+
auth.dispose();
|
|
440
|
+
} finally {
|
|
441
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
it('closes tracked live connections when global sign-out is requested', async () => {
|
|
446
|
+
const { dir, remoteClientAuthRuntime } = await createRealClientAuth();
|
|
447
|
+
try {
|
|
448
|
+
const created = await remoteClientAuthRuntime.createClient({ label: 'Phone' });
|
|
449
|
+
const createUiAuth = await loadCreateUiAuth();
|
|
450
|
+
const tracker = createPrincipalTracker();
|
|
451
|
+
const closed = [];
|
|
452
|
+
const liveRevocation = {
|
|
453
|
+
trackLiveConnection: ({ principal, close }) => tracker.track({
|
|
454
|
+
principal,
|
|
455
|
+
close: (reason) => {
|
|
456
|
+
closed.push({ principal, reason });
|
|
457
|
+
// Forward to the transport close the auth boundary registered.
|
|
458
|
+
close(reason);
|
|
459
|
+
},
|
|
460
|
+
}),
|
|
461
|
+
revokeAllLive: (reason) => tracker.closeAll(reason),
|
|
462
|
+
};
|
|
463
|
+
const auth = createUiAuth({
|
|
464
|
+
password: 'secret',
|
|
465
|
+
clientAuthController: remoteClientAuthRuntime,
|
|
466
|
+
liveRevocation,
|
|
467
|
+
});
|
|
468
|
+
|
|
469
|
+
const loginRes = createResponse();
|
|
470
|
+
await auth.handleSessionCreate({ method: 'POST', headers: {}, body: { password: 'secret' } }, loginRes);
|
|
471
|
+
const sessionCookie = String(loginRes.getHeader('set-cookie') || '').split(';', 1)[0];
|
|
472
|
+
|
|
473
|
+
const sseRes = createEventStreamResponse();
|
|
474
|
+
await auth.requireAuth(eventStreamReq({ cookie: sessionCookie }), sseRes, () => {});
|
|
475
|
+
|
|
476
|
+
const resetRes = createResponse();
|
|
477
|
+
await auth.requireSessionAuth({ method: 'POST', path: '/auth/reset', headers: { cookie: sessionCookie } }, resetRes, async () => {
|
|
478
|
+
await auth.handleResetAuth({ method: 'POST', path: '/auth/reset', headers: { cookie: sessionCookie } }, resetRes);
|
|
479
|
+
});
|
|
480
|
+
expect(resetRes.body.signedOutEverywhere).toBe(true);
|
|
481
|
+
expect(closed).toEqual([{ principal: expect.any(String), reason: 'signout-everywhere' }]);
|
|
482
|
+
expect(sseRes.destroyCalls).toBe(1);
|
|
483
|
+
|
|
484
|
+
// The rotated signing secret denies the old session immediately.
|
|
485
|
+
const afterRes = createResponse();
|
|
486
|
+
let afterCalled = false;
|
|
487
|
+
await auth.requireAuth(eventStreamReq({ cookie: sessionCookie }), afterRes, () => { afterCalled = true; });
|
|
488
|
+
expect(afterCalled).toBe(false);
|
|
489
|
+
expect(afterRes.statusCode).toBe(401);
|
|
490
|
+
auth.dispose();
|
|
491
|
+
} finally {
|
|
492
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
|
|
496
|
+
it('passes the pre-verify generation to the tracker so a racing global invalidation is rejected', async () => {
|
|
497
|
+
const createUiAuth = await loadCreateUiAuth();
|
|
498
|
+
const seen = [];
|
|
499
|
+
let generation = 7;
|
|
500
|
+
const liveRevocation = {
|
|
501
|
+
getGeneration: () => generation,
|
|
502
|
+
trackLiveConnection: ({ principal, close, generation: atTrack }) => {
|
|
503
|
+
seen.push({ principal, generation: atTrack });
|
|
504
|
+
return { end: () => {}, revoke: () => false, active: true };
|
|
505
|
+
},
|
|
506
|
+
};
|
|
507
|
+
const auth = createUiAuth({
|
|
508
|
+
password: 'secret',
|
|
509
|
+
clientAuthController: { authenticateBearerToken: async () => null },
|
|
510
|
+
liveRevocation,
|
|
511
|
+
});
|
|
512
|
+
const loginRes = createResponse();
|
|
513
|
+
await auth.handleSessionCreate({ method: 'POST', headers: {}, body: { password: 'secret' } }, loginRes);
|
|
514
|
+
const sessionCookie = String(loginRes.getHeader('set-cookie') || '').split(';', 1)[0];
|
|
515
|
+
// Generation is captured before verification; a rotation racing the
|
|
516
|
+
// await would bump the coordinator, so the captured value must match
|
|
517
|
+
// the pre-verify snapshot, not a post-verify reread.
|
|
518
|
+
generation = 7;
|
|
519
|
+
await auth.requireAuth(eventStreamReq({ cookie: sessionCookie }), createResponse(), () => {});
|
|
520
|
+
expect(seen).toHaveLength(1);
|
|
521
|
+
expect(seen[0].generation).toBe(7);
|
|
522
|
+
auth.dispose();
|
|
523
|
+
});
|
|
524
|
+
|
|
525
|
+
it('refuses global sign-out while PICHAMBER_JWT_SECRET is set without closing live connections', async () => {
|
|
526
|
+
const createUiAuth = await loadCreateUiAuth();
|
|
527
|
+
const previous = process.env.PICHAMBER_JWT_SECRET;
|
|
528
|
+
process.env.PICHAMBER_JWT_SECRET = 'env-secret-for-test';
|
|
529
|
+
try {
|
|
530
|
+
let revokeCalls = 0;
|
|
531
|
+
const liveRevocation = {
|
|
532
|
+
trackLiveConnection: () => ({ end: () => {}, revoke: () => false, active: true }),
|
|
533
|
+
revokeAllLive: () => { revokeCalls += 1; return 0; },
|
|
534
|
+
};
|
|
535
|
+
const auth = createUiAuth({
|
|
536
|
+
password: 'secret',
|
|
537
|
+
clientAuthController: { authenticateBearerToken: async () => null },
|
|
538
|
+
liveRevocation,
|
|
539
|
+
});
|
|
540
|
+
const res = createResponse();
|
|
541
|
+
await auth.handleResetAuth({ method: 'POST', headers: {} }, res);
|
|
542
|
+
expect(res.statusCode).toBe(400);
|
|
543
|
+
expect(String(res.body?.error || '')).toMatch(/PICHAMBER_JWT_SECRET/);
|
|
544
|
+
expect(revokeCalls).toBe(0);
|
|
545
|
+
auth.dispose();
|
|
546
|
+
} finally {
|
|
547
|
+
if (previous === undefined) delete process.env.PICHAMBER_JWT_SECRET;
|
|
548
|
+
else process.env.PICHAMBER_JWT_SECRET = previous;
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
});
|
|
@@ -53,7 +53,7 @@ const resolveProjectDirectory = async (req) => {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export const registerWorkspaceIntegrations = ({ app, server, express, uiAuthController, dataDir }) => {
|
|
56
|
+
export const registerWorkspaceIntegrations = ({ app, server, express, uiAuthController, dataDir, liveRevocation = null }) => {
|
|
57
57
|
const security = createRequestSecurityRuntime({ readSettingsFromDiskMigrated: async () => ({}) });
|
|
58
58
|
registerGitRoutes(app);
|
|
59
59
|
registerFsRoutes(app, {
|
|
@@ -75,6 +75,7 @@ export const registerWorkspaceIntegrations = ({ app, server, express, uiAuthCont
|
|
|
75
75
|
fs,
|
|
76
76
|
path,
|
|
77
77
|
uiAuthController,
|
|
78
|
+
liveRevocation,
|
|
78
79
|
buildAugmentedPath,
|
|
79
80
|
searchPathFor,
|
|
80
81
|
isExecutable,
|
|
@@ -86,6 +87,7 @@ export const registerWorkspaceIntegrations = ({ app, server, express, uiAuthCont
|
|
|
86
87
|
server,
|
|
87
88
|
express,
|
|
88
89
|
uiAuthController,
|
|
90
|
+
liveRevocation,
|
|
89
91
|
isRequestOriginAllowed: security.isRequestOriginAllowed,
|
|
90
92
|
rejectWebSocketUpgrade: security.rejectWebSocketUpgrade,
|
|
91
93
|
modelsDir: path.join(dataDir, 'speech-models'),
|