@volter/supercode-teams 0.2.136 → 0.2.137

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/worker/index.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.2.136",
3
+ "version": "0.2.137",
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",
package/worker/index.mjs CHANGED
@@ -97,8 +97,8 @@ export class TeamsServer extends DurableObject {
97
97
  super(ctx, env);
98
98
  this.ready = ctx.blockConcurrencyWhile(async () => {
99
99
  // Read before migrations/maintenance: allocation failures must not hide
100
- // the table responsible. Run only near capacity, once per activation.
101
- if (ctx.storage.sql.databaseSize >= 900 * 1024 * 1024) logStorageBreakdown(ctx.storage.sql);
100
+ // the table responsible, including hosts with a lower storage limit.
101
+ logStorageBreakdown(ctx.storage.sql);
102
102
  const db = durableSql(ctx.storage);
103
103
  migrate({ exec: db.exec, tx: db.tx, version: () => ctx.storage.kv.get('schema_version') ?? 0, setVersion: (n) => ctx.storage.kv.put('schema_version', n) });
104
104
  this.api = createTeamsApi({ publicOrigin: normalizePublicOrigin(env.PUBLIC_ORIGIN), identityIssuer: env.VOLTER_ISSUER || null, identityOrganizations: identityOrganizationsFromEnv(env), delegatedIssuer: env.DELEGATED_ISSUER || null });