@cloakapi/sdk 1.5.0 → 1.6.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +24 -4
  3. package/dist/browser/index.d.mts +99 -89
  4. package/dist/browser/index.d.ts +99 -89
  5. package/dist/browser/index.js +1245 -123
  6. package/dist/browser/index.mjs +24 -8
  7. package/dist/browser/light.d.mts +3 -2
  8. package/dist/browser/light.d.ts +3 -2
  9. package/dist/browser/light.js +1 -1
  10. package/dist/browser/light.mjs +17 -2
  11. package/dist/browser/names/public.mjs +2 -2
  12. package/dist/browser/ner-pipeline-worker.mjs +3 -3
  13. package/dist/{chunk-6TMC2A6M.mjs → chunk-3MXGO6NA.mjs} +12 -8
  14. package/dist/{chunk-G6TZ6722.mjs → chunk-6E6T2YO5.mjs} +5 -915
  15. package/dist/{chunk-EY35G37A.mjs → chunk-746IWCJ4.mjs} +224 -1
  16. package/dist/chunk-L7RLVZMD.mjs +922 -0
  17. package/dist/{chunk-JV52VGVZ.mjs → chunk-TRWGRB2P.mjs} +1 -1
  18. package/dist/chunk-TWAQCP3Z.mjs +1258 -0
  19. package/dist/{chunk-36BC4GYL.mjs → chunk-VYGV643D.mjs} +262 -122
  20. package/dist/device/index.d.mts +1448 -0
  21. package/dist/device/index.d.ts +1448 -0
  22. package/dist/device/index.js +4539 -0
  23. package/dist/device/index.mjs +2462 -0
  24. package/dist/{disclosure-Cx6xS8Tj.d.mts → disclosure-BhM2Aqa2.d.mts} +2 -12
  25. package/dist/{disclosure-Cx6xS8Tj.d.ts → disclosure-BhM2Aqa2.d.ts} +2 -12
  26. package/dist/index.d.mts +3 -2
  27. package/dist/index.d.ts +3 -2
  28. package/dist/index.js +1 -1
  29. package/dist/index.mjs +14 -12
  30. package/dist/{local-pii-supplement-SUOJZO7X.mjs → local-pii-supplement-5KFFPDDN.mjs} +4 -4
  31. package/dist/node.d.mts +2 -1
  32. package/dist/node.d.ts +2 -1
  33. package/dist/node.js +311 -58
  34. package/dist/node.mjs +18 -12
  35. package/dist/request-body-slots-BMShK1YO.d.mts +56 -0
  36. package/dist/request-body-slots-BMShK1YO.d.ts +56 -0
  37. package/package.json +9 -2
  38. package/dist/{chunk-PEDVEDAW.mjs → chunk-66SEKCCN.mjs} +8 -8
@@ -99,24 +99,32 @@ import {
99
99
  typeFromSurrogateMarker,
100
100
  unloadEnhancedGazetteer,
101
101
  wheelUrl
102
- } from "../chunk-36BC4GYL.mjs";
102
+ } from "../chunk-VYGV643D.mjs";
103
+ import "../chunk-DLKR3ZVZ.mjs";
103
104
  import "../chunk-DMJIRWAT.mjs";
104
- import "../chunk-G6TZ6722.mjs";
105
+ import "../chunk-6E6T2YO5.mjs";
105
106
  import {
106
107
  PRIVACY_TIERS,
108
+ applyPrivacyMode,
109
+ applyPrivacyModeToReview,
107
110
  canonicalise,
111
+ copyPrivacyLedger,
112
+ createModeLedger,
108
113
  fetchJwks,
109
114
  fetchReceiptByJti,
110
115
  isCountersignedResult,
116
+ isSealedSecretMarker,
117
+ privacyLedgerFor,
111
118
  privacyPosture,
112
119
  receiptHash,
120
+ resetDefaultModeLedger,
113
121
  verifyChain,
114
122
  verifyCountersigned,
115
123
  verifyCountersignedJson,
116
124
  verifyDeviceReceipt,
117
125
  verifyReceipt,
118
126
  verifyReceiptJson
119
- } from "../chunk-EY35G37A.mjs";
127
+ } from "../chunk-746IWCJ4.mjs";
120
128
  import {
121
129
  CLK_DISCLOSURE_TEXT,
122
130
  CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED,
@@ -138,7 +146,7 @@ import {
138
146
  isSurrogateMode,
139
147
  resolveSurrogateMode,
140
148
  withDisclosure
141
- } from "../chunk-JV52VGVZ.mjs";
149
+ } from "../chunk-TRWGRB2P.mjs";
142
150
  import {
143
151
  DEFAULT_ENHANCED_NER_MODEL_ID,
144
152
  DETECTION_LAYER_ORDER,
@@ -172,13 +180,15 @@ import {
172
180
  unloadNonLatinNerModel,
173
181
  vacateDetectionLayer,
174
182
  waitForDetectionLayer
175
- } from "../chunk-6TMC2A6M.mjs";
183
+ } from "../chunk-3MXGO6NA.mjs";
176
184
  import {
177
185
  hasWholeTokenOccurrence,
178
186
  indexOfWholeToken,
179
187
  isWholeTokenOccurrence,
180
188
  replaceWholeTokenOccurrences
181
189
  } from "../chunk-QIORVVUD.mjs";
190
+ import "../chunk-L7RLVZMD.mjs";
191
+ import "../chunk-TWAQCP3Z.mjs";
182
192
  import {
183
193
  activePersonModelTier,
184
194
  enhancedGazetteerActive,
@@ -191,7 +201,8 @@ import {
191
201
  setEnhancedGazetteer,
192
202
  setEnhancedOrgModel,
193
203
  setNonLatinNerModel
194
- } from "../chunk-PEDVEDAW.mjs";
204
+ } from "../chunk-66SEKCCN.mjs";
205
+ import "../chunk-KBDFJIEW.mjs";
195
206
  import "../chunk-44DSUIC2.mjs";
