@remnic/core 9.61.1 → 9.62.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/dist/access-admin-ops-surface.js +11 -11
- package/dist/access-authorization-probe.js +12 -12
- package/dist/access-boundary.js +11 -11
- package/dist/access-cli.js +43 -43
- package/dist/access-extraction-force-flush.js +11 -11
- package/dist/access-http-query.js +11 -11
- package/dist/access-http.js +20 -20
- package/dist/access-identity-continuity-surface.js +11 -11
- package/dist/access-lcm-surface.js +11 -11
- package/dist/access-mcp.js +16 -16
- package/dist/access-namespace-preflight.js +11 -11
- package/dist/access-observe-write-surface.js +11 -11
- package/dist/access-operations-batch.js +12 -12
- package/dist/access-operations.js +15 -15
- package/dist/access-recall-concurrency.js +11 -11
- package/dist/access-recall-response.js +11 -11
- package/dist/access-recall-surface.js +11 -11
- package/dist/access-service.js +11 -11
- package/dist/access-surface-catalog.js +13 -13
- package/dist/active-memory-bridge.js +2 -2
- package/dist/active-recall.js +3 -3
- package/dist/briefing.js +4 -4
- package/dist/causal-consolidation.js +5 -5
- package/dist/{chunk-KAB7TZN3.js → chunk-3G6YU5YD.js} +2 -2
- package/dist/{chunk-XD4VGLDL.js → chunk-3XG4QEA2.js} +35 -31
- package/dist/chunk-3XG4QEA2.js.map +1 -0
- package/dist/{chunk-HEEEMJ26.js → chunk-4E67XCT2.js} +3 -3
- package/dist/{chunk-H32ANIFP.js → chunk-4G45LJJP.js} +2 -2
- package/dist/{chunk-4XAVQLBR.js → chunk-4Y2RHVCV.js} +2 -2
- package/dist/{chunk-S3B3UIQ3.js → chunk-67MKNKJQ.js} +2 -2
- package/dist/{chunk-PA5OPZX2.js → chunk-75U2FR7U.js} +2 -2
- package/dist/{chunk-I67HKRBF.js → chunk-7JAXC526.js} +2 -2
- package/dist/{chunk-3GPBFDXH.js → chunk-7PVTOZR4.js} +2 -2
- package/dist/{chunk-DSA47WBN.js → chunk-BHO3IVAN.js} +2 -2
- package/dist/{chunk-MYZ4NA43.js → chunk-DYDACAK2.js} +2 -2
- package/dist/{chunk-4JGSG7QN.js → chunk-ETCVSZLG.js} +2 -2
- package/dist/{chunk-EIQFIJDM.js → chunk-EU74U4GT.js} +2 -2
- package/dist/{chunk-L33N3BCA.js → chunk-GZRDOVQN.js} +2 -2
- package/dist/{chunk-AWRJBAIH.js → chunk-HKYNBEL4.js} +6 -6
- package/dist/{chunk-MJ4UGUR6.js → chunk-IIRK5V5Z.js} +2 -2
- package/dist/{chunk-2RIDW23Y.js → chunk-IXJ5U6ZL.js} +8 -8
- package/dist/{chunk-QRKYABS6.js → chunk-JDJOAL4B.js} +2 -2
- package/dist/{chunk-GN7HO2LA.js → chunk-JF6YSHJM.js} +7 -7
- package/dist/{chunk-D5HDJWNN.js → chunk-JLMH5YMU.js} +3 -3
- package/dist/{chunk-FW73HN33.js → chunk-K4WIUTNH.js} +2 -2
- package/dist/{chunk-TE4MKFT2.js → chunk-KCFZOSR6.js} +4 -4
- package/dist/{chunk-VWDTV6SH.js → chunk-KYI3CM42.js} +2 -2
- package/dist/{chunk-CIA6ZUBA.js → chunk-LAM6UDFV.js} +2 -2
- package/dist/{chunk-W4Q54HM3.js → chunk-LLLY5IBK.js} +2 -2
- package/dist/{chunk-CM4SZZBN.js → chunk-MJFDJTDC.js} +2 -2
- package/dist/{chunk-VOELBUS4.js → chunk-NXH34IPL.js} +2 -2
- package/dist/{chunk-MU3TPZOV.js → chunk-PBH2Z2NY.js} +2 -2
- package/dist/chunk-PJKTFXE2.js +119 -0
- package/dist/chunk-PJKTFXE2.js.map +1 -0
- package/dist/{chunk-G3YBWFUC.js → chunk-QN7XQEIT.js} +34 -17
- package/dist/chunk-QN7XQEIT.js.map +1 -0
- package/dist/{chunk-HQBVQICL.js → chunk-QNMNNFKD.js} +2 -2
- package/dist/{chunk-EGW4O32Z.js → chunk-QRA3XVJX.js} +7 -4
- package/dist/chunk-QRA3XVJX.js.map +1 -0
- package/dist/{chunk-L4DLLKPN.js → chunk-SZ4HFZKB.js} +2 -2
- package/dist/{chunk-N4OYPGZS.js → chunk-TLUSSS2F.js} +2 -2
- package/dist/{chunk-N4EPIKSY.js → chunk-U27G4E5G.js} +3 -3
- package/dist/{chunk-W3Y6FYRK.js → chunk-UIRU3MIJ.js} +2 -2
- package/dist/{chunk-URN7XWGC.js → chunk-WANOCU3K.js} +2 -2
- package/dist/{chunk-XDK6ZFLL.js → chunk-WTMG5GAK.js} +2 -2
- package/dist/{chunk-C3R732UY.js → chunk-XIABRKF6.js} +37 -32
- package/dist/chunk-XIABRKF6.js.map +1 -0
- package/dist/{chunk-D4OCJSLV.js → chunk-YDPAE2RD.js} +2 -2
- package/dist/{chunk-FQSDU634.js → chunk-YG56A6XY.js} +2 -2
- package/dist/{chunk-XBR5BAKW.js → chunk-YSUSUZR4.js} +3 -3
- package/dist/{chunk-YUIBXMZY.js → chunk-ZJKLGS76.js} +2 -2
- package/dist/cli.js +32 -32
- package/dist/compounding/engine.js +4 -4
- package/dist/config.js +3 -3
- package/dist/connectors/codex-materialize-runner.js +4 -4
- package/dist/connectors/index.js +4 -4
- package/dist/convergence-refresh.js +6 -6
- package/dist/corpus-watermark.js +6 -6
- package/dist/entity-retrieval.js +4 -4
- package/dist/external-wiki-access.js +12 -12
- package/dist/extraction-source-grounding.js +3 -3
- package/dist/extraction.js +7 -7
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +56 -43
- package/dist/maintenance/memory-governance.js +4 -4
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +4 -4
- package/dist/maintenance/rebuild-memory-projection.js +5 -5
- package/dist/namespaces/migrate.js +5 -5
- package/dist/namespaces/storage.js +4 -4
- package/dist/operator-doctor-corpus.js +7 -7
- package/dist/operator-toolkit.js +12 -12
- package/dist/orchestration/maintenance.js +9 -9
- package/dist/orchestrator.js +43 -43
- package/dist/provenance.js +2 -2
- package/dist/resume-bundles.js +4 -4
- package/dist/semantic-consolidation.js +5 -5
- package/dist/semantic-rule-promotion.js +4 -4
- package/dist/semantic-rule-verifier.js +4 -4
- package/dist/source-agent-qualifier.js +6 -6
- package/dist/storage.js +3 -3
- package/dist/support-passport/index.js +14 -14
- package/dist/verified-recall.js +4 -4
- package/dist/whitespace.d.ts +26 -1
- package/dist/whitespace.js +11 -3
- package/package.json +2 -2
- package/src/cli.ts +14 -13
- package/src/entity-retrieval.ts +4 -7
- package/src/harmonic-construction.test.ts +187 -2
- package/src/harmonic-retrieval.ts +54 -32
- package/src/index.ts +3 -4
- package/src/orchestration/recall-section-coordinator.ts +20 -14
- package/src/whitespace.test.ts +178 -0
- package/src/whitespace.ts +119 -0
- package/dist/chunk-6MKAMLQL.js +0 -16
- package/dist/chunk-6MKAMLQL.js.map +0 -1
- package/dist/chunk-C3R732UY.js.map +0 -1
- package/dist/chunk-EGW4O32Z.js.map +0 -1
- package/dist/chunk-G3YBWFUC.js.map +0 -1
- package/dist/chunk-XD4VGLDL.js.map +0 -1
- /package/dist/{chunk-KAB7TZN3.js.map → chunk-3G6YU5YD.js.map} +0 -0
- /package/dist/{chunk-HEEEMJ26.js.map → chunk-4E67XCT2.js.map} +0 -0
- /package/dist/{chunk-H32ANIFP.js.map → chunk-4G45LJJP.js.map} +0 -0
- /package/dist/{chunk-4XAVQLBR.js.map → chunk-4Y2RHVCV.js.map} +0 -0
- /package/dist/{chunk-S3B3UIQ3.js.map → chunk-67MKNKJQ.js.map} +0 -0
- /package/dist/{chunk-PA5OPZX2.js.map → chunk-75U2FR7U.js.map} +0 -0
- /package/dist/{chunk-I67HKRBF.js.map → chunk-7JAXC526.js.map} +0 -0
- /package/dist/{chunk-3GPBFDXH.js.map → chunk-7PVTOZR4.js.map} +0 -0
- /package/dist/{chunk-DSA47WBN.js.map → chunk-BHO3IVAN.js.map} +0 -0
- /package/dist/{chunk-MYZ4NA43.js.map → chunk-DYDACAK2.js.map} +0 -0
- /package/dist/{chunk-4JGSG7QN.js.map → chunk-ETCVSZLG.js.map} +0 -0
- /package/dist/{chunk-EIQFIJDM.js.map → chunk-EU74U4GT.js.map} +0 -0
- /package/dist/{chunk-L33N3BCA.js.map → chunk-GZRDOVQN.js.map} +0 -0
- /package/dist/{chunk-AWRJBAIH.js.map → chunk-HKYNBEL4.js.map} +0 -0
- /package/dist/{chunk-MJ4UGUR6.js.map → chunk-IIRK5V5Z.js.map} +0 -0
- /package/dist/{chunk-2RIDW23Y.js.map → chunk-IXJ5U6ZL.js.map} +0 -0
- /package/dist/{chunk-QRKYABS6.js.map → chunk-JDJOAL4B.js.map} +0 -0
- /package/dist/{chunk-GN7HO2LA.js.map → chunk-JF6YSHJM.js.map} +0 -0
- /package/dist/{chunk-D5HDJWNN.js.map → chunk-JLMH5YMU.js.map} +0 -0
- /package/dist/{chunk-FW73HN33.js.map → chunk-K4WIUTNH.js.map} +0 -0
- /package/dist/{chunk-TE4MKFT2.js.map → chunk-KCFZOSR6.js.map} +0 -0
- /package/dist/{chunk-VWDTV6SH.js.map → chunk-KYI3CM42.js.map} +0 -0
- /package/dist/{chunk-CIA6ZUBA.js.map → chunk-LAM6UDFV.js.map} +0 -0
- /package/dist/{chunk-W4Q54HM3.js.map → chunk-LLLY5IBK.js.map} +0 -0
- /package/dist/{chunk-CM4SZZBN.js.map → chunk-MJFDJTDC.js.map} +0 -0
- /package/dist/{chunk-VOELBUS4.js.map → chunk-NXH34IPL.js.map} +0 -0
- /package/dist/{chunk-MU3TPZOV.js.map → chunk-PBH2Z2NY.js.map} +0 -0
- /package/dist/{chunk-HQBVQICL.js.map → chunk-QNMNNFKD.js.map} +0 -0
- /package/dist/{chunk-L4DLLKPN.js.map → chunk-SZ4HFZKB.js.map} +0 -0
- /package/dist/{chunk-N4OYPGZS.js.map → chunk-TLUSSS2F.js.map} +0 -0
- /package/dist/{chunk-N4EPIKSY.js.map → chunk-U27G4E5G.js.map} +0 -0
- /package/dist/{chunk-W3Y6FYRK.js.map → chunk-UIRU3MIJ.js.map} +0 -0
- /package/dist/{chunk-URN7XWGC.js.map → chunk-WANOCU3K.js.map} +0 -0
- /package/dist/{chunk-XDK6ZFLL.js.map → chunk-WTMG5GAK.js.map} +0 -0
- /package/dist/{chunk-D4OCJSLV.js.map → chunk-YDPAE2RD.js.map} +0 -0
- /package/dist/{chunk-FQSDU634.js.map → chunk-YG56A6XY.js.map} +0 -0
- /package/dist/{chunk-XBR5BAKW.js.map → chunk-YSUSUZR4.js.map} +0 -0
- /package/dist/{chunk-YUIBXMZY.js.map → chunk-ZJKLGS76.js.map} +0 -0
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
listMemoryGovernanceRuns,
|
|
9
9
|
readMemoryGovernanceRunArtifact
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K4WIUTNH.js";
|
|
11
11
|
import {
|
|
12
12
|
StorageManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZJKLGS76.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeProjectionPreview,
|
|
16
16
|
normalizeProjectionTags
|
|
@@ -1005,4 +1005,4 @@ export {
|
|
|
1005
1005
|
verifyMemoryProjection,
|
|
1006
1006
|
repairMemoryProjection
|
|
1007
1007
|
};
|
|
1008
|
-
//# sourceMappingURL=chunk-
|
|
1008
|
+
//# sourceMappingURL=chunk-4E67XCT2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJKLGS76.js";
|
|
4
4
|
import {
|
|
5
5
|
composeMemoryEnvelope
|
|
6
6
|
} from "./chunk-LCU5R6TQ.js";
|
|
@@ -546,4 +546,4 @@ export {
|
|
|
546
546
|
setSemanticRulePromotionTestHooks,
|
|
547
547
|
promoteSemanticRuleFromMemory
|
|
548
548
|
};
|
|
549
|
-
//# sourceMappingURL=chunk-
|
|
549
|
+
//# sourceMappingURL=chunk-4G45LJJP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyExtractionSourceGrounding
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SZ4HFZKB.js";
|
|
4
4
|
import {
|
|
5
5
|
CONNECTOR_LABEL_MAX_LENGTH,
|
|
6
6
|
knownConnectorIds
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
renderExtractionConversation,
|
|
109
109
|
applyGroundingWithConnector
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-4Y2RHVCV.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJKLGS76.js";
|
|
4
4
|
import {
|
|
5
5
|
keyring_exports,
|
|
6
6
|
secureStoreDir
|
|
@@ -412,4 +412,4 @@ export {
|
|
|
412
412
|
resolveNamespaceStorageRoot,
|
|
413
413
|
NamespaceStorageRouter
|
|
414
414
|
};
|
|
415
|
-
//# sourceMappingURL=chunk-
|
|
415
|
+
//# sourceMappingURL=chunk-67MKNKJQ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getOperation,
|
|
4
4
|
operationRequiresAuthorizedNamespace,
|
|
5
5
|
operationUsesPrincipalNamespace
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HKYNBEL4.js";
|
|
7
7
|
import {
|
|
8
8
|
assertOperationAuthorizationAllowed
|
|
9
9
|
} from "./chunk-MZWSOLMT.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
authorizationProbeNamespaces,
|
|
61
61
|
authorizationProbeRequiresPrincipalNamespace
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-75U2FR7U.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listNamespaces
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTMG5GAK.js";
|
|
4
4
|
import {
|
|
5
5
|
capabilityAllowsNamespace
|
|
6
6
|
} from "./chunk-MZWSOLMT.js";
|
|
@@ -282,4 +282,4 @@ export {
|
|
|
282
282
|
computeServiceCorpusWatermarks,
|
|
283
283
|
computeServiceCorpusCensus
|
|
284
284
|
};
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-7JAXC526.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7T4TOGMS.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOperation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HKYNBEL4.js";
|
|
7
7
|
|
|
8
8
|
// src/external-wiki-access.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -26,4 +26,4 @@ var externalWikiSearchOperation = defineOperation({
|
|
|
26
26
|
export {
|
|
27
27
|
externalWikiSearchOperation
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-7PVTOZR4.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "./chunk-JV3C2MNQ.js";
|
|
64
64
|
import {
|
|
65
65
|
parseProvenanceConfig
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-NXH34IPL.js";
|
|
67
67
|
import {
|
|
68
68
|
normalizeEntitySchemas
|
|
69
69
|
} from "./chunk-ZIKENA2C.js";
|
|
@@ -4041,4 +4041,4 @@ export {
|
|
|
4041
4041
|
VALID_MEMORY_CATEGORIES,
|
|
4042
4042
|
parseConfig
|
|
4043
4043
|
};
|
|
4044
|
-
//# sourceMappingURL=chunk-
|
|
4044
|
+
//# sourceMappingURL=chunk-BHO3IVAN.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-5JMAGU26.js";
|
|
6
6
|
import {
|
|
7
7
|
runPostConsolidationMaterialize
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PBH2Z2NY.js";
|
|
9
9
|
import {
|
|
10
10
|
isSemanticConsolidationLlmOperator
|
|
11
11
|
} from "./chunk-G7D6GZ5J.js";
|
|
@@ -220,4 +220,4 @@ export {
|
|
|
220
220
|
buildExtensionsBlockForConsolidation,
|
|
221
221
|
materializeAfterSemanticConsolidation
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-DYDACAK2.js.map
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-YYQAKIDJ.js";
|
|
26
26
|
import {
|
|
27
27
|
getOperation
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HKYNBEL4.js";
|
|
29
29
|
import {
|
|
30
30
|
SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
|
|
31
31
|
} from "./chunk-XDL5CYZN.js";
|
|
@@ -3946,4 +3946,4 @@ export {
|
|
|
3946
3946
|
MCP_SUPPORTED_PROTOCOL_VERSIONS,
|
|
3947
3947
|
EngramMcpServer
|
|
3948
3948
|
};
|
|
3949
|
-
//# sourceMappingURL=chunk-
|
|
3949
|
+
//# sourceMappingURL=chunk-ETCVSZLG.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
SupportPassportError,
|
|
3
3
|
SupportPassportOwnerCreateGrantRequestSchema,
|
|
4
4
|
getOperation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HKYNBEL4.js";
|
|
6
6
|
|
|
7
7
|
// src/support-passport/access-http.ts
|
|
8
8
|
var OWNER_ROOT = "/engram/v1/support-passport";
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
SUPPORT_PASSPORT_OWNER_HTTP_ROUTES,
|
|
138
138
|
handleSupportPassportOwnerHttp
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-EU74U4GT.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
computeCorpusWatermarks,
|
|
6
6
|
resolveCorpusNamespaceRoots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7JAXC526.js";
|
|
8
8
|
|
|
9
9
|
// src/operator-doctor-corpus.ts
|
|
10
10
|
var DIGEST_PREFIX_LENGTH = 12;
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
corpusWatermarksFromCheck,
|
|
79
79
|
summarizeCorpusAndReplica
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-GZRDOVQN.js.map
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-EHMMRZOZ.js";
|
|
42
42
|
import {
|
|
43
43
|
readAggregateExtractionWatermark
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LAM6UDFV.js";
|
|
45
45
|
import {
|
|
46
46
|
ReplicaDivergenceMonitor
|
|
47
47
|
} from "./chunk-CVILPI77.js";
|
|
@@ -99,11 +99,11 @@ import {
|
|
|
99
99
|
listMemoryGovernanceRuns,
|
|
100
100
|
readMemoryGovernanceRunArtifact,
|
|
101
101
|
runMemoryGovernance
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-K4WIUTNH.js";
|
|
103
103
|
import {
|
|
104
104
|
CorpusWatermarkCache,
|
|
105
105
|
computeServiceCorpusCensus
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-7JAXC526.js";
|
|
107
107
|
import {
|
|
108
108
|
CrossNamespaceBudget,
|
|
109
109
|
toBudgetWarning
|
|
@@ -127,14 +127,14 @@ import {
|
|
|
127
127
|
enqueuePassiveCorrectionNotification,
|
|
128
128
|
parseBriefingFocus,
|
|
129
129
|
parseBriefingWindow
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-UIRU3MIJ.js";
|
|
131
131
|
import {
|
|
132
132
|
parseEntityFile,
|
|
133
133
|
parseFrontmatter,
|
|
134
134
|
qmdCollectionPathParts,
|
|
135
135
|
qmdResultPathCandidates,
|
|
136
136
|
selfDeps
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-ZJKLGS76.js";
|
|
138
138
|
import {
|
|
139
139
|
namespaceCollectionName
|
|
140
140
|
} from "./chunk-QWPAQLYV.js";
|
|
@@ -17672,4 +17672,4 @@ export {
|
|
|
17672
17672
|
EngramAccessService,
|
|
17673
17673
|
AccessAdminOpsSurface
|
|
17674
17674
|
};
|
|
17675
|
-
//# sourceMappingURL=chunk-
|
|
17675
|
+
//# sourceMappingURL=chunk-HKYNBEL4.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-B7RWBZXW.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZJKLGS76.js";
|
|
7
7
|
import {
|
|
8
8
|
getCachedEpisodeMap,
|
|
9
9
|
setCachedEpisodeMap
|
|
@@ -109,4 +109,4 @@ export {
|
|
|
109
109
|
compareVerifiedEpisodeResults,
|
|
110
110
|
searchVerifiedEpisodes
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-IIRK5V5Z.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readNamespaceMaintenanceLastRanStatuses,
|
|
4
4
|
readNamespaceMaintenanceStatuses,
|
|
5
5
|
runNamespaceMaintenancePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TLUSSS2F.js";
|
|
7
7
|
import {
|
|
8
8
|
analyzeSessionIntegrity,
|
|
9
9
|
applySessionRepair,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-CMTINOFS.js";
|
|
15
15
|
import {
|
|
16
16
|
summarizeCorpusAndReplica
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GZRDOVQN.js";
|
|
18
18
|
import {
|
|
19
19
|
readJudgeVerdictStats
|
|
20
20
|
} from "./chunk-OZKOPQCM.js";
|
|
@@ -38,23 +38,23 @@ import {
|
|
|
38
38
|
} from "./chunk-YBPYIAA5.js";
|
|
39
39
|
import {
|
|
40
40
|
parseConfig
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BHO3IVAN.js";
|
|
42
42
|
import {
|
|
43
43
|
readAggregateExtractionWatermark
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LAM6UDFV.js";
|
|
45
45
|
import {
|
|
46
46
|
listMemoryGovernanceRuns,
|
|
47
47
|
readMemoryGovernanceRunArtifact
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-K4WIUTNH.js";
|
|
49
49
|
import {
|
|
50
50
|
listNamespaces
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-WTMG5GAK.js";
|
|
52
52
|
import {
|
|
53
53
|
analyzeGraphHealth
|
|
54
54
|
} from "./chunk-YMOPYG3K.js";
|
|
55
55
|
import {
|
|
56
56
|
StorageManager
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ZJKLGS76.js";
|
|
58
58
|
import {
|
|
59
59
|
lintWorkspaceFiles
|
|
60
60
|
} from "./chunk-DM2T26WE.js";
|
|
@@ -1683,4 +1683,4 @@ export {
|
|
|
1683
1683
|
runBenchmarkRecall,
|
|
1684
1684
|
runOperatorRepair
|
|
1685
1685
|
};
|
|
1686
|
-
//# sourceMappingURL=chunk-
|
|
1686
|
+
//# sourceMappingURL=chunk-IXJ5U6ZL.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-UYCIS6V5.js";
|
|
8
8
|
import {
|
|
9
9
|
StorageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJKLGS76.js";
|
|
11
11
|
import {
|
|
12
12
|
parseContinuityImprovementLoops
|
|
13
13
|
} from "./chunk-LDXUBPMO.js";
|
|
@@ -1283,4 +1283,4 @@ export {
|
|
|
1283
1283
|
defaultTierMigrationCycleBudget,
|
|
1284
1284
|
CompoundingEngine
|
|
1285
1285
|
};
|
|
1286
|
-
//# sourceMappingURL=chunk-
|
|
1286
|
+
//# sourceMappingURL=chunk-JDJOAL4B.js.map
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-3HSRWJTC.js";
|
|
13
13
|
import {
|
|
14
14
|
handleSupportPassportOwnerHttp
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EU74U4GT.js";
|
|
16
16
|
import {
|
|
17
17
|
buildSupportPassportPublicRequestHandler
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3G6YU5YD.js";
|
|
19
19
|
import {
|
|
20
20
|
nonEmptyQueryParam,
|
|
21
21
|
optionalQueryString,
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
processChatMessage,
|
|
31
31
|
sessionBelongsToPrincipal,
|
|
32
32
|
subscribeChatTranscript
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ETCVSZLG.js";
|
|
34
34
|
import {
|
|
35
35
|
RelayMissionStoreError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YSUSUZR4.js";
|
|
37
37
|
import {
|
|
38
38
|
validateRequest
|
|
39
39
|
} from "./chunk-JKW663ZN.js";
|
|
@@ -60,12 +60,12 @@ import {
|
|
|
60
60
|
authorizationProbeNamespaces,
|
|
61
61
|
authorizationProbeRequiresPrincipalNamespace,
|
|
62
62
|
probeOperationAuthorization
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-75U2FR7U.js";
|
|
64
64
|
import {
|
|
65
65
|
CorrectionContractError,
|
|
66
66
|
getOperation,
|
|
67
67
|
resolveQueryNamespaceWritablePreflight
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HKYNBEL4.js";
|
|
69
69
|
import {
|
|
70
70
|
isTrustZoneName
|
|
71
71
|
} from "./chunk-KQS72GCR.js";
|
|
@@ -3397,4 +3397,4 @@ export {
|
|
|
3397
3397
|
resolveDefaultAdminConsolePublicDir,
|
|
3398
3398
|
EngramAccessHttpServer
|
|
3399
3399
|
};
|
|
3400
|
-
//# sourceMappingURL=chunk-
|
|
3400
|
+
//# sourceMappingURL=chunk-JF6YSHJM.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
headerConnector,
|
|
7
7
|
renderExtractionConversation,
|
|
8
8
|
resolveSourceConnector
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4Y2RHVCV.js";
|
|
10
10
|
import {
|
|
11
11
|
ConsolidationResultSchema,
|
|
12
12
|
DaySummaryResultSchema,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-WLZYGLJ4.js";
|
|
28
28
|
import {
|
|
29
29
|
attachExtractionProvenance
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SZ4HFZKB.js";
|
|
31
31
|
import {
|
|
32
32
|
containsExtractionPlaceholder,
|
|
33
33
|
extractionAttributes,
|
|
@@ -2442,4 +2442,4 @@ export {
|
|
|
2442
2442
|
shouldEnableLocalExtractionThinking,
|
|
2443
2443
|
ExtractionEngine
|
|
2444
2444
|
};
|
|
2445
|
-
//# sourceMappingURL=chunk-
|
|
2445
|
+
//# sourceMappingURL=chunk-JLMH5YMU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJKLGS76.js";
|
|
4
4
|
import {
|
|
5
5
|
bumpMemoryCorpusVersionForDir
|
|
6
6
|
} from "./chunk-KMAP7SNQ.js";
|
|
@@ -765,4 +765,4 @@ export {
|
|
|
765
765
|
listMemoryGovernanceRuns,
|
|
766
766
|
readMemoryGovernanceRunArtifact
|
|
767
767
|
};
|
|
768
|
-
//# sourceMappingURL=chunk-
|
|
768
|
+
//# sourceMappingURL=chunk-K4WIUTNH.js.map
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-666A3MOW.js";
|
|
10
10
|
import {
|
|
11
11
|
rebuildMemoryLifecycleLedger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MJFDJTDC.js";
|
|
13
13
|
import {
|
|
14
14
|
planNamespaceMaintenance,
|
|
15
15
|
runNamespaceMaintenanceBatchPlan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TLUSSS2F.js";
|
|
17
17
|
import {
|
|
18
18
|
rebuildMemoryProjection
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4E67XCT2.js";
|
|
20
20
|
import {
|
|
21
21
|
activityDayWindow,
|
|
22
22
|
activityDigestPath,
|
|
@@ -1719,4 +1719,4 @@ export {
|
|
|
1719
1719
|
ActivitySyncScheduler,
|
|
1720
1720
|
MaintenanceScheduler
|
|
1721
1721
|
};
|
|
1722
|
-
//# sourceMappingURL=chunk-
|
|
1722
|
+
//# sourceMappingURL=chunk-KCFZOSR6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SupportPassportCreateGrantRequestSchema,
|
|
3
3
|
defineOperation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HKYNBEL4.js";
|
|
5
5
|
import {
|
|
6
6
|
SupportPassportCardCategorySchema,
|
|
7
7
|
SupportPassportMemoryIdSchema,
|
|
@@ -220,4 +220,4 @@ var supportPassportGrantAskOperation = defineOperation({
|
|
|
220
220
|
result: await ctx.service.supportPassportAskGrant(grantId, secret, question, ctx.abortSignal)
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-KYI3CM42.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCorpusNamespaceRoots
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7JAXC526.js";
|
|
4
4
|
import {
|
|
5
5
|
capabilityAllowsNamespace
|
|
6
6
|
} from "./chunk-MZWSOLMT.js";
|
|
@@ -200,4 +200,4 @@ async function readAggregateExtractionWatermark(options) {
|
|
|
200
200
|
export {
|
|
201
201
|
readAggregateExtractionWatermark
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-LAM6UDFV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS,
|
|
3
3
|
SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HKYNBEL4.js";
|
|
5
5
|
import {
|
|
6
6
|
SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
|
|
7
7
|
} from "./chunk-XDL5CYZN.js";
|
|
@@ -343,4 +343,4 @@ export {
|
|
|
343
343
|
parseSupportPassportModelJob,
|
|
344
344
|
SupportPassportModelBridge
|
|
345
345
|
};
|
|
346
|
-
//# sourceMappingURL=chunk-
|
|
346
|
+
//# sourceMappingURL=chunk-LLLY5IBK.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KJTKLXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZJKLGS76.js";
|
|
7
7
|
import {
|
|
8
8
|
copyExistingFileToBackup,
|
|
9
9
|
writeFileAtomically
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
backupExistingLedger,
|
|
261
261
|
rebuildMemoryLifecycleLedger
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-MJFDJTDC.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-PQVCH2AE.js";
|
|
5
5
|
import {
|
|
6
6
|
collapseWhitespace
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PJKTFXE2.js";
|
|
8
8
|
import {
|
|
9
9
|
isSafeMemoryContent
|
|
10
10
|
} from "./chunk-5GKPFL3S.js";
|
|
@@ -384,4 +384,4 @@ export {
|
|
|
384
384
|
parseProvenanceConfig,
|
|
385
385
|
buildFactProvenance
|
|
386
386
|
};
|
|
387
|
-
//# sourceMappingURL=chunk-
|
|
387
|
+
//# sourceMappingURL=chunk-NXH34IPL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-RDFF2NAU.js";
|
|
5
5
|
import {
|
|
6
6
|
StorageManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZJKLGS76.js";
|
|
8
8
|
import {
|
|
9
9
|
excludeSupportPassportPrivateMemories
|
|
10
10
|
} from "./chunk-XDL5CYZN.js";
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
runCodexMaterialize,
|
|
139
139
|
runPostConsolidationMaterialize
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
141
|
+
//# sourceMappingURL=chunk-PBH2Z2NY.js.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// src/whitespace.ts
|
|
2
|
+
function collapseWhitespace(value) {
|
|
3
|
+
return value.replace(/\s+/g, " ").trim();
|
|
4
|
+
}
|
|
5
|
+
function truncateCodePointSafe(value, maxChars) {
|
|
6
|
+
const glyphs = Array.from(value);
|
|
7
|
+
if (maxChars <= 0) return "";
|
|
8
|
+
if (glyphs.length <= maxChars) return value;
|
|
9
|
+
return glyphs.slice(0, Math.max(1, maxChars)).join("").trimEnd();
|
|
10
|
+
}
|
|
11
|
+
var graphemeSegmenter;
|
|
12
|
+
function getGraphemeSegmenter() {
|
|
13
|
+
if (graphemeSegmenter === void 0) {
|
|
14
|
+
graphemeSegmenter = typeof Intl !== "undefined" && typeof Intl.Segmenter === "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
|
|
15
|
+
}
|
|
16
|
+
return graphemeSegmenter;
|
|
17
|
+
}
|
|
18
|
+
function truncateGraphemeSafe(value, maxChars) {
|
|
19
|
+
if (maxChars <= 0) return "";
|
|
20
|
+
if (value.length <= maxChars) return value;
|
|
21
|
+
let truncated = "";
|
|
22
|
+
for (const unit of graphemeUnits(value)) {
|
|
23
|
+
if (truncated.length + unit.length > maxChars) break;
|
|
24
|
+
truncated += unit;
|
|
25
|
+
}
|
|
26
|
+
return truncated;
|
|
27
|
+
}
|
|
28
|
+
function graphemeUnits(value) {
|
|
29
|
+
const segmenter = getGraphemeSegmenter();
|
|
30
|
+
if (segmenter === null) return [...value];
|
|
31
|
+
return Array.from(segmenter.segment(value), (segment) => segment.segment);
|
|
32
|
+
}
|
|
33
|
+
var COMBINING_MARK = /\p{M}/u;
|
|
34
|
+
var FORMAT_CHAR = /\p{Cf}/u;
|
|
35
|
+
var EMOJI_PRESENTATION = /\p{Emoji_Presentation}/u;
|
|
36
|
+
var EMOJI_PRESENTATION_SELECTOR = "\uFE0F";
|
|
37
|
+
var WIDE_CODE_POINT_RANGES = [
|
|
38
|
+
[4352, 4447],
|
|
39
|
+
// Hangul Jamo
|
|
40
|
+
[11904, 12350],
|
|
41
|
+
// CJK radicals, Kangxi radicals, CJK symbols and punctuation
|
|
42
|
+
[12353, 13311],
|
|
43
|
+
// Hiragana, Katakana, Bopomofo, Hangul compatibility jamo
|
|
44
|
+
[13312, 19903],
|
|
45
|
+
// CJK unified ideographs extension A
|
|
46
|
+
[19968, 42191],
|
|
47
|
+
// CJK unified ideographs, Yi
|
|
48
|
+
[43360, 43391],
|
|
49
|
+
// Hangul Jamo extension A
|
|
50
|
+
[44032, 55203],
|
|
51
|
+
// Hangul syllables
|
|
52
|
+
[63744, 64255],
|
|
53
|
+
// CJK compatibility ideographs
|
|
54
|
+
[65040, 65049],
|
|
55
|
+
// Vertical forms
|
|
56
|
+
[65072, 65131],
|
|
57
|
+
// CJK compatibility forms
|
|
58
|
+
[65280, 65376],
|
|
59
|
+
// Fullwidth ASCII and punctuation
|
|
60
|
+
[65504, 65510],
|
|
61
|
+
// Fullwidth signs
|
|
62
|
+
[127744, 128591],
|
|
63
|
+
// Emoji symbols, pictographs, emoticons
|
|
64
|
+
[128640, 128767],
|
|
65
|
+
// Transport and map
|
|
66
|
+
[129280, 129535],
|
|
67
|
+
// Supplemental symbols
|
|
68
|
+
[129648, 129791],
|
|
69
|
+
// Symbols and pictographs extended-A
|
|
70
|
+
[131072, 196605],
|
|
71
|
+
// CJK extensions B-F
|
|
72
|
+
[196608, 262141]
|
|
73
|
+
// CJK extension G and later
|
|
74
|
+
];
|
|
75
|
+
function isWideGlyph(glyph) {
|
|
76
|
+
const codePoint = glyph.codePointAt(0);
|
|
77
|
+
let low = 0;
|
|
78
|
+
let high = WIDE_CODE_POINT_RANGES.length - 1;
|
|
79
|
+
while (low <= high) {
|
|
80
|
+
const mid = low + high >> 1;
|
|
81
|
+
const [start, end] = WIDE_CODE_POINT_RANGES[mid];
|
|
82
|
+
if (codePoint < start) high = mid - 1;
|
|
83
|
+
else if (codePoint > end) low = mid + 1;
|
|
84
|
+
else return true;
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
function displayWidth(value) {
|
|
89
|
+
let width = 0;
|
|
90
|
+
for (const cluster of graphemeUnits(value)) {
|
|
91
|
+
width += graphemeClusterWidth(cluster);
|
|
92
|
+
}
|
|
93
|
+
return width;
|
|
94
|
+
}
|
|
95
|
+
function graphemeClusterWidth(cluster) {
|
|
96
|
+
if (cluster.includes(EMOJI_PRESENTATION_SELECTOR)) return 2;
|
|
97
|
+
let emojiCluster = false;
|
|
98
|
+
let width = 0;
|
|
99
|
+
for (const glyph of cluster) {
|
|
100
|
+
if (COMBINING_MARK.test(glyph) || FORMAT_CHAR.test(glyph)) continue;
|
|
101
|
+
if (EMOJI_PRESENTATION.test(glyph)) emojiCluster = true;
|
|
102
|
+
width += isWideGlyph(glyph) ? 2 : 1;
|
|
103
|
+
}
|
|
104
|
+
return emojiCluster ? 2 : width;
|
|
105
|
+
}
|
|
106
|
+
function padEndDisplay(value, targetWidth) {
|
|
107
|
+
const padding = targetWidth - displayWidth(value);
|
|
108
|
+
return padding > 0 ? value + " ".repeat(padding) : value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
collapseWhitespace,
|
|
113
|
+
truncateCodePointSafe,
|
|
114
|
+
truncateGraphemeSafe,
|
|
115
|
+
graphemeUnits,
|
|
116
|
+
displayWidth,
|
|
117
|
+
padEndDisplay
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=chunk-PJKTFXE2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/whitespace.ts"],"sourcesContent":["export function collapseWhitespace(value: string): string {\n return value.replace(/\\s+/g, \" \").trim();\n}\n\nexport function truncateCodePointSafe(value: string, maxChars: number): string {\n const glyphs = Array.from(value);\n if (maxChars <= 0) return \"\";\n if (glyphs.length <= maxChars) return value;\n return glyphs.slice(0, Math.max(1, maxChars)).join(\"\").trimEnd();\n}\n\nlet graphemeSegmenter: Intl.Segmenter | null | undefined;\n\nfunction getGraphemeSegmenter(): Intl.Segmenter | null {\n if (graphemeSegmenter === undefined) {\n graphemeSegmenter =\n typeof Intl !== \"undefined\" && typeof Intl.Segmenter === \"function\"\n ? new Intl.Segmenter(undefined, { granularity: \"grapheme\" })\n : null;\n }\n return graphemeSegmenter;\n}\n\n/**\n * Longest prefix of `value` whose UTF-16 length stays within `maxChars`\n * without splitting a surrogate pair or a grapheme cluster (ZWJ emoji\n * sequences, flags, Hangul jamo runs, combining marks). A cluster wider than\n * the budget is dropped whole rather than split. Falls back to code-point\n * boundaries when Intl.Segmenter is unavailable.\n */\nexport function truncateGraphemeSafe(value: string, maxChars: number): string {\n if (maxChars <= 0) return \"\";\n if (value.length <= maxChars) return value;\n let truncated = \"\";\n for (const unit of graphemeUnits(value)) {\n if (truncated.length + unit.length > maxChars) break;\n truncated += unit;\n }\n return truncated;\n}\n\n/**\n * Grapheme clusters of `value` as separate strings, or its code points when\n * Intl.Segmenter is unavailable.\n */\nexport function graphemeUnits(value: string): string[] {\n const segmenter = getGraphemeSegmenter();\n if (segmenter === null) return [...value];\n return Array.from(segmenter.segment(value), (segment) => segment.segment);\n}\n\nconst COMBINING_MARK = /\\p{M}/u;\nconst FORMAT_CHAR = /\\p{Cf}/u;\nconst EMOJI_PRESENTATION = /\\p{Emoji_Presentation}/u;\nconst EMOJI_PRESENTATION_SELECTOR = \"\\uFE0F\";\n\n// ponytail: pragmatic East_Asian_Width Wide/Fullwidth subset - contiguous\n// block ranges plus the emoji presentation planes. Sparse exceptions inside\n// those ranges (narrow unassigned code points, U+303F) do not matter for\n// terminal column alignment; switch to a full EAW table only if drift shows.\nconst WIDE_CODE_POINT_RANGES: ReadonlyArray<readonly [number, number]> = [\n [0x1100, 0x115f], // Hangul Jamo\n [0x2e80, 0x303e], // CJK radicals, Kangxi radicals, CJK symbols and punctuation\n [0x3041, 0x33ff], // Hiragana, Katakana, Bopomofo, Hangul compatibility jamo\n [0x3400, 0x4dbf], // CJK unified ideographs extension A\n [0x4e00, 0xa4cf], // CJK unified ideographs, Yi\n [0xa960, 0xa97f], // Hangul Jamo extension A\n [0xac00, 0xd7a3], // Hangul syllables\n [0xf900, 0xfaff], // CJK compatibility ideographs\n [0xfe10, 0xfe19], // Vertical forms\n [0xfe30, 0xfe6b], // CJK compatibility forms\n [0xff00, 0xff60], // Fullwidth ASCII and punctuation\n [0xffe0, 0xffe6], // Fullwidth signs\n [0x1f300, 0x1f64f], // Emoji symbols, pictographs, emoticons\n [0x1f680, 0x1f6ff], // Transport and map\n [0x1f900, 0x1f9ff], // Supplemental symbols\n [0x1fa70, 0x1faff], // Symbols and pictographs extended-A\n [0x20000, 0x2fffd], // CJK extensions B-F\n [0x30000, 0x3fffd], // CJK extension G and later\n];\n\nfunction isWideGlyph(glyph: string): boolean {\n const codePoint = glyph.codePointAt(0)!;\n let low = 0;\n let high = WIDE_CODE_POINT_RANGES.length - 1;\n while (low <= high) {\n const mid = (low + high) >> 1;\n const [start, end] = WIDE_CODE_POINT_RANGES[mid]!;\n if (codePoint < start) high = mid - 1;\n else if (codePoint > end) low = mid + 1;\n else return true;\n }\n return false;\n}\n\n/**\n * Terminal cell width: East_Asian_Width Wide/Fullwidth glyphs count as 2,\n * combining marks and format characters (ZWJ, variation selectors) as 0,\n * everything else as 1. A grapheme cluster with emoji presentation - ZWJ\n * sequences, flags, skin-tone modifiers - occupies two cells.\n */\nexport function displayWidth(value: string): number {\n let width = 0;\n for (const cluster of graphemeUnits(value)) {\n width += graphemeClusterWidth(cluster);\n }\n return width;\n}\n\nfunction graphemeClusterWidth(cluster: string): number {\n if (cluster.includes(EMOJI_PRESENTATION_SELECTOR)) return 2;\n let emojiCluster = false;\n let width = 0;\n for (const glyph of cluster) {\n if (COMBINING_MARK.test(glyph) || FORMAT_CHAR.test(glyph)) continue;\n if (EMOJI_PRESENTATION.test(glyph)) emojiCluster = true;\n width += isWideGlyph(glyph) ? 2 : 1;\n }\n return emojiCluster ? 2 : width;\n}\n\n/**\n * padEnd analog that pads to a terminal cell width, so rows containing CJK\n * or emoji keep their columns aligned.\n */\nexport function padEndDisplay(value: string, targetWidth: number): string {\n const padding = targetWidth - displayWidth(value);\n return padding > 0 ? value + \" \".repeat(padding) : value;\n}\n"],"mappings":"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","names":[]}
|