dual-brain 0.3.0 → 0.3.1
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/hooks/precompact.mjs +3 -3
- package/hooks/session-end.mjs +3 -3
- package/install.mjs +2 -2
- package/package.json +1 -1
package/hooks/precompact.mjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// Ensures HEAD's running narrative, simmer buffer, and loop state survive
|
|
4
4
|
// context window compression without loss.
|
|
5
5
|
|
|
6
|
-
import { persist as persistNarrative, load as loadNarrative } from '../src/narrative.
|
|
7
|
-
import { active as activeSimmer, prune as pruneSimmer } from '../src/simmer.
|
|
8
|
-
import { getLoopStatus } from '../src/cognitive-loop.
|
|
6
|
+
import { persist as persistNarrative, load as loadNarrative } from '../dist/src/narrative.js';
|
|
7
|
+
import { active as activeSimmer, prune as pruneSimmer } from '../dist/src/simmer.js';
|
|
8
|
+
import { getLoopStatus } from '../dist/src/cognitive-loop.js';
|
|
9
9
|
import { existsSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
10
10
|
import { join } from 'node:path';
|
|
11
11
|
|
package/hooks/session-end.mjs
CHANGED
|
@@ -95,9 +95,9 @@ async function run() {
|
|
|
95
95
|
|
|
96
96
|
// 6. Persist immersion state and release session lock
|
|
97
97
|
try {
|
|
98
|
-
const { persist } = await import('../src/narrative.
|
|
99
|
-
const { prune } = await import('../src/simmer.
|
|
100
|
-
const { release } = await import('../src/session-lock.
|
|
98
|
+
const { persist } = await import('../dist/src/narrative.js');
|
|
99
|
+
const { prune } = await import('../dist/src/simmer.js');
|
|
100
|
+
const { release } = await import('../dist/src/session-lock.js');
|
|
101
101
|
persist();
|
|
102
102
|
prune();
|
|
103
103
|
release();
|
package/install.mjs
CHANGED
|
@@ -15,8 +15,8 @@ import { dirname, join, resolve } from 'path';
|
|
|
15
15
|
import { fileURLToPath } from 'url';
|
|
16
16
|
import { spawnSync } from 'child_process';
|
|
17
17
|
import { createHash } from 'crypto';
|
|
18
|
-
import { spinner, success as fxSuccess, warn as fxWarn, error as fxError, info as fxInfo, banner, celebrate, colors, sleep, nl, getMode } from './src/fx.
|
|
19
|
-
import { panel, signalLine, headerBar } from './src/tui.
|
|
18
|
+
import { spinner, success as fxSuccess, warn as fxWarn, error as fxError, info as fxInfo, banner, celebrate, colors, sleep, nl, getMode } from './dist/src/fx.js';
|
|
19
|
+
import { panel, signalLine, headerBar } from './dist/src/tui.js';
|
|
20
20
|
|
|
21
21
|
// Skip hook installation during global npm install — hooks are installed
|
|
22
22
|
// when the user runs 'dual-brain install' in their project directory.
|