@incodetech/core 0.0.0-dev-20260729-9461bce1 → 0.0.0-dev-20260729-e2dda0b0

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 (145) hide show
  1. package/dist/BrowserDiagnosticsCryptoProvider-BZqV7sJR.esm.js +96 -0
  2. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
  3. package/dist/{WasmUtilProvider-BrWOTaVG.esm.js → WasmUtilProvider-D13sxEmA.esm.js} +2 -406
  4. package/dist/{addressSearch-oyJf4OZO.esm.js → addressSearch-D_0t2Wdn.esm.js} +2 -2
  5. package/dist/ae-signature.esm.js +1 -1
  6. package/dist/antifraud.esm.js +2 -2
  7. package/dist/{antifraudManager-CQ0zC0jZ.esm.js → antifraudManager-COYh4O_y.esm.js} +2 -2
  8. package/dist/{antifraudStateMachine-MfVOsgZf.esm.js → antifraudStateMachine-NuzlVVte.esm.js} +2 -2
  9. package/dist/api-Bx3gKW_y.esm.js +129 -0
  10. package/dist/{apiError-B-PkYxln.esm.js → apiError-GA6MbJpI.esm.js} +12 -1
  11. package/dist/authentication.esm.js +2 -2
  12. package/dist/{authenticationManager-G4OrneRc.esm.js → authenticationManager-B7v0Jy-x.esm.js} +5 -5
  13. package/dist/{authenticationStateMachine-CRaoYKLp.esm.js → authenticationStateMachine-DAh9ziFC.esm.js} +5 -5
  14. package/dist/camera.esm.js +1 -1
  15. package/dist/certificate-issuance.esm.js +2 -2
  16. package/dist/{certificateIssuanceStateMachine-BrbhvQ3k.esm.js → certificateIssuanceStateMachine-N__sTAgu.esm.js} +2 -2
  17. package/dist/consent.d.ts +1 -1
  18. package/dist/consent.esm.js +2 -2
  19. package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-BhYFeKiG.d.ts} +9 -9
  20. package/dist/{consentManager-fOURtjzF.esm.js → consentManager-CWEAhAJ5.esm.js} +2 -2
  21. package/dist/{consentStateMachine-BCVxc6mI.esm.js → consentStateMachine-DWL-X0Jb.esm.js} +2 -2
  22. package/dist/cross-document-data-match.esm.js +1 -1
  23. package/dist/{crossDocumentDataMatchManager-DaJvZ8m1.esm.js → crossDocumentDataMatchManager-Bk4W2TDJ.esm.js} +3 -3
  24. package/dist/curp-validation.esm.js +2 -2
  25. package/dist/{curpValidationManager-CKRo8Mch.esm.js → curpValidationManager-B6gYKygj.esm.js} +2 -2
  26. package/dist/{curpValidationStateMachine-DMdmcv5-.esm.js → curpValidationStateMachine-42RbYcam.esm.js} +2 -2
  27. package/dist/custom-fields.esm.js +3 -3
  28. package/dist/custom-watchlist.esm.js +2 -2
  29. package/dist/{customWatchlistStateMachine-DB2I9_OR.esm.js → customWatchlistStateMachine-BbDtH5kk.esm.js} +2 -2
  30. package/dist/{deepsightLoader-AdX0vjwb.esm.js → deepsightLoader-CHG26pOB.esm.js} +14 -4
  31. package/dist/document-capture.d.ts +1 -1
  32. package/dist/document-capture.esm.js +2 -2
  33. package/dist/document-upload.d.ts +4 -4
  34. package/dist/document-upload.esm.js +3 -3
  35. package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-BK_4RbHt.d.ts} +69 -69
  36. package/dist/{documentCaptureManager-iTx0jqU4.esm.js → documentCaptureManager-FvcNYpkS.esm.js} +2 -2
  37. package/dist/{documentCaptureStateMachine-CrdQsDn2.esm.js → documentCaptureStateMachine-BlzN0-mU.esm.js} +4 -4
  38. package/dist/dynamic-forms.esm.js +2 -2
  39. package/dist/{dynamicFormsManager-BNIbGJmh.esm.js → dynamicFormsManager-CfJixpOW.esm.js} +2 -2
  40. package/dist/{dynamicFormsStateMachine-DKUOlqmi.esm.js → dynamicFormsStateMachine-DrPO1i45.esm.js} +3 -3
  41. package/dist/ekyb.esm.js +3 -3
  42. package/dist/{ekybManager-BUWJUews.esm.js → ekybManager-DVCqaSzz.esm.js} +2 -2
  43. package/dist/{ekybStateMachine-CYLZDKC7.esm.js → ekybStateMachine-C3y-Qx1a.esm.js} +4 -4
  44. package/dist/ekyc.esm.js +2 -2
  45. package/dist/{ekycManager-C6Wc4wRj.esm.js → ekycManager-dimNksoE.esm.js} +2 -2
  46. package/dist/{ekycStateMachine-fHXM6pc0.esm.js → ekycStateMachine-Yl3sQmhm.esm.js} +3 -3
  47. package/dist/electronic-signature.esm.js +1 -1
  48. package/dist/{electronicSignatureManager-hJ9YaAvD.esm.js → electronicSignatureManager-D0X7P-de.esm.js} +4 -4
  49. package/dist/email.esm.js +2 -2
  50. package/dist/{emailManager-B_Q6MfUq.esm.js → emailManager-BqJMritP.esm.js} +2 -2
  51. package/dist/{emailStateMachine-DHfDd8LI.esm.js → emailStateMachine-CLtrh2Ot.esm.js} +2 -2
  52. package/dist/{endpoints-BwKx4Gne.esm.js → endpoints-DOfmJylF.esm.js} +7 -1
  53. package/dist/{events-Dy8PyVO5.esm.js → events-CMFCCu1H.esm.js} +2 -9
  54. package/dist/events.esm.js +1 -1
  55. package/dist/extensibility.d.ts +5 -5
  56. package/dist/extensibility.esm.js +26 -32
  57. package/dist/face-match.esm.js +2 -2
  58. package/dist/{faceCaptureManagerFactory-Bkc1HLRL.esm.js → faceCaptureManagerFactory-D2pR3ZnX.esm.js} +3 -3
  59. package/dist/{faceCaptureSetup-BQEQriDi.esm.js → faceCaptureSetup-DbhDPMjb.esm.js} +5 -5
  60. package/dist/{faceMatchManager-Bh5wFMyh.esm.js → faceMatchManager-XxTEAj9C.esm.js} +2 -2
  61. package/dist/{faceMatchStateMachine-QIf8gak4.esm.js → faceMatchStateMachine-ubds4WlI.esm.js} +2 -2
  62. package/dist/field-comparison.esm.js +1 -1
  63. package/dist/{fieldComparisonManager-B_3cIH9t.esm.js → fieldComparisonManager-BzaX4TvX.esm.js} +3 -3
  64. package/dist/fiscal-qr.esm.js +3 -3
  65. package/dist/flow.esm.js +4 -4
  66. package/dist/{flowCompletionService-6yWz7xwZ.esm.js → flowCompletionService-BdZR6HyE.esm.js} +3 -3
  67. package/dist/{flowServices-Cf63iD-o.esm.js → flowServices-CPti9am-.esm.js} +5 -5
  68. package/dist/geolocation.esm.js +2 -2
  69. package/dist/{geolocationManager-gKopAolS.esm.js → geolocationManager-DW27-LTL.esm.js} +2 -2
  70. package/dist/{geolocationStateMachine-Cac3eKge.esm.js → geolocationStateMachine-Cz3Q6az0.esm.js} +3 -3
  71. package/dist/government-validation.esm.js +2 -2
  72. package/dist/{governmentValidationStateMachine-Be1ruaNj.esm.js → governmentValidationStateMachine-CtG3bIdM.esm.js} +2 -2
  73. package/dist/home.esm.js +1 -1
  74. package/dist/http.esm.js +1 -1
  75. package/dist/id-ocr.d.ts +1 -1
  76. package/dist/id-ocr.esm.js +2 -2
  77. package/dist/id-verification.esm.js +2 -2
  78. package/dist/id.esm.js +5 -5
  79. package/dist/{idCaptureDefaults-DCrjeNl5.esm.js → idCaptureDefaults-BDS43fFL.esm.js} +2 -2
  80. package/dist/{idCaptureManager-Dg8pxseH.esm.js → idCaptureManager-CPzgzVu8.esm.js} +4 -4
  81. package/dist/{idCaptureStateMachine-B2e_wX0x.esm.js → idCaptureStateMachine-CAKztWBq.esm.js} +28 -17
  82. package/dist/{idOcrManager-dLuxey6y.d.ts → idOcrManager-DXc_xRN7.d.ts} +1 -1
  83. package/dist/{idOcrManager-8WPK22Kq.esm.js → idOcrManager-Drs6frVO.esm.js} +2 -2
  84. package/dist/{idOcrStateMachine-Cfq5gJ0f.esm.js → idOcrStateMachine-s08FLvEh.esm.js} +3 -3
  85. package/dist/{idVerificationManager-DBVs8TRS.esm.js → idVerificationManager-Df97Bf0n.esm.js} +2 -2
  86. package/dist/{idVerificationStateMachine-xtTSJDrB.esm.js → idVerificationStateMachine-tAF7pvC8.esm.js} +2 -2
  87. package/dist/identity-reuse.d.ts +1 -1
  88. package/dist/identity-reuse.esm.js +2 -2
  89. package/dist/{identityReuseManager-B8jNZNHu.esm.js → identityReuseManager-0ZHGWr9T.esm.js} +2 -2
  90. package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-v2TH5g7e.d.ts} +1 -1
  91. package/dist/{identityReuseStateMachine-DdwSrghH.esm.js → identityReuseStateMachine-DG8kbKuy.esm.js} +2 -2
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.esm.js +1 -1
  94. package/dist/{invokeOnCaptureCallback-B-QfsCQY.esm.js → invokeOnCaptureCallback-Cgl54qED.esm.js} +1 -1
  95. package/dist/mandatory-consent.d.ts +1 -1
  96. package/dist/mandatory-consent.esm.js +2 -2
  97. package/dist/{mandatoryConsentManager-Dcgmj1Cd.d.ts → mandatoryConsentManager-CzsVFG33.d.ts} +5 -5
  98. package/dist/{mandatoryConsentManager-BAKnA7U_.esm.js → mandatoryConsentManager-DaKK7S4q.esm.js} +2 -2
  99. package/dist/{mandatoryConsentStateMachine-3a1psaoK.esm.js → mandatoryConsentStateMachine-CjKpOQXU.esm.js} +2 -2
  100. package/dist/{onDeviceFaceResults-DbSP6iTw.esm.js → onDeviceFaceResults-CVhk1BWp.esm.js} +13 -6
  101. package/dist/{permissionGuards-5Cu6a8iN.esm.js → permissionGuards-UMiLlPfq.esm.js} +1 -1
  102. package/dist/{permissionServices-CkHL1BjH.esm.js → permissionServices-C4qKxOl4.esm.js} +1 -1
  103. package/dist/personhood.esm.js +9 -22
  104. package/dist/phone.esm.js +2 -2
  105. package/dist/{phoneManager-dizEvG20.esm.js → phoneManager-WImoAp4i.esm.js} +2 -2
  106. package/dist/{phoneStateMachine-DxmYoLg8.esm.js → phoneStateMachine-FJ-_x1G4.esm.js} +2 -2
  107. package/dist/qe-signature.esm.js +1 -1
  108. package/dist/{recordingService-C8jFtEKZ.esm.js → recordingService-BGPq5vGr.esm.js} +3 -3
  109. package/dist/redirect-to-mobile.esm.js +2 -2
  110. package/dist/{redirectToMobileManager-BCInKNqp.esm.js → redirectToMobileManager-CxEu6KnV.esm.js} +2 -2
  111. package/dist/{redirectToMobileStateMachine-TSHtrr5D.esm.js → redirectToMobileStateMachine-jI5XPtZJ.esm.js} +2 -2
  112. package/dist/{runChildModule-Crz1nHwJ.esm.js → runChildModule-fagPe5Ct.esm.js} +6 -1
  113. package/dist/selfie.esm.js +9 -9
  114. package/dist/{selfieErrorUtils-1aFaxF3Q.esm.js → selfieErrorUtils-DCRRRj38.esm.js} +3 -3
  115. package/dist/{selfieManager-KbDEkivf.esm.js → selfieManager-DTiBsQNn.esm.js} +5 -5
  116. package/dist/{selfieStateMachine-BiuQiED3.esm.js → selfieStateMachine-CxabK5_3.esm.js} +3 -3
  117. package/dist/session-Ccob4IUP.esm.js +161 -0
  118. package/dist/session.d.ts +8 -1
  119. package/dist/session.esm.js +4 -152
  120. package/dist/{sessionInitializer-DyJ4nLFJ.esm.js → sessionInitializer-DEd0CQ74.esm.js} +27 -32
  121. package/dist/{setup-MlGXfrG8.esm.js → setup-BR4G3NHV.esm.js} +78 -11
  122. package/dist/{setup-B1WTXTQV.d.ts → setup-Dj8n_YLP.d.ts} +22 -0
  123. package/dist/signature.esm.js +2 -2
  124. package/dist/{signatureStateMachine-CCcFhvuv.esm.js → signatureStateMachine-Dx92l8pR.esm.js} +2 -2
  125. package/dist/{stats-CKtpeAhi.esm.js → stats-6sK3f5pc.esm.js} +2 -2
  126. package/dist/stats.esm.js +1 -1
  127. package/dist/trueSight-4L5GCqKy.esm.js +1 -0
  128. package/dist/trueSightService-DKC-gmQC.esm.js +1891 -0
  129. package/dist/trust-graph.esm.js +1 -1
  130. package/dist/video-selfie.esm.js +9 -9
  131. package/dist/wasm.d.ts +1 -1
  132. package/dist/wasm.esm.js +3 -3
  133. package/dist/{wasmDefaults-B4DUtYET.esm.js → wasmDefaults-DJiEvV7f.esm.js} +1 -1
  134. package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
  135. package/dist/watchlist-for-business.esm.js +2 -2
  136. package/dist/watchlist.esm.js +2 -2
  137. package/dist/{watchlistForBusinessStateMachine-DZZNfYsA.esm.js → watchlistForBusinessStateMachine-Eo-WEYha.esm.js} +2 -2
  138. package/dist/{watchlistManager-CMFZ0aqP.esm.js → watchlistManager-DnVfNc1v.esm.js} +2 -2
  139. package/dist/{watchlistStateMachine-CmhlwIhk.esm.js → watchlistStateMachine-DZSOauwp.esm.js} +2 -2
  140. package/dist/workflow.d.ts +12 -4
  141. package/dist/workflow.esm.js +55 -40
  142. package/package.json +3 -3
  143. package/dist/api-BDTZNnca.esm.js +0 -71
  144. package/dist/clientLifecycle-BX83zwtT.esm.js +0 -528
  145. package/dist/session-CrAUqlgX.esm.js +0 -1
