@volter/supercode-teams 0.2.85 → 0.2.87
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/connector/index.mjs +7 -2
- package/package.json +1 -1
package/connector/index.mjs
CHANGED
|
@@ -262,13 +262,18 @@ export class TeamsConnector {
|
|
|
262
262
|
// syncing. An error of the connection itself (the outbox, authentication, the server, a stop) still ends
|
|
263
263
|
// the pass. The session keeps its native binding either way, so it can still be attached to.
|
|
264
264
|
let captured = true;
|
|
265
|
-
|
|
265
|
+
// A session whose store is unchanged since this rule last committed it is in sync, whatever it last failed.
|
|
266
|
+
const changed = this.sessionChanged(options); if (!changed) this.clearSessionProblem(harness, nativeSessionId);
|
|
267
|
+
if (changed && !this.predatesWindow(options)) try { await this.capture(options); } catch (error) {
|
|
266
268
|
if (connectionError(error) || this.abort.signal.aborted) throw error;
|
|
267
269
|
captured = false; this.noteSessionProblem(options, error);
|
|
268
270
|
process.stderr.write(`supercode teams: ${harness} session ${nativeSessionId} not synced: ${error.message}\n`);
|
|
269
271
|
}
|
|
270
272
|
try { await this.nativeEffects.discover(descriptor, rule.id); } catch (error) { this.lastError = error; }
|
|
271
|
-
|
|
273
|
+
// A large transcript is never followed: its harness process would hold the whole session and compare and copy
|
|
274
|
+
// all of it on every append (gigabytes and a busy core on the Mac mini, for two live 60-90 MB sessions), while
|
|
275
|
+
// its captures are paced by the large lanes anyway and each beat still finds its change.
|
|
276
|
+
if (!captured || this.largeSession(options)) continue;
|
|
272
277
|
followCandidates.push({key:`${rule.id}:${harness}:${nativeSessionId}`,activity:this.sessionActivity(options),options});
|
|
273
278
|
}
|
|
274
279
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.87",
|
|
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",
|