@possumtech/rummy 2.3.1 → 2.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@possumtech/rummy",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Relational Unknowns Memory Management Yoke",
5
5
  "keywords": [
6
6
  "llm"
@@ -1,3 +1,14 @@
1
+ import { projectEmission, summarizeEmission } from "../plugins/helpers.js";
2
+
3
+ // Shared projection helpers for plugins (including external ones).
4
+ // Action log entries tab-indent body via emission; summaries cap at
5
+ // SUMMARY_MAX_CHARS via summarize. External plugins use these via
6
+ // `core.projection` to avoid drift across the action-log paradigm.
7
+ const PROJECTION = Object.freeze({
8
+ emission: projectEmission,
9
+ summarize: summarizeEmission,
10
+ });
11
+
1
12
  // Plugin-only registration interface; tool verbs live on RummyContext. PLUGINS.md.
2
13
  export default class PluginContext {
3
14
  #name;
@@ -8,6 +19,10 @@ export default class PluginContext {
8
19
  this.#hooks = hooks;
9
20
  }
10
21
 
22
+ get projection() {
23
+ return PROJECTION;
24
+ }
25
+
11
26
  get name() {
12
27
  return this.#name;
13
28
  }