@@ -1,43 +1,45 @@
1
1
  import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
2
- import { t as api } from "./api-BDTZNnca.esm.js";
3
- import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
4
- import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DyJ4nLFJ.esm.js";
6
- import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
7
- import { g as toEkybConfig } from "./flowServices-Cf63iD-o.esm.js";
2
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-DKC-gmQC.esm.js";
4
+ import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DEd0CQ74.esm.js";
6
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
7
+ import "./trueSight-4L5GCqKy.esm.js";
8
+ import { r as toIncodeApiError } from "./apiError-GA6MbJpI.esm.js";
9
+ import { g as toEkybConfig } from "./flowServices-CPti9am-.esm.js";
8
10
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
11
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
12
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
- import { n as electronicSignatureMachine } from "./electronicSignatureManager-hJ9YaAvD.esm.js";
13
+ import { n as electronicSignatureMachine } from "./electronicSignatureManager-D0X7P-de.esm.js";
12
14
  import "./ae-signature.esm.js";
13
- import { t as antifraudMachine } from "./antifraudStateMachine-MfVOsgZf.esm.js";
14
- import { t as authenticationMachine } from "./authenticationStateMachine-CRaoYKLp.esm.js";
15
- import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BrbhvQ3k.esm.js";
16
- import { t as consentMachine } from "./consentStateMachine-BCVxc6mI.esm.js";
17
- import { t as curpValidationMachine } from "./curpValidationStateMachine-DMdmcv5-.esm.js";
18
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DB2I9_OR.esm.js";
19
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CrdQsDn2.esm.js";
20
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DKUOlqmi.esm.js";
21
- import { t as ekybMachine } from "./ekybStateMachine-CYLZDKC7.esm.js";
22
- import { t as ekycMachine } from "./ekycStateMachine-fHXM6pc0.esm.js";
23
- import { t as emailMachine } from "./emailStateMachine-DHfDd8LI.esm.js";
24
- import { t as selfieMachine } from "./selfieStateMachine-BiuQiED3.esm.js";
25
- import { t as idCaptureMachine } from "./idCaptureStateMachine-B2e_wX0x.esm.js";
26
- import { t as phoneMachine } from "./phoneStateMachine-DxmYoLg8.esm.js";
27
- import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
28
- import { n as identityReuseMachine } from "./identityReuseStateMachine-DdwSrghH.esm.js";
29
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-3a1psaoK.esm.js";
30
- import { t as idOcrStateMachine } from "./idOcrStateMachine-Cfq5gJ0f.esm.js";
31
- import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-TSHtrr5D.esm.js";
32
- import { t as geolocationMachine } from "./geolocationStateMachine-Cac3eKge.esm.js";
33
- import { t as idVerificationMachine } from "./idVerificationStateMachine-xtTSJDrB.esm.js";
34
- import { t as faceMatchMachine } from "./faceMatchStateMachine-QIf8gak4.esm.js";
35
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-6yWz7xwZ.esm.js";
36
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
37
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-Be1ruaNj.esm.js";
15
+ import { t as antifraudMachine } from "./antifraudStateMachine-NuzlVVte.esm.js";
16
+ import { t as authenticationMachine } from "./authenticationStateMachine-DAh9ziFC.esm.js";
17
+ import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-N__sTAgu.esm.js";
18
+ import { t as consentMachine } from "./consentStateMachine-DWL-X0Jb.esm.js";
19
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-42RbYcam.esm.js";
20
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BbDtH5kk.esm.js";
21
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BlzN0-mU.esm.js";
22
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DrPO1i45.esm.js";
23
+ import { t as ekybMachine } from "./ekybStateMachine-C3y-Qx1a.esm.js";
24
+ import { t as ekycMachine } from "./ekycStateMachine-Yl3sQmhm.esm.js";
25
+ import { t as emailMachine } from "./emailStateMachine-CLtrh2Ot.esm.js";
26
+ import { t as selfieMachine } from "./selfieStateMachine-CxabK5_3.esm.js";
27
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-CAKztWBq.esm.js";
28
+ import { t as phoneMachine } from "./phoneStateMachine-FJ-_x1G4.esm.js";
29
+ import { t as watchlistMachine } from "./watchlistStateMachine-DZSOauwp.esm.js";
30
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-DG8kbKuy.esm.js";
31
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CjKpOQXU.esm.js";
32
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-s08FLvEh.esm.js";
33
+ import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-jI5XPtZJ.esm.js";
34
+ import { t as geolocationMachine } from "./geolocationStateMachine-Cz3Q6az0.esm.js";
35
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-tAF7pvC8.esm.js";
36
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-ubds4WlI.esm.js";
37
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BdZR6HyE.esm.js";
38
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-fagPe5Ct.esm.js";
39
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CtG3bIdM.esm.js";
38
40
  import "./qe-signature.esm.js";
