@remnic/core 10.0.179 → 10.0.180
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/dist/access-admin-ops-surface.js +3 -3
- package/dist/access-cli.js +3 -3
- package/dist/access-extraction-force-flush-preempt.js +3 -3
- package/dist/access-extraction-force-flush.js +3 -3
- package/dist/access-http-briefing.js +3 -3
- package/dist/access-http-query.js +3 -3
- package/dist/access-http.js +3 -3
- package/dist/access-identity-continuity-surface.js +3 -3
- package/dist/access-lcm-surface.js +3 -3
- package/dist/access-mcp.js +3 -3
- package/dist/access-observe-write-surface.js +3 -3
- package/dist/access-operations-batch.js +3 -3
- package/dist/access-operations.js +3 -3
- package/dist/access-recall-concurrency.js +3 -3
- package/dist/access-recall-response.js +3 -3
- package/dist/access-recall-surface.js +3 -3
- package/dist/access-service.js +3 -3
- package/dist/buffer-ingress-counters.d.ts.map +1 -1
- package/dist/buffer-ingress-counters.js +1 -1
- package/dist/buffer.js +2 -2
- package/dist/{chunk-BIUHAA2L.js → chunk-2UGHUFIO.js} +2 -2
- package/dist/{chunk-IRKQH74D.js → chunk-37ACBHVF.js} +2 -2
- package/dist/{chunk-2EY7KOE3.js → chunk-CUZVWNSV.js} +3 -3
- package/dist/{chunk-RADARJEC.js → chunk-V5UYOA4Q.js} +1 -1
- package/dist/{chunk-RADARJEC.js.map → chunk-V5UYOA4Q.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/explicit-capture.js +3 -3
- package/dist/index.js +3 -3
- package/dist/orchestration/backlog-scheduler.js +4 -4
- package/dist/orchestration/buffer-drain-runner.js +4 -4
- package/dist/orchestrator.js +3 -3
- package/dist/recall-navigation.js +3 -3
- package/package.json +2 -2
- package/src/buffer-ingress-counters.ts +7 -15
- /package/dist/{chunk-BIUHAA2L.js.map → chunk-2UGHUFIO.js.map} +0 -0
- /package/dist/{chunk-IRKQH74D.js.map → chunk-37ACBHVF.js.map} +0 -0
- /package/dist/{chunk-2EY7KOE3.js.map → chunk-CUZVWNSV.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessAdminOpsSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
package/dist/access-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EngramAccessService,
|
|
3
3
|
Orchestrator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-37ACBHVF.js";
|
|
5
5
|
import "./chunk-PQM3B54K.js";
|
|
6
6
|
import "./chunk-OELN4JIO.js";
|
|
7
7
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -299,7 +299,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
299
299
|
import "./chunk-DEUNUKTD.js";
|
|
300
300
|
import "./chunk-LXY5VVGM.js";
|
|
301
301
|
import "./chunk-GKCXTSFF.js";
|
|
302
|
-
import "./chunk-
|
|
302
|
+
import "./chunk-2UGHUFIO.js";
|
|
303
303
|
import "./chunk-3SP7EZWA.js";
|
|
304
304
|
import "./chunk-FDLPNFKE.js";
|
|
305
305
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -315,7 +315,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
315
315
|
import "./chunk-WWUQ6CP3.js";
|
|
316
316
|
import "./chunk-ZY2MNJR6.js";
|
|
317
317
|
import "./chunk-XAIRTELU.js";
|
|
318
|
-
import "./chunk-
|
|
318
|
+
import "./chunk-V5UYOA4Q.js";
|
|
319
319
|
import "./chunk-TRFSTCQK.js";
|
|
320
320
|
import "./chunk-YBPYIAA5.js";
|
|
321
321
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forceFlushPreemptCall,
|
|
3
3
|
forceFlushPreemptCallback
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-37ACBHVF.js";
|
|
5
5
|
import "./chunk-PQM3B54K.js";
|
|
6
6
|
import "./chunk-OELN4JIO.js";
|
|
7
7
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -297,7 +297,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
297
297
|
import "./chunk-DEUNUKTD.js";
|
|
298
298
|
import "./chunk-LXY5VVGM.js";
|
|
299
299
|
import "./chunk-GKCXTSFF.js";
|
|
300
|
-
import "./chunk-
|
|
300
|
+
import "./chunk-2UGHUFIO.js";
|
|
301
301
|
import "./chunk-3SP7EZWA.js";
|
|
302
302
|
import "./chunk-FDLPNFKE.js";
|
|
303
303
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -313,7 +313,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
313
313
|
import "./chunk-WWUQ6CP3.js";
|
|
314
314
|
import "./chunk-ZY2MNJR6.js";
|
|
315
315
|
import "./chunk-XAIRTELU.js";
|
|
316
|
-
import "./chunk-
|
|
316
|
+
import "./chunk-V5UYOA4Q.js";
|
|
317
317
|
import "./chunk-TRFSTCQK.js";
|
|
318
318
|
import "./chunk-YBPYIAA5.js";
|
|
319
319
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractionForceFlush
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
respondBriefingHttp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
optionalNamespaceKindQueryParam,
|
|
4
4
|
optionalQueryString,
|
|
5
5
|
positiveIntQueryParam
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-37ACBHVF.js";
|
|
7
7
|
import "./chunk-PQM3B54K.js";
|
|
8
8
|
import "./chunk-OELN4JIO.js";
|
|
9
9
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -299,7 +299,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
299
299
|
import "./chunk-DEUNUKTD.js";
|
|
300
300
|
import "./chunk-LXY5VVGM.js";
|
|
301
301
|
import "./chunk-GKCXTSFF.js";
|
|
302
|
-
import "./chunk-
|
|
302
|
+
import "./chunk-2UGHUFIO.js";
|
|
303
303
|
import "./chunk-3SP7EZWA.js";
|
|
304
304
|
import "./chunk-FDLPNFKE.js";
|
|
305
305
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -315,7 +315,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
315
315
|
import "./chunk-WWUQ6CP3.js";
|
|
316
316
|
import "./chunk-ZY2MNJR6.js";
|
|
317
317
|
import "./chunk-XAIRTELU.js";
|
|
318
|
-
import "./chunk-
|
|
318
|
+
import "./chunk-V5UYOA4Q.js";
|
|
319
319
|
import "./chunk-TRFSTCQK.js";
|
|
320
320
|
import "./chunk-YBPYIAA5.js";
|
|
321
321
|
import "./chunk-HK6KYIF6.js";
|
package/dist/access-http.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EngramAccessHttpServer,
|
|
3
3
|
resolveDefaultAdminConsolePublicDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-37ACBHVF.js";
|
|
5
5
|
import "./chunk-PQM3B54K.js";
|
|
6
6
|
import "./chunk-OELN4JIO.js";
|
|
7
7
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -297,7 +297,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
297
297
|
import "./chunk-DEUNUKTD.js";
|
|
298
298
|
import "./chunk-LXY5VVGM.js";
|
|
299
299
|
import "./chunk-GKCXTSFF.js";
|
|
300
|
-
import "./chunk-
|
|
300
|
+
import "./chunk-2UGHUFIO.js";
|
|
301
301
|
import "./chunk-3SP7EZWA.js";
|
|
302
302
|
import "./chunk-FDLPNFKE.js";
|
|
303
303
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -313,7 +313,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
313
313
|
import "./chunk-WWUQ6CP3.js";
|
|
314
314
|
import "./chunk-ZY2MNJR6.js";
|
|
315
315
|
import "./chunk-XAIRTELU.js";
|
|
316
|
-
import "./chunk-
|
|
316
|
+
import "./chunk-V5UYOA4Q.js";
|
|
317
317
|
import "./chunk-TRFSTCQK.js";
|
|
318
318
|
import "./chunk-YBPYIAA5.js";
|
|
319
319
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessIdentityContinuitySurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessLcmSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
package/dist/access-mcp.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
EngramMcpServer,
|
|
3
3
|
MCP_MIGRATED_OPERATIONS,
|
|
4
4
|
MCP_SUPPORTED_PROTOCOL_VERSIONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-37ACBHVF.js";
|
|
6
6
|
import "./chunk-PQM3B54K.js";
|
|
7
7
|
import "./chunk-OELN4JIO.js";
|
|
8
8
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -298,7 +298,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
298
298
|
import "./chunk-DEUNUKTD.js";
|
|
299
299
|
import "./chunk-LXY5VVGM.js";
|
|
300
300
|
import "./chunk-GKCXTSFF.js";
|
|
301
|
-
import "./chunk-
|
|
301
|
+
import "./chunk-2UGHUFIO.js";
|
|
302
302
|
import "./chunk-3SP7EZWA.js";
|
|
303
303
|
import "./chunk-FDLPNFKE.js";
|
|
304
304
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -314,7 +314,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
314
314
|
import "./chunk-WWUQ6CP3.js";
|
|
315
315
|
import "./chunk-ZY2MNJR6.js";
|
|
316
316
|
import "./chunk-XAIRTELU.js";
|
|
317
|
-
import "./chunk-
|
|
317
|
+
import "./chunk-V5UYOA4Q.js";
|
|
318
318
|
import "./chunk-TRFSTCQK.js";
|
|
319
319
|
import "./chunk-YBPYIAA5.js";
|
|
320
320
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessObserveWriteSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-37ACBHVF.js";
|
|
2
2
|
import "./chunk-PQM3B54K.js";
|
|
3
3
|
import "./chunk-OELN4JIO.js";
|
|
4
4
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -294,7 +294,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
294
294
|
import "./chunk-DEUNUKTD.js";
|
|
295
295
|
import "./chunk-LXY5VVGM.js";
|
|
296
296
|
import "./chunk-GKCXTSFF.js";
|
|
297
|
-
import "./chunk-
|
|
297
|
+
import "./chunk-2UGHUFIO.js";
|
|
298
298
|
import "./chunk-3SP7EZWA.js";
|
|
299
299
|
import "./chunk-FDLPNFKE.js";
|
|
300
300
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -310,7 +310,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
310
310
|
import "./chunk-WWUQ6CP3.js";
|
|
311
311
|
import "./chunk-ZY2MNJR6.js";
|
|
312
312
|
import "./chunk-XAIRTELU.js";
|
|
313
|
-
import "./chunk-
|
|
313
|
+
import "./chunk-V5UYOA4Q.js";
|
|
314
314
|
import "./chunk-TRFSTCQK.js";
|
|
315
315
|
import "./chunk-YBPYIAA5.js";
|
|
316
316
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
memoryGetOperation,
|
|
23
23
|
memorySearchOperation,
|
|
24
24
|
memoryStoreOperation
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-37ACBHVF.js";
|
|
26
26
|
import "./chunk-PQM3B54K.js";
|
|
27
27
|
import "./chunk-OELN4JIO.js";
|
|
28
28
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -318,7 +318,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
318
318
|
import "./chunk-DEUNUKTD.js";
|
|
319
319
|
import "./chunk-LXY5VVGM.js";
|
|
320
320
|
import "./chunk-GKCXTSFF.js";
|
|
321
|
-
import "./chunk-
|
|
321
|
+
import "./chunk-2UGHUFIO.js";
|
|
322
322
|
import "./chunk-3SP7EZWA.js";
|
|
323
323
|
import "./chunk-FDLPNFKE.js";
|
|
324
324
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -334,7 +334,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
334
334
|
import "./chunk-WWUQ6CP3.js";
|
|
335
335
|
import "./chunk-ZY2MNJR6.js";
|
|
336
336
|
import "./chunk-XAIRTELU.js";
|
|
337
|
-
import "./chunk-
|
|
337
|
+
import "./chunk-V5UYOA4Q.js";
|
|
338
338
|
import "./chunk-TRFSTCQK.js";
|
|
339
339
|
import "./chunk-YBPYIAA5.js";
|
|
340
340
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createAndStartFlight,
|
|
5
5
|
leadRecallFlight,
|
|
6
6
|
withRecallConcurrency
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-37ACBHVF.js";
|
|
8
8
|
import "./chunk-PQM3B54K.js";
|
|
9
9
|
import "./chunk-OELN4JIO.js";
|
|
10
10
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -300,7 +300,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
300
300
|
import "./chunk-DEUNUKTD.js";
|
|
301
301
|
import "./chunk-LXY5VVGM.js";
|
|
302
302
|
import "./chunk-GKCXTSFF.js";
|
|
303
|
-
import "./chunk-
|
|
303
|
+
import "./chunk-2UGHUFIO.js";
|
|
304
304
|
import "./chunk-3SP7EZWA.js";
|
|
305
305
|
import "./chunk-FDLPNFKE.js";
|
|
306
306
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -316,7 +316,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
316
316
|
import "./chunk-WWUQ6CP3.js";
|
|
317
317
|
import "./chunk-ZY2MNJR6.js";
|
|
318
318
|
import "./chunk-XAIRTELU.js";
|
|
319
|
-
import "./chunk-
|
|
319
|
+
import "./chunk-V5UYOA4Q.js";
|
|
320
320
|
import "./chunk-TRFSTCQK.js";
|
|
321
321
|
import "./chunk-YBPYIAA5.js";
|
|
322
322
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleRecallResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessRecallSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
package/dist/access-service.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
buildProjectedGovernanceProposedActions,
|
|
5
5
|
hasGroupedGovernanceActions,
|
|
6
6
|
shapeMemorySummary
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-37ACBHVF.js";
|
|
8
8
|
import "./chunk-PQM3B54K.js";
|
|
9
9
|
import "./chunk-OELN4JIO.js";
|
|
10
10
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -300,7 +300,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
300
300
|
import "./chunk-DEUNUKTD.js";
|
|
301
301
|
import "./chunk-LXY5VVGM.js";
|
|
302
302
|
import "./chunk-GKCXTSFF.js";
|
|
303
|
-
import "./chunk-
|
|
303
|
+
import "./chunk-2UGHUFIO.js";
|
|
304
304
|
import "./chunk-3SP7EZWA.js";
|
|
305
305
|
import "./chunk-FDLPNFKE.js";
|
|
306
306
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -316,7 +316,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
316
316
|
import "./chunk-WWUQ6CP3.js";
|
|
317
317
|
import "./chunk-ZY2MNJR6.js";
|
|
318
318
|
import "./chunk-XAIRTELU.js";
|
|
319
|
-
import "./chunk-
|
|
319
|
+
import "./chunk-V5UYOA4Q.js";
|
|
320
320
|
import "./chunk-TRFSTCQK.js";
|
|
321
321
|
import "./chunk-YBPYIAA5.js";
|
|
322
322
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-ingress-counters.d.ts","sourceRoot":"","sources":["../src/buffer-ingress-counters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,wBAAwB,GAAG,UAAU,GAAG,SAAS,CAAC;AAElG,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,yBAAyB,CAAC;IACpC,sBAAsB,EAAE,yBAAyB,CAAC;IAClD,QAAQ,EAAE,yBAAyB,CAAC;IACpC,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC,oBAAoB,EAAE,yBAAyB,CAAC,CAAC;IAChE,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,6BAA6B,EAAE,qBAQ3C,CAAC;AAiCF;;0EAE0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACtB;AAWD,qBAAa,qBAAqB;IAY9B,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,iFAAiF;IACjF,OAAO,CAAC,QAAQ,CAAC,OAAO;IAb1B,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AI,qBAAqB;IAuBjC,OAAO,CAAC,MAAM;IAuBd,6EAA6E;IAC7E,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,OAAO;CA0BhB"}
|
package/dist/buffer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SmartBuffer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2UGHUFIO.js";
|
|
4
4
|
import "./chunk-3SP7EZWA.js";
|
|
5
5
|
import "./chunk-FDLPNFKE.js";
|
|
6
6
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
BufferAdmissionRefusedError,
|
|
11
11
|
BufferSessionTurnRefusedError
|
|
12
12
|
} from "./chunk-XAIRTELU.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-V5UYOA4Q.js";
|
|
14
14
|
import "./chunk-TRFSTCQK.js";
|
|
15
15
|
import "./chunk-AJVCM2E3.js";
|
|
16
16
|
import "./chunk-6ZELOK6O.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-XAIRTELU.js";
|
|
9
9
|
import {
|
|
10
10
|
BufferIngressCounters
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V5UYOA4Q.js";
|
|
12
12
|
import {
|
|
13
13
|
BufferSessionPersistence
|
|
14
14
|
} from "./chunk-TRFSTCQK.js";
|
|
@@ -941,4 +941,4 @@ var SmartBuffer = class {
|
|
|
941
941
|
export {
|
|
942
942
|
SmartBuffer
|
|
943
943
|
};
|
|
944
|
-
//# sourceMappingURL=chunk-
|
|
944
|
+
//# sourceMappingURL=chunk-2UGHUFIO.js.map
|
|
@@ -801,7 +801,7 @@ import {
|
|
|
801
801
|
} from "./chunk-GKCXTSFF.js";
|
|
802
802
|
import {
|
|
803
803
|
SmartBuffer
|
|
804
|
-
} from "./chunk-
|
|
804
|
+
} from "./chunk-2UGHUFIO.js";
|
|
805
805
|
import {
|
|
806
806
|
ExtractionDeadlineError,
|
|
807
807
|
ExtractionRunCoordinator,
|
|
@@ -68044,4 +68044,4 @@ export {
|
|
|
68044
68044
|
EngramAccessService,
|
|
68045
68045
|
AccessAdminOpsSurface
|
|
68046
68046
|
};
|
|
68047
|
-
//# sourceMappingURL=chunk-
|
|
68047
|
+
//# sourceMappingURL=chunk-37ACBHVF.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ExtractionDrain,
|
|
3
3
|
TurnIngestionCoordinator,
|
|
4
4
|
shouldSkipImplicitExtraction
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-37ACBHVF.js";
|
|
6
6
|
import {
|
|
7
7
|
headerConnector,
|
|
8
8
|
renderExtractionConversation,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-5IHFERCT.js";
|
|
11
11
|
import {
|
|
12
12
|
SmartBuffer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2UGHUFIO.js";
|
|
14
14
|
import {
|
|
15
15
|
selfDeps
|
|
16
16
|
} from "./chunk-JUROR7PB.js";
|
|
@@ -447,4 +447,4 @@ export {
|
|
|
447
447
|
ClaimBufferStorage,
|
|
448
448
|
BufferDrainRunner
|
|
449
449
|
};
|
|
450
|
-
//# sourceMappingURL=chunk-
|
|
450
|
+
//# sourceMappingURL=chunk-CUZVWNSV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/buffer-ingress-counters.ts"],"sourcesContent":["/**\n * Buffer-ingress counters (issue #3444) — OBSERVATION ONLY.\n *\n * Counts what the SmartBuffer add path already does, per offered turn, in\n * turns and characters:\n * - accepted: the turn was appended to a buffer entry (always the case for\n * non-refused offers; this layer invents no filtering),\n * - acceptedExactDuplicate: observational SUB-COUNT of accepted — the\n * appended turn's role+content exactly matches a turn already in that\n * session's buffer entry (live turns or deferred-retained copies). This\n * is the duplicate rate at ingress that #3443 needs; it changes nothing,\n * - filtered: reserved for turns existing code drops before/at the buffer.\n * The SmartBuffer add path itself drops nothing, so it is always 0 at\n * this layer; upstream filters (captureMode=explicit skips in\n * processTurn/ingestReplayBatch, the observe funnel's empty-content and\n * fingerprint dedup) live outside the buffer add,\n * - refused: capacity refusal (existing null-return and throw sites).\n *\n * Invariant: accepted + filtered + refused == turns offered.\n * acceptedExactDuplicate <= accepted (it is a sub-count, not a partition).\n *\n * Counters are process-local and instance-owned (one instance per\n * SmartBuffer, no module state), feed a 24-hour hourly ring with ONE\n * aggregate info log line per hour (counts only: no content, no session\n * ids, silent idle hours), and take an injectable clock for tests.\n *\n * Memory: duplicate detection hashes role+content to a sha256 digest (same\n * scheme as the drain hand-in memo) — turn content is never retained. The\n * per-entry digest set mirrors the entry's own turns (so it is bounded by\n * the session turn cap) and additionally enforces a hard FIFO cap of\n * DUPLICATE_DIGEST_CAP digests; beyond the cap the oldest digest is\n * evicted, so very old unique contents stop being recognized as\n * duplicates until the next rebuild (metric under-count, never a buffer\n * change).\n *\n * O(1) amortized per turn: memo validity is the entry's array references,\n * so any mutation that removes or replaces turns (all of them reassign a\n * fresh array) self-invalidates the memo without epoch bookkeeping.\n */\n\nimport { createHash } from \"node:crypto\";\nimport { log } from \"./logger.js\";\nimport type { BufferEntryState, BufferTurn } from \"./types.js\";\n\nexport type BufferIngressOutcome = \"accepted\" | \"acceptedExactDuplicate\" | \"filtered\" | \"refused\";\n\nexport interface BufferIngressOutcomeCount {\n turns: number;\n chars: number;\n}\n\nexport interface BufferIngressHour {\n hourStart: string;\n accepted: BufferIngressOutcomeCount;\n acceptedExactDuplicate: BufferIngressOutcomeCount;\n filtered: BufferIngressOutcomeCount;\n refused: BufferIngressOutcomeCount;\n}\n\nexport interface BufferIngressSnapshot {\n totals: Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n hours: BufferIngressHour[];\n}\n\nexport const EMPTY_BUFFER_INGRESS_SNAPSHOT: BufferIngressSnapshot = {\n totals: {\n accepted: { turns: 0, chars: 0 },\n acceptedExactDuplicate: { turns: 0, chars: 0 },\n filtered: { turns: 0, chars: 0 },\n refused: { turns: 0, chars: 0 },\n },\n hours: [],\n};\n\nconst HOUR_MS = 3_600_000;\nconst RING_SLOTS = 24;\n/**\n * Hard cap on the per-entry duplicate-digest set (defense against configs\n * with very large session caps). Beyond the cap the oldest digest is\n * FIFO-evicted: recognition of the oldest unique contents degrades to\n * \"not a duplicate\" (an under-count of acceptedExactDuplicate), never a\n * behavioral change.\n */\nconst DUPLICATE_DIGEST_CAP = 4096;\n\nconst OUTCOMES: readonly BufferIngressOutcome[] = [\"accepted\", \"acceptedExactDuplicate\", \"filtered\", \"refused\"];\n\nfunction zeroCounts() {\n return {\n accepted: { turns: 0, chars: 0 },\n acceptedExactDuplicate: { turns: 0, chars: 0 },\n filtered: { turns: 0, chars: 0 },\n refused: { turns: 0, chars: 0 },\n } satisfies Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n}\n\nfunction contentDigest(turn: BufferTurn): string {\n return createHash(\"sha256\").update(`${turn.role}\\u0000${turn.content}`).digest(\"base64\");\n}\n\ninterface RingSlot {\n hourStartMs: number;\n counts: Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n}\n\n/** Test-visible view of a per-entry digest memo: digest set only. The validity\n * refs (WeakRefs over entry arrays) stay private; tests assert rebuild\n * identity through the map plus the observable counts, never the refs. */\nexport interface BufferIngressMemoView {\n digests: Set<string>;\n}\n\ninterface EntryDigestMemo {\n // WeakRefs: after clearAfterExtraction replaces the entry arrays, the old\n // arrays must not stay reachable through the memo. Deref-compare keeps the\n // validity check exact without retaining evicted turn content.\n turnsRef: WeakRef<BufferTurn[]>;\n retainedRef: WeakRef<BufferTurn[]> | undefined;\n digests: Set<string>;\n}\n\nexport class BufferIngressCounters {\n private readonly ring: (RingSlot | null)[] = Array.from({ length: RING_SLOTS }, () => null);\n private readonly totals: Record<BufferIngressOutcome, BufferIngressOutcomeCount> = zeroCounts();\n private readonly memos = new WeakMap<BufferEntryState, EntryDigestMemo>();\n /** Test-only: the digest set cached for an entry, or undefined when no\n * memo was built yet. Exposes digests only — never the validity refs. */\n memoForTest(entry: BufferEntryState): BufferIngressMemoView | undefined {\n return this.memos.get(entry);\n }\n private lastActiveHourMs: number | null = null;\n\n constructor(\n private readonly now: () => number = Date.now,\n /** Test seam: the disabled control proves counting does not touch the buffer. */\n private readonly enabled = true,\n ) {}\n\n /**\n * Observe an offered turn (called BEFORE the buffer pushes it, so a lazily\n * rebuilt digest memo sees only turns already in the entry). Counts\n * `accepted` and, when an identical role+content digest is already tracked\n * for this entry, the `acceptedExactDuplicate` sub-count. Returns nothing;\n * the buffer behaves identically either way.\n */\n noteAppendedTurn(entry: BufferEntryState, turn: BufferTurn): void {\n if (!this.enabled) return;\n // One hour per offer: the two records below must land in the same\n // bucket even if the clock crosses an hour between them.\n const hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;\n const chars = turn.content.length;\n this.record(\"accepted\", chars, hourStartMs);\n // The offered turn is counted, then added to the memo: a later re-offer\n // of identical content is recognised as a duplicate of an already-seen\n // turn. Set semantics dedupe — no double count.\n const memo = this.memoFor(entry);\n const digest = contentDigest(turn);\n if (memo.digests.has(digest)) this.record(\"acceptedExactDuplicate\", chars, hourStartMs);\n memo.digests.add(digest);\n if (memo.digests.size > DUPLICATE_DIGEST_CAP) {\n for (const oldest of memo.digests) {\n memo.digests.delete(oldest);\n break;\n }\n }\n }\n\n /** Count a single capacity-refused turn; returns null for `return` sites. */\n refuseOne(turn: BufferTurn): null {\n if (!this.enabled) return null;\n this.record(\"refused\", turn.content.length);\n return null;\n }\n\n /** Count a refused ERROR for `throw` sites; the error propagates unchanged. */\n refuseThrow(turn: BufferTurn, error: Error): Error {\n this.refuseOne(turn);\n return error;\n }\n\n /** Count a WHOLE-BATCH refusal (every offered turn is dropped). */\n refuseAll(offered: readonly { turn: BufferTurn }[]): null {\n for (const { turn } of offered) this.refuseOne(turn);\n return null;\n }\n\n snapshot(): BufferIngressSnapshot {\n const nowHourMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;\n const hours = this.ring\n .filter((slot): slot is RingSlot => slot !== null && nowHourMs - slot.hourStartMs < HOUR_MS * RING_SLOTS)\n .sort((a, b) => a.hourStartMs - b.hourStartMs)\n .map((slot) => ({\n hourStart: new Date(slot.hourStartMs).toISOString(),\n accepted: { ...slot.counts.accepted },\n acceptedExactDuplicate: { ...slot.counts.acceptedExactDuplicate },\n filtered: { ...slot.counts.filtered },\n refused: { ...slot.counts.refused },\n }));\n return {\n totals: {\n accepted: { ...this.totals.accepted },\n acceptedExactDuplicate: { ...this.totals.acceptedExactDuplicate },\n filtered: { ...this.totals.filtered },\n refused: { ...this.totals.refused },\n },\n hours,\n };\n }\n\n private record(outcome: BufferIngressOutcome, chars: number, hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS): void {\n if (hourStartMs !== this.lastActiveHourMs) {\n if (this.lastActiveHourMs !== null) this.logHourBucket(this.lastActiveHourMs);\n this.lastActiveHourMs = hourStartMs;\n }\n const slotIndex = (hourStartMs / HOUR_MS) % RING_SLOTS;\n const slot = this.ring[slotIndex];\n if (slot !== null && slot.hourStartMs === hourStartMs) {\n slot.counts[outcome].turns += 1;\n slot.counts[outcome].chars += chars;\n } else {\n // Slot reuse after 24h: the stale bucket was logged when its own hour\n // ended, so eviction here is silent.\n const counts = {\n ...zeroCounts(),\n [outcome]: { turns: 1, chars },\n } satisfies Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n this.ring[slotIndex] = { hourStartMs, counts };\n }\n this.totals[outcome].turns += 1;\n this.totals[outcome].chars += chars;\n }\n\n /** ONE aggregate line per hour, at roll time, describing the ending hour. */\n private logHourBucket(hourStartMs: number): void {\n const slot = this.ring[(hourStartMs / HOUR_MS) % RING_SLOTS];\n if (slot === null || slot.hourStartMs !== hourStartMs) return;\n const counts = slot.counts;\n if (OUTCOMES.every((outcome) => counts[outcome].turns === 0)) return; // zero-noise: silent idle hours\n log.info(\n `buffer ingress ${new Date(hourStartMs).toISOString()}: ${OUTCOMES.map((outcome) => `${outcome}=${counts[outcome].turns}/${counts[outcome].chars}c`).join(\" \")}`,\n );\n }\n\n private memoFor(entry: BufferEntryState): EntryDigestMemo {\n const retained = entry.retainedTurns;\n const memo = this.memos.get(entry);\n // --- Fix 3: bound the rebuild to the digest cap. A restored entry can\n // hold more unique turns than DUPLICATE_DIGEST_CAP; inserting all of them\n // would leave the set permanently above the cap (later appends evict one\n // each). Keep the most recent turns, matching the FIFO order of the\n // steady-state path, so recognition degrades to \"not a duplicate\".\n // Distinguish \"built with no retained array\" (retainedRef undefined) from\n // \"built with one that was since collected\" (deref undefined but the entry\n // still has none... no: if the entry has none NOW and the memo was built\n // with one, the entry changed shape -> rebuild). Reuse only when both sides\n // agree on presence AND identity.\n // Reuse only when both sides agree on presence AND identity: a memo built\n // with a retained array that the buffer later deleted (entry.retainedTurns\n // now undefined) must rebuild, and a collected WeakRef must never read as\n // \"absent\" (that would reuse a memo whose digests still include removed\n // content). Any memo built with a retained array therefore requires a\n // live identical array now; a memo built without one requires none now.\n const retainedMatch =\n memo?.retainedRef === undefined\n ? memo !== undefined && retained === undefined\n : memo.retainedRef.deref() !== undefined && memo.retainedRef.deref() === retained;\n if (memo && memo.turnsRef.deref() === entry.turns && retainedMatch) return memo;\n const ordered = [...entry.turns, ...(retained ?? [])];\n const bounded = ordered.length > DUPLICATE_DIGEST_CAP ? ordered.slice(ordered.length - DUPLICATE_DIGEST_CAP) : ordered;\n const fresh: EntryDigestMemo = {\n turnsRef: new WeakRef(entry.turns),\n retainedRef: retained ? new WeakRef(retained) : undefined,\n digests: new Set(bounded.map(contentDigest)),\n };\n this.memos.set(entry, fresh);\n return fresh;\n }\n}\n"],"mappings":";;;;;AAwCA,SAAS,kBAAkB;AAwBpB,IAAM,gCAAuD;AAAA,EAClE,QAAQ;AAAA,IACN,UAAU,EAAE,OAAO,GAAG,OAAO,EAAE;AAAA,IAC/B,wBA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AAC,YAAY,GAAG,OAAO,IAAI,OAAO,OAAO,EAAE,KAAK,IAAI,OAAO,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,GAAG,CAAC;AAAA,IAChK;AAAA,EACF;AAAA,EAEQ,QAAQ,OAA0C;AACxD,UAAM,WAAW,MAAM;AACvB,UAAM,OAAO,KAAK,MAAM,IAAI,KAAK;AAiBjC,UAAM,gBACJ,MAAM,gBAAgB,SAClB,SAAS,UAAa,aAAa,SACnC,KAAK,YAAY,MAAM,MAAM,UAAa,KAAK,YAAY,MAAM,MAAM;AAC7E,QAAI,QAAQ,KAAK,SAAS,MAAM,MAAM,MAAM,SAAS,cAAe,QAAO;AAC3E,UAAM,UAAU,CAAC,GAAG,MAAM,OAAO,GAAI,YAAY,CAAC,CAAE;AACpD,UAAM,UAAU,QAAQ,SAAS,uBAAuB,QAAQ,MAAM,QAAQ,SAAS,oBAAoB,IAAI;AAC/G,UAAM,QAAyB;AAAA,MAC7B,UAAU,IAAI,QAAQ,MAAM,KAAK;AAAA,MACjC,aAAa,WAAW,IAAI,QAAQ,QAAQ,IAAI;AAAA,MAChD,SAAS,IAAI,IAAI,QAAQ,IAAI,aAAa,CAAC;AAAA,IAC7C;AACA,SAAK,MAAM,IAAI,OAAO,KAAK;AAC3B,WAAO;AAAA,EACT;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/buffer-ingress-counters.ts"],"sourcesContent":["/**\n * Buffer-ingress counters (issue #3444) — OBSERVATION ONLY.\n *\n * Counts what the SmartBuffer add path already does, per offered turn, in\n * turns and characters:\n * - accepted: the turn was appended to a buffer entry (always the case for\n * non-refused offers; this layer invents no filtering),\n * - acceptedExactDuplicate: observational SUB-COUNT of accepted — the\n * appended turn's role+content exactly matches a turn already in that\n * session's buffer entry (live turns or deferred-retained copies). This\n * is the duplicate rate at ingress that #3443 needs; it changes nothing,\n * - filtered: reserved for turns existing code drops before/at the buffer.\n * The SmartBuffer add path itself drops nothing, so it is always 0 at\n * this layer; upstream filters (captureMode=explicit skips in\n * processTurn/ingestReplayBatch, the observe funnel's empty-content and\n * fingerprint dedup) live outside the buffer add,\n * - refused: capacity refusal (existing null-return and throw sites).\n *\n * Invariant: accepted + filtered + refused == turns offered.\n * acceptedExactDuplicate <= accepted (it is a sub-count, not a partition).\n *\n * Counters are process-local and instance-owned (one instance per\n * SmartBuffer, no module state), feed a 24-hour hourly ring with ONE\n * aggregate info log line per hour (counts only: no content, no session\n * ids, silent idle hours), and take an injectable clock for tests.\n *\n * Memory: duplicate detection hashes role+content to a sha256 digest (same\n * scheme as the drain hand-in memo) — turn content is never retained. The\n * per-entry digest set mirrors the entry's own turns (so it is bounded by\n * the session turn cap) and additionally enforces a hard FIFO cap of\n * DUPLICATE_DIGEST_CAP digests; beyond the cap the oldest digest is\n * evicted, so very old unique contents stop being recognized as\n * duplicates until the next rebuild (metric under-count, never a buffer\n * change).\n *\n * O(1) amortized per turn: memo validity is the entry's array references,\n * so any mutation that removes or replaces turns (all of them reassign a\n * fresh array) self-invalidates the memo without epoch bookkeeping.\n */\n\nimport { createHash } from \"node:crypto\";\nimport { log } from \"./logger.js\";\nimport type { BufferEntryState, BufferTurn } from \"./types.js\";\n\nexport type BufferIngressOutcome = \"accepted\" | \"acceptedExactDuplicate\" | \"filtered\" | \"refused\";\n\nexport interface BufferIngressOutcomeCount {\n turns: number;\n chars: number;\n}\n\nexport interface BufferIngressHour {\n hourStart: string;\n accepted: BufferIngressOutcomeCount;\n acceptedExactDuplicate: BufferIngressOutcomeCount;\n filtered: BufferIngressOutcomeCount;\n refused: BufferIngressOutcomeCount;\n}\n\nexport interface BufferIngressSnapshot {\n totals: Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n hours: BufferIngressHour[];\n}\n\nexport const EMPTY_BUFFER_INGRESS_SNAPSHOT: BufferIngressSnapshot = {\n totals: {\n accepted: { turns: 0, chars: 0 },\n acceptedExactDuplicate: { turns: 0, chars: 0 },\n filtered: { turns: 0, chars: 0 },\n refused: { turns: 0, chars: 0 },\n },\n hours: [],\n};\n\nconst HOUR_MS = 3_600_000;\nconst RING_SLOTS = 24;\n/**\n * Hard cap on the per-entry duplicate-digest set (defense against configs\n * with very large session caps). Beyond the cap the oldest digest is\n * FIFO-evicted: recognition of the oldest unique contents degrades to\n * \"not a duplicate\" (an under-count of acceptedExactDuplicate), never a\n * behavioral change.\n */\nconst DUPLICATE_DIGEST_CAP = 4096;\n\nconst OUTCOMES: readonly BufferIngressOutcome[] = [\"accepted\", \"acceptedExactDuplicate\", \"filtered\", \"refused\"];\n\nfunction zeroCounts() {\n return {\n accepted: { turns: 0, chars: 0 },\n acceptedExactDuplicate: { turns: 0, chars: 0 },\n filtered: { turns: 0, chars: 0 },\n refused: { turns: 0, chars: 0 },\n } satisfies Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n}\n\nfunction contentDigest(turn: BufferTurn): string {\n return createHash(\"sha256\").update(`${turn.role}\\u0000${turn.content}`).digest(\"base64\");\n}\n\ninterface RingSlot {\n hourStartMs: number;\n counts: Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n}\n\n/** Test-visible view of a per-entry digest memo: digest set only. The validity\n * refs (WeakRefs over entry arrays) stay private; tests assert rebuild\n * identity through the map plus the observable counts, never the refs. */\nexport interface BufferIngressMemoView {\n digests: Set<string>;\n}\n\ninterface EntryDigestMemo {\n // WeakRefs: after clearAfterExtraction replaces the entry arrays, the old\n // arrays must not stay reachable through the memo. Deref-compare keeps the\n // validity check exact without retaining evicted turn content.\n turnsRef: WeakRef<BufferTurn[]>;\n retainedRef: WeakRef<BufferTurn[]> | undefined;\n digests: Set<string>;\n}\n\nexport class BufferIngressCounters {\n private readonly ring: (RingSlot | null)[] = Array.from({ length: RING_SLOTS }, () => null);\n private readonly totals: Record<BufferIngressOutcome, BufferIngressOutcomeCount> = zeroCounts();\n private readonly memos = new WeakMap<BufferEntryState, EntryDigestMemo>();\n /** Test-only: the digest set cached for an entry, or undefined when no\n * memo was built yet. Exposes digests only — never the validity refs. */\n memoForTest(entry: BufferEntryState): BufferIngressMemoView | undefined {\n return this.memos.get(entry);\n }\n private lastActiveHourMs: number | null = null;\n\n constructor(\n private readonly now: () => number = Date.now,\n /** Test seam: the disabled control proves counting does not touch the buffer. */\n private readonly enabled = true,\n ) {}\n\n /**\n * Observe an offered turn (called BEFORE the buffer pushes it, so a lazily\n * rebuilt digest memo sees only turns already in the entry). Counts\n * `accepted` and, when an identical role+content digest is already tracked\n * for this entry, the `acceptedExactDuplicate` sub-count. Returns nothing;\n * the buffer behaves identically either way.\n */\n noteAppendedTurn(entry: BufferEntryState, turn: BufferTurn): void {\n if (!this.enabled) return;\n // One hour per offer: the two records below must land in the same\n // bucket even if the clock crosses an hour between them.\n const hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;\n const chars = turn.content.length;\n this.record(\"accepted\", chars, hourStartMs);\n // The offered turn is counted, then added to the memo: a later re-offer\n // of identical content is recognised as a duplicate of an already-seen\n // turn. Set semantics dedupe — no double count.\n const memo = this.memoFor(entry);\n const digest = contentDigest(turn);\n if (memo.digests.has(digest)) this.record(\"acceptedExactDuplicate\", chars, hourStartMs);\n memo.digests.add(digest);\n if (memo.digests.size > DUPLICATE_DIGEST_CAP) {\n for (const oldest of memo.digests) {\n memo.digests.delete(oldest);\n break;\n }\n }\n }\n\n /** Count a single capacity-refused turn; returns null for `return` sites. */\n refuseOne(turn: BufferTurn): null {\n if (!this.enabled) return null;\n this.record(\"refused\", turn.content.length);\n return null;\n }\n\n /** Count a refused ERROR for `throw` sites; the error propagates unchanged. */\n refuseThrow(turn: BufferTurn, error: Error): Error {\n this.refuseOne(turn);\n return error;\n }\n\n /** Count a WHOLE-BATCH refusal (every offered turn is dropped). */\n refuseAll(offered: readonly { turn: BufferTurn }[]): null {\n for (const { turn } of offered) this.refuseOne(turn);\n return null;\n }\n\n snapshot(): BufferIngressSnapshot {\n const nowHourMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;\n const hours = this.ring\n .filter((slot): slot is RingSlot => slot !== null && nowHourMs - slot.hourStartMs < HOUR_MS * RING_SLOTS)\n .sort((a, b) => a.hourStartMs - b.hourStartMs)\n .map((slot) => ({\n hourStart: new Date(slot.hourStartMs).toISOString(),\n accepted: { ...slot.counts.accepted },\n acceptedExactDuplicate: { ...slot.counts.acceptedExactDuplicate },\n filtered: { ...slot.counts.filtered },\n refused: { ...slot.counts.refused },\n }));\n return {\n totals: {\n accepted: { ...this.totals.accepted },\n acceptedExactDuplicate: { ...this.totals.acceptedExactDuplicate },\n filtered: { ...this.totals.filtered },\n refused: { ...this.totals.refused },\n },\n hours,\n };\n }\n\n private record(outcome: BufferIngressOutcome, chars: number, hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS): void {\n if (hourStartMs !== this.lastActiveHourMs) {\n if (this.lastActiveHourMs !== null) this.logHourBucket(this.lastActiveHourMs);\n this.lastActiveHourMs = hourStartMs;\n }\n const slotIndex = (hourStartMs / HOUR_MS) % RING_SLOTS;\n const slot = this.ring[slotIndex];\n if (slot !== null && slot.hourStartMs === hourStartMs) {\n slot.counts[outcome].turns += 1;\n slot.counts[outcome].chars += chars;\n } else {\n // Slot reuse after 24h: the stale bucket was logged when its own hour\n // ended, so eviction here is silent.\n const counts = {\n ...zeroCounts(),\n [outcome]: { turns: 1, chars },\n } satisfies Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n this.ring[slotIndex] = { hourStartMs, counts };\n }\n this.totals[outcome].turns += 1;\n this.totals[outcome].chars += chars;\n }\n\n /** ONE aggregate line per hour, at roll time, describing the ending hour. */\n private logHourBucket(hourStartMs: number): void {\n const slot = this.ring[(hourStartMs / HOUR_MS) % RING_SLOTS];\n if (slot === null || slot.hourStartMs !== hourStartMs) return;\n const counts = slot.counts;\n if (OUTCOMES.every((outcome) => counts[outcome].turns === 0)) return; // zero-noise: silent idle hours\n log.info(\n `buffer ingress ${new Date(hourStartMs).toISOString()}: ${OUTCOMES.map((outcome) => `${outcome}=${counts[outcome].turns}/${counts[outcome].chars}c`).join(\" \")}`,\n );\n }\n\n private memoFor(entry: BufferEntryState): EntryDigestMemo {\n const retained = entry.retainedTurns;\n const memo = this.memos.get(entry);\n // Rebuild bound to the digest cap: a restored entry can hold more unique\n // turns than DUPLICATE_DIGEST_CAP, so keep the most recent turns (FIFO\n // order, matching the steady-state path) — inserting all of them would\n // leave the set permanently above the cap.\n // Reuse only when both sides agree on presence AND identity: a memo built\n // with a retained array requires a live identical array now (a collected\n // WeakRef must never read as \"absent\"); a memo built without one requires\n // none now.\n const retainedMatch =\n memo?.retainedRef === undefined\n ? memo !== undefined && retained === undefined\n : memo.retainedRef.deref() !== undefined && memo.retainedRef.deref() === retained;\n if (memo && memo.turnsRef.deref() === entry.turns && retainedMatch) return memo;\n const ordered = [...entry.turns, ...(retained ?? [])];\n const bounded = ordered.length > DUPLICATE_DIGEST_CAP ? ordered.slice(ordered.length - DUPLICATE_DIGEST_CAP) : ordered;\n const fresh: EntryDigestMemo = {\n turnsRef: new WeakRef(entry.turns),\n retainedRef: retained ? new WeakRef(retained) : undefined,\n digests: new Set(bounded.map(contentDigest)),\n };\n this.memos.set(entry, fresh);\n return fresh;\n }\n}\n"],"mappings":";;;;;AAwCA,SAAS,kBAAkB;AAwBpB,IAAM,gCAAuD;AAAA,EAClE,QAAQ;AAAA,IACN,UAAU,EAAE,OAAO,GAAG,OAAO,EAAE;AAAA,IAC/B,wBAAwB,EAAE,OAAO,GAAG,OAAO,EAAE;AAAA,IAC7C,UAAU,EAAE,OAAO,GAAG,OAAO,EAAE;AAAA,IAC/B,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE;AAAA,EAChC;AAAA,EACA,OAAO,CAAC;AACV;AAEA,IAAM,UAAU;AAChB,IAAM,aAAa;AAQnB,IAAM,uBAAuB;AAE7B,IAAM,WAA4C,CAAC,YAAY,0BAA0B,YAAY,SAAS;AAE9G,SAAS,aAAa;AACpB,SAAO;AAAA,IACL,UAAU,EAAE,OAAO,GAAG,OA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E,QAAI,QAAQ,KAAK,SAAS,MAAM,MAAM,MAAM,SAAS,cAAe,QAAO;AAC3E,UAAM,UAAU,CAAC,GAAG,MAAM,OAAO,GAAI,YAAY,CAAC,CAAE;AACpD,UAAM,UAAU,QAAQ,SAAS,uBAAuB,QAAQ,MAAM,QAAQ,SAAS,oBAAoB,IAAI;AAC/G,UAAM,QAAyB;AAAA,MAC7B,UAAU,IAAI,QAAQ,MAAM,KAAK;AAAA,MACjC,aAAa,WAAW,IAAI,QAAQ,QAAQ,IAAI;AAAA,MAChD,SAAS,IAAI,IAAI,QAAQ,IAAI,aAAa,CAAC;AAAA,IAC7C;AACA,SAAK,MAAM,IAAI,OAAO,KAAK;AAC3B,WAAO;AAAA,EACT;AACF;","names":[]}
|
package/dist/cli.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
runWorkProductStatusCliCommand,
|
|
92
92
|
runWorkProjectCliCommand,
|
|
93
93
|
runWorkTaskCliCommand
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-37ACBHVF.js";
|
|
95
95
|
import "./chunk-PQM3B54K.js";
|
|
96
96
|
import "./chunk-OELN4JIO.js";
|
|
97
97
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -387,7 +387,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
387
387
|
import "./chunk-DEUNUKTD.js";
|
|
388
388
|
import "./chunk-LXY5VVGM.js";
|
|
389
389
|
import "./chunk-GKCXTSFF.js";
|
|
390
|
-
import "./chunk-
|
|
390
|
+
import "./chunk-2UGHUFIO.js";
|
|
391
391
|
import "./chunk-3SP7EZWA.js";
|
|
392
392
|
import "./chunk-FDLPNFKE.js";
|
|
393
393
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -403,7 +403,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
403
403
|
import "./chunk-WWUQ6CP3.js";
|
|
404
404
|
import "./chunk-ZY2MNJR6.js";
|
|
405
405
|
import "./chunk-XAIRTELU.js";
|
|
406
|
-
import "./chunk-
|
|
406
|
+
import "./chunk-V5UYOA4Q.js";
|
|
407
407
|
import "./chunk-TRFSTCQK.js";
|
|
408
408
|
import "./chunk-YBPYIAA5.js";
|
|
409
409
|
import "./chunk-HK6KYIF6.js";
|
package/dist/explicit-capture.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
shouldSkipImplicitExtraction,
|
|
9
9
|
stripInlineExplicitCaptureNotes,
|
|
10
10
|
validateExplicitCaptureInput
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-37ACBHVF.js";
|
|
12
12
|
import "./chunk-PQM3B54K.js";
|
|
13
13
|
import "./chunk-OELN4JIO.js";
|
|
14
14
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -304,7 +304,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
304
304
|
import "./chunk-DEUNUKTD.js";
|
|
305
305
|
import "./chunk-LXY5VVGM.js";
|
|
306
306
|
import "./chunk-GKCXTSFF.js";
|
|
307
|
-
import "./chunk-
|
|
307
|
+
import "./chunk-2UGHUFIO.js";
|
|
308
308
|
import "./chunk-3SP7EZWA.js";
|
|
309
309
|
import "./chunk-FDLPNFKE.js";
|
|
310
310
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -320,7 +320,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
320
320
|
import "./chunk-WWUQ6CP3.js";
|
|
321
321
|
import "./chunk-ZY2MNJR6.js";
|
|
322
322
|
import "./chunk-XAIRTELU.js";
|
|
323
|
-
import "./chunk-
|
|
323
|
+
import "./chunk-V5UYOA4Q.js";
|
|
324
324
|
import "./chunk-TRFSTCQK.js";
|
|
325
325
|
import "./chunk-YBPYIAA5.js";
|
|
326
326
|
import "./chunk-HK6KYIF6.js";
|
package/dist/index.js
CHANGED
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
writeManifest,
|
|
260
260
|
writeMeetingEpisodeMemory,
|
|
261
261
|
writeTimelineState
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-37ACBHVF.js";
|
|
263
263
|
import "./chunk-PQM3B54K.js";
|
|
264
264
|
import {
|
|
265
265
|
WEARABLE_SOURCE_PREFIX,
|
|
@@ -1006,7 +1006,7 @@ import "./chunk-LXY5VVGM.js";
|
|
|
1006
1006
|
import "./chunk-GKCXTSFF.js";
|
|
1007
1007
|
import {
|
|
1008
1008
|
SmartBuffer
|
|
1009
|
-
} from "./chunk-
|
|
1009
|
+
} from "./chunk-2UGHUFIO.js";
|
|
1010
1010
|
import "./chunk-3SP7EZWA.js";
|
|
1011
1011
|
import {
|
|
1012
1012
|
defaultWorkspaceDir,
|
|
@@ -1031,7 +1031,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
1031
1031
|
import "./chunk-WWUQ6CP3.js";
|
|
1032
1032
|
import "./chunk-ZY2MNJR6.js";
|
|
1033
1033
|
import "./chunk-XAIRTELU.js";
|
|
1034
|
-
import "./chunk-
|
|
1034
|
+
import "./chunk-V5UYOA4Q.js";
|
|
1035
1035
|
import "./chunk-TRFSTCQK.js";
|
|
1036
1036
|
import {
|
|
1037
1037
|
reportBufferSurpriseDistribution
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BufferDrainRunner
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-CUZVWNSV.js";
|
|
4
|
+
import "../chunk-37ACBHVF.js";
|
|
5
5
|
import "../chunk-PQM3B54K.js";
|
|
6
6
|
import "../chunk-OELN4JIO.js";
|
|
7
7
|
import "../chunk-GOZXQNIM.js";
|
|
@@ -297,7 +297,7 @@ import "../chunk-2LSZVONP.js";
|
|
|
297
297
|
import "../chunk-DEUNUKTD.js";
|
|
298
298
|
import "../chunk-LXY5VVGM.js";
|
|
299
299
|
import "../chunk-GKCXTSFF.js";
|
|
300
|
-
import "../chunk-
|
|
300
|
+
import "../chunk-2UGHUFIO.js";
|
|
301
301
|
import "../chunk-3SP7EZWA.js";
|
|
302
302
|
import "../chunk-FDLPNFKE.js";
|
|
303
303
|
import "../chunk-CSAKJVXW.js";
|
|
@@ -313,7 +313,7 @@ import "../chunk-FE43YKNJ.js";
|
|
|
313
313
|
import "../chunk-WWUQ6CP3.js";
|
|
314
314
|
import "../chunk-ZY2MNJR6.js";
|
|
315
315
|
import "../chunk-XAIRTELU.js";
|
|
316
|
-
import "../chunk-
|
|
316
|
+
import "../chunk-V5UYOA4Q.js";
|
|
317
317
|
import "../chunk-TRFSTCQK.js";
|
|
318
318
|
import "../chunk-YBPYIAA5.js";
|
|
319
319
|
import "../chunk-HK6KYIF6.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BufferDrainRunner,
|
|
3
3
|
ClaimBufferStorage
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-CUZVWNSV.js";
|
|
5
|
+
import "../chunk-37ACBHVF.js";
|
|
6
6
|
import "../chunk-PQM3B54K.js";
|
|
7
7
|
import "../chunk-OELN4JIO.js";
|
|
8
8
|
import "../chunk-GOZXQNIM.js";
|
|
@@ -298,7 +298,7 @@ import "../chunk-2LSZVONP.js";
|
|
|
298
298
|
import "../chunk-DEUNUKTD.js";
|
|
299
299
|
import "../chunk-LXY5VVGM.js";
|
|
300
300
|
import "../chunk-GKCXTSFF.js";
|
|
301
|
-
import "../chunk-
|
|
301
|
+
import "../chunk-2UGHUFIO.js";
|
|
302
302
|
import "../chunk-3SP7EZWA.js";
|
|
303
303
|
import "../chunk-FDLPNFKE.js";
|
|
304
304
|
import "../chunk-CSAKJVXW.js";
|
|
@@ -314,7 +314,7 @@ import "../chunk-FE43YKNJ.js";
|
|
|
314
314
|
import "../chunk-WWUQ6CP3.js";
|
|
315
315
|
import "../chunk-ZY2MNJR6.js";
|
|
316
316
|
import "../chunk-XAIRTELU.js";
|
|
317
|
-
import "../chunk-
|
|
317
|
+
import "../chunk-V5UYOA4Q.js";
|
|
318
318
|
import "../chunk-TRFSTCQK.js";
|
|
319
319
|
import "../chunk-YBPYIAA5.js";
|
|
320
320
|
import "../chunk-HK6KYIF6.js";
|
package/dist/orchestrator.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
mergeGraphExpandedResults,
|
|
7
7
|
qmdStartupCollectionChecksWithTimeout,
|
|
8
8
|
resolveEffectiveIdentityInjectionMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-37ACBHVF.js";
|
|
10
10
|
import "./chunk-PQM3B54K.js";
|
|
11
11
|
import "./chunk-OELN4JIO.js";
|
|
12
12
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -306,7 +306,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
306
306
|
import "./chunk-DEUNUKTD.js";
|
|
307
307
|
import "./chunk-LXY5VVGM.js";
|
|
308
308
|
import "./chunk-GKCXTSFF.js";
|
|
309
|
-
import "./chunk-
|
|
309
|
+
import "./chunk-2UGHUFIO.js";
|
|
310
310
|
import {
|
|
311
311
|
deriveTopicsFromExtraction
|
|
312
312
|
} from "./chunk-3SP7EZWA.js";
|
|
@@ -361,7 +361,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
361
361
|
import "./chunk-WWUQ6CP3.js";
|
|
362
362
|
import "./chunk-ZY2MNJR6.js";
|
|
363
363
|
import "./chunk-XAIRTELU.js";
|
|
364
|
-
import "./chunk-
|
|
364
|
+
import "./chunk-V5UYOA4Q.js";
|
|
365
365
|
import "./chunk-TRFSTCQK.js";
|
|
366
366
|
import "./chunk-YBPYIAA5.js";
|
|
367
367
|
import "./chunk-HK6KYIF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRecallNavigation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37ACBHVF.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-OELN4JIO.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-2UGHUFIO.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -312,7 +312,7 @@ import "./chunk-FE43YKNJ.js";
|
|
|
312
312
|
import "./chunk-WWUQ6CP3.js";
|
|
313
313
|
import "./chunk-ZY2MNJR6.js";
|
|
314
314
|
import "./chunk-XAIRTELU.js";
|
|
315
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-V5UYOA4Q.js";
|
|
316
316
|
import "./chunk-TRFSTCQK.js";
|
|
317
317
|
import "./chunk-YBPYIAA5.js";
|
|
318
318
|
import "./chunk-HK6KYIF6.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.180",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3416,7 +3416,7 @@
|
|
|
3416
3416
|
"core"
|
|
3417
3417
|
],
|
|
3418
3418
|
"peerDependencies": {
|
|
3419
|
-
"@remnic/coding-graph": "^10.0.
|
|
3419
|
+
"@remnic/coding-graph": "^10.0.180"
|
|
3420
3420
|
},
|
|
3421
3421
|
"peerDependenciesMeta": {
|
|
3422
3422
|
"@remnic/coding-graph": {
|
|
@@ -244,22 +244,14 @@ export class BufferIngressCounters {
|
|
|
244
244
|
private memoFor(entry: BufferEntryState): EntryDigestMemo {
|
|
245
245
|
const retained = entry.retainedTurns;
|
|
246
246
|
const memo = this.memos.get(entry);
|
|
247
|
-
//
|
|
248
|
-
//
|
|
249
|
-
//
|
|
250
|
-
//
|
|
251
|
-
// steady-state path, so recognition degrades to "not a duplicate".
|
|
252
|
-
// Distinguish "built with no retained array" (retainedRef undefined) from
|
|
253
|
-
// "built with one that was since collected" (deref undefined but the entry
|
|
254
|
-
// still has none... no: if the entry has none NOW and the memo was built
|
|
255
|
-
// with one, the entry changed shape -> rebuild). Reuse only when both sides
|
|
256
|
-
// agree on presence AND identity.
|
|
247
|
+
// Rebuild bound to the digest cap: a restored entry can hold more unique
|
|
248
|
+
// turns than DUPLICATE_DIGEST_CAP, so keep the most recent turns (FIFO
|
|
249
|
+
// order, matching the steady-state path) — inserting all of them would
|
|
250
|
+
// leave the set permanently above the cap.
|
|
257
251
|
// Reuse only when both sides agree on presence AND identity: a memo built
|
|
258
|
-
// with a retained array
|
|
259
|
-
//
|
|
260
|
-
//
|
|
261
|
-
// content). Any memo built with a retained array therefore requires a
|
|
262
|
-
// live identical array now; a memo built without one requires none now.
|
|
252
|
+
// with a retained array requires a live identical array now (a collected
|
|
253
|
+
// WeakRef must never read as "absent"); a memo built without one requires
|
|
254
|
+
// none now.
|
|
263
255
|
const retainedMatch =
|
|
264
256
|
memo?.retainedRef === undefined
|
|
265
257
|
? memo !== undefined && retained === undefined
|
|
File without changes
|
|
File without changes
|
|
File without changes
|