@cat-factory/kernel 0.121.2 → 0.121.3

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.
@@ -2,6 +2,14 @@ import type { WorkspaceSettings } from '../domain/types.js';
2
2
  export interface WorkspaceSettingsRepository {
3
3
  /** A workspace's settings, or null if none have been persisted yet (caller seeds the default). */
4
4
  get(workspaceId: string): Promise<WorkspaceSettings | null>;
5
+ /**
6
+ * Batch-read many workspaces' settings in one chunked `IN` query, keyed by workspace id.
7
+ * Only persisted rows appear — a workspace with no stored settings is absent from the map
8
+ * (the caller supplies the default). Lets a sweep that visits every workspace (the periodic
9
+ * notification-escalation pass) resolve every threshold in one read instead of an N+1
10
+ * point-read per workspace.
11
+ */
12
+ listByWorkspaceIds(workspaceIds: string[]): Promise<Map<string, WorkspaceSettings>>;
5
13
  /** Create or replace a workspace's settings. */
6
14
  upsert(workspaceId: string, settings: WorkspaceSettings): Promise<void>;
7
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-settings-repositories.d.ts","sourceRoot":"","sources":["../../src/ports/workspace-settings-repositories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAO3D,MAAM,WAAW,2BAA2B;IAC1C,kGAAkG;IAClG,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC3D,gDAAgD;IAChD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACxE"}
1
+ {"version":3,"file":"workspace-settings-repositories.d.ts","sourceRoot":"","sources":["../../src/ports/workspace-settings-repositories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAO3D,MAAM,WAAW,2BAA2B;IAC1C,kGAAkG;IAClG,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC3D;;;;;;OAMG;IACH,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAA;IACnF,gDAAgD;IAChD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACxE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/kernel",
3
- "version": "0.121.2",
3
+ "version": "0.121.3",
4
4
  "description": "Shared vocabulary, pure logic, and port interfaces for the Agent Architecture Board.",
5
5
  "repository": {
6
6
  "type": "git",