39
- import { t as signatureMachine } from "./signatureStateMachine-CCcFhvuv.esm.js";
40
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DZZNfYsA.esm.js";
41
+ import { t as signatureMachine } from "./signatureStateMachine-Dx92l8pR.esm.js";
42
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Eo-WEYha.esm.js";
41
43
  //#region src/internal/orchestration/defaultModules.ts
42
44
  /**
43
45
  * Shared default module registry — single source of truth for module key → machine mappings.
@@ -348,14 +350,24 @@ const workflowMachine = setup({
348
350
  setModuleError: assign(({ event }) => ({ error: String(event.error) })),
349
351
  setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
350
352
  trackAdvanceableModuleError: ({ context, event }) => {
353
+ const moduleErrorCode = event.moduleErrorCode;
351
354
  addEvent({
352
355
  code: "errorTriggered",
353
356
  module: context.currentNode?.moduleKey,
354
357
  payload: {
355
- errorCode: event.moduleErrorCode,
358
+ errorCode: moduleErrorCode,
356
359
  advanced: true
357
360
  }
358
361
  });
362
+ trueSightLog("warning", "workflow", "orchestration", `module error advanceable moduleErrorCode=${moduleErrorCode ?? "unknown"} module=${context.currentNode?.moduleKey ?? "unknown"} decision=advanced-via-processNode`);
363
+ },
364
+ trackTerminalModuleError: ({ context, event }) => {
365
+ const typed = event;
366
+ trueSightLog("error", "workflow", "orchestration", `module error terminal module=${context.currentNode?.moduleKey ?? "unknown"}${typed.moduleErrorCode !== void 0 ? ` moduleErrorCode=${typed.moduleErrorCode}` : ""} error=${String(typed.error)}`);
367
+ },
368
+ trackNodeTransition: ({ event }) => {
369
+ const node = event.output?.nextNode;
370
+ trueSightLog("info", "workflow", "orchestration", `processNode transition nodeType=${node?.nodeType ?? "unknown"}${node?.moduleKey !== void 0 ? ` module=${node.moduleKey}` : ""}`);
359
371
  },
360
372
  setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
361
373
  clearHomeContinueLoading: assign({ isHomeContinueLoading: false })
@@ -504,7 +516,7 @@ const workflowMachine = setup({
504
516
  actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
505
517
  }, {
506
518
  target: "error",
507
- actions: "setModuleError"
519
+ actions: ["setModuleError", "trackTerminalModuleError"]
508
520
  }],
509
521
  COMPLETE_FLOW: "completing",
510
522
  FINISH_WORKFLOW: [{
@@ -561,18 +573,18 @@ const workflowMachine = setup({
561
573
  {
562
574
  target: "resolvingModule",
563
575
  guard: "isModuleNode",
564
- actions: "setNextNode",
576
+ actions: ["setNextNode", "trackNodeTransition"],
565
577
  reenter: true
566
578
  },
567
579
  {
568
580
  target: "completing",
569
581
  guard: "isFinishNode",
570
- actions: "setNextNode"
582
+ actions: ["setNextNode", "trackNodeTransition"]
571
583
  },
572
584
  {
573
585
  target: "asyncResolution",
574
586
  guard: "isAsyncResolutionNode",
575
- actions: "setNextNode"
587
+ actions: ["setNextNode", "trackNodeTransition"]
576
588
  }
577
589
  ],
578
590
  onError: {
@@ -808,7 +820,10 @@ function createWorkflowManager(options = {}) {
808
820
  mapState,
809
821
  createApi,
810
822
  instrumentation: createManagerInstrumentation(eventModuleNames.workflow)
811
- }), { interviewId: options.interviewId });
823
+ }), {
824
+ interviewId: options.interviewId,
825
+ managerKind: "workflow"
826
+ });
812
827
  }
813
828
  //#endregion
814
829
  export { createWorkflowManager, workflowMachine };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260729-9461bce1",
3
+ "version": "0.0.0-dev-20260729-e2dda0b0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -276,8 +276,8 @@
276
276
  "tsdown": "^0.22.8",
277
277
  "typescript": "^5.9.3",
278
278
  "vitest": "4.1.4",
279
- "@incodetech/infra": "1.2.0",
280
- "@incodetech/config": "1.0.2"
279
+ "@incodetech/config": "1.0.2",
280
+ "@incodetech/infra": "1.2.0"
281
281
  },
282
282
  "scripts": {
283
283
  "build": "tsdown -c tsdown.config.ts",
@@ -1,71 +0,0 @@
1
- //#region src/internal/http/api.ts
2
- let client = null;
3
- let currentToken = null;
4
- function setClient(httpClient) {
5
- client = httpClient;
6
- }
7
- function setToken(token) {
8
- currentToken = token;
9
- }
10
- function getToken() {
11
- return currentToken;
12
- }
13
- function getApi() {
14
- if (!client) throw new Error("SDK not configured. Call setup({ apiURL: \"...\" }) first.");
15
- return client;
16
- }
17
- function isApiConfigured() {
18
- return client !== null;
19
- }
20
- function resetApi() {
21
- client = null;
22
- currentToken = null;
23
- }
24
- /**
25
- * Header-precedence contract: when a caller passes
26
- * `X-Incode-Hardware-Id` in `config.headers`, their value wins over
27
- * `currentToken`. Spreading `config?.headers` LAST achieves that
28
- * (later keys overwrite earlier ones in object spread).
29
- *
30
- * Existing call sites that already pass an explicit
31
- * `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`,
32
- * `internal/virtualCameraCheck.logFrame`) now use the value they
33
- * passed in unconditionally — previously the auto-injection silently
34
- * clobbered them. Both call sites pass tokens that are already
35
- * supposed to be the active session token, so behaviour is
36
- * unchanged in practice; the change unblocks personhood (which
37
- * needs to attach its own slot's token) without bypassing the
38
- * shared `api` wrapper.
39
- *
40
- * Regression coverage lives in `api.test.ts → "should let explicit
41
- * X-Incode-Hardware-Id override the auto-injected token"`.
42
- */
43
- function addTokenHeader(config) {
44
- if (!currentToken) return config ?? {};
45
- return {
46
- ...config,
47
- headers: {
48
- "X-Incode-Hardware-Id": currentToken,
49
- ...config?.headers
50
- }
51
- };
52
- }
53
- const api = {
54
- get(url, config) {
55
- return getApi().get(url, addTokenHeader(config));
56
- },
57
- post(url, data, config) {
58
- return getApi().post(url, data, addTokenHeader(config));
59
- },
60
- put(url, data, config) {
61
- return getApi().put(url, data, addTokenHeader(config));
62
- },
63
- patch(url, data, config) {
64
- return getApi().patch(url, data, addTokenHeader(config));
65
- },
66
- delete(url, config) {
67
- return getApi().delete(url, addTokenHeader(config));
68
- }
69
- };
70
- //#endregion
71
- export { resetApi as a, isApiConfigured as i, getApi as n, setClient as o, getToken as r, setToken as s, api as t };