196
207
  import {
197
208
  nonLatinSentenceRanges,
@@ -208,8 +219,6 @@ import {
208
219
  isCoverageAcceptance,
209
220
  setEnhancedNerRequirement
210
221
  } from "../chunk-MOHR4UIG.mjs";
211
- import "../chunk-DLKR3ZVZ.mjs";
212
- import "../chunk-KBDFJIEW.mjs";
213
222
  import "../chunk-I6KKUHEY.mjs";
214
223
  export {
215
224
  ASR_WORKER_SOURCE,
@@ -270,6 +279,8 @@ export {
270
279
  acceptReducedCoverage,
271
280
  accuracyStillPlaceholder,
272
281
  activePersonModelTier,
282
+ applyPrivacyMode,
283
+ applyPrivacyModeToReview,
273
284
  applyReviewDecisions,
274
285
  modelRoot as asrModelRoot,
275
286
  requiredMirrorFiles as asrRequiredMirrorFiles,
@@ -296,9 +307,11 @@ export {
296
307
  cloneConversation,
297
308
  codeInterpreter,
298
309
  coerceSurrogateMode,
310
+ copyPrivacyLedger,
299
311
  coverageStatusForNer,
300
312
  createBrowserEngine,
301
313
  createFailClosedRelay,
314
+ createModeLedger,
302
315
  declareDetectionLayerUnsupported,
303
316
  decodeToPcm16k,
304
317
  defaultLanguageFromLocale,
@@ -338,6 +351,7 @@ export {
338
351
  isNonLatinNerModelActive,
339
352
  isPlaceIndexReady,
340
353
  isRebuildableFormat,
354
+ isSealedSecretMarker,
341
355
  isSupportedLanguage,
342
356
  isSurrogateMode,
343
357
  isWholeTokenOccurrence,
@@ -358,6 +372,7 @@ export {
358
372
  parseFileSpec,
359
373
  parseRunPython,
360
374
  prewarmPlaceIndex,
375
+ privacyLedgerFor,
361
376
  privacyPosture,
362
377
  pyodideIndexUrl,
363
378
  rebuildTextFile,
@@ -367,6 +382,7 @@ export {
367
382
  renderSelectionSplit,
368
383
  replaceWholeTokenOccurrences,
369
384
  resampleLinear,
385
+ resetDefaultModeLedger,
370
386
  residualRawPII,
371
387
  resolveModel as resolveAsrModel,
372
388
  resolveConversation,
@@ -1,8 +1,9 @@
1
1
  import { CreateBrowserEngineOptions, BrowserEngine } from './index.mjs';
2
- export { ASR_WORKER_SOURCE, ApplyReviewOptions, ApplyReviewResult, AsrError, AsrProgress, AsrTask, AudioLike, BrowserEngineError, BrowserTokenMap, BrowserTokeniseResult, CATEGORICAL_DARK, CATEGORICAL_LIGHT, CODE_INTERPRETER_CAPABILITY_LABEL, CODE_INTERPRETER_SYSTEM_PROMPT, CODE_INTERPRETER_TOOLS, ChartSeries, ChartSpec, ChartTheme, ChartType, CloakConversation, CodeInterpreterCall, CodeInterpreterCapability, CodeInterpreterConfig, CodeInterpreterKind, CodeInterpreterManifest, CodeInterpreterResult, CodeInterpreterToolDescriptor, CountersignedResult, DEFAULT_ASR_MIRROR_BASE, DEFAULT_ASR_MODEL, DEFAULT_ASR_RUNTIME_BASE, DEFAULT_ENHANCED_NER_MODEL_ID, DEFAULT_MIRROR_BASE, DEFAULT_WHEELS, DETECTION_LAYER_ORDER, DetectedEntity, DetectionLayerId, DetectionLayerLoadHandle, DetectionLayerPhase, DetectionLayerProgress, DetectionLayerReport, DetectionLayerSnapshot, DetectionLayerState, DeviceKeyPair, DeviceReceipt, DeviceReceiptError, DeviceReceiptInput, DocBlock, EngineThreadInfo, EngineThreadReason, EnhancedGazetteerAsset, EnhancedNerLoadResult, EnhancedNerModelInfo, EnhancedNerModelProgress, EnhancedNerProgress, ExtractFileForReviewResult, ExtractOptions, FailClosedRelay, FailClosedRelayConfig, FailClosedRelayResponse, FileBuildClaim, FileBuildFile, FileBuildReceiptInput, FileEgressClaim, FileEgressFile, FileEgressReceiptInput, FileExtractFailure, FileExtractKind, FileExtractResult, FileExtractSuccess, FileFormat, FileLike, FileSpec, GeneratedFile, HEADLINE_LANGUAGES, InputBindings, InputHandle, InterpreterError, InterpreterRow, InterpreterTokenMap, LAYER_ACCURACY, LAYER_ACCURACY_PENDING_NOTE, LAYER_ACCURACY_PLACEHOLDER, LayerAccuracyCopy, LayerWaitOutcome, LayerWaitResult, LoadEnhancedNerModelOptions, LoadEnhancedNerOptions, MICROPIP_WHEELS, MakeFilePayload, MakeFilesOptions, ManualRedaction, NETWORK_GUARD_SOURCE, NerTokenizerStyle, NerUnavailableError, NetworkGuardOptions, PORTAL_ENHANCED_NER_MODEL_ID, PRIVACY_TIERS, PYODIDE_PACKAGES, PYODIDE_VERSION, PYODIDE_WORKER_SOURCE, PostureMarkerFormat, PreparedRequestBodyResult, PrivacyPosture, PrivacyPostureOptions, RECEIPT_ATTESTATION_VERSION, RebuildableFormat, RebuiltFile, RelayError, RelayTier, RelayTierInput, ResidualScanSpan, ReviewDecision, ReviewSpan, ReviewSpanType, ReviewTokenMap, RowsOrHandle, RunCallOptions, RunProgress, RunPythonOptions, RunPythonPayload, SelectionPart, SelectionSplit, SheetSpec, SignDeviceReceiptOptions, SpliceReviewedBodyOptions, TRANSCRIPTION_CAPABILITY_LABEL, TRANSCRIPTION_TOOLS, TokeniseOptions, TokeniseRequestBodyResult, TokeniseReviewOptions, TokeniseReviewResult, TokenisedRequestBodyResult, TranscribeOptions, TranscriptSegment, TranscriptionCapability, TranscriptionConfig, TranscriptionManifest, TranscriptionResult, TranscriptionToolDescriptor, UnmeasurableReason, VALUE_CONSISTENCY_MAX_PER_VALUE, VALUE_CONSISTENCY_MAX_TOTAL, VALUE_CONSISTENCY_MIN_LENGTH, Verdict, VerdictCheck, WHISPER_LANGUAGES, WHISPER_MODELS, WHISPER_SAMPLE_RATE, WaitForDetectionLayerOptions, WhisperDtype, WhisperModel, accuracyStillPlaceholder, applyReviewDecisions, asrModelRoot, asrRequiredMirrorFiles, asrRuntimeUrl, asrRuntimeWasmBase, beginDetectionLayerLoad, bindConversationSurrogates, bindRows, bindValue, bridgeOrgConnectorSpans, buildAsrWorkerSource, buildFile, buildPyodideWorkerSource, buildReviewSpans, bundleZip, cancelDetectionLayer, canonicaliseReceipt, categorical, chartToSvg, classifyEntityType, classifyFileForExtraction, cloneConversation, codeInterpreter, createFailClosedRelay, declareDetectionLayerUnsupported, decodeToPcm16k, defaultLanguageFromLocale, describeCodeInterpreter, describeTranscription, detectTokenizerStyle, detectionLayerProgressSink, detectionLayerReport, detectionLayerSnapshot, detectionLayerState, detokeniseString, detokeniseValue, engineThreadInfo, enhancedNerModelInfo, expandValueOccurrences, extractFileForReview, extractTextFromFile, fetchJwks, fetchReceiptByJti, fileBuildOf, fileEgressOf, generateDeviceKeyPair, hasWholeTokenOccurrence, indexOfWholeToken, installNoNetworkGuard, isCountersignedResult, isEnhancedNerModelActive, isNerLoadAbortError, isNonLatinNerModelActive, isPlaceIndexReady, isRebuildableFormat, isSupportedLanguage, isWholeTokenOccurrence, loadEnhancedGazetteer, loadEnhancedNerModel, loadNonLatinNerModel, makeFiles, makeFilesWithBundle, newConversation, nonLatinNerModelInfo, offerWasmNameGazetteerIfEmpty, onDetectionLayerChange, onEngineThreadChange, parseFileSpec, parseRunPython, prewarmPlaceIndex, privacyPosture, pyodideIndexUrl, rebuildTextFile, receiptHashAsync, recommendedNerThreads, reconstructOrgSpans, renderSelectionSplit, replaceWholeTokenOccurrences, resampleLinear, residualRawPII, resolveAsrModel, resolveConversation, resolveWhisperLanguage, reviewWithGracefulCards, runPython, runPythonWithBundle, signDeviceReceipt, signFileBuildReceipt, signFileEgressReceipt, specsOf, splitSelectionIntoEntities, textLikelyContainsNames, transcribe, transcription, typeFromSurrogateMarker, unloadEnhancedGazetteer, unloadEnhancedNerModel, unloadNonLatinNerModel, vacateDetectionLayer, verifyCountersigned, verifyCountersignedJson, verifyDeviceReceipt, verifyReceipt, verifyReceiptChain, verifyReceiptJson, waitForDetectionLayer, wheelUrl } from './index.mjs';
2
+ export { ASR_WORKER_SOURCE, ApplyReviewOptions, ApplyReviewResult, AsrError, AsrProgress, AsrTask, AudioLike, BrowserEngineError, BrowserTokenMap, BrowserTokeniseResult, CATEGORICAL_DARK, CATEGORICAL_LIGHT, CODE_INTERPRETER_CAPABILITY_LABEL, CODE_INTERPRETER_SYSTEM_PROMPT, CODE_INTERPRETER_TOOLS, ChartSeries, ChartSpec, ChartTheme, ChartType, CloakConversation, CodeInterpreterCall, CodeInterpreterCapability, CodeInterpreterConfig, CodeInterpreterKind, CodeInterpreterManifest, CodeInterpreterResult, CodeInterpreterToolDescriptor, CountersignedResult, DEFAULT_ASR_MIRROR_BASE, DEFAULT_ASR_MODEL, DEFAULT_ASR_RUNTIME_BASE, DEFAULT_ENHANCED_NER_MODEL_ID, DEFAULT_MIRROR_BASE, DEFAULT_WHEELS, DETECTION_LAYER_ORDER, DetectedEntity, DetectionLayerId, DetectionLayerLoadHandle, DetectionLayerPhase, DetectionLayerProgress, DetectionLayerReport, DetectionLayerSnapshot, DetectionLayerState, DeviceKeyPair, DeviceReceipt, DeviceReceiptError, DeviceReceiptInput, DocBlock, EngineThreadInfo, EngineThreadReason, EnhancedGazetteerAsset, EnhancedNerLoadResult, EnhancedNerModelInfo, EnhancedNerModelProgress, EnhancedNerProgress, ExtractFileForReviewResult, ExtractOptions, FailClosedRelay, FailClosedRelayConfig, FailClosedRelayResponse, FileBuildClaim, FileBuildFile, FileBuildReceiptInput, FileEgressClaim, FileEgressFile, FileEgressReceiptInput, FileExtractFailure, FileExtractKind, FileExtractResult, FileExtractSuccess, FileFormat, FileLike, FileSpec, GeneratedFile, HEADLINE_LANGUAGES, InputBindings, InputHandle, InterpreterError, InterpreterRow, InterpreterTokenMap, LAYER_ACCURACY, LAYER_ACCURACY_PENDING_NOTE, LAYER_ACCURACY_PLACEHOLDER, LayerAccuracyCopy, LayerWaitOutcome, LayerWaitResult, LoadEnhancedNerModelOptions, LoadEnhancedNerOptions, MICROPIP_WHEELS, MakeFilePayload, MakeFilesOptions, ManualRedaction, ModeLedger, ModeReviewLike, ModeSpanLike, NETWORK_GUARD_SOURCE, NerTokenizerStyle, NerUnavailableError, NetworkGuardOptions, PORTAL_ENHANCED_NER_MODEL_ID, PRIVACY_TIERS, PYODIDE_PACKAGES, PYODIDE_VERSION, PYODIDE_WORKER_SOURCE, PostureMarkerFormat, PreparedRequestBodyResult, PrivacyMode, PrivacyPosture, PrivacyPostureOptions, RECEIPT_ATTESTATION_VERSION, RebuildableFormat, RebuiltFile, RelayError, RelayTier, RelayTierInput, ResidualScanSpan, ReviewDecision, ReviewSpan, ReviewSpanType, ReviewTokenMap, RowsOrHandle, RunCallOptions, RunProgress, RunPythonOptions, RunPythonPayload, SelectionPart, SelectionSplit, SheetSpec, SignDeviceReceiptOptions, SpliceReviewedBodyOptions, TRANSCRIPTION_CAPABILITY_LABEL, TRANSCRIPTION_TOOLS, TokeniseOptions, TokeniseRequestBodyResult, TokeniseReviewOptions, TokeniseReviewResult, TokenisedRequestBodyResult, TranscribeOptions, TranscriptSegment, TranscriptionCapability, TranscriptionConfig, TranscriptionManifest, TranscriptionResult, TranscriptionToolDescriptor, UnmeasurableReason, VALUE_CONSISTENCY_MAX_PER_VALUE, VALUE_CONSISTENCY_MAX_TOTAL, VALUE_CONSISTENCY_MIN_LENGTH, Verdict, VerdictCheck, WHISPER_LANGUAGES, WHISPER_MODELS, WHISPER_SAMPLE_RATE, WaitForDetectionLayerOptions, WhisperDtype, WhisperModel, accuracyStillPlaceholder, applyPrivacyMode, applyPrivacyModeToReview, applyReviewDecisions, asrModelRoot, asrRequiredMirrorFiles, asrRuntimeUrl, asrRuntimeWasmBase, beginDetectionLayerLoad, bindConversationSurrogates, bindRows, bindValue, bridgeOrgConnectorSpans, buildAsrWorkerSource, buildFile, buildPyodideWorkerSource, buildReviewSpans, bundleZip, cancelDetectionLayer, canonicaliseReceipt, categorical, chartToSvg, classifyEntityType, classifyFileForExtraction, cloneConversation, codeInterpreter, copyPrivacyLedger, createFailClosedRelay, createModeLedger, declareDetectionLayerUnsupported, decodeToPcm16k, defaultLanguageFromLocale, describeCodeInterpreter, describeTranscription, detectTokenizerStyle, detectionLayerProgressSink, detectionLayerReport, detectionLayerSnapshot, detectionLayerState, detokeniseString, detokeniseValue, engineThreadInfo, enhancedNerModelInfo, expandValueOccurrences, extractFileForReview, extractTextFromFile, fetchJwks, fetchReceiptByJti, fileBuildOf, fileEgressOf, generateDeviceKeyPair, hasWholeTokenOccurrence, indexOfWholeToken, installNoNetworkGuard, isCountersignedResult, isEnhancedNerModelActive, isNerLoadAbortError, isNonLatinNerModelActive, isPlaceIndexReady, isRebuildableFormat, isSealedSecretMarker, isSupportedLanguage, isWholeTokenOccurrence, loadEnhancedGazetteer, loadEnhancedNerModel, loadNonLatinNerModel, makeFiles, makeFilesWithBundle, newConversation, nonLatinNerModelInfo, offerWasmNameGazetteerIfEmpty, onDetectionLayerChange, onEngineThreadChange, parseFileSpec, parseRunPython, prewarmPlaceIndex, privacyLedgerFor, privacyPosture, pyodideIndexUrl, rebuildTextFile, receiptHashAsync, recommendedNerThreads, reconstructOrgSpans, renderSelectionSplit, replaceWholeTokenOccurrences, resampleLinear, resetDefaultModeLedger, residualRawPII, resolveAsrModel, resolveConversation, resolveWhisperLanguage, reviewWithGracefulCards, runPython, runPythonWithBundle, signDeviceReceipt, signFileBuildReceipt, signFileEgressReceipt, specsOf, splitSelectionIntoEntities, textLikelyContainsNames, transcribe, transcription, typeFromSurrogateMarker, unloadEnhancedGazetteer, unloadEnhancedNerModel, unloadNonLatinNerModel, vacateDetectionLayer, verifyCountersigned, verifyCountersignedJson, verifyDeviceReceipt, verifyReceipt, verifyReceiptChain, verifyReceiptJson, waitForDetectionLayer, wheelUrl } from './index.mjs';
3
3
  export { D as DEFAULT_NER_REQUIREMENT, E as EnhancedNerRunner, p as EnhancedOrgRunner, N as NerCoverage, q as NerLayerName, r as NerLayerOutcome, u as NerOrgSpan, v as NerPersonSpan, w as NerRequirement, x as NerUnavailableErrorShape, P as PersonModelTier, y as PersonNonLatinOutcome, z as ScriptRange, U as UserCoverageAcceptance, A as acceptReducedCoverage, B as assertNerCoverage, F as buildNerCoverage, G as coverageStatusForNer, H as enhancedGazetteerActive, e as enhancedNerModelActive, I as enhancedNerRequirement, J as enhancedOrgModelActive, i as isAllowlistedOrg, K as isCoverageAcceptance, b as makeOrgSurrogate, n as nonLatinNerModelActive, L as nonLatinSentenceRanges, M as normaliseOrg, O as sentenceIsNonLatin, d as setEnhancedGazetteer, Q as setEnhancedNerRequirement, j as setEnhancedOrgModel, k as setNonLatinNerModel, R as splitSentenceRanges } from '../local-pii-supplement-BsWNf5uP.mjs';
4
- export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-Cx6xS8Tj.mjs';
4
+ export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-BhM2Aqa2.mjs';
5
5
  export { C as CoverageStatus } from '../coverage-OYGXtboB.mjs';
6
+ import '../request-body-slots-BMShK1YO.mjs';
6
7
 
7
8
  /**
8
9
  * The link between `@cloakapi/sdk/browser/light` and the full browser module.
@@ -1,8 +1,9 @@
1
1
  import { CreateBrowserEngineOptions, BrowserEngine } from './index.js';
2
- export { ASR_WORKER_SOURCE, ApplyReviewOptions, ApplyReviewResult, AsrError, AsrProgress, AsrTask, AudioLike, BrowserEngineError, BrowserTokenMap, BrowserTokeniseResult, CATEGORICAL_DARK, CATEGORICAL_LIGHT, CODE_INTERPRETER_CAPABILITY_LABEL, CODE_INTERPRETER_SYSTEM_PROMPT, CODE_INTERPRETER_TOOLS, ChartSeries, ChartSpec, ChartTheme, ChartType, CloakConversation, CodeInterpreterCall, CodeInterpreterCapability, CodeInterpreterConfig, CodeInterpreterKind, CodeInterpreterManifest, CodeInterpreterResult, CodeInterpreterToolDescriptor, CountersignedResult, DEFAULT_ASR_MIRROR_BASE, DEFAULT_ASR_MODEL, DEFAULT_ASR_RUNTIME_BASE, DEFAULT_ENHANCED_NER_MODEL_ID, DEFAULT_MIRROR_BASE, DEFAULT_WHEELS, DETECTION_LAYER_ORDER, DetectedEntity, DetectionLayerId, DetectionLayerLoadHandle, DetectionLayerPhase, DetectionLayerProgress, DetectionLayerReport, DetectionLayerSnapshot, DetectionLayerState, DeviceKeyPair, DeviceReceipt, DeviceReceiptError, DeviceReceiptInput, DocBlock, EngineThreadInfo, EngineThreadReason, EnhancedGazetteerAsset, EnhancedNerLoadResult, EnhancedNerModelInfo, EnhancedNerModelProgress, EnhancedNerProgress, ExtractFileForReviewResult, ExtractOptions, FailClosedRelay, FailClosedRelayConfig, FailClosedRelayResponse, FileBuildClaim, FileBuildFile, FileBuildReceiptInput, FileEgressClaim, FileEgressFile, FileEgressReceiptInput, FileExtractFailure, FileExtractKind, FileExtractResult, FileExtractSuccess, FileFormat, FileLike, FileSpec, GeneratedFile, HEADLINE_LANGUAGES, InputBindings, InputHandle, InterpreterError, InterpreterRow, InterpreterTokenMap, LAYER_ACCURACY, LAYER_ACCURACY_PENDING_NOTE, LAYER_ACCURACY_PLACEHOLDER, LayerAccuracyCopy, LayerWaitOutcome, LayerWaitResult, LoadEnhancedNerModelOptions, LoadEnhancedNerOptions, MICROPIP_WHEELS, MakeFilePayload, MakeFilesOptions, ManualRedaction, NETWORK_GUARD_SOURCE, NerTokenizerStyle, NerUnavailableError, NetworkGuardOptions, PORTAL_ENHANCED_NER_MODEL_ID, PRIVACY_TIERS, PYODIDE_PACKAGES, PYODIDE_VERSION, PYODIDE_WORKER_SOURCE, PostureMarkerFormat, PreparedRequestBodyResult, PrivacyPosture, PrivacyPostureOptions, RECEIPT_ATTESTATION_VERSION, RebuildableFormat, RebuiltFile, RelayError, RelayTier, RelayTierInput, ResidualScanSpan, ReviewDecision, ReviewSpan, ReviewSpanType, ReviewTokenMap, RowsOrHandle, RunCallOptions, RunProgress, RunPythonOptions, RunPythonPayload, SelectionPart, SelectionSplit, SheetSpec, SignDeviceReceiptOptions, SpliceReviewedBodyOptions, TRANSCRIPTION_CAPABILITY_LABEL, TRANSCRIPTION_TOOLS, TokeniseOptions, TokeniseRequestBodyResult, TokeniseReviewOptions, TokeniseReviewResult, TokenisedRequestBodyResult, TranscribeOptions, TranscriptSegment, TranscriptionCapability, TranscriptionConfig, TranscriptionManifest, TranscriptionResult, TranscriptionToolDescriptor, UnmeasurableReason, VALUE_CONSISTENCY_MAX_PER_VALUE, VALUE_CONSISTENCY_MAX_TOTAL, VALUE_CONSISTENCY_MIN_LENGTH, Verdict, VerdictCheck, WHISPER_LANGUAGES, WHISPER_MODELS, WHISPER_SAMPLE_RATE, WaitForDetectionLayerOptions, WhisperDtype, WhisperModel, accuracyStillPlaceholder, applyReviewDecisions, asrModelRoot, asrRequiredMirrorFiles, asrRuntimeUrl, asrRuntimeWasmBase, beginDetectionLayerLoad, bindConversationSurrogates, bindRows, bindValue, bridgeOrgConnectorSpans, buildAsrWorkerSource, buildFile, buildPyodideWorkerSource, buildReviewSpans, bundleZip, cancelDetectionLayer, canonicaliseReceipt, categorical, chartToSvg, classifyEntityType, classifyFileForExtraction, cloneConversation, codeInterpreter, createFailClosedRelay, declareDetectionLayerUnsupported, decodeToPcm16k, defaultLanguageFromLocale, describeCodeInterpreter, describeTranscription, detectTokenizerStyle, detectionLayerProgressSink, detectionLayerReport, detectionLayerSnapshot, detectionLayerState, detokeniseString, detokeniseValue, engineThreadInfo, enhancedNerModelInfo, expandValueOccurrences, extractFileForReview, extractTextFromFile, fetchJwks, fetchReceiptByJti, fileBuildOf, fileEgressOf, generateDeviceKeyPair, hasWholeTokenOccurrence, indexOfWholeToken, installNoNetworkGuard, isCountersignedResult, isEnhancedNerModelActive, isNerLoadAbortError, isNonLatinNerModelActive, isPlaceIndexReady, isRebuildableFormat, isSupportedLanguage, isWholeTokenOccurrence, loadEnhancedGazetteer, loadEnhancedNerModel, loadNonLatinNerModel, makeFiles, makeFilesWithBundle, newConversation, nonLatinNerModelInfo, offerWasmNameGazetteerIfEmpty, onDetectionLayerChange, onEngineThreadChange, parseFileSpec, parseRunPython, prewarmPlaceIndex, privacyPosture, pyodideIndexUrl, rebuildTextFile, receiptHashAsync, recommendedNerThreads, reconstructOrgSpans, renderSelectionSplit, replaceWholeTokenOccurrences, resampleLinear, residualRawPII, resolveAsrModel, resolveConversation, resolveWhisperLanguage, reviewWithGracefulCards, runPython, runPythonWithBundle, signDeviceReceipt, signFileBuildReceipt, signFileEgressReceipt, specsOf, splitSelectionIntoEntities, textLikelyContainsNames, transcribe, transcription, typeFromSurrogateMarker, unloadEnhancedGazetteer, unloadEnhancedNerModel, unloadNonLatinNerModel, vacateDetectionLayer, verifyCountersigned, verifyCountersignedJson, verifyDeviceReceipt, verifyReceipt, verifyReceiptChain, verifyReceiptJson, waitForDetectionLayer, wheelUrl } from './index.js';
2
+ export { ASR_WORKER_SOURCE, ApplyReviewOptions, ApplyReviewResult, AsrError, AsrProgress, AsrTask, AudioLike, BrowserEngineError, BrowserTokenMap, BrowserTokeniseResult, CATEGORICAL_DARK, CATEGORICAL_LIGHT, CODE_INTERPRETER_CAPABILITY_LABEL, CODE_INTERPRETER_SYSTEM_PROMPT, CODE_INTERPRETER_TOOLS, ChartSeries, ChartSpec, ChartTheme, ChartType, CloakConversation, CodeInterpreterCall, CodeInterpreterCapability, CodeInterpreterConfig, CodeInterpreterKind, CodeInterpreterManifest, CodeInterpreterResult, CodeInterpreterToolDescriptor, CountersignedResult, DEFAULT_ASR_MIRROR_BASE, DEFAULT_ASR_MODEL, DEFAULT_ASR_RUNTIME_BASE, DEFAULT_ENHANCED_NER_MODEL_ID, DEFAULT_MIRROR_BASE, DEFAULT_WHEELS, DETECTION_LAYER_ORDER, DetectedEntity, DetectionLayerId, DetectionLayerLoadHandle, DetectionLayerPhase, DetectionLayerProgress, DetectionLayerReport, DetectionLayerSnapshot, DetectionLayerState, DeviceKeyPair, DeviceReceipt, DeviceReceiptError, DeviceReceiptInput, DocBlock, EngineThreadInfo, EngineThreadReason, EnhancedGazetteerAsset, EnhancedNerLoadResult, EnhancedNerModelInfo, EnhancedNerModelProgress, EnhancedNerProgress, ExtractFileForReviewResult, ExtractOptions, FailClosedRelay, FailClosedRelayConfig, FailClosedRelayResponse, FileBuildClaim, FileBuildFile, FileBuildReceiptInput, FileEgressClaim, FileEgressFile, FileEgressReceiptInput, FileExtractFailure, FileExtractKind, FileExtractResult, FileExtractSuccess, FileFormat, FileLike, FileSpec, GeneratedFile, HEADLINE_LANGUAGES, InputBindings, InputHandle, InterpreterError, InterpreterRow, InterpreterTokenMap, LAYER_ACCURACY, LAYER_ACCURACY_PENDING_NOTE, LAYER_ACCURACY_PLACEHOLDER, LayerAccuracyCopy, LayerWaitOutcome, LayerWaitResult, LoadEnhancedNerModelOptions, LoadEnhancedNerOptions, MICROPIP_WHEELS, MakeFilePayload, MakeFilesOptions, ManualRedaction, ModeLedger, ModeReviewLike, ModeSpanLike, NETWORK_GUARD_SOURCE, NerTokenizerStyle, NerUnavailableError, NetworkGuardOptions, PORTAL_ENHANCED_NER_MODEL_ID, PRIVACY_TIERS, PYODIDE_PACKAGES, PYODIDE_VERSION, PYODIDE_WORKER_SOURCE, PostureMarkerFormat, PreparedRequestBodyResult, PrivacyMode, PrivacyPosture, PrivacyPostureOptions, RECEIPT_ATTESTATION_VERSION, RebuildableFormat, RebuiltFile, RelayError, RelayTier, RelayTierInput, ResidualScanSpan, ReviewDecision, ReviewSpan, ReviewSpanType, ReviewTokenMap, RowsOrHandle, RunCallOptions, RunProgress, RunPythonOptions, RunPythonPayload, SelectionPart, SelectionSplit, SheetSpec, SignDeviceReceiptOptions, SpliceReviewedBodyOptions, TRANSCRIPTION_CAPABILITY_LABEL, TRANSCRIPTION_TOOLS, TokeniseOptions, TokeniseRequestBodyResult, TokeniseReviewOptions, TokeniseReviewResult, TokenisedRequestBodyResult, TranscribeOptions, TranscriptSegment, TranscriptionCapability, TranscriptionConfig, TranscriptionManifest, TranscriptionResult, TranscriptionToolDescriptor, UnmeasurableReason, VALUE_CONSISTENCY_MAX_PER_VALUE, VALUE_CONSISTENCY_MAX_TOTAL, VALUE_CONSISTENCY_MIN_LENGTH, Verdict, VerdictCheck, WHISPER_LANGUAGES, WHISPER_MODELS, WHISPER_SAMPLE_RATE, WaitForDetectionLayerOptions, WhisperDtype, WhisperModel, accuracyStillPlaceholder, applyPrivacyMode, applyPrivacyModeToReview, applyReviewDecisions, asrModelRoot, asrRequiredMirrorFiles, asrRuntimeUrl, asrRuntimeWasmBase, beginDetectionLayerLoad, bindConversationSurrogates, bindRows, bindValue, bridgeOrgConnectorSpans, buildAsrWorkerSource, buildFile, buildPyodideWorkerSource, buildReviewSpans, bundleZip, cancelDetectionLayer, canonicaliseReceipt, categorical, chartToSvg, classifyEntityType, classifyFileForExtraction, cloneConversation, codeInterpreter, copyPrivacyLedger, createFailClosedRelay, createModeLedger, declareDetectionLayerUnsupported, decodeToPcm16k, defaultLanguageFromLocale, describeCodeInterpreter, describeTranscription, detectTokenizerStyle, detectionLayerProgressSink, detectionLayerReport, detectionLayerSnapshot, detectionLayerState, detokeniseString, detokeniseValue, engineThreadInfo, enhancedNerModelInfo, expandValueOccurrences, extractFileForReview, extractTextFromFile, fetchJwks, fetchReceiptByJti, fileBuildOf, fileEgressOf, generateDeviceKeyPair, hasWholeTokenOccurrence, indexOfWholeToken, installNoNetworkGuard, isCountersignedResult, isEnhancedNerModelActive, isNerLoadAbortError, isNonLatinNerModelActive, isPlaceIndexReady, isRebuildableFormat, isSealedSecretMarker, isSupportedLanguage, isWholeTokenOccurrence, loadEnhancedGazetteer, loadEnhancedNerModel, loadNonLatinNerModel, makeFiles, makeFilesWithBundle, newConversation, nonLatinNerModelInfo, offerWasmNameGazetteerIfEmpty, onDetectionLayerChange, onEngineThreadChange, parseFileSpec, parseRunPython, prewarmPlaceIndex, privacyLedgerFor, privacyPosture, pyodideIndexUrl, rebuildTextFile, receiptHashAsync, recommendedNerThreads, reconstructOrgSpans, renderSelectionSplit, replaceWholeTokenOccurrences, resampleLinear, resetDefaultModeLedger, residualRawPII, resolveAsrModel, resolveConversation, resolveWhisperLanguage, reviewWithGracefulCards, runPython, runPythonWithBundle, signDeviceReceipt, signFileBuildReceipt, signFileEgressReceipt, specsOf, splitSelectionIntoEntities, textLikelyContainsNames, transcribe, transcription, typeFromSurrogateMarker, unloadEnhancedGazetteer, unloadEnhancedNerModel, unloadNonLatinNerModel, vacateDetectionLayer, verifyCountersigned, verifyCountersignedJson, verifyDeviceReceipt, verifyReceipt, verifyReceiptChain, verifyReceiptJson, waitForDetectionLayer, wheelUrl } from './index.js';
3
3
  export { D as DEFAULT_NER_REQUIREMENT, E as EnhancedNerRunner, p as EnhancedOrgRunner, N as NerCoverage, q as NerLayerName, r as NerLayerOutcome, u as NerOrgSpan, v as NerPersonSpan, w as NerRequirement, x as NerUnavailableErrorShape, P as PersonModelTier, y as PersonNonLatinOutcome, z as ScriptRange, U as UserCoverageAcceptance, A as acceptReducedCoverage, B as assertNerCoverage, F as buildNerCoverage, G as coverageStatusForNer, H as enhancedGazetteerActive, e as enhancedNerModelActive, I as enhancedNerRequirement, J as enhancedOrgModelActive, i as isAllowlistedOrg, K as isCoverageAcceptance, b as makeOrgSurrogate, n as nonLatinNerModelActive, L as nonLatinSentenceRanges, M as normaliseOrg, O as sentenceIsNonLatin, d as setEnhancedGazetteer, Q as setEnhancedNerRequirement, j as setEnhancedOrgModel, k as setNonLatinNerModel, R as splitSentenceRanges } from '../local-pii-supplement-Db8n7ZuO.js';
4
- export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-Cx6xS8Tj.js';
4
+ export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-BhM2Aqa2.js';
5
5
  export { C as CoverageStatus } from '../coverage-OYGXtboB.js';
6
+ import '../request-body-slots-BMShK1YO.js';
6
7
 
7
8
  /**
8
9
  * The link between `@cloakapi/sdk/browser/light` and the full browser module.
@@ -4,7 +4,7 @@
4
4
  // name is the full module's own export and its state exists once.
5
5
  Object.defineProperty(exports, '__esModule', { value: true });
6
6
  const full = require('./index.js');
7
- const names = ["CLK_DISCLOSURE_TEXT","CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED","CLOAK_ANGLE_DISCLOSURE_TEXT","CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED","CLOAK_ANGLE_HEADER","CLOAK_ANGLE_HEADER_MESSAGE_SCOPED","CONTINUITY_SENTENCE","DEFAULT_NER_REQUIREMENT","DEFAULT_SURROGATE_MODE","LEGACY_SURROGATE_MODE_ALIASES","MODE_COPY","MODE_SHARED_NOTE","PRIVACY_TIERS","SDK_VERSION","SURROGATE_MODES","SurrogateModeError","abortEnhancedNerLoad","acceptReducedCoverage","activePersonModelTier","assertNerCoverage","buildNerCoverage","canonicaliseReceipt","coerceSurrogateMode","coverageStatusForNer","createBrowserEngine","detectMarkerFormat","disclosureText","enhancedNerRequirement","fetchJwks","fetchReceiptByJti","hasWholeTokenOccurrence","indexOfWholeToken","isCountersignedResult","isCoverageAcceptance","isSurrogateMode","isWholeTokenOccurrence","nonLatinSentenceRanges","privacyPosture","receiptHashAsync","replaceWholeTokenOccurrences","resolveSurrogateMode","sentenceIsNonLatin","setEnhancedNerRequirement","splitSentenceRanges","verifyCountersigned","verifyCountersignedJson","verifyDeviceReceipt","verifyReceipt","verifyReceiptChain","verifyReceiptJson","withDisclosure"];
7
+ const names = ["CLK_DISCLOSURE_TEXT","CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED","CLOAK_ANGLE_DISCLOSURE_TEXT","CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED","CLOAK_ANGLE_HEADER","CLOAK_ANGLE_HEADER_MESSAGE_SCOPED","CONTINUITY_SENTENCE","DEFAULT_NER_REQUIREMENT","DEFAULT_SURROGATE_MODE","LEGACY_SURROGATE_MODE_ALIASES","MODE_COPY","MODE_SHARED_NOTE","PRIVACY_TIERS","SDK_VERSION","SURROGATE_MODES","SurrogateModeError","abortEnhancedNerLoad","acceptReducedCoverage","activePersonModelTier","applyPrivacyMode","applyPrivacyModeToReview","assertNerCoverage","buildNerCoverage","canonicaliseReceipt","coerceSurrogateMode","copyPrivacyLedger","coverageStatusForNer","createBrowserEngine","createModeLedger","detectMarkerFormat","disclosureText","enhancedNerRequirement","fetchJwks","fetchReceiptByJti","hasWholeTokenOccurrence","indexOfWholeToken","isCountersignedResult","isCoverageAcceptance","isSealedSecretMarker","isSurrogateMode","isWholeTokenOccurrence","nonLatinSentenceRanges","privacyLedgerFor","privacyPosture","receiptHashAsync","replaceWholeTokenOccurrences","resetDefaultModeLedger","resolveSurrogateMode","sentenceIsNonLatin","setEnhancedNerRequirement","splitSentenceRanges","verifyCountersigned","verifyCountersignedJson","verifyDeviceReceipt","verifyReceipt","verifyReceiptChain","verifyReceiptJson","withDisclosure"];
8
8
  for (const name of names) {
9
9
  Object.defineProperty(exports, name, { enumerable: true, get: () => full[name] });
10
10
  }
@@ -1,20 +1,27 @@
1
1
  import {
2
2
  PRIVACY_TIERS,
3
+ applyPrivacyMode,
4
+ applyPrivacyModeToReview,
3
5
  boundFullBrowserModule,
4
6
  canonicalise,
7
+ copyPrivacyLedger,
8
+ createModeLedger,
5
9
  fetchJwks,
6
10
  fetchReceiptByJti,
7
11
  holdAbortUntilBound,
8
12
  isCountersignedResult,
13
+ isSealedSecretMarker,
14
+ privacyLedgerFor,
9
15
  privacyPosture,
10
16
  receiptHash,
17
+ resetDefaultModeLedger,
11
18
  verifyChain,
12
19
  verifyCountersigned,
13
20
  verifyCountersignedJson,
14
21
  verifyDeviceReceipt,
15
22
  verifyReceipt,
16
23
  verifyReceiptJson
17
- } from "../chunk-EY35G37A.mjs";
24
+ } from "../chunk-746IWCJ4.mjs";
18
25
  import {
19
26
  CLK_DISCLOSURE_TEXT,
20
27
  CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED,
@@ -36,13 +43,14 @@ import {
36
43
  isSurrogateMode,
37
44
  resolveSurrogateMode,
38
45
  withDisclosure
39
- } from "../chunk-JV52VGVZ.mjs";
46
+ } from "../chunk-TRWGRB2P.mjs";
40
47
  import {
41
48
  hasWholeTokenOccurrence,
42
49
  indexOfWholeToken,
43
50
  isWholeTokenOccurrence,
44
51
  replaceWholeTokenOccurrences
45
52
  } from "../chunk-QIORVVUD.mjs";
53
+ import "../chunk-TWAQCP3Z.mjs";
46
54
  import {
47
55
  nonLatinSentenceRanges,
48
56
  sentenceIsNonLatin,
@@ -94,12 +102,16 @@ export {
94
102
  abortEnhancedNerLoad,
95
103
  acceptReducedCoverage,
96
104
  activePersonModelTier,
105
+ applyPrivacyMode,
106
+ applyPrivacyModeToReview,
97
107
  assertNerCoverage,
98
108
  buildNerCoverage,
99
109
  canonicalise as canonicaliseReceipt,
100
110
  coerceSurrogateMode,
111
+ copyPrivacyLedger,
101
112
  coverageStatusForNer,
102
113
  createBrowserEngine,
114
+ createModeLedger,
103
115
  detectMarkerFormat,
104
116
  disclosureText,
105
117
  enhancedNerRequirement,
@@ -109,12 +121,15 @@ export {
109
121
  indexOfWholeToken,
110
122
  isCountersignedResult,
111
123
  isCoverageAcceptance,
124
+ isSealedSecretMarker,
112
125
  isSurrogateMode,
113
126
  isWholeTokenOccurrence,
114
127
  nonLatinSentenceRanges,
128
+ privacyLedgerFor,
115
129
  privacyPosture,
116
130
  receiptHash as receiptHashAsync,
117
131
  replaceWholeTokenOccurrences,
132
+ resetDefaultModeLedger,
118
133
  resolveSurrogateMode,
119
134
  sentenceIsNonLatin,
120
135
  setEnhancedNerRequirement,
@@ -12,13 +12,13 @@ import {
12
12
  spanIsAllCommonWords,
13
13
  titleCaseAllCapsRuns,
14
14
  titleCaseLowercaseRuns
15
- } from "../../chunk-PEDVEDAW.mjs";
15
+ } from "../../chunk-66SEKCCN.mjs";
16
+ import "../../chunk-KBDFJIEW.mjs";
16
17
  import "../../chunk-44DSUIC2.mjs";
17
18
  import {
18
19
  sentenceIsNonLatin
19
20
  } from "../../chunk-SUUFGE34.mjs";
20
21
  import "../../chunk-MOHR4UIG.mjs";
21
- import "../../chunk-KBDFJIEW.mjs";
22
22
  import "../../chunk-I6KKUHEY.mjs";
23
23
 
24
24
  // src/browser/names/locate-person-word.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  buildNerPipeline,
3
3
  localNerTokenOps
4
- } from "../chunk-6TMC2A6M.mjs";
4
+ } from "../chunk-3MXGO6NA.mjs";
5
5
  import "../chunk-QIORVVUD.mjs";
6
- import "../chunk-PEDVEDAW.mjs";
6
+ import "../chunk-66SEKCCN.mjs";
7
+ import "../chunk-KBDFJIEW.mjs";
7
8
  import "../chunk-44DSUIC2.mjs";
8
9
  import "../chunk-SUUFGE34.mjs";
9
10
  import "../chunk-MOHR4UIG.mjs";
10
- import "../chunk-KBDFJIEW.mjs";
11
11
  import "../chunk-I6KKUHEY.mjs";
12
12
 
13
13
  // src/browser/ner-pipeline-worker.ts
@@ -15,7 +15,7 @@ import {
15
15
  setEnhancedOrgModel,
16
16
  setNonLatinNerModel,
17
17
  trimToProperNounEdges
18
- } from "./chunk-PEDVEDAW.mjs";
18
+ } from "./chunk-66SEKCCN.mjs";
19
19
 
20
20
  // src/browser/detection-layers.ts
21
21
  var DETECTION_LAYER_ORDER = ["L1", "L2", "L3"];
@@ -127,19 +127,23 @@ function beginDetectionLayerLoad(id) {
127
127
  progress: NOT_STARTED,
128
128
  changedAt: phase === prev.phase ? prev.changedAt : Date.now()
129
129
  });
130
- const live = () => GENERATION[id] === gen && get(id).phase !== "cancelled";
130
+ const active = () => {
131
+ if (GENERATION[id] !== gen) return false;
132
+ const { phase: phase2 } = get(id);
133
+ return phase2 === "downloading" || phase2 === "initialising";
134
+ };
131
135
  return {
132
136
  id,
133
- active: () => live() && (get(id).phase === "downloading" || get(id).phase === "initialising"),
137
+ active,
134
138
  progress(p) {
135
- if (!live()) return;
139
+ if (!active()) return;
136
140
  const cur = get(id);
137
141
  const measurable = typeof p.loaded === "number" && typeof p.total === "number" && p.total > 0;
138
142
  const next = measurable ? { measurable: true, loaded: p.loaded, total: p.total } : { measurable: false, unmeasurable: p.unmeasurable ?? "no-content-length" };
139
143
  put({ ...cur, progress: next });
140
144
  },
141
145
  initialising() {
142
- if (!live()) return;
146
+ if (!active()) return;
143
147
  const cur = get(id);
144
148
  if (id === "L1") return;
145
149
  put({
@@ -150,7 +154,7 @@ function beginDetectionLayerLoad(id) {
150
154
  });
151
155
  },
152
156
  ready() {
153
- if (!live()) return;
157
+ if (!active()) return;
154
158
  const cur = get(id);
155
159
  const backed = engineBacksLayer(id);
156
160
  if (backed === false) {
@@ -161,11 +165,11 @@ function beginDetectionLayerLoad(id) {
161
165
  id,
162
166
  phase: "ready",
163
167
  progress: cur.progress,
164
- changedAt: cur.phase === "ready" ? cur.changedAt : Date.now()
168
+ changedAt: Date.now()
165
169
  });
166
170
  },
167
171
  fail(detail) {
168
- if (!live()) return;
172
+ if (!active()) return;
169
173
  const cur = get(id);
170
174
  put({ id, phase: "error", progress: cur.progress, detail, changedAt: Date.now() });
171
175
  }