@cat-factory/kernel 0.84.0 → 0.85.0

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.
@@ -1,3 +1,4 @@
1
+ import type { GitHubRepo } from '../domain/types.js';
1
2
  import type { DocumentContent } from './document-source.js';
2
3
  import type { ResolvedCatalogEntry } from './fragment-repositories.js';
3
4
  /**
@@ -48,6 +49,19 @@ export interface AppCaches {
48
49
  * fragment refresh/edit) invalidate it directly.
49
50
  */
50
51
  fragmentDocumentBody: GroupCacheHandle<DocumentContent>;
52
+ /**
53
+ * The workspace's GitHub repo projection (`repoProjectionRepository.list`),
54
+ * grouped AND keyed by workspace id — the whole-projection re-list the
55
+ * block→repo resolver (`buildResolveRepoTarget`) runs on every agent dispatch and
56
+ * every durable poll tick (docs/initiatives/caching-layer.md slice 3). Coherence
57
+ * is invalidation-driven: every projection write (GitHub sync/webhook tombstone,
58
+ * repo link/monorepo-flag, bootstrap projection) drops the workspace group after
59
+ * the write commits. The installation lookup and the (tree-depth-bounded) block
60
+ * ancestry walk stay live, so a reparent or service repo-link change needs no
61
+ * invalidation. Pass-through on the Worker's isolate-safe profile (our own mutable
62
+ * D1 state, no cross-isolate bus), so it caches only on the Node/local facades.
63
+ */
64
+ repoProjection: GroupCacheHandle<GitHubRepo[]>;
51
65
  /** Release notification-bus resources (a no-op for bare in-memory caches). */
52
66
  close(): Promise<void>;
53
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"caching.d.ts","sourceRoot":"","sources":["../../src/ports/caching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAYtE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC;;;;;;;OAOG;IACH,GAAG,CACD,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,IAAI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IAChF,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACrD,8DAA8D;IAC9D,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS;IACxB,iFAAiF;IACjF,eAAe,EAAE,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,CAAA;IACzD;;;;;;;;OAQG;IACH,oBAAoB,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAA;IACvD;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAA;IAC9C,8EAA8E;IAC9E,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/kernel",
3
- "version": "0.84.0",
3
+ "version": "0.85.0",
4
4
  "description": "Shared vocabulary, pure logic, and port interfaces for the Agent Architecture Board.",
5
5
  "repository": {
6
6
  "type": "git",