@volter/supercode-teams 0.3.174 → 0.3.176
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.176",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@volter/supercode-frontend": "^0.2.2",
|
|
85
85
|
"@volter/supercode-harness-sdk": "^0.3.58",
|
|
86
86
|
"@volter/supercode-health": "^0.1.0",
|
|
87
|
-
"@volter/supercode-interchange": "0.1.
|
|
87
|
+
"@volter/supercode-interchange": "0.1.4",
|
|
88
88
|
"@volter/supercode-terminal": "^0.2.54",
|
|
89
89
|
"@volter/supercode-trace": "^0.1.0",
|
|
90
90
|
"@volter/teams": "0.2.45",
|
package/session-read-client.mjs
CHANGED
|
@@ -70,7 +70,7 @@ export class SessionReadClient extends EventEmitter {
|
|
|
70
70
|
submit(request, onAnswer) {
|
|
71
71
|
if (this.#closed) return Promise.reject(new Error('session-read client is closed'));
|
|
72
72
|
if (!SESSION_READ_METHODS.includes(request.method)) return Promise.reject(new Error(`unknown session-read method: ${request.method}`));
|
|
73
|
-
const worker = this.#worker(
|
|
73
|
+
const worker = this.#worker(['harness.v1.sessions.load', 'harness.v1.sessions.recorded_config'].includes(request.method) ? 'load' : 'follow'), id = this.#next++;
|
|
74
74
|
return new Promise((resolve, reject) => {
|
|
75
75
|
this.#pending.set(id, { worker, request, onAnswer, resolve, reject });
|
|
76
76
|
try { worker.postMessage({ id, method: request.method, params: stringifySessionWire(request.params ?? {}), retain: hasId(request),
|
package/session-read-worker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// One caller-owned worker per read lane; no binary, daemon, or credentials
|
|
2
2
|
// outside that caller's process. A long load cannot hold the stdio router.
|
|
3
3
|
import { parentPort, workerData } from 'node:worker_threads';
|
|
4
|
-
import { loadSessionRead, openSessionReadFollower, parseSessionWire, stringifySessionWire, SESSION_READ_EVENT } from '@volter/supercode-interchange/session-read';
|
|
4
|
+
import { loadSessionRead, loadRecordedSessionConfiguration, openSessionReadFollower, parseSessionWire, stringifySessionWire, SESSION_READ_EVENT } from '@volter/supercode-interchange/session-read';
|
|
5
5
|
|
|
6
6
|
const followers = new Map(), context = { env: workerData.env, cwd: workerData.cwd };
|
|
7
7
|
let closing = false, queue = Promise.resolve(), polling = false;
|
|
@@ -33,6 +33,7 @@ parentPort.on('message', (request) => {
|
|
|
33
33
|
const params = parseSessionWire(request.params);
|
|
34
34
|
let result;
|
|
35
35
|
if (request.method === 'harness.v1.sessions.load') result = await loadSessionRead(params, context);
|
|
36
|
+
else if (request.method === 'harness.v1.sessions.recorded_config') result = await loadRecordedSessionConfiguration(params, context);
|
|
36
37
|
else if (request.method === 'harness.v1.sessions.follow') {
|
|
37
38
|
const follower = await openSessionReadFollower(params, context);
|
|
38
39
|
if (closing) { follower.close(); return; }
|