bazis 0.111.1 → 0.111.2

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.
@@ -232,7 +232,7 @@ export class CodexAppServerClient implements CodexClient {
232
232
  if (method === "account/updated") this.modelCache = undefined;
233
233
  }, () => { this.clearLogin(); this.modelCache = undefined; });
234
234
  const initialized = await client.request("initialize", {
235
- clientInfo: { name: "bazis", title: "Bazis", version: "0.111.1" }, capabilities: { experimentalApi: true },
235
+ clientInfo: { name: "bazis", title: "Bazis", version: "0.111.2" }, capabilities: { experimentalApi: true },
236
236
  }, 15_000, signal);
237
237
  if (resolve(text(initialized.codexHome, 4096)) !== this.paths.home) throw new CodexError("PROTOCOL_ERROR");
238
238
  client.notify("initialized");
@@ -174,8 +174,10 @@ export class LifecycleCoordinator {
174
174
  const names = batch.map(serviceName);
175
175
  for (const name of names) this.pending.add(name);
176
176
  const startedAt = performance.now();
177
- const results = await Promise.allSettled(batch.map((service) => this.startService(service, signal)));
178
- for (const name of names) this.pending.delete(name);
177
+ // Each service leaves the pending list as soon as it has started, so a
178
+ // startup timeout names only the ones still starting.
179
+ const results = await Promise.allSettled(batch.map((service, index) =>
180
+ this.startService(service, signal).finally(() => this.pending.delete(names[index] as string))));
179
181
  this.timings.push(Object.freeze({ names: Object.freeze(names), phase: batch[0]?.phase ?? 0, ms: performance.now() - startedAt }));
180
182
  const failures: StartupFailure[] = [];
181
183
  results.forEach((result, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bazis",
3
- "version": "0.111.1",
3
+ "version": "0.111.2",
4
4
  "description": "Modular backend framework for Bun in TypeScript: DI wired by codegen, HTTP, a PostgreSQL ORM, JWT, WebSocket, agents and a CLI.",
5
5
  "license": "MIT",
6
6
  "author": "Alexander Alenin",