acp-kernel 0.0.63-pr.253.100 → 0.0.63-pr.253.99
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/block-map.d.ts +1 -3
- package/dist/block-map.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/block-map.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import type { BlockSpan, CompressionBlock, CompressionState, MessageRefMap } fro
|
|
|
2
2
|
/** Resolve a block's current ref span. Prefers the stored startRef/endRef
|
|
3
3
|
* (assigned at creation from the requested range); falls back to the
|
|
4
4
|
* min/max of effectiveMessageIds' refs for blocks persisted before those
|
|
5
|
-
* fields existed.
|
|
6
|
-
* block-boundary specs (startId "bN") are stored verbatim on tier-distilled
|
|
7
|
-
* blocks and must not render as spans. Returns null when nothing resolves. */
|
|
5
|
+
* fields existed. Returns null when no covered message still resolves. */
|
|
8
6
|
export declare function resolveBlockSpan(block: CompressionBlock, byRaw: MessageRefMap["byRaw"]): {
|
|
9
7
|
startRef: string;
|
|
10
8
|
endRef: string;
|
package/dist/block-map.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-map.d.ts","sourceRoot":"","sources":["../src/block-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACd,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"block-map.d.ts","sourceRoot":"","sources":["../src/block-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACd,MAAM,YAAY,CAAC;AAOpB;;;2EAG2E;AAC3E,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,GAC5B;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU7C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,EAAE,CASrE;AAED;;;;8BAI8B;AAC9B,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,gBAAgB,EACvB,SAAS,EAAE,gBAAgB,EAAE,GAC5B,MAAM,CASR"}
|
package/dist/index.js
CHANGED
|
@@ -1569,9 +1569,8 @@ function refNum(ref) {
|
|
|
1569
1569
|
const m = ref.match(/\d+/);
|
|
1570
1570
|
return m ? parseInt(m[0], 10) : 0;
|
|
1571
1571
|
}
|
|
1572
|
-
var M_REF = /^m\d+$/;
|
|
1573
1572
|
function resolveBlockSpan(block, byRaw) {
|
|
1574
|
-
if (block.startRef && block.endRef
|
|
1573
|
+
if (block.startRef && block.endRef) {
|
|
1575
1574
|
return { startRef: block.startRef, endRef: block.endRef };
|
|
1576
1575
|
}
|
|
1577
1576
|
const refs = block.effectiveMessageIds.map((id) => byRaw[id]).filter((r) => typeof r === "string" && r !== "BLOCKED");
|