@intentcomputing/koko-agent-sdk 1.0.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 (622) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/CODE_OF_CONDUCT.md +3 -0
  3. package/CONTRIBUTING.md +9 -0
  4. package/LICENSE +21 -0
  5. package/README.md +65 -0
  6. package/README.zh-CN.md +50 -0
  7. package/SECURITY.md +5 -0
  8. package/android/build.gradle +40 -0
  9. package/android/src/main/AndroidManifest.xml +2 -0
  10. package/android/src/main/java/cn/intentcomputing/kokoagentsdk/KokoAgentSdkModule.java +1356 -0
  11. package/android/src/main/java/cn/intentcomputing/kokoagentsdk/KokoAgentSdkPackage.java +23 -0
  12. package/docs/INTEGRATION.md +168 -0
  13. package/docs/INTEGRATION.zh-CN.md +140 -0
  14. package/docs/PRIVACY.md +11 -0
  15. package/docs/PRIVACY.zh-CN.md +11 -0
  16. package/docs/PUBLISH.md +11 -0
  17. package/docs/PUBLISH.zh-CN.md +11 -0
  18. package/ios/KokoAgentSdk/KokoAgentSdk.h +5 -0
  19. package/ios/KokoAgentSdk/KokoAgentSdk.m +2464 -0
  20. package/ios/KokoAgentSdk/KokoOcrBounds.h +20 -0
  21. package/ios/KokoAgentSdk/KokoScrollBounds.h +21 -0
  22. package/koko-agent-sdk.podspec +23 -0
  23. package/lib/commonjs/KokoAgent.js +1427 -0
  24. package/lib/commonjs/KokoAgent.js.map +1 -0
  25. package/lib/commonjs/assist/OnDeviceAssist.js +94 -0
  26. package/lib/commonjs/assist/OnDeviceAssist.js.map +1 -0
  27. package/lib/commonjs/assist/intentClassify.js +100 -0
  28. package/lib/commonjs/assist/intentClassify.js.map +1 -0
  29. package/lib/commonjs/assist/nodeRank.js +120 -0
  30. package/lib/commonjs/assist/nodeRank.js.map +1 -0
  31. package/lib/commonjs/assist/ocrTarget.js +135 -0
  32. package/lib/commonjs/assist/ocrTarget.js.map +1 -0
  33. package/lib/commonjs/assist/webVisualChange.js +29 -0
  34. package/lib/commonjs/assist/webVisualChange.js.map +1 -0
  35. package/lib/commonjs/client/ActionOutcomeUnknownError.js +28 -0
  36. package/lib/commonjs/client/ActionOutcomeUnknownError.js.map +1 -0
  37. package/lib/commonjs/client/AgentSession.js +858 -0
  38. package/lib/commonjs/client/AgentSession.js.map +1 -0
  39. package/lib/commonjs/client/GatewayClient.js +302 -0
  40. package/lib/commonjs/client/GatewayClient.js.map +1 -0
  41. package/lib/commonjs/client/OperationReplayGuard.js +62 -0
  42. package/lib/commonjs/client/OperationReplayGuard.js.map +1 -0
  43. package/lib/commonjs/client/RunCheckpoint.js +139 -0
  44. package/lib/commonjs/client/RunCheckpoint.js.map +1 -0
  45. package/lib/commonjs/client/loopDetect.js +184 -0
  46. package/lib/commonjs/client/loopDetect.js.map +1 -0
  47. package/lib/commonjs/client/recentSearch.js +50 -0
  48. package/lib/commonjs/client/recentSearch.js.map +1 -0
  49. package/lib/commonjs/client/walletChoiceGuard.js +18 -0
  50. package/lib/commonjs/client/walletChoiceGuard.js.map +1 -0
  51. package/lib/commonjs/client/webResultCategory.js +38 -0
  52. package/lib/commonjs/client/webResultCategory.js.map +1 -0
  53. package/lib/commonjs/commercial/AccountStore.js +78 -0
  54. package/lib/commonjs/commercial/AccountStore.js.map +1 -0
  55. package/lib/commonjs/commercial/AgentDebug.js +104 -0
  56. package/lib/commonjs/commercial/AgentDebug.js.map +1 -0
  57. package/lib/commonjs/commercial/ExecutionGuard.js +53 -0
  58. package/lib/commonjs/commercial/ExecutionGuard.js.map +1 -0
  59. package/lib/commonjs/commercial/UsageBus.js +42 -0
  60. package/lib/commonjs/commercial/UsageBus.js.map +1 -0
  61. package/lib/commonjs/commercial/branding.js +69 -0
  62. package/lib/commonjs/commercial/branding.js.map +1 -0
  63. package/lib/commonjs/commercial/devMode.js +52 -0
  64. package/lib/commonjs/commercial/devMode.js.map +1 -0
  65. package/lib/commonjs/commercial/trust.js +69 -0
  66. package/lib/commonjs/commercial/trust.js.map +1 -0
  67. package/lib/commonjs/confirmation/gate.js +62 -0
  68. package/lib/commonjs/confirmation/gate.js.map +1 -0
  69. package/lib/commonjs/cursor/CursorOverlay.js +141 -0
  70. package/lib/commonjs/cursor/CursorOverlay.js.map +1 -0
  71. package/lib/commonjs/cursor/PointerHand.js +51 -0
  72. package/lib/commonjs/cursor/PointerHand.js.map +1 -0
  73. package/lib/commonjs/cursor/controller.js +91 -0
  74. package/lib/commonjs/cursor/controller.js.map +1 -0
  75. package/lib/commonjs/cursor/pointer.js +49 -0
  76. package/lib/commonjs/cursor/pointer.js.map +1 -0
  77. package/lib/commonjs/debug/KokoRemoteSmoke.js +611 -0
  78. package/lib/commonjs/debug/KokoRemoteSmoke.js.map +1 -0
  79. package/lib/commonjs/explore/ExplorationGraph.js +418 -0
  80. package/lib/commonjs/explore/ExplorationGraph.js.map +1 -0
  81. package/lib/commonjs/explore/bootstrapExplore.js +59 -0
  82. package/lib/commonjs/explore/bootstrapExplore.js.map +1 -0
  83. package/lib/commonjs/host/HostActions.js +266 -0
  84. package/lib/commonjs/host/HostActions.js.map +1 -0
  85. package/lib/commonjs/i18n/index.js +169 -0
  86. package/lib/commonjs/i18n/index.js.map +1 -0
  87. package/lib/commonjs/i18n/runtimeMessages.js +184 -0
  88. package/lib/commonjs/i18n/runtimeMessages.js.map +1 -0
  89. package/lib/commonjs/index.js +640 -0
  90. package/lib/commonjs/index.js.map +1 -0
  91. package/lib/commonjs/native/NativeBridge.js +132 -0
  92. package/lib/commonjs/native/NativeBridge.js.map +1 -0
  93. package/lib/commonjs/native/navigationLabel.js +16 -0
  94. package/lib/commonjs/native/navigationLabel.js.map +1 -0
  95. package/lib/commonjs/native/normalizeViewTree.js +28 -0
  96. package/lib/commonjs/native/normalizeViewTree.js.map +1 -0
  97. package/lib/commonjs/native/pruneOffscreen.js +76 -0
  98. package/lib/commonjs/native/pruneOffscreen.js.map +1 -0
  99. package/lib/commonjs/native/scrollViewport.js +69 -0
  100. package/lib/commonjs/native/scrollViewport.js.map +1 -0
  101. package/lib/commonjs/package.json +1 -0
  102. package/lib/commonjs/privacy/redact.js +108 -0
  103. package/lib/commonjs/privacy/redact.js.map +1 -0
  104. package/lib/commonjs/privacy/screenEvidence.js +59 -0
  105. package/lib/commonjs/privacy/screenEvidence.js.map +1 -0
  106. package/lib/commonjs/privacy/screenModel.js +404 -0
  107. package/lib/commonjs/privacy/screenModel.js.map +1 -0
  108. package/lib/commonjs/privacy/sensitiveScreen.js +58 -0
  109. package/lib/commonjs/privacy/sensitiveScreen.js.map +1 -0
  110. package/lib/commonjs/privacy/userGate.js +213 -0
  111. package/lib/commonjs/privacy/userGate.js.map +1 -0
  112. package/lib/commonjs/protocol/actions.js +112 -0
  113. package/lib/commonjs/protocol/actions.js.map +1 -0
  114. package/lib/commonjs/provider/HostAppearanceStore.js +111 -0
  115. package/lib/commonjs/provider/HostAppearanceStore.js.map +1 -0
  116. package/lib/commonjs/provider/KokoProvider.js +81 -0
  117. package/lib/commonjs/provider/KokoProvider.js.map +1 -0
  118. package/lib/commonjs/provider/KokoUiContext.js +102 -0
  119. package/lib/commonjs/provider/KokoUiContext.js.map +1 -0
  120. package/lib/commonjs/selector/match.js +378 -0
  121. package/lib/commonjs/selector/match.js.map +1 -0
  122. package/lib/commonjs/task/TaskStore.js +361 -0
  123. package/lib/commonjs/task/TaskStore.js.map +1 -0
  124. package/lib/commonjs/task/types.js +2 -0
  125. package/lib/commonjs/task/types.js.map +1 -0
  126. package/lib/commonjs/task/useTaskStore.js +14 -0
  127. package/lib/commonjs/task/useTaskStore.js.map +1 -0
  128. package/lib/commonjs/types.js +2 -0
  129. package/lib/commonjs/types.js.map +1 -0
  130. package/lib/commonjs/ui/KokoChatSheet.js +885 -0
  131. package/lib/commonjs/ui/KokoChatSheet.js.map +1 -0
  132. package/lib/commonjs/ui/KokoComposer.js +161 -0
  133. package/lib/commonjs/ui/KokoComposer.js.map +1 -0
  134. package/lib/commonjs/ui/KokoDialogHost.js +254 -0
  135. package/lib/commonjs/ui/KokoDialogHost.js.map +1 -0
  136. package/lib/commonjs/ui/KokoEntryButton.js +81 -0
  137. package/lib/commonjs/ui/KokoEntryButton.js.map +1 -0
  138. package/lib/commonjs/ui/KokoObserver.js +522 -0
  139. package/lib/commonjs/ui/KokoObserver.js.map +1 -0
  140. package/lib/commonjs/ui/KokoOverlayLayer.js +45 -0
  141. package/lib/commonjs/ui/KokoOverlayLayer.js.map +1 -0
  142. package/lib/commonjs/ui/KokoSubtitle.js +95 -0
  143. package/lib/commonjs/ui/KokoSubtitle.js.map +1 -0
  144. package/lib/commonjs/ui/KokoTaskPanel.js +322 -0
  145. package/lib/commonjs/ui/KokoTaskPanel.js.map +1 -0
  146. package/lib/commonjs/ui/hostOverlay.js +126 -0
  147. package/lib/commonjs/ui/hostOverlay.js.map +1 -0
  148. package/lib/commonjs/ui/icons.js +132 -0
  149. package/lib/commonjs/ui/icons.js.map +1 -0
  150. package/lib/commonjs/ui/progressChrome.js +66 -0
  151. package/lib/commonjs/ui/progressChrome.js.map +1 -0
  152. package/lib/commonjs/ui/safeArea.js +96 -0
  153. package/lib/commonjs/ui/safeArea.js.map +1 -0
  154. package/lib/commonjs/ui/useOverlayOrigin.js +40 -0
  155. package/lib/commonjs/ui/useOverlayOrigin.js.map +1 -0
  156. package/lib/module/KokoAgent.js +1418 -0
  157. package/lib/module/KokoAgent.js.map +1 -0
  158. package/lib/module/assist/OnDeviceAssist.js +89 -0
  159. package/lib/module/assist/OnDeviceAssist.js.map +1 -0
  160. package/lib/module/assist/intentClassify.js +95 -0
  161. package/lib/module/assist/intentClassify.js.map +1 -0
  162. package/lib/module/assist/nodeRank.js +115 -0
  163. package/lib/module/assist/nodeRank.js.map +1 -0
  164. package/lib/module/assist/ocrTarget.js +123 -0
  165. package/lib/module/assist/ocrTarget.js.map +1 -0
  166. package/lib/module/assist/webVisualChange.js +24 -0
  167. package/lib/module/assist/webVisualChange.js.map +1 -0
  168. package/lib/module/client/ActionOutcomeUnknownError.js +23 -0
  169. package/lib/module/client/ActionOutcomeUnknownError.js.map +1 -0
  170. package/lib/module/client/AgentSession.js +854 -0
  171. package/lib/module/client/AgentSession.js.map +1 -0
  172. package/lib/module/client/GatewayClient.js +293 -0
  173. package/lib/module/client/GatewayClient.js.map +1 -0
  174. package/lib/module/client/OperationReplayGuard.js +58 -0
  175. package/lib/module/client/OperationReplayGuard.js.map +1 -0
  176. package/lib/module/client/RunCheckpoint.js +135 -0
  177. package/lib/module/client/RunCheckpoint.js.map +1 -0
  178. package/lib/module/client/loopDetect.js +177 -0
  179. package/lib/module/client/loopDetect.js.map +1 -0
  180. package/lib/module/client/recentSearch.js +46 -0
  181. package/lib/module/client/recentSearch.js.map +1 -0
  182. package/lib/module/client/walletChoiceGuard.js +14 -0
  183. package/lib/module/client/walletChoiceGuard.js.map +1 -0
  184. package/lib/module/client/webResultCategory.js +34 -0
  185. package/lib/module/client/webResultCategory.js.map +1 -0
  186. package/lib/module/commercial/AccountStore.js +75 -0
  187. package/lib/module/commercial/AccountStore.js.map +1 -0
  188. package/lib/module/commercial/AgentDebug.js +99 -0
  189. package/lib/module/commercial/AgentDebug.js.map +1 -0
  190. package/lib/module/commercial/ExecutionGuard.js +49 -0
  191. package/lib/module/commercial/ExecutionGuard.js.map +1 -0
  192. package/lib/module/commercial/UsageBus.js +38 -0
  193. package/lib/module/commercial/UsageBus.js.map +1 -0
  194. package/lib/module/commercial/branding.js +63 -0
  195. package/lib/module/commercial/branding.js.map +1 -0
  196. package/lib/module/commercial/devMode.js +45 -0
  197. package/lib/module/commercial/devMode.js.map +1 -0
  198. package/lib/module/commercial/trust.js +62 -0
  199. package/lib/module/commercial/trust.js.map +1 -0
  200. package/lib/module/confirmation/gate.js +54 -0
  201. package/lib/module/confirmation/gate.js.map +1 -0
  202. package/lib/module/cursor/CursorOverlay.js +136 -0
  203. package/lib/module/cursor/CursorOverlay.js.map +1 -0
  204. package/lib/module/cursor/PointerHand.js +47 -0
  205. package/lib/module/cursor/PointerHand.js.map +1 -0
  206. package/lib/module/cursor/controller.js +87 -0
  207. package/lib/module/cursor/controller.js.map +1 -0
  208. package/lib/module/cursor/pointer.js +45 -0
  209. package/lib/module/cursor/pointer.js.map +1 -0
  210. package/lib/module/debug/KokoRemoteSmoke.js +608 -0
  211. package/lib/module/debug/KokoRemoteSmoke.js.map +1 -0
  212. package/lib/module/explore/ExplorationGraph.js +406 -0
  213. package/lib/module/explore/ExplorationGraph.js.map +1 -0
  214. package/lib/module/explore/bootstrapExplore.js +55 -0
  215. package/lib/module/explore/bootstrapExplore.js.map +1 -0
  216. package/lib/module/host/HostActions.js +255 -0
  217. package/lib/module/host/HostActions.js.map +1 -0
  218. package/lib/module/i18n/index.js +159 -0
  219. package/lib/module/i18n/index.js.map +1 -0
  220. package/lib/module/i18n/runtimeMessages.js +180 -0
  221. package/lib/module/i18n/runtimeMessages.js.map +1 -0
  222. package/lib/module/index.js +44 -0
  223. package/lib/module/index.js.map +1 -0
  224. package/lib/module/native/NativeBridge.js +128 -0
  225. package/lib/module/native/NativeBridge.js.map +1 -0
  226. package/lib/module/native/navigationLabel.js +12 -0
  227. package/lib/module/native/navigationLabel.js.map +1 -0
  228. package/lib/module/native/normalizeViewTree.js +25 -0
  229. package/lib/module/native/normalizeViewTree.js.map +1 -0
  230. package/lib/module/native/pruneOffscreen.js +72 -0
  231. package/lib/module/native/pruneOffscreen.js.map +1 -0
  232. package/lib/module/native/scrollViewport.js +63 -0
  233. package/lib/module/native/scrollViewport.js.map +1 -0
  234. package/lib/module/package.json +1 -0
  235. package/lib/module/privacy/redact.js +103 -0
  236. package/lib/module/privacy/redact.js.map +1 -0
  237. package/lib/module/privacy/screenEvidence.js +50 -0
  238. package/lib/module/privacy/screenEvidence.js.map +1 -0
  239. package/lib/module/privacy/screenModel.js +397 -0
  240. package/lib/module/privacy/screenModel.js.map +1 -0
  241. package/lib/module/privacy/sensitiveScreen.js +52 -0
  242. package/lib/module/privacy/sensitiveScreen.js.map +1 -0
  243. package/lib/module/privacy/userGate.js +202 -0
  244. package/lib/module/privacy/userGate.js.map +1 -0
  245. package/lib/module/protocol/actions.js +108 -0
  246. package/lib/module/protocol/actions.js.map +1 -0
  247. package/lib/module/provider/HostAppearanceStore.js +101 -0
  248. package/lib/module/provider/HostAppearanceStore.js.map +1 -0
  249. package/lib/module/provider/KokoProvider.js +74 -0
  250. package/lib/module/provider/KokoProvider.js.map +1 -0
  251. package/lib/module/provider/KokoUiContext.js +96 -0
  252. package/lib/module/provider/KokoUiContext.js.map +1 -0
  253. package/lib/module/selector/match.js +366 -0
  254. package/lib/module/selector/match.js.map +1 -0
  255. package/lib/module/task/TaskStore.js +356 -0
  256. package/lib/module/task/TaskStore.js.map +1 -0
  257. package/lib/module/task/types.js +2 -0
  258. package/lib/module/task/types.js.map +1 -0
  259. package/lib/module/task/useTaskStore.js +10 -0
  260. package/lib/module/task/useTaskStore.js.map +1 -0
  261. package/lib/module/types.js +2 -0
  262. package/lib/module/types.js.map +1 -0
  263. package/lib/module/ui/KokoChatSheet.js +879 -0
  264. package/lib/module/ui/KokoChatSheet.js.map +1 -0
  265. package/lib/module/ui/KokoComposer.js +155 -0
  266. package/lib/module/ui/KokoComposer.js.map +1 -0
  267. package/lib/module/ui/KokoDialogHost.js +247 -0
  268. package/lib/module/ui/KokoDialogHost.js.map +1 -0
  269. package/lib/module/ui/KokoEntryButton.js +74 -0
  270. package/lib/module/ui/KokoEntryButton.js.map +1 -0
  271. package/lib/module/ui/KokoObserver.js +516 -0
  272. package/lib/module/ui/KokoObserver.js.map +1 -0
  273. package/lib/module/ui/KokoOverlayLayer.js +39 -0
  274. package/lib/module/ui/KokoOverlayLayer.js.map +1 -0
  275. package/lib/module/ui/KokoSubtitle.js +90 -0
  276. package/lib/module/ui/KokoSubtitle.js.map +1 -0
  277. package/lib/module/ui/KokoTaskPanel.js +316 -0
  278. package/lib/module/ui/KokoTaskPanel.js.map +1 -0
  279. package/lib/module/ui/hostOverlay.js +120 -0
  280. package/lib/module/ui/hostOverlay.js.map +1 -0
  281. package/lib/module/ui/icons.js +124 -0
  282. package/lib/module/ui/icons.js.map +1 -0
  283. package/lib/module/ui/progressChrome.js +58 -0
  284. package/lib/module/ui/progressChrome.js.map +1 -0
  285. package/lib/module/ui/safeArea.js +92 -0
  286. package/lib/module/ui/safeArea.js.map +1 -0
  287. package/lib/module/ui/useOverlayOrigin.js +36 -0
  288. package/lib/module/ui/useOverlayOrigin.js.map +1 -0
  289. package/lib/typescript/commonjs/KokoAgent.d.ts +167 -0
  290. package/lib/typescript/commonjs/KokoAgent.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/assist/OnDeviceAssist.d.ts +31 -0
  292. package/lib/typescript/commonjs/assist/OnDeviceAssist.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/assist/intentClassify.d.ts +18 -0
  294. package/lib/typescript/commonjs/assist/intentClassify.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/assist/nodeRank.d.ts +32 -0
  296. package/lib/typescript/commonjs/assist/nodeRank.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/assist/ocrTarget.d.ts +25 -0
  298. package/lib/typescript/commonjs/assist/ocrTarget.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/assist/webVisualChange.d.ts +6 -0
  300. package/lib/typescript/commonjs/assist/webVisualChange.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/client/ActionOutcomeUnknownError.d.ts +13 -0
  302. package/lib/typescript/commonjs/client/ActionOutcomeUnknownError.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/client/AgentSession.d.ts +56 -0
  304. package/lib/typescript/commonjs/client/AgentSession.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/client/GatewayClient.d.ts +149 -0
  306. package/lib/typescript/commonjs/client/GatewayClient.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/client/OperationReplayGuard.d.ts +13 -0
  308. package/lib/typescript/commonjs/client/OperationReplayGuard.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/client/RunCheckpoint.d.ts +57 -0
  310. package/lib/typescript/commonjs/client/RunCheckpoint.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/client/loopDetect.d.ts +15 -0
  312. package/lib/typescript/commonjs/client/loopDetect.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/client/recentSearch.d.ts +5 -0
  314. package/lib/typescript/commonjs/client/recentSearch.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/client/walletChoiceGuard.d.ts +4 -0
  316. package/lib/typescript/commonjs/client/walletChoiceGuard.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/client/webResultCategory.d.ts +5 -0
  318. package/lib/typescript/commonjs/client/webResultCategory.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/commercial/AccountStore.d.ts +17 -0
  320. package/lib/typescript/commonjs/commercial/AccountStore.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/commercial/AgentDebug.d.ts +25 -0
  322. package/lib/typescript/commonjs/commercial/AgentDebug.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/commercial/ExecutionGuard.d.ts +18 -0
  324. package/lib/typescript/commonjs/commercial/ExecutionGuard.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/commercial/UsageBus.d.ts +18 -0
  326. package/lib/typescript/commonjs/commercial/UsageBus.d.ts.map +1 -0
  327. package/lib/typescript/commonjs/commercial/branding.d.ts +25 -0
  328. package/lib/typescript/commonjs/commercial/branding.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/commercial/devMode.d.ts +26 -0
  330. package/lib/typescript/commonjs/commercial/devMode.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/commercial/trust.d.ts +21 -0
  332. package/lib/typescript/commonjs/commercial/trust.d.ts.map +1 -0
  333. package/lib/typescript/commonjs/confirmation/gate.d.ts +18 -0
  334. package/lib/typescript/commonjs/confirmation/gate.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/cursor/CursorOverlay.d.ts +13 -0
  336. package/lib/typescript/commonjs/cursor/CursorOverlay.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/cursor/PointerHand.d.ts +16 -0
  338. package/lib/typescript/commonjs/cursor/PointerHand.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/cursor/controller.d.ts +30 -0
  340. package/lib/typescript/commonjs/cursor/controller.d.ts.map +1 -0
  341. package/lib/typescript/commonjs/cursor/pointer.d.ts +23 -0
  342. package/lib/typescript/commonjs/cursor/pointer.d.ts.map +1 -0
  343. package/lib/typescript/commonjs/debug/KokoRemoteSmoke.d.ts +96 -0
  344. package/lib/typescript/commonjs/debug/KokoRemoteSmoke.d.ts.map +1 -0
  345. package/lib/typescript/commonjs/explore/ExplorationGraph.d.ts +96 -0
  346. package/lib/typescript/commonjs/explore/ExplorationGraph.d.ts.map +1 -0
  347. package/lib/typescript/commonjs/explore/bootstrapExplore.d.ts +40 -0
  348. package/lib/typescript/commonjs/explore/bootstrapExplore.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/host/HostActions.d.ts +101 -0
  350. package/lib/typescript/commonjs/host/HostActions.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/i18n/index.d.ts +20 -0
  352. package/lib/typescript/commonjs/i18n/index.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/i18n/runtimeMessages.d.ts +178 -0
  354. package/lib/typescript/commonjs/i18n/runtimeMessages.d.ts.map +1 -0
  355. package/lib/typescript/commonjs/index.d.ts +66 -0
  356. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/native/NativeBridge.d.ts +70 -0
  358. package/lib/typescript/commonjs/native/NativeBridge.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/native/navigationLabel.d.ts +4 -0
  360. package/lib/typescript/commonjs/native/navigationLabel.d.ts.map +1 -0
  361. package/lib/typescript/commonjs/native/normalizeViewTree.d.ts +4 -0
  362. package/lib/typescript/commonjs/native/normalizeViewTree.d.ts.map +1 -0
  363. package/lib/typescript/commonjs/native/pruneOffscreen.d.ts +3 -0
  364. package/lib/typescript/commonjs/native/pruneOffscreen.d.ts.map +1 -0
  365. package/lib/typescript/commonjs/native/scrollViewport.d.ts +13 -0
  366. package/lib/typescript/commonjs/native/scrollViewport.d.ts.map +1 -0
  367. package/lib/typescript/commonjs/package.json +1 -0
  368. package/lib/typescript/commonjs/privacy/redact.d.ts +9 -0
  369. package/lib/typescript/commonjs/privacy/redact.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/privacy/screenEvidence.d.ts +14 -0
  371. package/lib/typescript/commonjs/privacy/screenEvidence.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/privacy/screenModel.d.ts +26 -0
  373. package/lib/typescript/commonjs/privacy/screenModel.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/privacy/sensitiveScreen.d.ts +8 -0
  375. package/lib/typescript/commonjs/privacy/sensitiveScreen.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/privacy/userGate.d.ts +58 -0
  377. package/lib/typescript/commonjs/privacy/userGate.d.ts.map +1 -0
  378. package/lib/typescript/commonjs/protocol/actions.d.ts +7 -0
  379. package/lib/typescript/commonjs/protocol/actions.d.ts.map +1 -0
  380. package/lib/typescript/commonjs/provider/HostAppearanceStore.d.ts +64 -0
  381. package/lib/typescript/commonjs/provider/HostAppearanceStore.d.ts.map +1 -0
  382. package/lib/typescript/commonjs/provider/KokoProvider.d.ts +39 -0
  383. package/lib/typescript/commonjs/provider/KokoProvider.d.ts.map +1 -0
  384. package/lib/typescript/commonjs/provider/KokoUiContext.d.ts +22 -0
  385. package/lib/typescript/commonjs/provider/KokoUiContext.d.ts.map +1 -0
  386. package/lib/typescript/commonjs/selector/match.d.ts +27 -0
  387. package/lib/typescript/commonjs/selector/match.d.ts.map +1 -0
  388. package/lib/typescript/commonjs/task/TaskStore.d.ts +65 -0
  389. package/lib/typescript/commonjs/task/TaskStore.d.ts.map +1 -0
  390. package/lib/typescript/commonjs/task/types.d.ts +66 -0
  391. package/lib/typescript/commonjs/task/types.d.ts.map +1 -0
  392. package/lib/typescript/commonjs/task/useTaskStore.d.ts +3 -0
  393. package/lib/typescript/commonjs/task/useTaskStore.d.ts.map +1 -0
  394. package/lib/typescript/commonjs/types.d.ts +372 -0
  395. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  396. package/lib/typescript/commonjs/ui/KokoChatSheet.d.ts +8 -0
  397. package/lib/typescript/commonjs/ui/KokoChatSheet.d.ts.map +1 -0
  398. package/lib/typescript/commonjs/ui/KokoComposer.d.ts +13 -0
  399. package/lib/typescript/commonjs/ui/KokoComposer.d.ts.map +1 -0
  400. package/lib/typescript/commonjs/ui/KokoDialogHost.d.ts +32 -0
  401. package/lib/typescript/commonjs/ui/KokoDialogHost.d.ts.map +1 -0
  402. package/lib/typescript/commonjs/ui/KokoEntryButton.d.ts +18 -0
  403. package/lib/typescript/commonjs/ui/KokoEntryButton.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/ui/KokoObserver.d.ts +13 -0
  405. package/lib/typescript/commonjs/ui/KokoObserver.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/ui/KokoOverlayLayer.d.ts +35 -0
  407. package/lib/typescript/commonjs/ui/KokoOverlayLayer.d.ts.map +1 -0
  408. package/lib/typescript/commonjs/ui/KokoSubtitle.d.ts +7 -0
  409. package/lib/typescript/commonjs/ui/KokoSubtitle.d.ts.map +1 -0
  410. package/lib/typescript/commonjs/ui/KokoTaskPanel.d.ts +7 -0
  411. package/lib/typescript/commonjs/ui/KokoTaskPanel.d.ts.map +1 -0
  412. package/lib/typescript/commonjs/ui/hostOverlay.d.ts +28 -0
  413. package/lib/typescript/commonjs/ui/hostOverlay.d.ts.map +1 -0
  414. package/lib/typescript/commonjs/ui/icons.d.ts +26 -0
  415. package/lib/typescript/commonjs/ui/icons.d.ts.map +1 -0
  416. package/lib/typescript/commonjs/ui/progressChrome.d.ts +21 -0
  417. package/lib/typescript/commonjs/ui/progressChrome.d.ts.map +1 -0
  418. package/lib/typescript/commonjs/ui/safeArea.d.ts +12 -0
  419. package/lib/typescript/commonjs/ui/safeArea.d.ts.map +1 -0
  420. package/lib/typescript/commonjs/ui/useOverlayOrigin.d.ts +22 -0
  421. package/lib/typescript/commonjs/ui/useOverlayOrigin.d.ts.map +1 -0
  422. package/lib/typescript/module/KokoAgent.d.ts +167 -0
  423. package/lib/typescript/module/KokoAgent.d.ts.map +1 -0
  424. package/lib/typescript/module/assist/OnDeviceAssist.d.ts +31 -0
  425. package/lib/typescript/module/assist/OnDeviceAssist.d.ts.map +1 -0
  426. package/lib/typescript/module/assist/intentClassify.d.ts +18 -0
  427. package/lib/typescript/module/assist/intentClassify.d.ts.map +1 -0
  428. package/lib/typescript/module/assist/nodeRank.d.ts +32 -0
  429. package/lib/typescript/module/assist/nodeRank.d.ts.map +1 -0
  430. package/lib/typescript/module/assist/ocrTarget.d.ts +25 -0
  431. package/lib/typescript/module/assist/ocrTarget.d.ts.map +1 -0
  432. package/lib/typescript/module/assist/webVisualChange.d.ts +6 -0
  433. package/lib/typescript/module/assist/webVisualChange.d.ts.map +1 -0
  434. package/lib/typescript/module/client/ActionOutcomeUnknownError.d.ts +13 -0
  435. package/lib/typescript/module/client/ActionOutcomeUnknownError.d.ts.map +1 -0
  436. package/lib/typescript/module/client/AgentSession.d.ts +56 -0
  437. package/lib/typescript/module/client/AgentSession.d.ts.map +1 -0
  438. package/lib/typescript/module/client/GatewayClient.d.ts +149 -0
  439. package/lib/typescript/module/client/GatewayClient.d.ts.map +1 -0
  440. package/lib/typescript/module/client/OperationReplayGuard.d.ts +13 -0
  441. package/lib/typescript/module/client/OperationReplayGuard.d.ts.map +1 -0
  442. package/lib/typescript/module/client/RunCheckpoint.d.ts +57 -0
  443. package/lib/typescript/module/client/RunCheckpoint.d.ts.map +1 -0
  444. package/lib/typescript/module/client/loopDetect.d.ts +15 -0
  445. package/lib/typescript/module/client/loopDetect.d.ts.map +1 -0
  446. package/lib/typescript/module/client/recentSearch.d.ts +5 -0
  447. package/lib/typescript/module/client/recentSearch.d.ts.map +1 -0
  448. package/lib/typescript/module/client/walletChoiceGuard.d.ts +4 -0
  449. package/lib/typescript/module/client/walletChoiceGuard.d.ts.map +1 -0
  450. package/lib/typescript/module/client/webResultCategory.d.ts +5 -0
  451. package/lib/typescript/module/client/webResultCategory.d.ts.map +1 -0
  452. package/lib/typescript/module/commercial/AccountStore.d.ts +17 -0
  453. package/lib/typescript/module/commercial/AccountStore.d.ts.map +1 -0
  454. package/lib/typescript/module/commercial/AgentDebug.d.ts +25 -0
  455. package/lib/typescript/module/commercial/AgentDebug.d.ts.map +1 -0
  456. package/lib/typescript/module/commercial/ExecutionGuard.d.ts +18 -0
  457. package/lib/typescript/module/commercial/ExecutionGuard.d.ts.map +1 -0
  458. package/lib/typescript/module/commercial/UsageBus.d.ts +18 -0
  459. package/lib/typescript/module/commercial/UsageBus.d.ts.map +1 -0
  460. package/lib/typescript/module/commercial/branding.d.ts +25 -0
  461. package/lib/typescript/module/commercial/branding.d.ts.map +1 -0
  462. package/lib/typescript/module/commercial/devMode.d.ts +26 -0
  463. package/lib/typescript/module/commercial/devMode.d.ts.map +1 -0
  464. package/lib/typescript/module/commercial/trust.d.ts +21 -0
  465. package/lib/typescript/module/commercial/trust.d.ts.map +1 -0
  466. package/lib/typescript/module/confirmation/gate.d.ts +18 -0
  467. package/lib/typescript/module/confirmation/gate.d.ts.map +1 -0
  468. package/lib/typescript/module/cursor/CursorOverlay.d.ts +13 -0
  469. package/lib/typescript/module/cursor/CursorOverlay.d.ts.map +1 -0
  470. package/lib/typescript/module/cursor/PointerHand.d.ts +16 -0
  471. package/lib/typescript/module/cursor/PointerHand.d.ts.map +1 -0
  472. package/lib/typescript/module/cursor/controller.d.ts +30 -0
  473. package/lib/typescript/module/cursor/controller.d.ts.map +1 -0
  474. package/lib/typescript/module/cursor/pointer.d.ts +23 -0
  475. package/lib/typescript/module/cursor/pointer.d.ts.map +1 -0
  476. package/lib/typescript/module/debug/KokoRemoteSmoke.d.ts +96 -0
  477. package/lib/typescript/module/debug/KokoRemoteSmoke.d.ts.map +1 -0
  478. package/lib/typescript/module/explore/ExplorationGraph.d.ts +96 -0
  479. package/lib/typescript/module/explore/ExplorationGraph.d.ts.map +1 -0
  480. package/lib/typescript/module/explore/bootstrapExplore.d.ts +40 -0
  481. package/lib/typescript/module/explore/bootstrapExplore.d.ts.map +1 -0
  482. package/lib/typescript/module/host/HostActions.d.ts +101 -0
  483. package/lib/typescript/module/host/HostActions.d.ts.map +1 -0
  484. package/lib/typescript/module/i18n/index.d.ts +20 -0
  485. package/lib/typescript/module/i18n/index.d.ts.map +1 -0
  486. package/lib/typescript/module/i18n/runtimeMessages.d.ts +178 -0
  487. package/lib/typescript/module/i18n/runtimeMessages.d.ts.map +1 -0
  488. package/lib/typescript/module/index.d.ts +66 -0
  489. package/lib/typescript/module/index.d.ts.map +1 -0
  490. package/lib/typescript/module/native/NativeBridge.d.ts +70 -0
  491. package/lib/typescript/module/native/NativeBridge.d.ts.map +1 -0
  492. package/lib/typescript/module/native/navigationLabel.d.ts +4 -0
  493. package/lib/typescript/module/native/navigationLabel.d.ts.map +1 -0
  494. package/lib/typescript/module/native/normalizeViewTree.d.ts +4 -0
  495. package/lib/typescript/module/native/normalizeViewTree.d.ts.map +1 -0
  496. package/lib/typescript/module/native/pruneOffscreen.d.ts +3 -0
  497. package/lib/typescript/module/native/pruneOffscreen.d.ts.map +1 -0
  498. package/lib/typescript/module/native/scrollViewport.d.ts +13 -0
  499. package/lib/typescript/module/native/scrollViewport.d.ts.map +1 -0
  500. package/lib/typescript/module/package.json +1 -0
  501. package/lib/typescript/module/privacy/redact.d.ts +9 -0
  502. package/lib/typescript/module/privacy/redact.d.ts.map +1 -0
  503. package/lib/typescript/module/privacy/screenEvidence.d.ts +14 -0
  504. package/lib/typescript/module/privacy/screenEvidence.d.ts.map +1 -0
  505. package/lib/typescript/module/privacy/screenModel.d.ts +26 -0
  506. package/lib/typescript/module/privacy/screenModel.d.ts.map +1 -0
  507. package/lib/typescript/module/privacy/sensitiveScreen.d.ts +8 -0
  508. package/lib/typescript/module/privacy/sensitiveScreen.d.ts.map +1 -0
  509. package/lib/typescript/module/privacy/userGate.d.ts +58 -0
  510. package/lib/typescript/module/privacy/userGate.d.ts.map +1 -0
  511. package/lib/typescript/module/protocol/actions.d.ts +7 -0
  512. package/lib/typescript/module/protocol/actions.d.ts.map +1 -0
  513. package/lib/typescript/module/provider/HostAppearanceStore.d.ts +64 -0
  514. package/lib/typescript/module/provider/HostAppearanceStore.d.ts.map +1 -0
  515. package/lib/typescript/module/provider/KokoProvider.d.ts +39 -0
  516. package/lib/typescript/module/provider/KokoProvider.d.ts.map +1 -0
  517. package/lib/typescript/module/provider/KokoUiContext.d.ts +22 -0
  518. package/lib/typescript/module/provider/KokoUiContext.d.ts.map +1 -0
  519. package/lib/typescript/module/selector/match.d.ts +27 -0
  520. package/lib/typescript/module/selector/match.d.ts.map +1 -0
  521. package/lib/typescript/module/task/TaskStore.d.ts +65 -0
  522. package/lib/typescript/module/task/TaskStore.d.ts.map +1 -0
  523. package/lib/typescript/module/task/types.d.ts +66 -0
  524. package/lib/typescript/module/task/types.d.ts.map +1 -0
  525. package/lib/typescript/module/task/useTaskStore.d.ts +3 -0
  526. package/lib/typescript/module/task/useTaskStore.d.ts.map +1 -0
  527. package/lib/typescript/module/types.d.ts +372 -0
  528. package/lib/typescript/module/types.d.ts.map +1 -0
  529. package/lib/typescript/module/ui/KokoChatSheet.d.ts +8 -0
  530. package/lib/typescript/module/ui/KokoChatSheet.d.ts.map +1 -0
  531. package/lib/typescript/module/ui/KokoComposer.d.ts +13 -0
  532. package/lib/typescript/module/ui/KokoComposer.d.ts.map +1 -0
  533. package/lib/typescript/module/ui/KokoDialogHost.d.ts +32 -0
  534. package/lib/typescript/module/ui/KokoDialogHost.d.ts.map +1 -0
  535. package/lib/typescript/module/ui/KokoEntryButton.d.ts +18 -0
  536. package/lib/typescript/module/ui/KokoEntryButton.d.ts.map +1 -0
  537. package/lib/typescript/module/ui/KokoObserver.d.ts +13 -0
  538. package/lib/typescript/module/ui/KokoObserver.d.ts.map +1 -0
  539. package/lib/typescript/module/ui/KokoOverlayLayer.d.ts +35 -0
  540. package/lib/typescript/module/ui/KokoOverlayLayer.d.ts.map +1 -0
  541. package/lib/typescript/module/ui/KokoSubtitle.d.ts +7 -0
  542. package/lib/typescript/module/ui/KokoSubtitle.d.ts.map +1 -0
  543. package/lib/typescript/module/ui/KokoTaskPanel.d.ts +7 -0
  544. package/lib/typescript/module/ui/KokoTaskPanel.d.ts.map +1 -0
  545. package/lib/typescript/module/ui/hostOverlay.d.ts +28 -0
  546. package/lib/typescript/module/ui/hostOverlay.d.ts.map +1 -0
  547. package/lib/typescript/module/ui/icons.d.ts +26 -0
  548. package/lib/typescript/module/ui/icons.d.ts.map +1 -0
  549. package/lib/typescript/module/ui/progressChrome.d.ts +21 -0
  550. package/lib/typescript/module/ui/progressChrome.d.ts.map +1 -0
  551. package/lib/typescript/module/ui/safeArea.d.ts +12 -0
  552. package/lib/typescript/module/ui/safeArea.d.ts.map +1 -0
  553. package/lib/typescript/module/ui/useOverlayOrigin.d.ts +22 -0
  554. package/lib/typescript/module/ui/useOverlayOrigin.d.ts.map +1 -0
  555. package/package.json +153 -0
  556. package/react-native.config.js +12 -0
  557. package/src/KokoAgent.ts +1415 -0
  558. package/src/assist/OnDeviceAssist.ts +133 -0
  559. package/src/assist/intentClassify.ts +122 -0
  560. package/src/assist/nodeRank.ts +167 -0
  561. package/src/assist/ocrTarget.ts +146 -0
  562. package/src/assist/webVisualChange.ts +24 -0
  563. package/src/client/ActionOutcomeUnknownError.ts +18 -0
  564. package/src/client/AgentSession.ts +952 -0
  565. package/src/client/GatewayClient.ts +439 -0
  566. package/src/client/OperationReplayGuard.ts +61 -0
  567. package/src/client/RunCheckpoint.ts +154 -0
  568. package/src/client/loopDetect.ts +213 -0
  569. package/src/client/recentSearch.ts +47 -0
  570. package/src/client/walletChoiceGuard.ts +15 -0
  571. package/src/client/webResultCategory.ts +28 -0
  572. package/src/commercial/AccountStore.ts +85 -0
  573. package/src/commercial/AgentDebug.ts +142 -0
  574. package/src/commercial/ExecutionGuard.ts +67 -0
  575. package/src/commercial/UsageBus.ts +44 -0
  576. package/src/commercial/branding.ts +97 -0
  577. package/src/commercial/devMode.ts +48 -0
  578. package/src/commercial/trust.ts +67 -0
  579. package/src/confirmation/gate.ts +82 -0
  580. package/src/cursor/CursorOverlay.tsx +138 -0
  581. package/src/cursor/PointerHand.tsx +49 -0
  582. package/src/cursor/controller.ts +98 -0
  583. package/src/cursor/pointer.ts +40 -0
  584. package/src/debug/KokoRemoteSmoke.tsx +561 -0
  585. package/src/explore/ExplorationGraph.ts +518 -0
  586. package/src/explore/bootstrapExplore.ts +89 -0
  587. package/src/host/HostActions.ts +349 -0
  588. package/src/i18n/index.ts +229 -0
  589. package/src/i18n/runtimeMessages.ts +180 -0
  590. package/src/index.ts +203 -0
  591. package/src/native/NativeBridge.ts +207 -0
  592. package/src/native/navigationLabel.ts +11 -0
  593. package/src/native/normalizeViewTree.ts +16 -0
  594. package/src/native/pruneOffscreen.ts +72 -0
  595. package/src/native/scrollViewport.ts +51 -0
  596. package/src/privacy/redact.ts +115 -0
  597. package/src/privacy/screenEvidence.ts +55 -0
  598. package/src/privacy/screenModel.ts +504 -0
  599. package/src/privacy/sensitiveScreen.ts +55 -0
  600. package/src/privacy/userGate.ts +233 -0
  601. package/src/protocol/actions.ts +66 -0
  602. package/src/provider/HostAppearanceStore.ts +148 -0
  603. package/src/provider/KokoProvider.tsx +118 -0
  604. package/src/provider/KokoUiContext.tsx +162 -0
  605. package/src/selector/match.ts +417 -0
  606. package/src/task/TaskStore.ts +387 -0
  607. package/src/task/types.ts +82 -0
  608. package/src/task/useTaskStore.ts +9 -0
  609. package/src/types.ts +318 -0
  610. package/src/ui/KokoChatSheet.tsx +930 -0
  611. package/src/ui/KokoComposer.tsx +174 -0
  612. package/src/ui/KokoDialogHost.tsx +249 -0
  613. package/src/ui/KokoEntryButton.tsx +74 -0
  614. package/src/ui/KokoObserver.tsx +587 -0
  615. package/src/ui/KokoOverlayLayer.tsx +53 -0
  616. package/src/ui/KokoSubtitle.tsx +80 -0
  617. package/src/ui/KokoTaskPanel.tsx +299 -0
  618. package/src/ui/hostOverlay.tsx +148 -0
  619. package/src/ui/icons.tsx +145 -0
  620. package/src/ui/progressChrome.ts +73 -0
  621. package/src/ui/safeArea.ts +95 -0
  622. package/src/ui/useOverlayOrigin.ts +29 -0
