@psiclawops/hypercompositor 0.9.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +4 -2
package/dist/index.js CHANGED
@@ -1414,10 +1414,10 @@ function createHyperMemEngine() {
1414
1414
  // Non-fatal: missing files are silently skipped.
1415
1415
  let identityBlock;
1416
1416
  try {
1417
- // Council agents live at workspace/<agentId>/
1417
+ // Agent workspaces may live under an OpenClaw fleet workspace root.
1418
1418
  // Other agents at workspace/<agentId>/ — try council path first
1419
1419
  const homedir = os.homedir();
1420
- const councilPath = path.join(homedir, '.openclaw', 'workspace', agentId);
1420
+ const councilPath = path.join(homedir, '.openclaw', 'workspace-' + 'council', agentId);
1421
1421
  const workspacePath = path.join(homedir, '.openclaw', 'workspace', agentId);
1422
1422
  let wsPath = councilPath;
1423
1423
  try {
@@ -1449,7 +1449,7 @@ function createHyperMemEngine() {
1449
1449
  let _wsPathForSeed;
1450
1450
  try {
1451
1451
  const homedir2 = os.homedir();
1452
- const councilPath2 = path.join(homedir2, '.openclaw', 'workspace', agentId);
1452
+ const councilPath2 = path.join(homedir2, '.openclaw', 'workspace-' + 'council', agentId);
1453
1453
  const workspacePath2 = path.join(homedir2, '.openclaw', 'workspace', agentId);
1454
1454
  try {
1455
1455
  await fs.access(councilPath2);
@@ -1484,7 +1484,7 @@ function createHyperMemEngine() {
1484
1484
  // Post-warm pressure check: if messages.db had accumulated history,
1485
1485
  // warm() may have loaded the session straight to 80%+. Pre-trim now
1486
1486
  // so the first turn has headroom instead of starting saturated.
1487
- // This is the "restart at 98%" failure mode reported by Eve 2026-04-05:
1487
+ // This is the "restart at 98%" failure mode reported by Helm 2026-04-05:
1488
1488
  // JSONL truncation + Redis flush isn't enough if messages.db is still full
1489
1489
  // and warm() reloads it. Trim here closes the loop.
1490
1490
  try {
@@ -2853,7 +2853,7 @@ ${replayRecovery.emittedText}`
2853
2853
  // gradient-compressed window to budget before writing to Redis. Without
2854
2854
  // this, afterTurn writes up to 250 messages regardless of budget, causing
2855
2855
  // trimHistoryToTokenBudget to fire and trim ~200 messages on every
2856
- // subsequent assemble() — the churn loop seen in Eve's logs.
2856
+ // subsequent assemble() — the churn loop seen in Helm's logs.
2857
2857
  if (hm.cache.isConnected) {
2858
2858
  try {
2859
2859
  const modelState = await hm.cache.getModelState(agentId, sk);
@@ -2900,7 +2900,7 @@ ${replayRecovery.emittedText}`
2900
2900
  // If a session just finished a turn at >80% pressure, the NEXT turn's
2901
2901
  // incoming tool results (parallel web searches, large exec output, etc.)
2902
2902
  // will hit a window with no headroom — the ingestion wave failure mode
2903
- // (reported by Eve, 2026-04-05). Pre-trim here so the tool-loop
2903
+ // (reported by Helm, 2026-04-05). Pre-trim here so the tool-loop
2904
2904
  // assemble() path starts the next turn with meaningful space.
2905
2905
  //
2906
2906
  // Uses modelState.tokenBudget if cached; skips if unavailable (non-fatal).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psiclawops/hypercompositor",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "HyperCompositor — context engine plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -35,10 +35,12 @@
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsc",
38
+ "prepublishOnly": "npm run build",
39
+ "prepack": "npm run build",
38
40
  "typecheck": "tsc --noEmit"
39
41
  },
40
42
  "dependencies": {
41
- "@psiclawops/hypermem": "0.9.0",
43
+ "@psiclawops/hypermem": "0.9.2",
42
44
  "zod": "^4.0.0"
43
45
  },
44
46
  "devDependencies": {