@volter/supercode-teams 0.3.177 → 0.3.178

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.177",
3
+ "version": "0.3.178",
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.5",
87
+ "@volter/supercode-interchange": "0.1.6",
88
88
  "@volter/supercode-terminal": "^0.2.54",
89
89
  "@volter/supercode-trace": "^0.1.0",
90
90
  "@volter/teams": "0.2.45",
@@ -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(['harness.v1.sessions.load', 'harness.v1.sessions.recorded_config', 'harness.v1.sessions.launch_agent'].includes(request.method) ? 'load' : 'follow'), id = this.#next++;
73
+ const worker = this.#worker(['harness.v1.sessions.load', 'harness.v1.sessions.recorded_config', 'harness.v1.sessions.launch_agent', 'harness.v1.sessions.usage'].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),
@@ -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, loadRecordedSessionConfiguration, loadSessionLaunchAgent, openSessionReadFollower, parseSessionWire, stringifySessionWire, SESSION_READ_EVENT } from '@volter/supercode-interchange/session-read';
4
+ import { loadSessionRead, loadRecordedSessionConfiguration, loadSessionLaunchAgent, loadSessionUsage, 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;
@@ -35,6 +35,7 @@ parentPort.on('message', (request) => {
35
35
  if (request.method === 'harness.v1.sessions.load') result = await loadSessionRead(params, context);
36
36
  else if (request.method === 'harness.v1.sessions.recorded_config') result = await loadRecordedSessionConfiguration(params, context);
37
37
  else if (request.method === 'harness.v1.sessions.launch_agent') result = await loadSessionLaunchAgent(params, context);
38
+ else if (request.method === 'harness.v1.sessions.usage') result = await loadSessionUsage(params, context);
38
39
  else if (request.method === 'harness.v1.sessions.follow') {
39
40
  const follower = await openSessionReadFollower(params, context);
40
41
  if (closing) { follower.close(); return; }