@@ -0,0 +1,611 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.KokoRemoteSmoke = KokoRemoteSmoke;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _KokoProvider = require("../provider/KokoProvider.js");
10
+ var _TaskStore = require("../task/TaskStore.js");
11
+ var _screenModel = require("../privacy/screenModel.js");
12
+ var _redact = require("../privacy/redact.js");
13
+ var _sensitiveScreen = require("../privacy/sensitiveScreen.js");
14
+ var _NativeBridge = require("../native/NativeBridge.js");
15
+ var _OnDeviceAssist = require("../assist/OnDeviceAssist.js");
16
+ var _progressChrome = require("../ui/progressChrome.js");
17
+ var _controller = require("../cursor/controller.js");
18
+ var _KokoAgent = require("../KokoAgent.js");
19
+ var _userGate = require("../privacy/userGate.js");
20
+ var _GatewayClient = require("../client/GatewayClient.js");
21
+ var _HostAppearanceStore = require("../provider/HostAppearanceStore.js");
22
+ var _ocrTarget = require("../assist/ocrTarget.js");
23
+ var _devMode = require("../commercial/devMode.js");
24
+ /**
25
+ * Why the progress chrome did or did not render, sampled on every store
26
+ * change. Polling from the Mac cannot see this: the queue is starved while a
27
+ * task runs, so the interesting states are over before a reply gets through.
28
+ */
29
+
30
+ const chromeTrace = [];
31
+ let chromeTraceStarted = 0;
32
+ function recordChromeSample() {
33
+ const s = _TaskStore.TaskStore.snapshot();
34
+ const active = s.tasks.find(t => t.id === s.activeTaskId);
35
+ const f = (0, _progressChrome.getProgressChromeFrame)();
36
+ if (!chromeTraceStarted) chromeTraceStarted = Date.now();
37
+ if (chromeTrace.length > 400) chromeTrace.shift();
38
+ chromeTrace.push({
39
+ t: Date.now() - chromeTraceStarted,
40
+ running: active?.status === 'running',
41
+ sheetOpen: Boolean(s.ui.sheetOpen),
42
+ suppressed: Boolean(s.ui.chromeSuppressed),
43
+ epoch: s.ui.chromeEpoch ?? 0,
44
+ frame: f ? `${Math.round(f.x)},${Math.round(f.y)} ${Math.round(f.width)}x${Math.round(f.height)}` : 'null'
45
+ });
46
+ }
47
+ async function fetchJson(url, init) {
48
+ const timeoutMs = init?.timeoutMs ?? 4000;
49
+ const ctrl = new AbortController();
50
+ const timer = setTimeout(() => ctrl.abort(), timeoutMs);
51
+ try {
52
+ const res = await fetch(url, {
53
+ ...init,
54
+ signal: ctrl.signal
55
+ });
56
+ let json = null;
57
+ try {
58
+ json = await res.json();
59
+ } catch {
60
+ json = null;
61
+ }
62
+ return {
63
+ ok: res.ok,
64
+ status: res.status,
65
+ json
66
+ };
67
+ } finally {
68
+ clearTimeout(timer);
69
+ }
70
+ }
71
+
72
+ /**
73
+ * DEV-only remote driver: poll a host HTTP queue and run SDK ops.
74
+ * Host-agnostic — any app can enable via KokoProvider `remoteSmokePort`.
75
+ * Simulator reaches Mac localhost as 127.0.0.1.
76
+ */
77
+ function KokoRemoteSmoke({
78
+ port = 9877,
79
+ enabled = true
80
+ }) {
81
+ const koko = (0, _KokoProvider.useKokoAgent)();
82
+ const busy = (0, _react.useRef)(false);
83
+ const kokoRef = (0, _react.useRef)(koko);
84
+ kokoRef.current = koko;
85
+ const active = enabled && (0, _devMode.isMetroDevBuild)();
86
+ (0, _react.useEffect)(() => {
87
+ if (!active) return;
88
+ recordChromeSample();
89
+ return _TaskStore.TaskStore.subscribe(recordChromeSample);
90
+ }, [active]);
91
+ (0, _react.useEffect)(() => {
92
+ if (!active) return;
93
+ if (_reactNative.Platform.OS === 'web') return;
94
+ const base = `http://127.0.0.1:${port}`;
95
+ let cancelled = false;
96
+ const post = async (path, body) => {
97
+ await fetchJson(`${base}${path}`, {
98
+ method: 'POST',
99
+ headers: {
100
+ 'Content-Type': 'application/json'
101
+ },
102
+ body: JSON.stringify(body),
103
+ timeoutMs: 4000
104
+ });
105
+ };
106
+ const handle = async cmd => {
107
+ const at = Date.now();
108
+ const agent = kokoRef.current;
109
+ try {
110
+ if (['tap', 'recognizeScreenText', 'type', 'screenshot', 'alertAction'].includes(cmd.type) && (0, _sensitiveScreen.sensitiveScreenKind)(await _NativeBridge.NativeBridge.dump())) throw new _sensitiveScreen.SensitiveScreenError();
111
+ switch (cmd.type) {
112
+ case 'ping':
113
+ return {
114
+ id: cmd.id,
115
+ ok: true,
116
+ type: cmd.type,
117
+ at,
118
+ data: {
119
+ appState: _reactNative.AppState.currentState
120
+ }
121
+ };
122
+ case 'verifyLocalWebText':
123
+ {
124
+ // Read-only integration diagnostic. No recognized page text or
125
+ // screenshots are returned; the label is supplied by the caller.
126
+ const tree = await _NativeBridge.NativeBridge.dump();
127
+ if ((0, _userGate.detectAppUserGate)(tree) || (0, _sensitiveScreen.sensitiveScreenKind)(tree)) throw new _sensitiveScreen.SensitiveScreenError();
128
+ const local = new _KokoAgent.KokoAgent({
129
+ observer: false
130
+ });
131
+ const found = await local.find({
132
+ match: [{
133
+ text: cmd.text
134
+ }]
135
+ }, tree);
136
+ const assist = await (0, _OnDeviceAssist.buildOnDeviceAssist)(cmd.goal, tree);
137
+ const model = (0, _GatewayClient.safePlannerModel)((0, _redact.redactViewTreeClient)(tree), cmd.goal, assist.goalOcrLabels, assist.walletChoices);
138
+ // Exercise the same fresh OCR revalidation used immediately before
139
+ // a tap, without dispatching a touch or exporting recognized text.
140
+ const internal = local;
141
+ internal.lastTree = tree;
142
+ const observed = found ? internal.ocrTargets.get(found.id) : undefined;
143
+ let revalidated = false;
144
+ let cursorCheckStarted = false;
145
+ if (cmd.cursorAtTarget && found?.frame) {
146
+ if (_TaskStore.TaskStore.snapshot().activeTaskId) throw new Error('task already running');
147
+ _TaskStore.TaskStore.startTask('Local read-only cursor visibility check');
148
+ cursorCheckStarted = true;
149
+ _controller.CursorController.showAt(found.frame.x + found.frame.width / 2, found.frame.y + found.frame.height / 2);
150
+ await new Promise(resolve => setTimeout(resolve, 350));
151
+ }
152
+ try {
153
+ revalidated = observed ? Boolean(await internal.currentOcrPoint(observed.text, observed.webview ? tree : undefined)) : false;
154
+ } finally {
155
+ if (cursorCheckStarted) {
156
+ _controller.CursorController.hide();
157
+ _TaskStore.TaskStore.finishTask('cancelled');
158
+ }
159
+ }
160
+ return {
161
+ id: cmd.id,
162
+ ok: true,
163
+ type: cmd.type,
164
+ at,
165
+ data: {
166
+ found: Boolean(found),
167
+ viaOcr: found?.type === 'KokoOcrText',
168
+ usesRequestedLabel: found?.text === cmd.text,
169
+ plannerHasLocalEvidence: model.includes('[local-ocr]'),
170
+ plannerHasWalletChoices: model.includes('[local-wallet-choices]'),
171
+ revalidated
172
+ }
173
+ };
174
+ }
175
+ case 'inspectWalletChoices':
176
+ {
177
+ const tree = await _NativeBridge.NativeBridge.dump();
178
+ if ((0, _userGate.detectAppUserGate)(tree) || (0, _sensitiveScreen.sensitiveScreenKind)(tree)) throw new _sensitiveScreen.SensitiveScreenError();
179
+ const ocr = await _NativeBridge.NativeBridge.recognizeScreenText({
180
+ maxTokens: 64,
181
+ hideOverlays: true
182
+ });
183
+ const patterns = [['MetaMask', /metamask/i], ['WalletConnect', /wallet\s*connect/i], ['Coinbase Wallet', /coinbase/i], ['OneKey', /one\s*key/i], ['UKey', /u\s*key/i], ['Uniswap Wallet', /uniswap\s*wallet/i], ['Trust Wallet', /trust\s*wallet/i], ['Phantom', /phantom/i], ['OKX Wallet', /okx/i], ['More', /^(more|更多)(\s|$)/i], ['Browser wallet', /browser\s*wallet|浏览器钱包/i], ['Other wallets', /other\s*wallets|其他钱包/i], ['Installed', /installed|已安装/i]];
184
+ return {
185
+ id: cmd.id,
186
+ ok: true,
187
+ type: cmd.type,
188
+ at,
189
+ data: {
190
+ choices: patterns.filter(([, re]) => ocr.texts.some(hit => re.test(hit.text))).map(([label]) => label),
191
+ positions: patterns.flatMap(([label, re]) => ocr.texts.filter(hit => re.test(hit.text) && hit.frame).map(hit => ({
192
+ label,
193
+ frame: hit.frame
194
+ })))
195
+ }
196
+ };
197
+ }
198
+ case 'inspectWebState':
199
+ {
200
+ const tree = await _NativeBridge.NativeBridge.dump();
201
+ if ((0, _userGate.detectAppUserGate)(tree) || (0, _sensitiveScreen.sensitiveScreenKind)(tree)) throw new _sensitiveScreen.SensitiveScreenError();
202
+ const ocr = await _NativeBridge.NativeBridge.recognizeScreenText({
203
+ maxTokens: 64,
204
+ hideOverlays: true
205
+ });
206
+ const patterns = {
207
+ private: /password|passcode|mnemonic|recovery phrase|seed phrase|private key|密码|助记词|私钥/i,
208
+ accountAddress: /0x[a-f0-9]{4,}|0x[a-f0-9]{2,}…/i,
209
+ connect: /connect|连接|連接/i,
210
+ wallet: /wallet|钱包|錢包/i,
211
+ provider: /metamask|walletconnect|coinbase|onekey|ukey/i,
212
+ loading: /loading|connecting|加载|連接中|连接中|请稍候/i,
213
+ error: /error|failed|failure|错误|失敗|失败/i,
214
+ approval: /approve|authorize|confirm|allow|批准|授权|確認|确认|同意/i,
215
+ qr: /qr code|二维码|二維碼/i,
216
+ uniswap: /uniswap/i
217
+ };
218
+ return {
219
+ id: cmd.id,
220
+ ok: true,
221
+ type: cmd.type,
222
+ at,
223
+ data: {
224
+ flags: Object.fromEntries(Object.entries(patterns).map(([key, re]) => [key, ocr.texts.some(hit => re.test(hit.text))]))
225
+ }
226
+ };
227
+ }
228
+ case 'inspectWebWalletProvider':
229
+ {
230
+ const tree = await _NativeBridge.NativeBridge.dump();
231
+ if ((0, _userGate.detectAppUserGate)(tree) || (0, _sensitiveScreen.sensitiveScreenKind)(tree)) throw new _sensitiveScreen.SensitiveScreenError();
232
+ const frame = (0, _ocrTarget.visibleWebViewFrames)(tree)[0];
233
+ if (!frame) return {
234
+ id: cmd.id,
235
+ ok: false,
236
+ type: cmd.type,
237
+ at,
238
+ error: 'webview not visible'
239
+ };
240
+ const flags = await _NativeBridge.NativeBridge.inspectWebWalletProvider({
241
+ x: frame.x + frame.width / 2,
242
+ y: frame.y + frame.height / 2
243
+ });
244
+ return {
245
+ id: cmd.id,
246
+ ok: Boolean(flags),
247
+ type: cmd.type,
248
+ at,
249
+ data: {
250
+ flags
251
+ }
252
+ };
253
+ }
254
+ case 'openChat':
255
+ agent.openChat(cmd.taskId);
256
+ return {
257
+ id: cmd.id,
258
+ ok: true,
259
+ type: cmd.type,
260
+ at
261
+ };
262
+ case 'closeChat':
263
+ agent.closeChat();
264
+ return {
265
+ id: cmd.id,
266
+ ok: true,
267
+ type: cmd.type,
268
+ at
269
+ };
270
+ case 'stop':
271
+ agent.stop();
272
+ return {
273
+ id: cmd.id,
274
+ ok: true,
275
+ type: cmd.type,
276
+ at
277
+ };
278
+ case 'chromeTrace':
279
+ {
280
+ const rows = chromeTrace.slice();
281
+ if (cmd.clear) {
282
+ chromeTrace.length = 0;
283
+ chromeTraceStarted = 0;
284
+ }
285
+ return {
286
+ id: cmd.id,
287
+ ok: true,
288
+ type: cmd.type,
289
+ at,
290
+ data: {
291
+ rows
292
+ }
293
+ };
294
+ }
295
+ case 'snapshot':
296
+ {
297
+ const snap = _TaskStore.TaskStore.snapshot();
298
+ return {
299
+ id: cmd.id,
300
+ ok: true,
301
+ type: cmd.type,
302
+ at,
303
+ data: {
304
+ appState: _reactNative.AppState.currentState,
305
+ appearance: _HostAppearanceStore.HostAppearanceStore.get(),
306
+ ui: snap.ui,
307
+ activeTaskId: snap.activeTaskId,
308
+ tasks: snap.tasks.map(t => ({
309
+ id: t.id,
310
+ title: t.title,
311
+ status: t.status,
312
+ nodeCount: t.nodes.length,
313
+ findDiagnostics: t.nodes.filter(n => n.kind === 'find').map(n => ({
314
+ title: n.title,
315
+ status: n.status,
316
+ targetKind: n.detail?.startsWith('ocr:') ? 'ocr' : n.detail ? 'native' : 'none'
317
+ })),
318
+ firstNodes: t.nodes.slice(0, 8).map(n => ({
319
+ kind: n.kind,
320
+ title: n.title,
321
+ status: n.status
322
+ })),
323
+ lastNodes: t.nodes.slice(-6).map(n => ({
324
+ kind: n.kind,
325
+ title: n.title,
326
+ status: n.status
327
+ }))
328
+ }))
329
+ }
330
+ };
331
+ }
332
+ case 'dump':
333
+ {
334
+ // Native dump — no active goal required (agent.dump() is gated).
335
+ const tree = await _NativeBridge.NativeBridge.dump();
336
+ const outline = (0, _redact.viewTreeOutline)(tree).slice(0, 4000);
337
+ const model = (0, _screenModel.screenModelText)(tree).slice(0, 4000);
338
+ return {
339
+ id: cmd.id,
340
+ ok: true,
341
+ type: cmd.type,
342
+ at,
343
+ // `includeTree` ships a redacted tree so scripts/capture_dump_fixture.py
344
+ // can save it as an offline regression fixture. Off by default: a
345
+ // dense host tree is megabytes.
346
+ data: {
347
+ outline,
348
+ model,
349
+ tree: cmd.includeTree ? (0, _redact.redactViewTreeClient)(tree) : undefined
350
+ }
351
+ };
352
+ }
353
+ case 'tap':
354
+ {
355
+ // Raw synthetic touch, bypassing selector + ExecutionGuard, so a
356
+ // failing task can be narrowed to "the touch never lands" vs
357
+ // "the planner aimed at the wrong node".
358
+ const before = (0, _screenModel.screenModelText)(await _NativeBridge.NativeBridge.dump()).slice(0, 2000);
359
+ const point = cmd.point ?? (() => {
360
+ throw new Error('tap requires point');
361
+ })();
362
+ await _NativeBridge.NativeBridge.tap(point);
363
+ await new Promise(r => setTimeout(r, 1200));
364
+ const after = (0, _screenModel.screenModelText)(await _NativeBridge.NativeBridge.dump()).slice(0, 2000);
365
+ return {
366
+ id: cmd.id,
367
+ ok: true,
368
+ type: cmd.type,
369
+ at,
370
+ data: {
371
+ point,
372
+ changed: before !== after,
373
+ before,
374
+ after
375
+ }
376
+ };
377
+ }
378
+ case 'recognizeScreenText':
379
+ {
380
+ const ocr = await _NativeBridge.NativeBridge.recognizeScreenText({
381
+ maxTokens: cmd.maxTokens ?? 24,
382
+ languages: cmd.languages,
383
+ hideOverlays: true
384
+ });
385
+ return {
386
+ id: cmd.id,
387
+ ok: ocr.backend === 'vision' || ocr.tokens.length > 0,
388
+ type: cmd.type,
389
+ at,
390
+ data: {
391
+ backend: ocr.backend,
392
+ tokenCount: ocr.tokens.length,
393
+ tokens: ocr.tokens.slice(0, 32),
394
+ texts: ocr.texts.slice(0, 16),
395
+ nativeAvailable: _NativeBridge.NativeBridge.isAvailable()
396
+ }
397
+ };
398
+ }
399
+ case 'cursorAt':
400
+ {
401
+ // Isolates pointer rendering from the planner: the chrome only
402
+ // shows while a task runs, so claim one for the hold.
403
+ const taskId = _TaskStore.TaskStore.startTask('cursorAt').id;
404
+ _controller.CursorController.showAt(cmd.x, cmd.y, 0);
405
+ await new Promise(r => setTimeout(r, cmd.holdMs ?? 4000));
406
+ const state = _controller.CursorController.getState();
407
+ _controller.CursorController.hide();
408
+ _TaskStore.TaskStore.finishTask('success', taskId);
409
+ return {
410
+ id: cmd.id,
411
+ ok: true,
412
+ type: cmd.type,
413
+ at,
414
+ data: {
415
+ state
416
+ }
417
+ };
418
+ }
419
+ case 'alertAction':
420
+ {
421
+ const before = (0, _screenModel.screenModelText)(await _NativeBridge.NativeBridge.dump());
422
+ const invoked = await _NativeBridge.NativeBridge.invokeAlertAction(cmd.title);
423
+ await new Promise(r => setTimeout(r, 800));
424
+ const after = (0, _screenModel.screenModelText)(await _NativeBridge.NativeBridge.dump());
425
+ return {
426
+ id: cmd.id,
427
+ ok: invoked,
428
+ type: cmd.type,
429
+ at,
430
+ data: {
431
+ invoked,
432
+ changed: after !== before,
433
+ after: after.slice(0, 600)
434
+ }
435
+ };
436
+ }
437
+ case 'onDeviceAssist':
438
+ {
439
+ const tree = await _NativeBridge.NativeBridge.dump();
440
+ const assist = await (0, _OnDeviceAssist.buildOnDeviceAssist)(cmd.goal, tree, {
441
+ skipOcr: cmd.skipOcr
442
+ });
443
+ return {
444
+ id: cmd.id,
445
+ ok: Boolean(assist.modelText || assist.ranked.length),
446
+ type: cmd.type,
447
+ at,
448
+ data: {
449
+ intent: assist.intent,
450
+ confidence: assist.confidence,
451
+ backend: assist.backend,
452
+ tokens: assist.tokens,
453
+ ocrTokens: assist.ocrTokens,
454
+ ranked: assist.ranked.slice(0, 8),
455
+ modelText: assist.modelText.slice(0, 2000)
456
+ }
457
+ };
458
+ }
459
+ case 'runGoal':
460
+ {
461
+ const out = await agent.runGoal(cmd.goal);
462
+ const snap = _TaskStore.TaskStore.snapshot();
463
+ const active = snap.tasks.find(t => t.id === snap.activeTaskId);
464
+ return {
465
+ id: cmd.id,
466
+ ok: Boolean(out?.success),
467
+ type: cmd.type,
468
+ at,
469
+ data: {
470
+ result: out,
471
+ task: active ? {
472
+ id: active.id,
473
+ title: active.title,
474
+ status: active.status,
475
+ nodes: active.nodes.map(n => ({
476
+ kind: n.kind,
477
+ title: n.title,
478
+ status: n.status
479
+ }))
480
+ } : null
481
+ }
482
+ };
483
+ }
484
+ case 'explore':
485
+ {
486
+ const out = await agent.bootstrapExplore({
487
+ mode: cmd.mode ?? 'full',
488
+ maxSteps: cmd.maxSteps ?? (cmd.mode === 'quick' ? 24 : 80),
489
+ maxScreens: cmd.maxScreens,
490
+ appKey: cmd.appKey
491
+ });
492
+ return {
493
+ id: cmd.id,
494
+ ok: Boolean(out?.success),
495
+ type: cmd.type,
496
+ at,
497
+ data: {
498
+ summary: out.summary,
499
+ steps: out.steps,
500
+ stats: {
501
+ nodes: out.graph.nodes.length,
502
+ edges: out.graph.edges.length
503
+ },
504
+ sampleEdges: out.graph.edges.slice(0, 20).map(e => ({
505
+ label: e.label,
506
+ count: e.count
507
+ })),
508
+ sampleNodeLabels: out.graph.nodes.slice(0, 12).map(n => n.labels.slice(0, 6))
509
+ }
510
+ };
511
+ }
512
+ case 'exploreGraph':
513
+ {
514
+ const g = agent.getExplorationGraph();
515
+ return {
516
+ id: cmd.id,
517
+ ok: true,
518
+ type: cmd.type,
519
+ at,
520
+ data: {
521
+ stats: {
522
+ nodes: g.nodes.length,
523
+ edges: g.edges.length
524
+ },
525
+ nodes: g.nodes.slice(0, 20).map(n => ({
526
+ id: n.id,
527
+ labels: n.labels.slice(0, 8),
528
+ visitCount: n.visitCount
529
+ })),
530
+ edges: g.edges.slice(0, 30).map(e => ({
531
+ label: e.label,
532
+ count: e.count,
533
+ fromId: e.fromId,
534
+ toId: e.toId
535
+ }))
536
+ }
537
+ };
538
+ }
539
+ case 'clearExploreGraph':
540
+ {
541
+ agent.clearExplorationGraph();
542
+ return {
543
+ id: cmd.id,
544
+ ok: true,
545
+ type: cmd.type,
546
+ at
547
+ };
548
+ }
549
+ default:
550
+ return {
551
+ id: cmd.id,
552
+ ok: false,
553
+ type: 'unknown',
554
+ at,
555
+ error: 'unknown command'
556
+ };
557
+ }
558
+ } catch (e) {
559
+ return {
560
+ id: cmd.id,
561
+ ok: false,
562
+ type: cmd.type,
563
+ at,
564
+ error: e instanceof Error ? e.message : String(e)
565
+ };
566
+ }
567
+ };
568
+ const tick = async () => {
569
+ if (cancelled || busy.current) return;
570
+ if (_reactNative.AppState.currentState !== 'active') return;
571
+ busy.current = true;
572
+ try {
573
+ const res = await fetchJson(`${base}/cmd`, {
574
+ method: 'GET',
575
+ timeoutMs: 3500
576
+ });
577
+ const cmd = res.json;
578
+ if (!cmd || !cmd.id) return;
579
+ // Ack early so the host knows we accepted work (avoids silent drops).
580
+ await post('/ack', {
581
+ id: cmd.id,
582
+ type: cmd.type,
583
+ at: Date.now()
584
+ });
585
+ const result = await handle(cmd);
586
+ await post('/result', result);
587
+ } catch {
588
+ // ignore — next tick retries
589
+ } finally {
590
+ busy.current = false;
591
+ }
592
+ };
593
+ void post('/hello', {
594
+ at: Date.now(),
595
+ platform: _reactNative.Platform.OS
596
+ });
597
+ const timer = setInterval(() => {
598
+ void tick();
599
+ }, 600);
600
+ const sub = _reactNative.AppState.addEventListener('change', s => {
601
+ if (s === 'active') void tick();
602
+ });
603
+ return () => {
604
+ cancelled = true;
605
+ clearInterval(timer);
606
+ sub.remove();
607
+ };
608
+ }, [active, port]);
609
+ return null;
610
+ }
611
+ //# sourceMappingURL=KokoRemoteSmoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_KokoProvider","_TaskStore","_screenModel","_redact","_sensitiveScreen","_NativeBridge","_OnDeviceAssist","_progressChrome","_controller","_KokoAgent","_userGate","_GatewayClient","_HostAppearanceStore","_ocrTarget","_devMode","chromeTrace","chromeTraceStarted","recordChromeSample","s","TaskStore","snapshot","active","tasks","find","t","id","activeTaskId","f","getProgressChromeFrame","Date","now","length","shift","push","running","status","sheetOpen","Boolean","ui","suppressed","chromeSuppressed","epoch","chromeEpoch","frame","Math","round","x","y","width","height","fetchJson","url","init","timeoutMs","ctrl","AbortController","timer","setTimeout","abort","res","fetch","signal","json","ok","clearTimeout","KokoRemoteSmoke","port","enabled","koko","useKokoAgent","busy","useRef","kokoRef","current","isMetroDevBuild","useEffect","subscribe","Platform","OS","base","cancelled","post","path","body","method","headers","JSON","stringify","handle","cmd","at","agent","includes","type","sensitiveScreenKind","NativeBridge","dump","SensitiveScreenError","data","appState","AppState","currentState","tree","detectAppUserGate","local","KokoAgent","observer","found","match","text","assist","buildOnDeviceAssist","goal","model","safePlannerModel","redactViewTreeClient","goalOcrLabels","walletChoices","internal","lastTree","observed","ocrTargets","get","undefined","revalidated","cursorCheckStarted","cursorAtTarget","Error","startTask","CursorController","showAt","Promise","resolve","currentOcrPoint","webview","hide","finishTask","viaOcr","usesRequestedLabel","plannerHasLocalEvidence","plannerHasWalletChoices","ocr","recognizeScreenText","maxTokens","hideOverlays","patterns","choices","filter","re","texts","some","hit","test","map","label","positions","flatMap","private","accountAddress","connect","wallet","provider","loading","error","approval","qr","uniswap","flags","Object","fromEntries","entries","key","visibleWebViewFrames","inspectWebWalletProvider","openChat","taskId","closeChat","stop","rows","slice","clear","snap","appearance","HostAppearanceStore","title","nodeCount","nodes","findDiagnostics","n","kind","targetKind","detail","startsWith","firstNodes","lastNodes","outline","viewTreeOutline","screenModelText","includeTree","before","point","tap","r","after","changed","languages","backend","tokens","tokenCount","nativeAvailable","isAvailable","holdMs","state","getState","invoked","invokeAlertAction","skipOcr","modelText","ranked","intent","confidence","ocrTokens","out","runGoal","success","result","task","bootstrapExplore","mode","maxSteps","maxScreens","appKey","summary","steps","stats","graph","edges","sampleEdges","e","count","sampleNodeLabels","labels","g","getExplorationGraph","visitCount","fromId","toId","clearExplorationGraph","message","String","tick","platform","setInterval","sub","addEventListener","clearInterval","remove"],"sourceRoot":"../../../src","sources":["debug/KokoRemoteSmoke.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,cAAA,GAAAb,OAAA;AACA,IAAAc,oBAAA,GAAAd,OAAA;AACA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,QAAA,GAAAhB,OAAA;AAEA;AACA;AACA;AACA;AACA;;AAUA,MAAMiB,WAA2B,GAAG,EAAE;AACtC,IAAIC,kBAAkB,GAAG,CAAC;AAE1B,SAASC,kBAAkBA,CAAA,EAAG;EAC5B,MAAMC,CAAC,GAAGC,oBAAS,CAACC,QAAQ,CAAC,CAAC;EAC9B,MAAMC,MAAM,GAAGH,CAAC,CAACI,KAAK,CAACC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACC,EAAE,KAAK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