@william_jin/autobrowse 0.0.0-stage → 0.8.4

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 (1389) hide show
  1. package/LICENSE.md +91 -0
  2. package/README.md +991 -2
  3. package/dist/access/fence.d.ts +13 -0
  4. package/dist/access/fence.js +66 -0
  5. package/dist/access/fence.js.map +1 -0
  6. package/dist/access/keys.d.ts +51 -0
  7. package/dist/access/keys.js +116 -0
  8. package/dist/access/keys.js.map +1 -0
  9. package/dist/agent/builder.d.ts +44 -0
  10. package/dist/agent/builder.js +97 -0
  11. package/dist/agent/builder.js.map +1 -0
  12. package/dist/agent/digest.d.ts +52 -0
  13. package/dist/agent/digest.js +411 -0
  14. package/dist/agent/digest.js.map +1 -0
  15. package/dist/agent/evaluator.d.ts +33 -0
  16. package/dist/agent/evaluator.js +73 -0
  17. package/dist/agent/evaluator.js.map +1 -0
  18. package/dist/agent/explorer.d.ts +274 -0
  19. package/dist/agent/explorer.js +484 -0
  20. package/dist/agent/explorer.js.map +1 -0
  21. package/dist/agent/heal.d.ts +58 -0
  22. package/dist/agent/heal.js +280 -0
  23. package/dist/agent/heal.js.map +1 -0
  24. package/dist/agent/index.d.ts +7 -0
  25. package/dist/agent/index.js +8 -0
  26. package/dist/agent/index.js.map +1 -0
  27. package/dist/agent/ledger.d.ts +31 -0
  28. package/dist/agent/ledger.js +38 -0
  29. package/dist/agent/ledger.js.map +1 -0
  30. package/dist/agent/records.d.ts +27 -0
  31. package/dist/agent/records.js +157 -0
  32. package/dist/agent/records.js.map +1 -0
  33. package/dist/agent/repair.d.ts +8 -0
  34. package/dist/agent/repair.js +38 -0
  35. package/dist/agent/repair.js.map +1 -0
  36. package/dist/agent/schedule.d.ts +24 -0
  37. package/dist/agent/schedule.js +42 -0
  38. package/dist/agent/schedule.js.map +1 -0
  39. package/dist/agent/sessions.d.ts +100 -0
  40. package/dist/agent/sessions.js +314 -0
  41. package/dist/agent/sessions.js.map +1 -0
  42. package/dist/app/apple-passwords.d.ts +14 -0
  43. package/dist/app/apple-passwords.js +114 -0
  44. package/dist/app/apple-passwords.js.map +1 -0
  45. package/dist/app/backend.d.ts +187 -0
  46. package/dist/app/backend.js +316 -0
  47. package/dist/app/backend.js.map +1 -0
  48. package/dist/app/bitwarden.d.ts +38 -0
  49. package/dist/app/bitwarden.js +81 -0
  50. package/dist/app/bitwarden.js.map +1 -0
  51. package/dist/app/box-register.d.ts +11 -0
  52. package/dist/app/box-register.js +51 -0
  53. package/dist/app/box-register.js.map +1 -0
  54. package/dist/app/box.d.ts +25 -0
  55. package/dist/app/box.js +62 -0
  56. package/dist/app/box.js.map +1 -0
  57. package/dist/app/cli-access.d.ts +7 -0
  58. package/dist/app/cli-access.js +67 -0
  59. package/dist/app/cli-access.js.map +1 -0
  60. package/dist/app/cli-accounts.d.ts +35 -0
  61. package/dist/app/cli-accounts.js +154 -0
  62. package/dist/app/cli-accounts.js.map +1 -0
  63. package/dist/app/cli-auth.d.ts +11 -0
  64. package/dist/app/cli-auth.js +826 -0
  65. package/dist/app/cli-auth.js.map +1 -0
  66. package/dist/app/cli-autotrack.d.ts +11 -0
  67. package/dist/app/cli-autotrack.js +187 -0
  68. package/dist/app/cli-autotrack.js.map +1 -0
  69. package/dist/app/cli-aws.d.ts +4 -0
  70. package/dist/app/cli-aws.js +118 -0
  71. package/dist/app/cli-aws.js.map +1 -0
  72. package/dist/app/cli-calls.d.ts +9 -0
  73. package/dist/app/cli-calls.js +65 -0
  74. package/dist/app/cli-calls.js.map +1 -0
  75. package/dist/app/cli-connectors.d.ts +18 -0
  76. package/dist/app/cli-connectors.js +114 -0
  77. package/dist/app/cli-connectors.js.map +1 -0
  78. package/dist/app/cli-desktop.d.ts +2 -0
  79. package/dist/app/cli-desktop.js +46 -0
  80. package/dist/app/cli-desktop.js.map +1 -0
  81. package/dist/app/cli-do.d.ts +8 -0
  82. package/dist/app/cli-do.js +40 -0
  83. package/dist/app/cli-do.js.map +1 -0
  84. package/dist/app/cli-env.d.ts +34 -0
  85. package/dist/app/cli-env.js +274 -0
  86. package/dist/app/cli-env.js.map +1 -0
  87. package/dist/app/cli-files.d.ts +3 -0
  88. package/dist/app/cli-files.js +186 -0
  89. package/dist/app/cli-files.js.map +1 -0
  90. package/dist/app/cli-film.d.ts +6 -0
  91. package/dist/app/cli-film.js +25 -0
  92. package/dist/app/cli-film.js.map +1 -0
  93. package/dist/app/cli-json.d.ts +2 -0
  94. package/dist/app/cli-json.js +17 -0
  95. package/dist/app/cli-json.js.map +1 -0
  96. package/dist/app/cli-keys.d.ts +34 -0
  97. package/dist/app/cli-keys.js +306 -0
  98. package/dist/app/cli-keys.js.map +1 -0
  99. package/dist/app/cli-langfuse.d.ts +8 -0
  100. package/dist/app/cli-langfuse.js +55 -0
  101. package/dist/app/cli-langfuse.js.map +1 -0
  102. package/dist/app/cli-mods.d.ts +3 -0
  103. package/dist/app/cli-mods.js +134 -0
  104. package/dist/app/cli-mods.js.map +1 -0
  105. package/dist/app/cli-needs.d.ts +24 -0
  106. package/dist/app/cli-needs.js +75 -0
  107. package/dist/app/cli-needs.js.map +1 -0
  108. package/dist/app/cli-reach.d.ts +14 -0
  109. package/dist/app/cli-reach.js +206 -0
  110. package/dist/app/cli-reach.js.map +1 -0
  111. package/dist/app/cli-record.d.ts +4 -0
  112. package/dist/app/cli-record.js +692 -0
  113. package/dist/app/cli-record.js.map +1 -0
  114. package/dist/app/cli-runs.d.ts +24 -0
  115. package/dist/app/cli-runs.js +496 -0
  116. package/dist/app/cli-runs.js.map +1 -0
  117. package/dist/app/cli-share.d.ts +5 -0
  118. package/dist/app/cli-share.js +134 -0
  119. package/dist/app/cli-share.js.map +1 -0
  120. package/dist/app/cli-shots.d.ts +8 -0
  121. package/dist/app/cli-shots.js +76 -0
  122. package/dist/app/cli-shots.js.map +1 -0
  123. package/dist/app/cli-site.d.ts +18 -0
  124. package/dist/app/cli-site.js +241 -0
  125. package/dist/app/cli-site.js.map +1 -0
  126. package/dist/app/cli-teach.d.ts +3 -0
  127. package/dist/app/cli-teach.js +105 -0
  128. package/dist/app/cli-teach.js.map +1 -0
  129. package/dist/app/cli-unsubscribe.d.ts +7 -0
  130. package/dist/app/cli-unsubscribe.js +57 -0
  131. package/dist/app/cli-unsubscribe.js.map +1 -0
  132. package/dist/app/cli-wallet.d.ts +9 -0
  133. package/dist/app/cli-wallet.js +199 -0
  134. package/dist/app/cli-wallet.js.map +1 -0
  135. package/dist/app/cli-watched.d.ts +16 -0
  136. package/dist/app/cli-watched.js +125 -0
  137. package/dist/app/cli-watched.js.map +1 -0
  138. package/dist/app/cli.d.ts +2 -0
  139. package/dist/app/cli.js +695 -0
  140. package/dist/app/cli.js.map +1 -0
  141. package/dist/app/client.d.ts +77 -0
  142. package/dist/app/client.js +31 -0
  143. package/dist/app/client.js.map +1 -0
  144. package/dist/app/config.d.ts +342 -0
  145. package/dist/app/config.js +606 -0
  146. package/dist/app/config.js.map +1 -0
  147. package/dist/app/desk.d.ts +1 -0
  148. package/dist/app/desk.js +140 -0
  149. package/dist/app/desk.js.map +1 -0
  150. package/dist/app/display.d.ts +13 -0
  151. package/dist/app/display.js +6 -0
  152. package/dist/app/display.js.map +1 -0
  153. package/dist/app/endpoint.d.ts +19 -0
  154. package/dist/app/endpoint.js +43 -0
  155. package/dist/app/endpoint.js.map +1 -0
  156. package/dist/app/help.d.ts +15 -0
  157. package/dist/app/help.js +182 -0
  158. package/dist/app/help.js.map +1 -0
  159. package/dist/app/idle.d.ts +36 -0
  160. package/dist/app/idle.js +68 -0
  161. package/dist/app/idle.js.map +1 -0
  162. package/dist/app/main.d.ts +2 -0
  163. package/dist/app/main.js +313 -0
  164. package/dist/app/main.js.map +1 -0
  165. package/dist/app/needs.d.ts +116 -0
  166. package/dist/app/needs.js +515 -0
  167. package/dist/app/needs.js.map +1 -0
  168. package/dist/app/ops.d.ts +11 -0
  169. package/dist/app/ops.js +20 -0
  170. package/dist/app/ops.js.map +1 -0
  171. package/dist/app/owed.d.ts +32 -0
  172. package/dist/app/owed.js +80 -0
  173. package/dist/app/owed.js.map +1 -0
  174. package/dist/app/owner.d.ts +30 -0
  175. package/dist/app/owner.js +171 -0
  176. package/dist/app/owner.js.map +1 -0
  177. package/dist/app/pending.d.ts +18 -0
  178. package/dist/app/pending.js +15 -0
  179. package/dist/app/pending.js.map +1 -0
  180. package/dist/app/prompt.d.ts +22 -0
  181. package/dist/app/prompt.js +60 -0
  182. package/dist/app/prompt.js.map +1 -0
  183. package/dist/app/register.d.ts +20 -0
  184. package/dist/app/register.js +34 -0
  185. package/dist/app/register.js.map +1 -0
  186. package/dist/app/sentry.d.ts +18 -0
  187. package/dist/app/sentry.js +43 -0
  188. package/dist/app/sentry.js.map +1 -0
  189. package/dist/app/services-browser.d.ts +53 -0
  190. package/dist/app/services-browser.js +211 -0
  191. package/dist/app/services-browser.js.map +1 -0
  192. package/dist/app/services-keys.d.ts +34 -0
  193. package/dist/app/services-keys.js +151 -0
  194. package/dist/app/services-keys.js.map +1 -0
  195. package/dist/app/services-kit.d.ts +7 -0
  196. package/dist/app/services-kit.js +23 -0
  197. package/dist/app/services-kit.js.map +1 -0
  198. package/dist/app/services-money.d.ts +95 -0
  199. package/dist/app/services-money.js +182 -0
  200. package/dist/app/services-money.js.map +1 -0
  201. package/dist/app/services-reach.d.ts +35 -0
  202. package/dist/app/services-reach.js +159 -0
  203. package/dist/app/services-reach.js.map +1 -0
  204. package/dist/app/services-signin.d.ts +53 -0
  205. package/dist/app/services-signin.js +248 -0
  206. package/dist/app/services-signin.js.map +1 -0
  207. package/dist/app/services-state.d.ts +109 -0
  208. package/dist/app/services-state.js +328 -0
  209. package/dist/app/services-state.js.map +1 -0
  210. package/dist/app/services-workflows.d.ts +33 -0
  211. package/dist/app/services-workflows.js +165 -0
  212. package/dist/app/services-workflows.js.map +1 -0
  213. package/dist/app/services.d.ts +58 -0
  214. package/dist/app/services.js +212 -0
  215. package/dist/app/services.js.map +1 -0
  216. package/dist/app/setup.d.ts +72 -0
  217. package/dist/app/setup.js +240 -0
  218. package/dist/app/setup.js.map +1 -0
  219. package/dist/app/status.d.ts +41 -0
  220. package/dist/app/status.js +40 -0
  221. package/dist/app/status.js.map +1 -0
  222. package/dist/app/step-lines.d.ts +10 -0
  223. package/dist/app/step-lines.js +29 -0
  224. package/dist/app/step-lines.js.map +1 -0
  225. package/dist/auth/accounts.d.ts +86 -0
  226. package/dist/auth/accounts.js +235 -0
  227. package/dist/auth/accounts.js.map +1 -0
  228. package/dist/auth/codes.d.ts +79 -0
  229. package/dist/auth/codes.js +143 -0
  230. package/dist/auth/codes.js.map +1 -0
  231. package/dist/auth/enroll.d.ts +22 -0
  232. package/dist/auth/enroll.js +101 -0
  233. package/dist/auth/enroll.js.map +1 -0
  234. package/dist/auth/exists.d.ts +75 -0
  235. package/dist/auth/exists.js +77 -0
  236. package/dist/auth/exists.js.map +1 -0
  237. package/dist/auth/facebook.d.ts +12 -0
  238. package/dist/auth/facebook.js +68 -0
  239. package/dist/auth/facebook.js.map +1 -0
  240. package/dist/auth/free-accounts.d.ts +43 -0
  241. package/dist/auth/free-accounts.js +42 -0
  242. package/dist/auth/free-accounts.js.map +1 -0
  243. package/dist/auth/github.d.ts +10 -0
  244. package/dist/auth/github.js +109 -0
  245. package/dist/auth/github.js.map +1 -0
  246. package/dist/auth/google.d.ts +10 -0
  247. package/dist/auth/google.js +380 -0
  248. package/dist/auth/google.js.map +1 -0
  249. package/dist/auth/guard.d.ts +77 -0
  250. package/dist/auth/guard.js +140 -0
  251. package/dist/auth/guard.js.map +1 -0
  252. package/dist/auth/identities.d.ts +57 -0
  253. package/dist/auth/identities.js +155 -0
  254. package/dist/auth/identities.js.map +1 -0
  255. package/dist/auth/index.d.ts +15 -0
  256. package/dist/auth/index.js +15 -0
  257. package/dist/auth/index.js.map +1 -0
  258. package/dist/auth/ingest.d.ts +32 -0
  259. package/dist/auth/ingest.js +98 -0
  260. package/dist/auth/ingest.js.map +1 -0
  261. package/dist/auth/instagram.d.ts +13 -0
  262. package/dist/auth/instagram.js +67 -0
  263. package/dist/auth/instagram.js.map +1 -0
  264. package/dist/auth/keep.d.ts +19 -0
  265. package/dist/auth/keep.js +19 -0
  266. package/dist/auth/keep.js.map +1 -0
  267. package/dist/auth/keys.d.ts +68 -0
  268. package/dist/auth/keys.js +120 -0
  269. package/dist/auth/keys.js.map +1 -0
  270. package/dist/auth/ledger.d.ts +20 -0
  271. package/dist/auth/ledger.js +59 -0
  272. package/dist/auth/ledger.js.map +1 -0
  273. package/dist/auth/link.d.ts +38 -0
  274. package/dist/auth/link.js +98 -0
  275. package/dist/auth/link.js.map +1 -0
  276. package/dist/auth/linkedin.d.ts +14 -0
  277. package/dist/auth/linkedin.js +73 -0
  278. package/dist/auth/linkedin.js.map +1 -0
  279. package/dist/auth/login.d.ts +334 -0
  280. package/dist/auth/login.js +650 -0
  281. package/dist/auth/login.js.map +1 -0
  282. package/dist/auth/microsoft.d.ts +9 -0
  283. package/dist/auth/microsoft.js +173 -0
  284. package/dist/auth/microsoft.js.map +1 -0
  285. package/dist/auth/passkey.d.ts +9 -0
  286. package/dist/auth/passkey.js +71 -0
  287. package/dist/auth/passkey.js.map +1 -0
  288. package/dist/auth/providers.d.ts +23 -0
  289. package/dist/auth/providers.js +16 -0
  290. package/dist/auth/providers.js.map +1 -0
  291. package/dist/auth/recovery.d.ts +19 -0
  292. package/dist/auth/recovery.js +64 -0
  293. package/dist/auth/recovery.js.map +1 -0
  294. package/dist/auth/roles.d.ts +83 -0
  295. package/dist/auth/roles.js +171 -0
  296. package/dist/auth/roles.js.map +1 -0
  297. package/dist/auth/rotate.d.ts +10 -0
  298. package/dist/auth/rotate.js +54 -0
  299. package/dist/auth/rotate.js.map +1 -0
  300. package/dist/auth/signup.d.ts +157 -0
  301. package/dist/auth/signup.js +371 -0
  302. package/dist/auth/signup.js.map +1 -0
  303. package/dist/auth/sites.d.ts +52 -0
  304. package/dist/auth/sites.js +819 -0
  305. package/dist/auth/sites.js.map +1 -0
  306. package/dist/auth/tiktok.d.ts +10 -0
  307. package/dist/auth/tiktok.js +66 -0
  308. package/dist/auth/tiktok.js.map +1 -0
  309. package/dist/auth/uwaterloo.d.ts +5 -0
  310. package/dist/auth/uwaterloo.js +123 -0
  311. package/dist/auth/uwaterloo.js.map +1 -0
  312. package/dist/auth/x.d.ts +17 -0
  313. package/dist/auth/x.js +83 -0
  314. package/dist/auth/x.js.map +1 -0
  315. package/dist/autotrack/code.d.ts +36 -0
  316. package/dist/autotrack/code.js +59 -0
  317. package/dist/autotrack/code.js.map +1 -0
  318. package/dist/autotrack/enroll.d.ts +46 -0
  319. package/dist/autotrack/enroll.js +60 -0
  320. package/dist/autotrack/enroll.js.map +1 -0
  321. package/dist/autotrack/episodes.d.ts +32 -0
  322. package/dist/autotrack/episodes.js +107 -0
  323. package/dist/autotrack/episodes.js.map +1 -0
  324. package/dist/autotrack/health.d.ts +40 -0
  325. package/dist/autotrack/health.js +114 -0
  326. package/dist/autotrack/health.js.map +1 -0
  327. package/dist/autotrack/heartbeat.d.ts +69 -0
  328. package/dist/autotrack/heartbeat.js +114 -0
  329. package/dist/autotrack/heartbeat.js.map +1 -0
  330. package/dist/autotrack/iam.d.ts +4 -0
  331. package/dist/autotrack/iam.js +82 -0
  332. package/dist/autotrack/iam.js.map +1 -0
  333. package/dist/autotrack/import.d.ts +76 -0
  334. package/dist/autotrack/import.js +277 -0
  335. package/dist/autotrack/import.js.map +1 -0
  336. package/dist/autotrack/join.d.ts +75 -0
  337. package/dist/autotrack/join.js +319 -0
  338. package/dist/autotrack/join.js.map +1 -0
  339. package/dist/autotrack/label-run.d.ts +26 -0
  340. package/dist/autotrack/label-run.js +46 -0
  341. package/dist/autotrack/label-run.js.map +1 -0
  342. package/dist/autotrack/label.d.ts +121 -0
  343. package/dist/autotrack/label.js +518 -0
  344. package/dist/autotrack/label.js.map +1 -0
  345. package/dist/autotrack/pool.d.ts +2 -0
  346. package/dist/autotrack/pool.js +16 -0
  347. package/dist/autotrack/pool.js.map +1 -0
  348. package/dist/autotrack/quality.d.ts +58 -0
  349. package/dist/autotrack/quality.js +84 -0
  350. package/dist/autotrack/quality.js.map +1 -0
  351. package/dist/autotrack/signals.d.ts +62 -0
  352. package/dist/autotrack/signals.js +219 -0
  353. package/dist/autotrack/signals.js.map +1 -0
  354. package/dist/autotrack/steps-run.d.ts +25 -0
  355. package/dist/autotrack/steps-run.js +85 -0
  356. package/dist/autotrack/steps-run.js.map +1 -0
  357. package/dist/autotrack/steps.d.ts +124 -0
  358. package/dist/autotrack/steps.js +268 -0
  359. package/dist/autotrack/steps.js.map +1 -0
  360. package/dist/autotrack/store.d.ts +87 -0
  361. package/dist/autotrack/store.js +117 -0
  362. package/dist/autotrack/store.js.map +1 -0
  363. package/dist/autotrack/tree.d.ts +45 -0
  364. package/dist/autotrack/tree.js +145 -0
  365. package/dist/autotrack/tree.js.map +1 -0
  366. package/dist/autotrack/types.d.ts +398 -0
  367. package/dist/autotrack/types.js +8 -0
  368. package/dist/autotrack/types.js.map +1 -0
  369. package/dist/browser/attempt.d.ts +54 -0
  370. package/dist/browser/attempt.js +90 -0
  371. package/dist/browser/attempt.js.map +1 -0
  372. package/dist/browser/browsers.d.ts +81 -0
  373. package/dist/browser/browsers.js +202 -0
  374. package/dist/browser/browsers.js.map +1 -0
  375. package/dist/browser/captcha/index.d.ts +86 -0
  376. package/dist/browser/captcha/index.js +459 -0
  377. package/dist/browser/captcha/index.js.map +1 -0
  378. package/dist/browser/captcha/llm-eyes.d.ts +4 -0
  379. package/dist/browser/captcha/llm-eyes.js +16 -0
  380. package/dist/browser/captcha/llm-eyes.js.map +1 -0
  381. package/dist/browser/download.d.ts +24 -0
  382. package/dist/browser/download.js +43 -0
  383. package/dist/browser/download.js.map +1 -0
  384. package/dist/browser/egress.d.ts +46 -0
  385. package/dist/browser/egress.js +149 -0
  386. package/dist/browser/egress.js.map +1 -0
  387. package/dist/browser/film.d.ts +116 -0
  388. package/dist/browser/film.js +334 -0
  389. package/dist/browser/film.js.map +1 -0
  390. package/dist/browser/fingerprint.d.ts +72 -0
  391. package/dist/browser/fingerprint.js +98 -0
  392. package/dist/browser/fingerprint.js.map +1 -0
  393. package/dist/browser/fixes.d.ts +45 -0
  394. package/dist/browser/fixes.js +117 -0
  395. package/dist/browser/fixes.js.map +1 -0
  396. package/dist/browser/flow.d.ts +265 -0
  397. package/dist/browser/flow.js +809 -0
  398. package/dist/browser/flow.js.map +1 -0
  399. package/dist/browser/flows/aws-cli-login.d.ts +9 -0
  400. package/dist/browser/flows/aws-cli-login.js +99 -0
  401. package/dist/browser/flows/aws-cli-login.js.map +1 -0
  402. package/dist/browser/flows/calcom-api-key.d.ts +20 -0
  403. package/dist/browser/flows/calcom-api-key.js +30 -0
  404. package/dist/browser/flows/calcom-api-key.js.map +1 -0
  405. package/dist/browser/flows/cloudflare-token.d.ts +21 -0
  406. package/dist/browser/flows/cloudflare-token.js +74 -0
  407. package/dist/browser/flows/cloudflare-token.js.map +1 -0
  408. package/dist/browser/flows/connector-keys.d.ts +39 -0
  409. package/dist/browser/flows/connector-keys.js +84 -0
  410. package/dist/browser/flows/connector-keys.js.map +1 -0
  411. package/dist/browser/flows/consent-walker.d.ts +47 -0
  412. package/dist/browser/flows/consent-walker.js +80 -0
  413. package/dist/browser/flows/consent-walker.js.map +1 -0
  414. package/dist/browser/flows/dialog-following.d.ts +23 -0
  415. package/dist/browser/flows/dialog-following.js +43 -0
  416. package/dist/browser/flows/dialog-following.js.map +1 -0
  417. package/dist/browser/flows/discord.d.ts +32 -0
  418. package/dist/browser/flows/discord.js +93 -0
  419. package/dist/browser/flows/discord.js.map +1 -0
  420. package/dist/browser/flows/facebook-oauth-consent.d.ts +3 -0
  421. package/dist/browser/flows/facebook-oauth-consent.js +17 -0
  422. package/dist/browser/flows/facebook-oauth-consent.js.map +1 -0
  423. package/dist/browser/flows/fingerprint.d.ts +57 -0
  424. package/dist/browser/flows/fingerprint.js +169 -0
  425. package/dist/browser/flows/fingerprint.js.map +1 -0
  426. package/dist/browser/flows/google-dkim.d.ts +11 -0
  427. package/dist/browser/flows/google-dkim.js +61 -0
  428. package/dist/browser/flows/google-dkim.js.map +1 -0
  429. package/dist/browser/flows/google-place.d.ts +53 -0
  430. package/dist/browser/flows/google-place.js +145 -0
  431. package/dist/browser/flows/google-place.js.map +1 -0
  432. package/dist/browser/flows/google-profile-photo.d.ts +3 -0
  433. package/dist/browser/flows/google-profile-photo.js +30 -0
  434. package/dist/browser/flows/google-profile-photo.js.map +1 -0
  435. package/dist/browser/flows/google-reviews.d.ts +72 -0
  436. package/dist/browser/flows/google-reviews.js +227 -0
  437. package/dist/browser/flows/google-reviews.js.map +1 -0
  438. package/dist/browser/flows/google-search.d.ts +90 -0
  439. package/dist/browser/flows/google-search.js +290 -0
  440. package/dist/browser/flows/google-search.js.map +1 -0
  441. package/dist/browser/flows/google-workspace-logo.d.ts +3 -0
  442. package/dist/browser/flows/google-workspace-logo.js +32 -0
  443. package/dist/browser/flows/google-workspace-logo.js.map +1 -0
  444. package/dist/browser/flows/index.d.ts +42 -0
  445. package/dist/browser/flows/index.js +43 -0
  446. package/dist/browser/flows/index.js.map +1 -0
  447. package/dist/browser/flows/instagram-act.d.ts +85 -0
  448. package/dist/browser/flows/instagram-act.js +256 -0
  449. package/dist/browser/flows/instagram-act.js.map +1 -0
  450. package/dist/browser/flows/instagram-comments.d.ts +51 -0
  451. package/dist/browser/flows/instagram-comments.js +205 -0
  452. package/dist/browser/flows/instagram-comments.js.map +1 -0
  453. package/dist/browser/flows/instagram-create-post.d.ts +10 -0
  454. package/dist/browser/flows/instagram-create-post.js +82 -0
  455. package/dist/browser/flows/instagram-create-post.js.map +1 -0
  456. package/dist/browser/flows/instagram-oauth-consent.d.ts +3 -0
  457. package/dist/browser/flows/instagram-oauth-consent.js +15 -0
  458. package/dist/browser/flows/instagram-oauth-consent.js.map +1 -0
  459. package/dist/browser/flows/kit.d.ts +19 -0
  460. package/dist/browser/flows/kit.js +41 -0
  461. package/dist/browser/flows/kit.js.map +1 -0
  462. package/dist/browser/flows/learn.d.ts +44 -0
  463. package/dist/browser/flows/learn.js +194 -0
  464. package/dist/browser/flows/learn.js.map +1 -0
  465. package/dist/browser/flows/linkedin-act.d.ts +27 -0
  466. package/dist/browser/flows/linkedin-act.js +102 -0
  467. package/dist/browser/flows/linkedin-act.js.map +1 -0
  468. package/dist/browser/flows/linkedin-activity.d.ts +58 -0
  469. package/dist/browser/flows/linkedin-activity.js +165 -0
  470. package/dist/browser/flows/linkedin-activity.js.map +1 -0
  471. package/dist/browser/flows/linkedin-audience.d.ts +25 -0
  472. package/dist/browser/flows/linkedin-audience.js +55 -0
  473. package/dist/browser/flows/linkedin-audience.js.map +1 -0
  474. package/dist/browser/flows/linkedin-comment.d.ts +134 -0
  475. package/dist/browser/flows/linkedin-comment.js +469 -0
  476. package/dist/browser/flows/linkedin-comment.js.map +1 -0
  477. package/dist/browser/flows/linkedin-create-post.d.ts +11 -0
  478. package/dist/browser/flows/linkedin-create-post.js +111 -0
  479. package/dist/browser/flows/linkedin-create-post.js.map +1 -0
  480. package/dist/browser/flows/linkedin-dashboard.d.ts +18 -0
  481. package/dist/browser/flows/linkedin-dashboard.js +101 -0
  482. package/dist/browser/flows/linkedin-dashboard.js.map +1 -0
  483. package/dist/browser/flows/linkedin-notifications.d.ts +33 -0
  484. package/dist/browser/flows/linkedin-notifications.js +127 -0
  485. package/dist/browser/flows/linkedin-notifications.js.map +1 -0
  486. package/dist/browser/flows/linkedin-oauth-consent.d.ts +3 -0
  487. package/dist/browser/flows/linkedin-oauth-consent.js +18 -0
  488. package/dist/browser/flows/linkedin-oauth-consent.js.map +1 -0
  489. package/dist/browser/flows/linkedin-post-analytics.d.ts +54 -0
  490. package/dist/browser/flows/linkedin-post-analytics.js +205 -0
  491. package/dist/browser/flows/linkedin-post-analytics.js.map +1 -0
  492. package/dist/browser/flows/linkedin-posts.d.ts +191 -0
  493. package/dist/browser/flows/linkedin-posts.js +438 -0
  494. package/dist/browser/flows/linkedin-posts.js.map +1 -0
  495. package/dist/browser/flows/linkedin-reach.d.ts +306 -0
  496. package/dist/browser/flows/linkedin-reach.js +830 -0
  497. package/dist/browser/flows/linkedin-reach.js.map +1 -0
  498. package/dist/browser/flows/loom.d.ts +25 -0
  499. package/dist/browser/flows/loom.js +130 -0
  500. package/dist/browser/flows/loom.js.map +1 -0
  501. package/dist/browser/flows/npm-create-org.d.ts +22 -0
  502. package/dist/browser/flows/npm-create-org.js +34 -0
  503. package/dist/browser/flows/npm-create-org.js.map +1 -0
  504. package/dist/browser/flows/npm-granular-token.d.ts +46 -0
  505. package/dist/browser/flows/npm-granular-token.js +85 -0
  506. package/dist/browser/flows/npm-granular-token.js.map +1 -0
  507. package/dist/browser/flows/npm-trusted-publisher.d.ts +19 -0
  508. package/dist/browser/flows/npm-trusted-publisher.js +63 -0
  509. package/dist/browser/flows/npm-trusted-publisher.js.map +1 -0
  510. package/dist/browser/flows/oauth-consent.d.ts +19 -0
  511. package/dist/browser/flows/oauth-consent.js +111 -0
  512. package/dist/browser/flows/oauth-consent.js.map +1 -0
  513. package/dist/browser/flows/outlook-oauth-consent.d.ts +3 -0
  514. package/dist/browser/flows/outlook-oauth-consent.js +16 -0
  515. package/dist/browser/flows/outlook-oauth-consent.js.map +1 -0
  516. package/dist/browser/flows/perplexity-ask.d.ts +32 -0
  517. package/dist/browser/flows/perplexity-ask.js +141 -0
  518. package/dist/browser/flows/perplexity-ask.js.map +1 -0
  519. package/dist/browser/flows/profile-name.d.ts +33 -0
  520. package/dist/browser/flows/profile-name.js +138 -0
  521. package/dist/browser/flows/profile-name.js.map +1 -0
  522. package/dist/browser/flows/proof-shot.d.ts +70 -0
  523. package/dist/browser/flows/proof-shot.js +150 -0
  524. package/dist/browser/flows/proof-shot.js.map +1 -0
  525. package/dist/browser/flows/reddit-rss.d.ts +86 -0
  526. package/dist/browser/flows/reddit-rss.js +248 -0
  527. package/dist/browser/flows/reddit-rss.js.map +1 -0
  528. package/dist/browser/flows/reddit.d.ts +116 -0
  529. package/dist/browser/flows/reddit.js +736 -0
  530. package/dist/browser/flows/reddit.js.map +1 -0
  531. package/dist/browser/flows/reset-mail-probe.d.ts +17 -0
  532. package/dist/browser/flows/reset-mail-probe.js +19 -0
  533. package/dist/browser/flows/reset-mail-probe.js.map +1 -0
  534. package/dist/browser/flows/threads-following.d.ts +12 -0
  535. package/dist/browser/flows/threads-following.js +61 -0
  536. package/dist/browser/flows/threads-following.js.map +1 -0
  537. package/dist/browser/flows/threads-oauth-consent.d.ts +3 -0
  538. package/dist/browser/flows/threads-oauth-consent.js +17 -0
  539. package/dist/browser/flows/threads-oauth-consent.js.map +1 -0
  540. package/dist/browser/flows/tiktok-comments.d.ts +67 -0
  541. package/dist/browser/flows/tiktok-comments.js +216 -0
  542. package/dist/browser/flows/tiktok-comments.js.map +1 -0
  543. package/dist/browser/flows/tiktok-create-post.d.ts +84 -0
  544. package/dist/browser/flows/tiktok-create-post.js +300 -0
  545. package/dist/browser/flows/tiktok-create-post.js.map +1 -0
  546. package/dist/browser/flows/tiktok-following.d.ts +12 -0
  547. package/dist/browser/flows/tiktok-following.js +51 -0
  548. package/dist/browser/flows/tiktok-following.js.map +1 -0
  549. package/dist/browser/flows/tiktok-oauth-consent.d.ts +3 -0
  550. package/dist/browser/flows/tiktok-oauth-consent.js +18 -0
  551. package/dist/browser/flows/tiktok-oauth-consent.js.map +1 -0
  552. package/dist/browser/flows/tiktok-video-analytics.d.ts +40 -0
  553. package/dist/browser/flows/tiktok-video-analytics.js +169 -0
  554. package/dist/browser/flows/tiktok-video-analytics.js.map +1 -0
  555. package/dist/browser/flows/wrangler-login.d.ts +7 -0
  556. package/dist/browser/flows/wrangler-login.js +31 -0
  557. package/dist/browser/flows/wrangler-login.js.map +1 -0
  558. package/dist/browser/flows/x-act.d.ts +26 -0
  559. package/dist/browser/flows/x-act.js +144 -0
  560. package/dist/browser/flows/x-act.js.map +1 -0
  561. package/dist/browser/flows/x-oauth-consent.d.ts +3 -0
  562. package/dist/browser/flows/x-oauth-consent.js +20 -0
  563. package/dist/browser/flows/x-oauth-consent.js.map +1 -0
  564. package/dist/browser/flows/x-read.d.ts +146 -0
  565. package/dist/browser/flows/x-read.js +439 -0
  566. package/dist/browser/flows/x-read.js.map +1 -0
  567. package/dist/browser/flows/youtube-community-post.d.ts +14 -0
  568. package/dist/browser/flows/youtube-community-post.js +54 -0
  569. package/dist/browser/flows/youtube-community-post.js.map +1 -0
  570. package/dist/browser/flows/youtube-studio-analytics.d.ts +18 -0
  571. package/dist/browser/flows/youtube-studio-analytics.js +79 -0
  572. package/dist/browser/flows/youtube-studio-analytics.js.map +1 -0
  573. package/dist/browser/flows/youtube-thumbnail.d.ts +14 -0
  574. package/dist/browser/flows/youtube-thumbnail.js +49 -0
  575. package/dist/browser/flows/youtube-thumbnail.js.map +1 -0
  576. package/dist/browser/frames.d.ts +30 -0
  577. package/dist/browser/frames.js +109 -0
  578. package/dist/browser/frames.js.map +1 -0
  579. package/dist/browser/human/draw.d.ts +15 -0
  580. package/dist/browser/human/draw.js +20 -0
  581. package/dist/browser/human/draw.js.map +1 -0
  582. package/dist/browser/human/index.d.ts +132 -0
  583. package/dist/browser/human/index.js +476 -0
  584. package/dist/browser/human/index.js.map +1 -0
  585. package/dist/browser/human/mouse.d.ts +75 -0
  586. package/dist/browser/human/mouse.js +158 -0
  587. package/dist/browser/human/mouse.js.map +1 -0
  588. package/dist/browser/human/scroll.d.ts +25 -0
  589. package/dist/browser/human/scroll.js +33 -0
  590. package/dist/browser/human/scroll.js.map +1 -0
  591. package/dist/browser/human/typing.d.ts +49 -0
  592. package/dist/browser/human/typing.js +104 -0
  593. package/dist/browser/human/typing.js.map +1 -0
  594. package/dist/browser/in-page.d.ts +10 -0
  595. package/dist/browser/in-page.js +4 -0
  596. package/dist/browser/in-page.js.map +1 -0
  597. package/dist/browser/keep-session.d.ts +13 -0
  598. package/dist/browser/keep-session.js +27 -0
  599. package/dist/browser/keep-session.js.map +1 -0
  600. package/dist/browser/layout.d.ts +54 -0
  601. package/dist/browser/layout.js +234 -0
  602. package/dist/browser/layout.js.map +1 -0
  603. package/dist/browser/locate.d.ts +50 -0
  604. package/dist/browser/locate.js +123 -0
  605. package/dist/browser/locate.js.map +1 -0
  606. package/dist/browser/lock.d.ts +15 -0
  607. package/dist/browser/lock.js +40 -0
  608. package/dist/browser/lock.js.map +1 -0
  609. package/dist/browser/network.d.ts +119 -0
  610. package/dist/browser/network.js +305 -0
  611. package/dist/browser/network.js.map +1 -0
  612. package/dist/browser/own.d.ts +18 -0
  613. package/dist/browser/own.js +81 -0
  614. package/dist/browser/own.js.map +1 -0
  615. package/dist/browser/page-state.d.ts +15 -0
  616. package/dist/browser/page-state.js +39 -0
  617. package/dist/browser/page-state.js.map +1 -0
  618. package/dist/browser/park.d.ts +38 -0
  619. package/dist/browser/park.js +80 -0
  620. package/dist/browser/park.js.map +1 -0
  621. package/dist/browser/pick.d.ts +19 -0
  622. package/dist/browser/pick.js +42 -0
  623. package/dist/browser/pick.js.map +1 -0
  624. package/dist/browser/profile-wait.d.ts +52 -0
  625. package/dist/browser/profile-wait.js +141 -0
  626. package/dist/browser/profile-wait.js.map +1 -0
  627. package/dist/browser/reap.d.ts +38 -0
  628. package/dist/browser/reap.js +101 -0
  629. package/dist/browser/reap.js.map +1 -0
  630. package/dist/browser/records.d.ts +38 -0
  631. package/dist/browser/records.js +112 -0
  632. package/dist/browser/records.js.map +1 -0
  633. package/dist/browser/render.d.ts +25 -0
  634. package/dist/browser/render.js +63 -0
  635. package/dist/browser/render.js.map +1 -0
  636. package/dist/browser/repair.d.ts +67 -0
  637. package/dist/browser/repair.js +165 -0
  638. package/dist/browser/repair.js.map +1 -0
  639. package/dist/browser/resume.d.ts +28 -0
  640. package/dist/browser/resume.js +77 -0
  641. package/dist/browser/resume.js.map +1 -0
  642. package/dist/browser/run-files.d.ts +30 -0
  643. package/dist/browser/run-files.js +136 -0
  644. package/dist/browser/run-files.js.map +1 -0
  645. package/dist/browser/screens.d.ts +143 -0
  646. package/dist/browser/screens.js +361 -0
  647. package/dist/browser/screens.js.map +1 -0
  648. package/dist/browser/scroll-collect.d.ts +32 -0
  649. package/dist/browser/scroll-collect.js +36 -0
  650. package/dist/browser/scroll-collect.js.map +1 -0
  651. package/dist/browser/secrets.d.ts +7 -0
  652. package/dist/browser/secrets.js +27 -0
  653. package/dist/browser/secrets.js.map +1 -0
  654. package/dist/browser/session.d.ts +136 -0
  655. package/dist/browser/session.js +294 -0
  656. package/dist/browser/session.js.map +1 -0
  657. package/dist/browser/trace-secrets.d.ts +20 -0
  658. package/dist/browser/trace-secrets.js +251 -0
  659. package/dist/browser/trace-secrets.js.map +1 -0
  660. package/dist/browser/watch.d.ts +40 -0
  661. package/dist/browser/watch.js +134 -0
  662. package/dist/browser/watch.js.map +1 -0
  663. package/dist/browser/watchers.d.ts +103 -0
  664. package/dist/browser/watchers.js +336 -0
  665. package/dist/browser/watchers.js.map +1 -0
  666. package/dist/browser/webauthn.d.ts +37 -0
  667. package/dist/browser/webauthn.js +74 -0
  668. package/dist/browser/webauthn.js.map +1 -0
  669. package/dist/calls/obs.d.ts +48 -0
  670. package/dist/calls/obs.js +202 -0
  671. package/dist/calls/obs.js.map +1 -0
  672. package/dist/calls/recorder.d.ts +110 -0
  673. package/dist/calls/recorder.js +289 -0
  674. package/dist/calls/recorder.js.map +1 -0
  675. package/dist/calls/service.d.ts +17 -0
  676. package/dist/calls/service.js +65 -0
  677. package/dist/calls/service.js.map +1 -0
  678. package/dist/calls/setup.d.ts +25 -0
  679. package/dist/calls/setup.js +45 -0
  680. package/dist/calls/setup.js.map +1 -0
  681. package/dist/calls/windows.d.ts +2 -0
  682. package/dist/calls/windows.js +17 -0
  683. package/dist/calls/windows.js.map +1 -0
  684. package/dist/channels/commands.d.ts +22 -0
  685. package/dist/channels/commands.js +43 -0
  686. package/dist/channels/commands.js.map +1 -0
  687. package/dist/channels/email.d.ts +8 -0
  688. package/dist/channels/email.js +16 -0
  689. package/dist/channels/email.js.map +1 -0
  690. package/dist/channels/forward.d.ts +20 -0
  691. package/dist/channels/forward.js +82 -0
  692. package/dist/channels/forward.js.map +1 -0
  693. package/dist/channels/index.d.ts +9 -0
  694. package/dist/channels/index.js +10 -0
  695. package/dist/channels/index.js.map +1 -0
  696. package/dist/channels/linq.d.ts +7 -0
  697. package/dist/channels/linq.js +14 -0
  698. package/dist/channels/linq.js.map +1 -0
  699. package/dist/channels/memory.d.ts +8 -0
  700. package/dist/channels/memory.js +15 -0
  701. package/dist/channels/memory.js.map +1 -0
  702. package/dist/channels/phone.d.ts +4 -0
  703. package/dist/channels/phone.js +17 -0
  704. package/dist/channels/phone.js.map +1 -0
  705. package/dist/channels/render.d.ts +9 -0
  706. package/dist/channels/render.js +26 -0
  707. package/dist/channels/render.js.map +1 -0
  708. package/dist/channels/types.d.ts +18 -0
  709. package/dist/channels/types.js +13 -0
  710. package/dist/channels/types.js.map +1 -0
  711. package/dist/channels/webhook.d.ts +9 -0
  712. package/dist/channels/webhook.js +14 -0
  713. package/dist/channels/webhook.js.map +1 -0
  714. package/dist/chores/aws-login.d.ts +26 -0
  715. package/dist/chores/aws-login.js +80 -0
  716. package/dist/chores/aws-login.js.map +1 -0
  717. package/dist/chores/cli-tail.d.ts +2 -0
  718. package/dist/chores/cli-tail.js +12 -0
  719. package/dist/chores/cli-tail.js.map +1 -0
  720. package/dist/chores/gcloud-login.d.ts +24 -0
  721. package/dist/chores/gcloud-login.js +63 -0
  722. package/dist/chores/gcloud-login.js.map +1 -0
  723. package/dist/chores/langfuse.d.ts +65 -0
  724. package/dist/chores/langfuse.js +80 -0
  725. package/dist/chores/langfuse.js.map +1 -0
  726. package/dist/chores/unsubscribe.d.ts +90 -0
  727. package/dist/chores/unsubscribe.js +186 -0
  728. package/dist/chores/unsubscribe.js.map +1 -0
  729. package/dist/chores/wrangler-login.d.ts +23 -0
  730. package/dist/chores/wrangler-login.js +70 -0
  731. package/dist/chores/wrangler-login.js.map +1 -0
  732. package/dist/claude/service.d.ts +28 -0
  733. package/dist/claude/service.js +110 -0
  734. package/dist/claude/service.js.map +1 -0
  735. package/dist/clients/aws-domain.d.ts +36 -0
  736. package/dist/clients/aws-domain.js +225 -0
  737. package/dist/clients/aws-domain.js.map +1 -0
  738. package/dist/clients/cloudflare.d.ts +80 -0
  739. package/dist/clients/cloudflare.js +183 -0
  740. package/dist/clients/cloudflare.js.map +1 -0
  741. package/dist/clients/dynadot.d.ts +53 -0
  742. package/dist/clients/dynadot.js +146 -0
  743. package/dist/clients/dynadot.js.map +1 -0
  744. package/dist/clients/google-admin.d.ts +55 -0
  745. package/dist/clients/google-admin.js +104 -0
  746. package/dist/clients/google-admin.js.map +1 -0
  747. package/dist/clients/http.d.ts +69 -0
  748. package/dist/clients/http.js +165 -0
  749. package/dist/clients/http.js.map +1 -0
  750. package/dist/clients/inbox-insiders.d.ts +74 -0
  751. package/dist/clients/inbox-insiders.js +66 -0
  752. package/dist/clients/inbox-insiders.js.map +1 -0
  753. package/dist/clients/instantly.d.ts +65 -0
  754. package/dist/clients/instantly.js +91 -0
  755. package/dist/clients/instantly.js.map +1 -0
  756. package/dist/clients/linq.d.ts +59 -0
  757. package/dist/clients/linq.js +108 -0
  758. package/dist/clients/linq.js.map +1 -0
  759. package/dist/clients/roster.d.ts +22 -0
  760. package/dist/clients/roster.js +61 -0
  761. package/dist/clients/roster.js.map +1 -0
  762. package/dist/clients/twilio.d.ts +12 -0
  763. package/dist/clients/twilio.js +25 -0
  764. package/dist/clients/twilio.js.map +1 -0
  765. package/dist/clients/wren.d.ts +23 -0
  766. package/dist/clients/wren.js +56 -0
  767. package/dist/clients/wren.js.map +1 -0
  768. package/dist/compiler/check.d.ts +8 -0
  769. package/dist/compiler/check.js +64 -0
  770. package/dist/compiler/check.js.map +1 -0
  771. package/dist/compiler/finish.d.ts +52 -0
  772. package/dist/compiler/finish.js +182 -0
  773. package/dist/compiler/finish.js.map +1 -0
  774. package/dist/compiler/index.d.ts +35 -0
  775. package/dist/compiler/index.js +82 -0
  776. package/dist/compiler/index.js.map +1 -0
  777. package/dist/compiler/lint.d.ts +28 -0
  778. package/dist/compiler/lint.js +105 -0
  779. package/dist/compiler/lint.js.map +1 -0
  780. package/dist/compiler/outline.d.ts +749 -0
  781. package/dist/compiler/outline.js +189 -0
  782. package/dist/compiler/outline.js.map +1 -0
  783. package/dist/compiler/patch.d.ts +34 -0
  784. package/dist/compiler/patch.js +159 -0
  785. package/dist/compiler/patch.js.map +1 -0
  786. package/dist/compiler/polish.d.ts +16 -0
  787. package/dist/compiler/polish.js +101 -0
  788. package/dist/compiler/polish.js.map +1 -0
  789. package/dist/compiler/render.d.ts +21 -0
  790. package/dist/compiler/render.js +373 -0
  791. package/dist/compiler/render.js.map +1 -0
  792. package/dist/compiler/structure.d.ts +44 -0
  793. package/dist/compiler/structure.js +509 -0
  794. package/dist/compiler/structure.js.map +1 -0
  795. package/dist/deps/keys.d.ts +22 -0
  796. package/dist/deps/keys.js +9 -0
  797. package/dist/deps/keys.js.map +1 -0
  798. package/dist/deps/shell.d.ts +18 -0
  799. package/dist/deps/shell.js +44 -0
  800. package/dist/deps/shell.js.map +1 -0
  801. package/dist/deps/sink.d.ts +16 -0
  802. package/dist/deps/sink.js +27 -0
  803. package/dist/deps/sink.js.map +1 -0
  804. package/dist/deps/stats.d.ts +9 -0
  805. package/dist/deps/stats.js +30 -0
  806. package/dist/deps/stats.js.map +1 -0
  807. package/dist/desktop/describe.d.ts +4 -0
  808. package/dist/desktop/describe.js +24 -0
  809. package/dist/desktop/describe.js.map +1 -0
  810. package/dist/desktop/mac.d.ts +33 -0
  811. package/dist/desktop/mac.js +238 -0
  812. package/dist/desktop/mac.js.map +1 -0
  813. package/dist/desktop/types.d.ts +85 -0
  814. package/dist/desktop/types.js +92 -0
  815. package/dist/desktop/types.js.map +1 -0
  816. package/dist/devices/phone.d.ts +33 -0
  817. package/dist/devices/phone.js +130 -0
  818. package/dist/devices/phone.js.map +1 -0
  819. package/dist/do/catalog.d.ts +55 -0
  820. package/dist/do/catalog.js +79 -0
  821. package/dist/do/catalog.js.map +1 -0
  822. package/dist/do/doer.d.ts +79 -0
  823. package/dist/do/doer.js +187 -0
  824. package/dist/do/doer.js.map +1 -0
  825. package/dist/do/index.d.ts +8 -0
  826. package/dist/do/index.js +9 -0
  827. package/dist/do/index.js.map +1 -0
  828. package/dist/do/memory.d.ts +13 -0
  829. package/dist/do/memory.js +44 -0
  830. package/dist/do/memory.js.map +1 -0
  831. package/dist/do/pick.d.ts +23 -0
  832. package/dist/do/pick.js +58 -0
  833. package/dist/do/pick.js.map +1 -0
  834. package/dist/do/service.d.ts +13 -0
  835. package/dist/do/service.js +48 -0
  836. package/dist/do/service.js.map +1 -0
  837. package/dist/do/tools.d.ts +43 -0
  838. package/dist/do/tools.js +113 -0
  839. package/dist/do/tools.js.map +1 -0
  840. package/dist/do/wire.d.ts +64 -0
  841. package/dist/do/wire.js +98 -0
  842. package/dist/do/wire.js.map +1 -0
  843. package/dist/engine/browser-service.d.ts +36 -0
  844. package/dist/engine/browser-service.js +223 -0
  845. package/dist/engine/browser-service.js.map +1 -0
  846. package/dist/engine/effects.d.ts +52 -0
  847. package/dist/engine/effects.js +24 -0
  848. package/dist/engine/effects.js.map +1 -0
  849. package/dist/engine/events.d.ts +55 -0
  850. package/dist/engine/events.js +2 -0
  851. package/dist/engine/events.js.map +1 -0
  852. package/dist/engine/feed.d.ts +25 -0
  853. package/dist/engine/feed.js +54 -0
  854. package/dist/engine/feed.js.map +1 -0
  855. package/dist/engine/guards.d.ts +14 -0
  856. package/dist/engine/guards.js +31 -0
  857. package/dist/engine/guards.js.map +1 -0
  858. package/dist/engine/inputs.d.ts +31 -0
  859. package/dist/engine/inputs.js +117 -0
  860. package/dist/engine/inputs.js.map +1 -0
  861. package/dist/engine/memory.d.ts +12 -0
  862. package/dist/engine/memory.js +26 -0
  863. package/dist/engine/memory.js.map +1 -0
  864. package/dist/engine/object.d.ts +80 -0
  865. package/dist/engine/object.js +311 -0
  866. package/dist/engine/object.js.map +1 -0
  867. package/dist/engine/registry.d.ts +29 -0
  868. package/dist/engine/registry.js +36 -0
  869. package/dist/engine/registry.js.map +1 -0
  870. package/dist/engine/rows.d.ts +59 -0
  871. package/dist/engine/rows.js +137 -0
  872. package/dist/engine/rows.js.map +1 -0
  873. package/dist/engine/run.d.ts +80 -0
  874. package/dist/engine/run.js +179 -0
  875. package/dist/engine/run.js.map +1 -0
  876. package/dist/engine/workflow.d.ts +74 -0
  877. package/dist/engine/workflow.js +21 -0
  878. package/dist/engine/workflow.js.map +1 -0
  879. package/dist/explore/commands.d.ts +432 -0
  880. package/dist/explore/commands.js +260 -0
  881. package/dist/explore/commands.js.map +1 -0
  882. package/dist/explore/journal.d.ts +9 -0
  883. package/dist/explore/journal.js +26 -0
  884. package/dist/explore/journal.js.map +1 -0
  885. package/dist/explore/lease.d.ts +9 -0
  886. package/dist/explore/lease.js +10 -0
  887. package/dist/explore/lease.js.map +1 -0
  888. package/dist/explore/marks.d.ts +32 -0
  889. package/dist/explore/marks.js +146 -0
  890. package/dist/explore/marks.js.map +1 -0
  891. package/dist/explore/server.d.ts +196 -0
  892. package/dist/explore/server.js +1542 -0
  893. package/dist/explore/server.js.map +1 -0
  894. package/dist/files/index.d.ts +6 -0
  895. package/dist/files/index.js +7 -0
  896. package/dist/files/index.js.map +1 -0
  897. package/dist/files/migrate.d.ts +22 -0
  898. package/dist/files/migrate.js +88 -0
  899. package/dist/files/migrate.js.map +1 -0
  900. package/dist/files/store.d.ts +150 -0
  901. package/dist/files/store.js +407 -0
  902. package/dist/files/store.js.map +1 -0
  903. package/dist/files/text.d.ts +9 -0
  904. package/dist/files/text.js +28 -0
  905. package/dist/files/text.js.map +1 -0
  906. package/dist/film/director.d.ts +15 -0
  907. package/dist/film/director.js +198 -0
  908. package/dist/film/director.js.map +1 -0
  909. package/dist/film/tape.d.ts +35 -0
  910. package/dist/film/tape.js +36 -0
  911. package/dist/film/tape.js.map +1 -0
  912. package/dist/gates/ask.d.ts +21 -0
  913. package/dist/gates/ask.js +33 -0
  914. package/dist/gates/ask.js.map +1 -0
  915. package/dist/gates/payment.d.ts +94 -0
  916. package/dist/gates/payment.js +202 -0
  917. package/dist/gates/payment.js.map +1 -0
  918. package/dist/gates/spend.d.ts +88 -0
  919. package/dist/gates/spend.js +153 -0
  920. package/dist/gates/spend.js.map +1 -0
  921. package/dist/google/auth.d.ts +90 -0
  922. package/dist/google/auth.js +209 -0
  923. package/dist/google/auth.js.map +1 -0
  924. package/dist/google/gmail.d.ts +150 -0
  925. package/dist/google/gmail.js +361 -0
  926. package/dist/google/gmail.js.map +1 -0
  927. package/dist/google/index.d.ts +7 -0
  928. package/dist/google/index.js +8 -0
  929. package/dist/google/index.js.map +1 -0
  930. package/dist/index.d.ts +49 -0
  931. package/dist/index.js +47 -0
  932. package/dist/index.js.map +1 -0
  933. package/dist/llm/anthropic.d.ts +17 -0
  934. package/dist/llm/anthropic.js +49 -0
  935. package/dist/llm/anthropic.js.map +1 -0
  936. package/dist/llm/budget.d.ts +31 -0
  937. package/dist/llm/budget.js +91 -0
  938. package/dist/llm/budget.js.map +1 -0
  939. package/dist/llm/claude-code.d.ts +20 -0
  940. package/dist/llm/claude-code.js +110 -0
  941. package/dist/llm/claude-code.js.map +1 -0
  942. package/dist/llm/cohere.d.ts +19 -0
  943. package/dist/llm/cohere.js +55 -0
  944. package/dist/llm/cohere.js.map +1 -0
  945. package/dist/llm/fake.d.ts +9 -0
  946. package/dist/llm/fake.js +17 -0
  947. package/dist/llm/fake.js.map +1 -0
  948. package/dist/llm/index.d.ts +26 -0
  949. package/dist/llm/index.js +49 -0
  950. package/dist/llm/index.js.map +1 -0
  951. package/dist/llm/ledger.d.ts +58 -0
  952. package/dist/llm/ledger.js +129 -0
  953. package/dist/llm/ledger.js.map +1 -0
  954. package/dist/llm/openai.d.ts +9 -0
  955. package/dist/llm/openai.js +60 -0
  956. package/dist/llm/openai.js.map +1 -0
  957. package/dist/llm/trace.d.ts +51 -0
  958. package/dist/llm/trace.js +179 -0
  959. package/dist/llm/trace.js.map +1 -0
  960. package/dist/llm/types.d.ts +55 -0
  961. package/dist/llm/types.js +55 -0
  962. package/dist/llm/types.js.map +1 -0
  963. package/dist/mail/imap.d.ts +34 -0
  964. package/dist/mail/imap.js +129 -0
  965. package/dist/mail/imap.js.map +1 -0
  966. package/dist/mail/index.d.ts +9 -0
  967. package/dist/mail/index.js +10 -0
  968. package/dist/mail/index.js.map +1 -0
  969. package/dist/mail/instantly.d.ts +54 -0
  970. package/dist/mail/instantly.js +103 -0
  971. package/dist/mail/instantly.js.map +1 -0
  972. package/dist/mail/session.d.ts +20 -0
  973. package/dist/mail/session.js +49 -0
  974. package/dist/mail/session.js.map +1 -0
  975. package/dist/mail/types.d.ts +22 -0
  976. package/dist/mail/types.js +25 -0
  977. package/dist/mail/types.js.map +1 -0
  978. package/dist/memory/backboard.d.ts +14 -0
  979. package/dist/memory/backboard.js +63 -0
  980. package/dist/memory/backboard.js.map +1 -0
  981. package/dist/memory/index.d.ts +2 -0
  982. package/dist/memory/index.js +3 -0
  983. package/dist/memory/index.js.map +1 -0
  984. package/dist/memory/types.d.ts +24 -0
  985. package/dist/memory/types.js +29 -0
  986. package/dist/memory/types.js.map +1 -0
  987. package/dist/mods/install.d.ts +87 -0
  988. package/dist/mods/install.js +346 -0
  989. package/dist/mods/install.js.map +1 -0
  990. package/dist/mods/login.d.ts +199 -0
  991. package/dist/mods/login.js +149 -0
  992. package/dist/mods/login.js.map +1 -0
  993. package/dist/mods/mod.d.ts +148 -0
  994. package/dist/mods/mod.js +215 -0
  995. package/dist/mods/mod.js.map +1 -0
  996. package/dist/mods/pack.d.ts +42 -0
  997. package/dist/mods/pack.js +353 -0
  998. package/dist/mods/pack.js.map +1 -0
  999. package/dist/money/bank-code.d.ts +34 -0
  1000. package/dist/money/bank-code.js +59 -0
  1001. package/dist/money/bank-code.js.map +1 -0
  1002. package/dist/money/charges.d.ts +94 -0
  1003. package/dist/money/charges.js +120 -0
  1004. package/dist/money/charges.js.map +1 -0
  1005. package/dist/money/profile.d.ts +80 -0
  1006. package/dist/money/profile.js +231 -0
  1007. package/dist/money/profile.js.map +1 -0
  1008. package/dist/money/wallet.d.ts +177 -0
  1009. package/dist/money/wallet.js +388 -0
  1010. package/dist/money/wallet.js.map +1 -0
  1011. package/dist/oauth/apps.d.ts +37 -0
  1012. package/dist/oauth/apps.js +39 -0
  1013. package/dist/oauth/apps.js.map +1 -0
  1014. package/dist/oauth/core.d.ts +28 -0
  1015. package/dist/oauth/core.js +81 -0
  1016. package/dist/oauth/core.js.map +1 -0
  1017. package/dist/oauth/index.d.ts +15 -0
  1018. package/dist/oauth/index.js +16 -0
  1019. package/dist/oauth/index.js.map +1 -0
  1020. package/dist/oauth/mail.d.ts +77 -0
  1021. package/dist/oauth/mail.js +126 -0
  1022. package/dist/oauth/mail.js.map +1 -0
  1023. package/dist/oauth/platform.d.ts +94 -0
  1024. package/dist/oauth/platform.js +229 -0
  1025. package/dist/oauth/platform.js.map +1 -0
  1026. package/dist/oauth/providers.d.ts +37 -0
  1027. package/dist/oauth/providers.js +112 -0
  1028. package/dist/oauth/providers.js.map +1 -0
  1029. package/dist/owner.d.ts +43 -0
  1030. package/dist/owner.js +55 -0
  1031. package/dist/owner.js.map +1 -0
  1032. package/dist/reach/html.d.ts +12 -0
  1033. package/dist/reach/html.js +59 -0
  1034. package/dist/reach/html.js.map +1 -0
  1035. package/dist/reach/key-ring.d.ts +94 -0
  1036. package/dist/reach/key-ring.js +202 -0
  1037. package/dist/reach/key-ring.js.map +1 -0
  1038. package/dist/reach/key-source.d.ts +61 -0
  1039. package/dist/reach/key-source.js +150 -0
  1040. package/dist/reach/key-source.js.map +1 -0
  1041. package/dist/reach/ladder.d.ts +113 -0
  1042. package/dist/reach/ladder.js +257 -0
  1043. package/dist/reach/ladder.js.map +1 -0
  1044. package/dist/reach/linkedin-leads.d.ts +38 -0
  1045. package/dist/reach/linkedin-leads.js +89 -0
  1046. package/dist/reach/linkedin-leads.js.map +1 -0
  1047. package/dist/reach/maps.d.ts +35 -0
  1048. package/dist/reach/maps.js +120 -0
  1049. package/dist/reach/maps.js.map +1 -0
  1050. package/dist/reach/web.d.ts +255 -0
  1051. package/dist/reach/web.js +595 -0
  1052. package/dist/reach/web.js.map +1 -0
  1053. package/dist/recorder/browser.d.ts +55 -0
  1054. package/dist/recorder/browser.js +129 -0
  1055. package/dist/recorder/browser.js.map +1 -0
  1056. package/dist/recorder/index.d.ts +17 -0
  1057. package/dist/recorder/index.js +66 -0
  1058. package/dist/recorder/index.js.map +1 -0
  1059. package/dist/recorder/observer.d.ts +20 -0
  1060. package/dist/recorder/observer.js +110 -0
  1061. package/dist/recorder/observer.js.map +1 -0
  1062. package/dist/recorder/redact.d.ts +27 -0
  1063. package/dist/recorder/redact.js +125 -0
  1064. package/dist/recorder/redact.js.map +1 -0
  1065. package/dist/recorder/store.d.ts +12 -0
  1066. package/dist/recorder/store.js +65 -0
  1067. package/dist/recorder/store.js.map +1 -0
  1068. package/dist/recorder/terminal.d.ts +11 -0
  1069. package/dist/recorder/terminal.js +45 -0
  1070. package/dist/recorder/terminal.js.map +1 -0
  1071. package/dist/recorder/types.d.ts +148 -0
  1072. package/dist/recorder/types.js +12 -0
  1073. package/dist/recorder/types.js.map +1 -0
  1074. package/dist/runs/calls.d.ts +34 -0
  1075. package/dist/runs/calls.js +69 -0
  1076. package/dist/runs/calls.js.map +1 -0
  1077. package/dist/runs/flows.d.ts +68 -0
  1078. package/dist/runs/flows.js +125 -0
  1079. package/dist/runs/flows.js.map +1 -0
  1080. package/dist/runs/import.d.ts +39 -0
  1081. package/dist/runs/import.js +87 -0
  1082. package/dist/runs/import.js.map +1 -0
  1083. package/dist/runs/log.d.ts +129 -0
  1084. package/dist/runs/log.js +222 -0
  1085. package/dist/runs/log.js.map +1 -0
  1086. package/dist/runs/success.d.ts +144 -0
  1087. package/dist/runs/success.js +287 -0
  1088. package/dist/runs/success.js.map +1 -0
  1089. package/dist/runs/tokens.d.ts +88 -0
  1090. package/dist/runs/tokens.js +175 -0
  1091. package/dist/runs/tokens.js.map +1 -0
  1092. package/dist/share/fetch.d.ts +1 -0
  1093. package/dist/share/fetch.js +46 -0
  1094. package/dist/share/fetch.js.map +1 -0
  1095. package/dist/share/gate.d.ts +84 -0
  1096. package/dist/share/gate.js +359 -0
  1097. package/dist/share/gate.js.map +1 -0
  1098. package/dist/share/presidio.d.ts +56 -0
  1099. package/dist/share/presidio.js +283 -0
  1100. package/dist/share/presidio.js.map +1 -0
  1101. package/dist/share/scrub.d.ts +32 -0
  1102. package/dist/share/scrub.js +315 -0
  1103. package/dist/share/scrub.js.map +1 -0
  1104. package/dist/share/share.d.ts +80 -0
  1105. package/dist/share/share.js +259 -0
  1106. package/dist/share/share.js.map +1 -0
  1107. package/dist/shots/s3.d.ts +30 -0
  1108. package/dist/shots/s3.js +128 -0
  1109. package/dist/shots/s3.js.map +1 -0
  1110. package/dist/shots/ship.d.ts +39 -0
  1111. package/dist/shots/ship.js +119 -0
  1112. package/dist/shots/ship.js.map +1 -0
  1113. package/dist/shots/trace-scrub.d.ts +28 -0
  1114. package/dist/shots/trace-scrub.js +79 -0
  1115. package/dist/shots/trace-scrub.js.map +1 -0
  1116. package/dist/shots/traces.d.ts +57 -0
  1117. package/dist/shots/traces.js +144 -0
  1118. package/dist/shots/traces.js.map +1 -0
  1119. package/dist/sites/calcom.d.ts +5 -0
  1120. package/dist/sites/calcom.js +155 -0
  1121. package/dist/sites/calcom.js.map +1 -0
  1122. package/dist/sites/caps.d.ts +55 -0
  1123. package/dist/sites/caps.js +139 -0
  1124. package/dist/sites/caps.js.map +1 -0
  1125. package/dist/sites/connectors.d.ts +33 -0
  1126. package/dist/sites/connectors.js +52 -0
  1127. package/dist/sites/connectors.js.map +1 -0
  1128. package/dist/sites/discord.d.ts +57 -0
  1129. package/dist/sites/discord.js +462 -0
  1130. package/dist/sites/discord.js.map +1 -0
  1131. package/dist/sites/drive.d.ts +4 -0
  1132. package/dist/sites/drive.js +126 -0
  1133. package/dist/sites/drive.js.map +1 -0
  1134. package/dist/sites/facade.d.ts +225 -0
  1135. package/dist/sites/facade.js +707 -0
  1136. package/dist/sites/facade.js.map +1 -0
  1137. package/dist/sites/fb-public.d.ts +18 -0
  1138. package/dist/sites/fb-public.js +110 -0
  1139. package/dist/sites/fb-public.js.map +1 -0
  1140. package/dist/sites/gmail.d.ts +9 -0
  1141. package/dist/sites/gmail.js +185 -0
  1142. package/dist/sites/gmail.js.map +1 -0
  1143. package/dist/sites/index.d.ts +30 -0
  1144. package/dist/sites/index.js +72 -0
  1145. package/dist/sites/index.js.map +1 -0
  1146. package/dist/sites/instagram.d.ts +12 -0
  1147. package/dist/sites/instagram.js +444 -0
  1148. package/dist/sites/instagram.js.map +1 -0
  1149. package/dist/sites/keys.d.ts +81 -0
  1150. package/dist/sites/keys.js +78 -0
  1151. package/dist/sites/keys.js.map +1 -0
  1152. package/dist/sites/langfuse.d.ts +3 -0
  1153. package/dist/sites/langfuse.js +74 -0
  1154. package/dist/sites/langfuse.js.map +1 -0
  1155. package/dist/sites/linkedin.d.ts +67 -0
  1156. package/dist/sites/linkedin.js +843 -0
  1157. package/dist/sites/linkedin.js.map +1 -0
  1158. package/dist/sites/loom.d.ts +3 -0
  1159. package/dist/sites/loom.js +69 -0
  1160. package/dist/sites/loom.js.map +1 -0
  1161. package/dist/sites/meta.d.ts +6 -0
  1162. package/dist/sites/meta.js +986 -0
  1163. package/dist/sites/meta.js.map +1 -0
  1164. package/dist/sites/npm.d.ts +24 -0
  1165. package/dist/sites/npm.js +105 -0
  1166. package/dist/sites/npm.js.map +1 -0
  1167. package/dist/sites/oauth.d.ts +110 -0
  1168. package/dist/sites/oauth.js +353 -0
  1169. package/dist/sites/oauth.js.map +1 -0
  1170. package/dist/sites/outlook.d.ts +5 -0
  1171. package/dist/sites/outlook.js +221 -0
  1172. package/dist/sites/outlook.js.map +1 -0
  1173. package/dist/sites/perplexity.d.ts +51 -0
  1174. package/dist/sites/perplexity.js +83 -0
  1175. package/dist/sites/perplexity.js.map +1 -0
  1176. package/dist/sites/poll.d.ts +7 -0
  1177. package/dist/sites/poll.js +17 -0
  1178. package/dist/sites/poll.js.map +1 -0
  1179. package/dist/sites/proof.d.ts +1 -0
  1180. package/dist/sites/proof.js +25 -0
  1181. package/dist/sites/proof.js.map +1 -0
  1182. package/dist/sites/reddit.d.ts +9 -0
  1183. package/dist/sites/reddit.js +525 -0
  1184. package/dist/sites/reddit.js.map +1 -0
  1185. package/dist/sites/refused.d.ts +60 -0
  1186. package/dist/sites/refused.js +125 -0
  1187. package/dist/sites/refused.js.map +1 -0
  1188. package/dist/sites/renew.d.ts +66 -0
  1189. package/dist/sites/renew.js +128 -0
  1190. package/dist/sites/renew.js.map +1 -0
  1191. package/dist/sites/send-journal.d.ts +52 -0
  1192. package/dist/sites/send-journal.js +134 -0
  1193. package/dist/sites/send-journal.js.map +1 -0
  1194. package/dist/sites/service.d.ts +87 -0
  1195. package/dist/sites/service.js +630 -0
  1196. package/dist/sites/service.js.map +1 -0
  1197. package/dist/sites/threads.d.ts +7 -0
  1198. package/dist/sites/threads.js +232 -0
  1199. package/dist/sites/threads.js.map +1 -0
  1200. package/dist/sites/tiktok.d.ts +17 -0
  1201. package/dist/sites/tiktok.js +394 -0
  1202. package/dist/sites/tiktok.js.map +1 -0
  1203. package/dist/sites/types.d.ts +308 -0
  1204. package/dist/sites/types.js +30 -0
  1205. package/dist/sites/types.js.map +1 -0
  1206. package/dist/sites/upload-file.d.ts +10 -0
  1207. package/dist/sites/upload-file.js +49 -0
  1208. package/dist/sites/upload-file.js.map +1 -0
  1209. package/dist/sites/uploads.d.ts +9 -0
  1210. package/dist/sites/uploads.js +59 -0
  1211. package/dist/sites/uploads.js.map +1 -0
  1212. package/dist/sites/verdict.d.ts +120 -0
  1213. package/dist/sites/verdict.js +75 -0
  1214. package/dist/sites/verdict.js.map +1 -0
  1215. package/dist/sites/verify-kit.d.ts +27 -0
  1216. package/dist/sites/verify-kit.js +60 -0
  1217. package/dist/sites/verify-kit.js.map +1 -0
  1218. package/dist/sites/web.d.ts +2 -0
  1219. package/dist/sites/web.js +219 -0
  1220. package/dist/sites/web.js.map +1 -0
  1221. package/dist/sites/why.d.ts +18 -0
  1222. package/dist/sites/why.js +30 -0
  1223. package/dist/sites/why.js.map +1 -0
  1224. package/dist/sites/wire.d.ts +104 -0
  1225. package/dist/sites/wire.js +312 -0
  1226. package/dist/sites/wire.js.map +1 -0
  1227. package/dist/sites/x.d.ts +13 -0
  1228. package/dist/sites/x.js +400 -0
  1229. package/dist/sites/x.js.map +1 -0
  1230. package/dist/sites/youtube.d.ts +30 -0
  1231. package/dist/sites/youtube.js +811 -0
  1232. package/dist/sites/youtube.js.map +1 -0
  1233. package/dist/studio/service.d.ts +26 -0
  1234. package/dist/studio/service.js +100 -0
  1235. package/dist/studio/service.js.map +1 -0
  1236. package/dist/style.d.ts +21 -0
  1237. package/dist/style.js +34 -0
  1238. package/dist/style.js.map +1 -0
  1239. package/dist/types.d.ts +2 -0
  1240. package/dist/types.js +2 -0
  1241. package/dist/types.js.map +1 -0
  1242. package/dist/ui/affordances.d.ts +39 -0
  1243. package/dist/ui/affordances.js +60 -0
  1244. package/dist/ui/affordances.js.map +1 -0
  1245. package/dist/ui/api.d.ts +59 -0
  1246. package/dist/ui/api.js +973 -0
  1247. package/dist/ui/api.js.map +1 -0
  1248. package/dist/ui/auth.d.ts +35 -0
  1249. package/dist/ui/auth.js +113 -0
  1250. package/dist/ui/auth.js.map +1 -0
  1251. package/dist/ui/bus.d.ts +17 -0
  1252. package/dist/ui/bus.js +50 -0
  1253. package/dist/ui/bus.js.map +1 -0
  1254. package/dist/ui/http.d.ts +72 -0
  1255. package/dist/ui/http.js +100 -0
  1256. package/dist/ui/http.js.map +1 -0
  1257. package/dist/ui/jobs.d.ts +34 -0
  1258. package/dist/ui/jobs.js +84 -0
  1259. package/dist/ui/jobs.js.map +1 -0
  1260. package/dist/ui/server.d.ts +15 -0
  1261. package/dist/ui/server.js +27 -0
  1262. package/dist/ui/server.js.map +1 -0
  1263. package/dist/walks/build.d.ts +116 -0
  1264. package/dist/walks/build.js +640 -0
  1265. package/dist/walks/build.js.map +1 -0
  1266. package/dist/walks/cut.d.ts +1015 -0
  1267. package/dist/walks/cut.js +555 -0
  1268. package/dist/walks/cut.js.map +1 -0
  1269. package/dist/walks/flow.d.ts +61 -0
  1270. package/dist/walks/flow.js +430 -0
  1271. package/dist/walks/flow.js.map +1 -0
  1272. package/dist/walks/login.d.ts +27 -0
  1273. package/dist/walks/login.js +82 -0
  1274. package/dist/walks/login.js.map +1 -0
  1275. package/dist/walks/spec.d.ts +1019 -0
  1276. package/dist/walks/spec.js +413 -0
  1277. package/dist/walks/spec.js.map +1 -0
  1278. package/dist/walks/teach.d.ts +57 -0
  1279. package/dist/walks/teach.js +277 -0
  1280. package/dist/walks/teach.js.map +1 -0
  1281. package/dist/workflows/anthropic-console-api-key/index.d.ts +71 -0
  1282. package/dist/workflows/anthropic-console-api-key/index.js +208 -0
  1283. package/dist/workflows/anthropic-console-api-key/index.js.map +1 -0
  1284. package/dist/workflows/aws-port25-request/index.d.ts +47 -0
  1285. package/dist/workflows/aws-port25-request/index.js +77 -0
  1286. package/dist/workflows/aws-port25-request/index.js.map +1 -0
  1287. package/dist/workflows/bootstrap/index.d.ts +52 -0
  1288. package/dist/workflows/bootstrap/index.js +89 -0
  1289. package/dist/workflows/bootstrap/index.js.map +1 -0
  1290. package/dist/workflows/compiled-deps.d.ts +40 -0
  1291. package/dist/workflows/compiled-deps.js +38 -0
  1292. package/dist/workflows/compiled-deps.js.map +1 -0
  1293. package/dist/workflows/compiled.d.ts +57 -0
  1294. package/dist/workflows/compiled.js +110 -0
  1295. package/dist/workflows/compiled.js.map +1 -0
  1296. package/dist/workflows/domain/deps.d.ts +33 -0
  1297. package/dist/workflows/domain/deps.js +2 -0
  1298. package/dist/workflows/domain/deps.js.map +1 -0
  1299. package/dist/workflows/domain/ideas.d.ts +15 -0
  1300. package/dist/workflows/domain/ideas.js +41 -0
  1301. package/dist/workflows/domain/ideas.js.map +1 -0
  1302. package/dist/workflows/domain/index.d.ts +22 -0
  1303. package/dist/workflows/domain/index.js +39 -0
  1304. package/dist/workflows/domain/index.js.map +1 -0
  1305. package/dist/workflows/domain/plan.d.ts +31 -0
  1306. package/dist/workflows/domain/plan.js +56 -0
  1307. package/dist/workflows/domain/plan.js.map +1 -0
  1308. package/dist/workflows/domain/steps.d.ts +66 -0
  1309. package/dist/workflows/domain/steps.js +498 -0
  1310. package/dist/workflows/domain/steps.js.map +1 -0
  1311. package/dist/workflows/example-title/index.d.ts +20 -0
  1312. package/dist/workflows/example-title/index.js +37 -0
  1313. package/dist/workflows/example-title/index.js.map +1 -0
  1314. package/dist/workflows/google-cloud-oauth-client/index.d.ts +54 -0
  1315. package/dist/workflows/google-cloud-oauth-client/index.js +111 -0
  1316. package/dist/workflows/google-cloud-oauth-client/index.js.map +1 -0
  1317. package/dist/workflows/google-cloud-project/index.d.ts +29 -0
  1318. package/dist/workflows/google-cloud-project/index.js +47 -0
  1319. package/dist/workflows/google-cloud-project/index.js.map +1 -0
  1320. package/dist/workflows/google-name/index.d.ts +20 -0
  1321. package/dist/workflows/google-name/index.js +34 -0
  1322. package/dist/workflows/google-name/index.js.map +1 -0
  1323. package/dist/workflows/hn-search/index.d.ts +27 -0
  1324. package/dist/workflows/hn-search/index.js +77 -0
  1325. package/dist/workflows/hn-search/index.js.map +1 -0
  1326. package/dist/workflows/image.d.ts +18 -0
  1327. package/dist/workflows/image.js +50 -0
  1328. package/dist/workflows/image.js.map +1 -0
  1329. package/dist/workflows/inbox-activity/index.d.ts +58 -0
  1330. package/dist/workflows/inbox-activity/index.js +141 -0
  1331. package/dist/workflows/inbox-activity/index.js.map +1 -0
  1332. package/dist/workflows/inbox-fleet/index.d.ts +61 -0
  1333. package/dist/workflows/inbox-fleet/index.js +30 -0
  1334. package/dist/workflows/inbox-fleet/index.js.map +1 -0
  1335. package/dist/workflows/inbox-fleet/steps.d.ts +84 -0
  1336. package/dist/workflows/inbox-fleet/steps.js +418 -0
  1337. package/dist/workflows/inbox-fleet/steps.js.map +1 -0
  1338. package/dist/workflows/instagram-change-email/index.d.ts +34 -0
  1339. package/dist/workflows/instagram-change-email/index.js +110 -0
  1340. package/dist/workflows/instagram-change-email/index.js.map +1 -0
  1341. package/dist/workflows/instagram-profile-basics/index.d.ts +29 -0
  1342. package/dist/workflows/instagram-profile-basics/index.js +63 -0
  1343. package/dist/workflows/instagram-profile-basics/index.js.map +1 -0
  1344. package/dist/workflows/langfuse-project-keys/index.d.ts +26 -0
  1345. package/dist/workflows/langfuse-project-keys/index.js +44 -0
  1346. package/dist/workflows/langfuse-project-keys/index.js.map +1 -0
  1347. package/dist/workflows/learn-quiz-submit/index.d.ts +38 -0
  1348. package/dist/workflows/learn-quiz-submit/index.js +66 -0
  1349. package/dist/workflows/learn-quiz-submit/index.js.map +1 -0
  1350. package/dist/workflows/linkedin-page-admin/index.d.ts +84 -0
  1351. package/dist/workflows/linkedin-page-admin/index.js +288 -0
  1352. package/dist/workflows/linkedin-page-admin/index.js.map +1 -0
  1353. package/dist/workflows/linkedin-page-branding/index.d.ts +98 -0
  1354. package/dist/workflows/linkedin-page-branding/index.js +425 -0
  1355. package/dist/workflows/linkedin-page-branding/index.js.map +1 -0
  1356. package/dist/workflows/linkedin-profile-basics/index.d.ts +102 -0
  1357. package/dist/workflows/linkedin-profile-basics/index.js +314 -0
  1358. package/dist/workflows/linkedin-profile-basics/index.js.map +1 -0
  1359. package/dist/workflows/linkedin-profile-photo/index.d.ts +44 -0
  1360. package/dist/workflows/linkedin-profile-photo/index.js +163 -0
  1361. package/dist/workflows/linkedin-profile-photo/index.js.map +1 -0
  1362. package/dist/workflows/plans.d.ts +14 -0
  1363. package/dist/workflows/plans.js +50 -0
  1364. package/dist/workflows/plans.js.map +1 -0
  1365. package/dist/workflows/proof.d.ts +47 -0
  1366. package/dist/workflows/proof.js +68 -0
  1367. package/dist/workflows/proof.js.map +1 -0
  1368. package/dist/workflows/redirect/index.d.ts +31 -0
  1369. package/dist/workflows/redirect/index.js +81 -0
  1370. package/dist/workflows/redirect/index.js.map +1 -0
  1371. package/dist/workflows/roots.d.ts +19 -0
  1372. package/dist/workflows/roots.js +64 -0
  1373. package/dist/workflows/roots.js.map +1 -0
  1374. package/dist/workflows/sender-domain/index.d.ts +42 -0
  1375. package/dist/workflows/sender-domain/index.js +14 -0
  1376. package/dist/workflows/sender-domain/index.js.map +1 -0
  1377. package/dist/workflows/signup-instagram/index.d.ts +34 -0
  1378. package/dist/workflows/signup-instagram/index.js +80 -0
  1379. package/dist/workflows/signup-instagram/index.js.map +1 -0
  1380. package/dist/workflows/signup-reddit/index.d.ts +42 -0
  1381. package/dist/workflows/signup-reddit/index.js +126 -0
  1382. package/dist/workflows/signup-reddit/index.js.map +1 -0
  1383. package/dist/workflows/workspace-inbox/index.d.ts +62 -0
  1384. package/dist/workflows/workspace-inbox/index.js +141 -0
  1385. package/dist/workflows/workspace-inbox/index.js.map +1 -0
  1386. package/dist/workflows/workspace-skip-passwords/index.d.ts +34 -0
  1387. package/dist/workflows/workspace-skip-passwords/index.js +51 -0
  1388. package/dist/workflows/workspace-skip-passwords/index.js.map +1 -0
  1389. package/package.json +142 -4
package/README.md CHANGED
@@ -1,3 +1,992 @@
1
- # Temporary Holding Version
1
+ # autobrowse
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Many sites have no API, or hide the part you need behind a login. A
4
+ Playwright script breaks when the page moves a button. A browser agent
5
+ gets past that, but it is slow, costs model tokens on every run, and does
6
+ not do the same thing twice. Then come the sign-in walls: passwords, 2FA
7
+ codes by email or text, captchas.
8
+
9
+ autobrowse lets you explore a site once, by hand or with a model, and
10
+ compiles what worked into a plain Playwright flow. The flow replays with
11
+ no model. When a step breaks, the agent finishes it on the live page and
12
+ rewrites the step. Sign-ins use your stored credentials (sealed), make
13
+ TOTP codes itself and read one-time codes from your inbox or your phone.
14
+ Anything that spends money or sends in your name waits for your yes.
15
+
16
+ ## Tier 0 in five minutes
17
+
18
+ Needs Node 24+. No keys, no account.
19
+
20
+ ```sh
21
+ npm i @william_jin/autobrowse && npx playwright install chromium # in your project folder
22
+ npx autobrowse explore scratch --url https://example.com --background # one browser, waiting for commands
23
+ npx autobrowse cmd '{"cmd":"aria"}' # the page as controls
24
+ npx autobrowse cmd '{"cmd":"click","hints":{"role":"link","nth":0}}'
25
+ npx autobrowse cmd '{"cmd":"read","hints":{"role":"paragraph","nth":0},"as":"text"}'
26
+ npx autobrowse cmd '{"cmd":"save","name":"first-flow"}' # what worked becomes a recording
27
+ npx autobrowse cmd '{"cmd":"close"}'
28
+ npx autobrowse compile first-flow --no-llm # recording to code, no model
29
+ npx autobrowse try first-flow # run it
30
+ ```
31
+
32
+ The flow is in `~/.config/autobrowse/workflows/first-flow/`: TypeScript
33
+ you can read and change. `npx autobrowse abilities` lists every flow this
34
+ install can run.
35
+
36
+ ## Tiers
37
+
38
+ | Tier | Add | You get |
39
+ |------|-----|---------|
40
+ | 0 | nothing | explore, `compile --no-llm`, `try` on public pages |
41
+ | 1 | a Claude Code subscription or one API key; `autobrowse setup` | the agent, `do`, your signed-in sites, 2FA and codes |
42
+ | 2 | a local Restate (`brew install restatedev/tap/restate`) | `autobrowse worker`: durable runs that survive restarts, the UI on :9080 |
43
+
44
+ `autobrowse setup` asks which tier, then only what that tier needs.
45
+ Settings go to `.env` in the folder you run from; [`.env.example`](https://github.com/wrenautomation/autobrowse/blob/main/.env.example)
46
+ lists every key by tier. Tiers 0 to 2 never need AWS. The rest of this README
47
+ also covers the operator setup that runs Wren's fleet (owners, SSM, the
48
+ desk); `deploy/operator.env.example` holds its keys.
49
+
50
+ ## Library
51
+
52
+ `import … from "@william_jin/autobrowse/sites"` (also `/auth`, `/do`,
53
+ `/agent`, `/flows`, `/llm`, `/layout`). `/layout` is page text laid out as
54
+ it looks (`layoutText(page, limit)` on a Playwright page; `layout(boxes)`
55
+ is pure). A `v*` tag publishes (`.github/workflows/release.yml`, trusted
56
+ publishing). `walkthrough/` is the guided path with demos that run now.
57
+
58
+ ## One verb
59
+
60
+ ```sh
61
+ pnpm autobrowse do "upload this to youtube" --input file=talk.mp4 --input title="Talk"
62
+ pnpm autobrowse do "list my linkedin posts"
63
+ pnpm autobrowse do "rename my google account" --input name=Wren --site google --dry-run
64
+ pnpm autobrowse do "deploy this on cloudflare workers" --input dir=./worker
65
+ pnpm autobrowse abilities # what `do` can pick from, and what is not recorded yet
66
+ ```
67
+
68
+ `do` routes a goal to what does it: a site route under its official API
69
+ shape, a compiled workflow, a hand-written flow, a command-line tool
70
+ (`wrangler-deploy`, `wrangler-pages-deploy`, `gh-pr-create`, `ffmpeg-convert`;
71
+ ready when the binary is on the PATH, `src/do/tools.ts`). What the model picked for earlier goals
72
+ is kept (`recordings/.do-picks.json`) and shown to it, so the same ask in
73
+ other words lands on the same ability. With nothing ready, the
74
+ agent explores the site once; what it achieved is saved and compiled,
75
+ under the missing leg's name when a route was waiting on one, so the second
76
+ same ask runs deterministically. Gates hold inside every leg. The same verb
77
+ is `POST /api/do` (a job; `dryRun` answers at once), the Restate service
78
+ `do/run` for wren (`restateDo` in `@wren/core/content`). `src/do/`.
79
+
80
+ ## Hands off
81
+
82
+ Nothing waits for a person unless a guard says so. Login walls are solved
83
+ with stored credentials, TOTP generated in-process, and one-time codes
84
+ read from an inbox we control. Guards (`GUARDS`) are the situations a
85
+ person still approves: a purchase, a password reset, a locator miss on an
86
+ irreversible act. Each is on by default and can be switched off. A `send`
87
+ gate (a step that files, posts or sends something in your name; every
88
+ compiled irreversible step opens one) is always asked: `approve <workflow>
89
+ <key> send`. What stays human: hardware keys, adding a payment method,
90
+ a captcha the solver cannot read (`src/browser/captcha`: checkboxes by a
91
+ human click, squares, letters and sliders by the configured model when it
92
+ sees; `CAPTCHA_ATTEMPTS` tries, default 3, before it is yours).
93
+
94
+ **The bar for asking.** Try it first. `NEEDS-WILLIAM.md` and the `needs`
95
+ rows are only for what a machine cannot hold: your password or passkey,
96
+ your money, your taste, your name on a decision — or something autobrowse
97
+ tried and failed at repeatedly, with the failures written down. Anything
98
+ else, autobrowse does: a flow it has not recorded is a flow to record, a
99
+ site with no leg is a leg to build. "Someone should set this up" is never
100
+ a row; it is work.
101
+
102
+ ## How it works
103
+
104
+ - **Durable.** Every flow is a Restate Virtual Object. Each step is one
105
+ short invocation that sends itself the next, so the object is never
106
+ busy for longer than one step: `pause`, `reset`, `approve` always get in.
107
+ - **Gated.** A gate is state, not a parked invocation. The step that needs
108
+ an answer stops the run; `approve`/`reject` record the answer and send
109
+ the next step. Restate keeps the state for as long as it takes.
110
+ - **Hand-offs.** A browser flow that meets a login, captcha or consent
111
+ throws `NeedsHuman`. The runner saves a screenshot and a Playwright trace,
112
+ the run waits at gate `human`, the person does the thing in the
113
+ persistent profile and approves; the step reruns. The worker keeps the
114
+ browser open across the wait (`BROWSER_KEEP_MINUTES`, default 10; at most
115
+ `BROWSER_KEEP_MAX`, default 2), so the rerun starts on the same page.
116
+ - **Verified.** A browser step is proved by an API read afterwards (the
117
+ purchase by the Registrar API, DKIM by the record's shape, the user by
118
+ Directory). The trace is for the person; the API read is for the machine.
119
+ - **Read.** A flow can keep text as well as act: `read {ref, as}` in the
120
+ agent, `read` in explore mode, `fp.read(hints)` in a compiled step. The
121
+ values come back as the step's result, so a workflow scrapes the same
122
+ way it clicks, with no model at run time.
123
+ - **Recorded.** `autobrowse record <name>` opens a headed browser with an
124
+ observer: clicks, typing, navigations, each with a screenshot and
125
+ locator hints (role, label, text; never CSS). Typed secrets are redacted
126
+ at capture. `p` pauses (nothing captured), `q` finishes, any other line
127
+ is a note. `--terminal` records the shell leg after. Raw recordings
128
+ stay out of git.
129
+ - **Explored.** `autobrowse agent <site> "<goal>"` finds the way itself:
130
+ each step the model sees the URL and an outline of the page (`[n]B Save`
131
+ refs, containers kept, rows one line, repeats folded; ~1k chars for a
132
+ GitHub issues page), picks one act, the
133
+ code runs it and journals it. `done` or `human` ends it; the journal is
134
+ a recording, `compile` makes it a deterministic flow the worker serves
135
+ at once (one `Compiled` object keyed `<workflow>/<key>`, loaded from
136
+ disk per run, so no restart); `autobrowse try <name>` runs it in-process.
137
+ Explore by agent once, then run the flow forever. `pause`/`resume` over loopback lets a
138
+ person step in mid-run: while paused the browser is theirs and every
139
+ click and keystroke lands in the same journal; the agent re-reads the
140
+ page when it resumes. The UI's **Explore** page is the same thing with
141
+ a form, live steps and screenshots, pause/resume/stop, save, compile.
142
+ The journal is written as it grows: a session that dies (crash, restart)
143
+ resumes on its last page with every act, and a dead agent session's
144
+ resume goes on from its last step, not step 1. `--fresh` starts over.
145
+ - **Self-repairing.** Every flow failure writes `<stamp>.failure.json`
146
+ (site, URL, last goal, error). `autobrowse repair <that file>` starts
147
+ the agent on that page toward the flow's goal and records the way
148
+ through; compile it, splice it in. The loop: run → fail → explore →
149
+ compile → run.
150
+ - **Self-building.** The evaluator (`/api/agent/proposals`, Explore
151
+ page) reads flow failures, agent sessions and recordings and says which
152
+ recurring needs deserve a workflow, each as a site + goal one click from
153
+ an agent session; `EVALUATE_EVERY_HOURS=6` runs it on a clock and
154
+ messages the fresh ones. `AUTO_BUILD=true` goes the last step alone:
155
+ a fresh proposal seen twice or more is explored by the agent, saved,
156
+ compiled, proven (one run on its own, `proof.json` beside the flow, shown on
157
+ the Runs page), and you hear what got built or where it needs you.
158
+ `autobrowse try <name> --prove` or "prove" on the Runs page writes the
159
+ same proof by hand. `LLM_PROVIDER=claude-code` runs every model call through headless Claude
160
+ Code on your subscription, no API key (`designs/2026-09-21-claude-code-driver.md`);
161
+ `LLM_PROVIDER=cohere` (`COHERE_API_KEY`) goes through Cohere's own v2 door, which
162
+ is the only one that keeps a thinking model's answer apart from its reasoning.
163
+ Every model call counts against `LLM_DAILY_TOKENS`
164
+ (3M a day by default, one ledger for worker and CLI); over it, calls
165
+ fail loudly until UTC midnight, so an unattended night cannot run up a bill. The agent's `human` is a pause with a prompt: do the
166
+ captcha or the purchase in the window, resume, it goes on.
167
+ - **Accounts.** A site name may carry an account: `google@ops` is the
168
+ google walk with credential and browser profile `google@ops`. One
169
+ profile per identity, so two accounts never meet in a chooser.
170
+ - **Explored.** `autobrowse explore <site> [--url u]`: one hidden browser
171
+ stays open on the site and takes commands over loopback, one at a time
172
+ (`open`, `click`, `fill`, `aria`, `eval`, `pages`/`page` for an OAuth
173
+ popup, `save`, `close`). It closes itself after 30 idle minutes;
174
+ `--hold` turns that off for long human-in-the-loop work. `aria` dumps
175
+ the page's accessibility tree: every control by role and name, so a
176
+ whole form is mapped in one look instead of one miss per run. `marks`
177
+ is the fallback when no name finds a control: a screenshot with a
178
+ number on each control in view; `click {"hints":{"mark":n}}` acts on it
179
+ and journals that control's own hints. A miss answers with marks too. Every act
180
+ that works is journaled as a recording; `save` writes it, `compile`
181
+ takes it from there. Failing flows leave the same aria tree next to the
182
+ screenshot (`<stamp>.aria.txt`). Each session is also a run, kept for
183
+ good: `goal` names it, `done` ends it, and runs that reached the same
184
+ goal build a walk (`walks build`), a flow with no model in the loop.
185
+ `teach` makes one from a chore you do once by hand: what you typed
186
+ becomes a profile value, a secret, a date relative to the day, or a
187
+ field with your text as its default, and you confirm each guess.
188
+ - **Minted secrets.** `{"cmd":"keep","hints":…,"env":"X_API_KEY"}` reads
189
+ a key the site just showed straight into the secret sink (`.env` locally,
190
+ SSM in prod) under that name. The journal keeps the element and the env
191
+ name, never the value; a compiled `keep` op does the same through
192
+ `deps.sink`, outside the run's journal. The agent has `keep{ref,env}`.
193
+ - **Placed secrets.** `{"cmd":"place","hints":…,"secret":"password"}`
194
+ fills a field with a value the session holds by name and the socket
195
+ never carries: the agent has `place{ref,secret}` and is told which names
196
+ exist, never their values. `pnpm autobrowse signup instagram --email
197
+ hello@wrenautomation.com --name "Wren Automation" --handle wrenautomation
198
+ --headed` mints a 24-char password, stores the credential sealed under
199
+ `instagram` before the browser opens, and lets the agent make the account
200
+ placing `email`, `password`, `code` (read from that inbox or the phone)
201
+ and `phone`; a captcha the solver cannot read hands off to you in the window (enter to go on).
202
+ `--inbox will@…` reads the codes there when the address is an alias.
203
+ The journal keeps every placed field redacted, so the compiled flow reads
204
+ it as a secret by key.
205
+ `place{secret:"profile.taxId"}` fills a field from the Mac's wallet
206
+ profile (`name`, `email`, `phone`, an address field; `profile@<id>.…`
207
+ picks one). It is the person's own, not a site's login, so any host may
208
+ have it. A billing email, phone or tax id field is set to the card owner's
209
+ on its own when a card lands and before a spend click.
210
+ `autobrowse files` is one sealed store of files for forms. A `paper` is an
211
+ ID document; a `doc` is anything else, such as a resume, with its text read
212
+ once when you add it. `files add <name> <file>` stores one (`--id
213
+ drivers-licence --side front` marks a paper, `--note` says what a doc is);
214
+ `files ask <name>` prints a phone link that seals it in the phone's browser
215
+ so only this Mac opens it. `files set coop resume transcript` names a set,
216
+ and `explore … --files coop` starts with it at the ready.
217
+ `upload{files:["file:resume"]}` puts a file on a page from memory; a paper
218
+ needs one yes per file and host. `read_file{name}` gives a doc's text.
219
+ `files migrate` moves an old `papers` dir in once
220
+ (designs/2026-10-20-files.md).
221
+ - **Track.** `autotrack` (its own repo) records every input and screen on a
222
+ laptop and ships it to a private bucket (`TRACK_BUCKET`). `autobrowse autotrack
223
+ enroll <device>` makes that device a write-only key and prints its install
224
+ code and one-line install (`--revoke` ends it); `autotrack list` shows sessions
225
+ and their quality; `autotrack import <device>/<session>` turns one into a
226
+ recording of desktop acts for `compile`; `autotrack label` writes the offline
227
+ labels; `autotrack steps <device>/<session> [--min-quality n]` writes the RL
228
+ view, one line per act, with a quality report beside it (autotrack repo
229
+ designs/2026-10-13-autotrack.md).
230
+ - **Env store.** Secrets travel through SSM Parameter Store, one
231
+ SecureString per name under `/autobrowse/config` (KMS at rest, IAM at
232
+ the door, every read in CloudTrail; no extra vendor). `autobrowse env
233
+ push TWILIO_ACCOUNT_SID TWILIO_AUTH_TOKEN` sends local `.env` keys up;
234
+ `env push --from deploy/prod.env` sends a whole file; `env set NAME
235
+ --clipboard` stores a new one straight from the clipboard; the box reads the
236
+ store on every deploy. Back down on any machine with AWS access: `env
237
+ get NAME` puts one value on the clipboard for a minute (Universal
238
+ Clipboard carries it to a phone), `env pull` merges all of them into a
239
+ 0600 `.env`, `eval "$(autobrowse env pull --export)"` loads a shell.
240
+ `env ls` prints names only; nothing prints a value unless `--print`.
241
+ - **Claude Code.** The skill in `.claude/skills/autobrowse/` is a router
242
+ (`SKILL.md`: the job table, the standing rules, live state) and one file
243
+ per job: research, leads, site APIs, explore, signup, accounts. The
244
+ explore session is `scripts/start.sh <site> [url]`, then
245
+ `scripts/cmd.sh <port> '{"cmd":…}'`, `save`, `stop.sh`. It costs context
246
+ only when invoked; an MCP server's tool schemas would sit in every
247
+ session, so there is none: skills and the CLI only. Same journal, same redaction, same compile. `LLM_PROVIDER=claude-code`
248
+ is the other direction: Claude Code as the model behind the built-in
249
+ agent. `explore` leaves its bearer token in
250
+ `$TMPDIR/autobrowse/explore-<port>.token` (owner-only) for the session's
251
+ life, never in its output.
252
+ - **Origin binding.** A password (or a placed signup secret) only types on
253
+ a host under its site's domains (`src/auth/guard.ts`): the site's home,
254
+ its `origins`, the credential's own URL. Any other host — a redirect, a
255
+ look-alike, a model told to paste it elsewhere — throws `SecretLeak`
256
+ before a keystroke. A compiled workflow's secrets (`deps.secrets`) are
257
+ bound the same way to the flow's own site at run time. Every use,
258
+ allowed or refused, is one line in `~/.config/autobrowse/audit.jsonl`
259
+ (never the value); `pnpm autobrowse creds audit --last 50` reads it.
260
+ `creds canary stripe` plants a tripwire credential: any read of it is a
261
+ refused line in that ledger and a note to you. The ledgers (audit, spend,
262
+ agent steps) are hash-chained (credvault's `chain`: each row carries the
263
+ hash of the one before): `pnpm autobrowse ledger verify` finds an edited,
264
+ dropped or inserted row. Tamper-evident, not tamper-proof; that is what
265
+ the file mode and the box's IAM are for.
266
+ - **Payment gate.** A billing field or a button that spends (`src/gates/`)
267
+ is never the session's own call: the act waits on a yes from the person
268
+ over a channel they answer on (phone, Linq, email), and is refused
269
+ outright when no such channel is set. Compiled steps that touch billing
270
+ are gated the same way as irreversible ones; the agent stops on a no.
271
+ The ask carries the amount on the button ("Buy $20 of credits" → 20.00
272
+ USD), else the order total next to it (the last "total"/"amount due"
273
+ line in the block around the button; never a subtotal). `SPEND_ALLOW=anthropic SPEND_AUTO_YES_UNDER=25 SPEND_DAILY_CAP=50
274
+ SPEND_HARD_CAP=500` lets the gate say yes alone to a small purchase on a
275
+ named site while the day's total is under the cap, and refuse anything
276
+ over the ceiling before anyone is asked; a button with no amount is
277
+ always a question. Every decision is a line in
278
+ `~/.config/autobrowse/spend.jsonl`; `pnpm autobrowse spend` reads it.
279
+ - **The ledger comes to you.** Both files live on the box's disk, so when
280
+ the box stops itself for idleness it first sends the session's summary
281
+ over the channel (secret uses with every refusal, every gate decision
282
+ with its amount; nothing when nothing happened). `GET /api/ledger?since=`
283
+ serves the same window to the UI/CLI.
284
+ - **Desktop.** The same session takes `{"cmd":"os","act":{…}}`: apps,
285
+ the front app's controls as a tree (`tree`, like `aria`), `click` by role
286
+ and name, `type`, `key` ("cmd+shift+4", "return"), `shot`, and `shell`
287
+ with `root:true` for a command that needs it. Desktop acts are journaled
288
+ beside browser acts and compile to a `desktop` step that replays through
289
+ `deps.desktop`; typed passwords (`secret:true`) never enter the record.
290
+ Root goes through one audited helper (`autobrowse desktop setup` prints
291
+ the three commands that install it; every root command lands in
292
+ `/var/log/autobrowse-root.log`). macOS grants Accessibility to the app
293
+ running node once, by hand; `desktop setup` says whether it has.
294
+ - **Devices.** `PHONE_NUMBER` links your own phone through the Mac it is
295
+ paired with: SMS codes are read from Messages, "tap Yes" nudges go back
296
+ over iMessage. Twilio is the rented-number twin. `setup` checks the two
297
+ one-time macOS switches and opens the pane. `PUBLIC_PHONE` is the business
298
+ number: a signup places it (`publicPhone`) in any phone field no code is
299
+ texted to, so the personal number stays off vendor lists.
300
+ - **Compiled.** `autobrowse compile <name>`: recording → `outline.json`
301
+ (steps at notes and navigations, typed inputs vs secrets, irreversible
302
+ verbs, pauses → hand-offs) → a workflow module plus a test that
303
+ typechecks against the library. A model may polish names and proofs; it
304
+ can never change what runs. Edit the outline (the Workflow page in the
305
+ UI, or the file) and it re-renders; `--from-outline` does the same from the CLI.
306
+ - **Finished.** `compile <name> --finish` or `finish <name>`: a model does
307
+ the last mile a person did by hand (plan inputs for what the recording
308
+ hard-coded, fill and submit as two steps with a `send` gate between, a
309
+ proof read, a gate test), judged by tsc and the workflow's own test,
310
+ three rounds, originals restored on a give-up. A heal runs it after the
311
+ re-render, before the proof. `designs/2026-09-22-self-finishing-compile.md`.
312
+ - **Repaired.** Generated flows act through `fp.act(op, hints, {goal})`. A
313
+ stale locator asks the repairer (a model, later Stagehand) for new hints
314
+ for the same goal, tries once, reports the repair. Irreversible ops are
315
+ never repaired; they hand off.
316
+ - **Screens.** Sites branch on state (a remembered account, a first-visit
317
+ banner, a new device), so a page is known by its URL and landmarks and has
318
+ one plain-code handler (`browser/screens`). A step whose control is not
319
+ there gets the interrupts handled first: a cookie banner, and any screen
320
+ a repair once clicked past on that site (kept per site, so every flow on
321
+ it gets it). A flow whose path branches (Google's and Cloudflare's
322
+ sign-ins) is a *walk*: its screens and a goal, no script; look, act,
323
+ look again. A page
324
+ no screen knows goes down one ladder: learned screens (data) → a model
325
+ that only picks from the walk's own list, or one non-committing click →
326
+ a person. The pick is kept once it worked, so it costs a model once per
327
+ new variant. `autobrowse screens [site]` lists what was learned
328
+ (`SCREENS_FILE`); `--forget` once the source knows the screen.
329
+ `autobrowse login --all` signs in to every stored account; run it
330
+ before a batch that must not stop.
331
+ - **Play/pause.** `pause` holds before the next step; `play` runs on. A
332
+ dry run stops before the first irreversible step.
333
+ - **Watched.** The worker serves a UI on `:9080`: runs, the open gate with
334
+ its screenshot, controls, live events, recordings and compile.
335
+ `/hooks/inbound` takes what a person typed on any channel. The header's
336
+ `headed`/`headless` button is the one live setting (`GET`/`PUT
337
+ /api/settings {headless}`): every browser opened from then on follows it;
338
+ `BROWSER_HEADLESS` is only its value at boot. `explore`, `agent`, `repair`
339
+ and `login` take `--headed` when you want to watch one; `record` is always
340
+ headed.
341
+ - **Where the browser is.** `BROWSER=local` (a Chrome per site profile),
342
+ `browserbase`, or `cdp` with `BROWSER_CDP_URL=http://127.0.0.1:9222`: a
343
+ browser already running, or an Electron app (new Outlook, Slack, Notion)
344
+ started with `--remote-debugging-port=9222`; its pages are the site, the
345
+ same flows and agent drive them, and nothing of it is closed on the way
346
+ out. The desktop leg for apps that are web pages inside.
347
+ - **Your own browser, per site.** `OWN_BROWSER_SITES=github` (and
348
+ `OWN_BROWSER`: `chrome` by default, or `opera-gx`, `brave`, `edge`, a data
349
+ dir): those sites
350
+ run in a new tab of the browser you use, signed in, with the history a
351
+ site trusts. Once: open `chrome://inspect/#remote-debugging` and turn on
352
+ "Allow remote debugging"; the browser asks you to allow each connection.
353
+ Nothing restarts, only our tab closes, and no trace or passkey stand-in
354
+ touches your other tabs. For sites that refuse a fresh profile (GitHub's
355
+ Google sign-in). Safari can't be attached (`designs/2026-09-27-own-browser.md`).
356
+ - **One account, several ways in.** A credential can hold a password and a
357
+ provider (`creds set` then `creds via`): the password goes first, the
358
+ provider if it is refused. `creds same github github@x` folds two entries
359
+ into one; `creds rename <from> <to>` moves a name and its browser profile.
360
+ - **Accounts by who and what for.** Each account has a username and roles
361
+ (`main`, `alt`, `wren`). `x`, `x@wren` and `x@wren_automation` all reach
362
+ the same one. `creds list` shows username, roles, sign-in.
363
+ `creds role x wren <account>` moves a role (`designs/2026-10-02-account-roles.md`).
364
+ - **Agent access.** `autobrowse access grant <agent> --sites <site,site@account>
365
+ --workflows <names> --can do` prints the agent's key once. An agent
366
+ that sends it as its bearer sees and calls only those sites, accounts,
367
+ workflows and tools. Gates, setup, accounts, wallet and settings stay the
368
+ owner's (`UI_TOKEN`). `access list`, `access revoke`. Stored hashed in
369
+ `ACCESS_FILE` (`designs/2026-09-27-agent-access.md`).
370
+ - **HTTP API.** Errors are `{ error, code, issues? }`: `error` for a person,
371
+ `code` for a program (`invalid_query`, `not_found`, `rate_limited`, …).
372
+ Lists stay arrays, newest first; more pages come as `Link: <…>; rel="next"`.
373
+ `GET /api/runs?status=waiting,running&workflow=domain&limit=50` filters in
374
+ the registry. Each caller gets 600 reads and 120 writes a minute, bodies
375
+ up to 1 MB (`designs/2026-10-03-api-conventions.md`).
376
+
377
+ ## Flows built
378
+
379
+ - **Domain** (`designs/2026-09-19-domain-flow.md`): check → buy → zone →
380
+ Workspace → verify → mail DNS → DKIM → inboxes → signatures →
381
+ authenticator → photo → warmup (Instantly API) → roster → loops. Gated at the
382
+ purchase. Each inbox is credential + profile `google@<email>`.
383
+ - **Workspace inbox** (`designs/2026-10-03-workspace-inbox.md`): one inbox on
384
+ a domain already in Workspace. User, password and authenticator stored,
385
+ signature, photo, Gmail consent token, accounts row. Warmup, roster and
386
+ newsletters are opt-in. Reuses the domain and inbox-activity steps.
387
+ - **Inbox fleet** (`designs/2026-10-03-inbox-fleet.md`): cold-email domains
388
+ bought at Dynadot, three mailboxes each from Inbox Insiders (full control,
389
+ sent to Instantly), each domain on its own Route 53 name servers, its site
390
+ masked by CloudFront, then warming. One purchase yes covers domains and
391
+ mailboxes.
392
+ - **Hand-written legs** (`src/browser/flows/`, callable as the Restate
393
+ `browser` service's `flow`): `google-admin/dkim-*`,
394
+ `google-admin/workspace-logo`, `google/profile-photo`, `google/oauth-consent`,
395
+ `linkedin/oauth-consent`, `instagram/oauth-consent`, `tiktok/oauth-consent`,
396
+ `outlook/oauth-consent`, `google/youtube-community-post`,
397
+ `google/youtube-thumbnail` (Studio; Shorts too, which `thumbnails.set` refuses),
398
+ `<site>/profile-name` for Instagram, X, TikTok and Reddit (display name
399
+ only, read back; site routes `POST /web/profile/name`, X
400
+ `POST /1.1/account/update_profile.json`).
401
+ - **Compiled from recordings** (`src/workflows/`): `bootstrap` (mints the
402
+ first Cloudflare token), `google-cloud-project`, `google-cloud-oauth-client`,
403
+ `anthropic-console-api-key`, `workspace-skip-passwords`, `google-name`,
404
+ `aws-port25-request` (EC2 email-limit removal form; the submit is a gate).
405
+ `anthropic-console-api-key` proves the new key with a free models call, then
406
+ keeps it as the key credential `anthropic@<account>` in the owner's vault and
407
+ projects the env names (no `keepAs`; plan `{name, account?, purposes?,
408
+ replaces?, login?}`). With `replaces` it rotates that key: the old key's
409
+ purposes, via and cap carry over and its id goes to `previous`. The old key
410
+ stays live at the Console: the run says which one to revoke by hand.
411
+ - **Logins** (`src/auth/sites.ts`): cloudflare, google, google-admin,
412
+ instantly, aws, anthropic, twilio, sentry, linkedin, instagram, tiktok,
413
+ outlook (the `microsoft` credential), discord (hCaptcha by the runner,
414
+ 2FA from the stored key); providers google, github, microsoft
415
+ behind any "Continue with …" button.
416
+
417
+ ## Run
418
+
419
+ ```sh
420
+ cp .env.example .env # optional keys by tier; operator keys in deploy/operator.env.example
421
+ pnpm ui:build # the SPA the worker serves
422
+ pnpm worker # Restate endpoint on :9081, UI + API on :9080
423
+ restate cloud env tunnel # expose it to the shared Restate Cloud env, register it
424
+ pnpm ui:dev # SPA with hot reload on :5173, proxied to :9080
425
+
426
+ pnpm autobrowse setup --all # the operator roster: every known site in turn (hidden input, sealed store)
427
+ pnpm autobrowse login cloudflare # signs in by itself: password or the Google button, TOTP/email/SMS code
428
+ pnpm autobrowse workspace-logo logo.png # the org logo across Gmail/Calendar/Drive (320×132 PNG < 30 KB)
429
+ pnpm autobrowse profile-photo pfp.gif --as google@wren # an account's round picture in Gmail; a GIF stays animated
430
+ pnpm autobrowse enroll-totp cloudflare --url https://dash.cloudflare.com/profile/authentication # reads the seed, stores it, confirms
431
+ pnpm autobrowse enroll-totp will@a.com william@a.com # several Google accounts, one after another
432
+ pnpm autobrowse creds to-passwords will@a.com # login + authenticator into Apple Passwords, sorted (all your devices)
433
+ pnpm autobrowse creds to-bitwarden # every account into Bitwarden, the break-glass copy outside AWS (bw logged in once)
434
+ pnpm autobrowse inbox-name will@a.com will jin # fix a Workspace inbox's display name (admin API)
435
+ pnpm autobrowse inbox-photo will@a.com pfp.png # a Workspace inbox's picture, no sign-in (admin API; still, 96 px)
436
+ pnpm autobrowse run bootstrap cloudflare --plan '{"provider":"cloudflare"}' # mints CLOUDFLARE_ACCOUNT_ID + API token into .env (--plan: JSON, a file, or -)
437
+ # map a page by hand or by model: one open browser, one command at a time (token printed at start)
438
+ pnpm autobrowse explore cloudflare --url https://dash.cloudflare.com/profile/api-tokens
439
+ curl -s -X POST -H "Authorization: Bearer $TOKEN" http://127.0.0.1:9090/ -d '{"cmd":"aria","hints":{"css":"main"}}'
440
+ pnpm autobrowse agent google "open Personal info and report the display name" --save google-name # model explores, journal → recording
441
+ pnpm autobrowse repair ~/.config/autobrowse/artifacts/google-x-2026-….failure.json # agent picks up where a flow stopped
442
+ pnpm autobrowse creds paste google@ops # a second account: `email password [key]` on the clipboard (or the UI's Accounts page)
443
+ pnpm autobrowse accounts add ops@x.com --for pays # which of your accounts is for what (pays, default, signup); consents, signups, `via` read it
444
+ pnpm autobrowse accounts add a@x.com b@x.com --for sends # any other word is a group: many accounts share it
445
+ pnpm autobrowse accounts list --for sends # one group, with each account's credential and inbox
446
+ pnpm autobrowse creds rm will@x.com # forget a credential (an address = its Google account); creds restore brings it back
447
+ pnpm autobrowse accounts # each account's purposes and readiness (credential, inbox, tokens); names only
448
+ pnpm autobrowse needs # what only you can give (logins, keys, consents, phone, money, decisions), each with its check + command
449
+ # (the UI has the same list on its Needs page, and the account policy on Accounts)
450
+ pnpm autobrowse needs do login-linkedin # runs the row's ingestion (clipboard creds, a consent, a setup step); `needs done <id>` for decisions
451
+ pnpm autobrowse creds copy google # one stored field onto the clipboard for a minute (--field password|username|totp|recovery|previous); never printed
452
+ pnpm autobrowse creds key add exa@main --clipboard --purpose default # an API key as an account: vendor@label, value from the clipboard or stdin, never an argument; --cap 1000 --cap-unit calls
453
+ pnpm autobrowse creds key ls [--all] # address, owner, status, id, purposes, cap, uses; never a value
454
+ pnpm autobrowse creds key spend exa@main [--until 2026-11-01] # out of credit: skipped until the 1st (or the date)
455
+ pnpm autobrowse creds key revoke exa@main # dead for good, dropped from the env names; revoke it at the vendor too
456
+ pnpm autobrowse creds key rotate anthropic@prod # a vendor with a mint flow: starts its run (asks before it makes the key); watch with `autobrowse status`
457
+ pnpm autobrowse creds key rotate exa@main --clipboard # no flow: the new value from the clipboard. Same carry-over; revoke the old key at the vendor by hand
458
+ pnpm autobrowse creds key purpose exa@main default bulk # give purposes to a key, taking them from whichever held them
459
+ pnpm autobrowse creds key audit exa@main -n 50 # one key's uses and refusals from the audit ledger
460
+ pnpm autobrowse creds key project [--check] # write the env names from the vault; --check exits 1 on a difference
461
+ pnpm autobrowse creds key migrate [--apply] # env keys into the vault: dry run first, the projection must then change nothing
462
+ pnpm autobrowse creds link npm # one-time link for the phone: Wren sign-in, then Copy username / Copy password; 10 min
463
+ pnpm autobrowse creds link --keys A_KEY,A_SECRET --open # one-time link for someone outside Wren: no sign-in, 24h (--ttl 7d max)
464
+ pnpm autobrowse creds password google # you changed it on the site: type it here twice, echo off; only the store is touched
465
+ pnpm autobrowse creds rotate google --ask # change it on the site itself, to one you type here (no --ask: a random 24-char one)
466
+ pnpm autobrowse creds push linkedin # that stored credential into SSM as AUTOBROWSE_CRED_LINKEDIN_*: the box signs in too
467
+ pnpm autobrowse creds push --all # every stored site (canaries never travel)
468
+ pnpm autobrowse creds pull [sites...] # the other way, on a second laptop; --overwrite to replace what is here
469
+ pnpm autobrowse signup instagram --email hello@wrenautomation.com --name "Wren Automation" --handle wrenautomation --headed
470
+ pnpm autobrowse inbox-accounts will@new.com # the free accounts in src/auth/free-accounts.ts for one inbox (email signups + Google logins); skips what it holds
471
+ pnpm autobrowse record buy-domain --site cloudflare --url https://dash.cloudflare.com/ --terminal
472
+ pnpm autobrowse compile buy-domain # → src/workflows/buy-domain/ in a clone, ~/.config/autobrowse/workflows/buy-domain/ in an install (AUTOBROWSE_WORKFLOWS moves it); on the Runs page at once
473
+ pnpm autobrowse try google-name # run a compiled workflow here, no Restate: the proof it is deterministic
474
+ # Every value the recording typed lands in ~/.config/autobrowse/plans/<workflow>.json (PLANS_DIR), not in the module: the module names no one and still runs for you. Every run, try and prove merges that file under --plan; `workflows <name>` shows the saved values.
475
+ pnpm autobrowse compile buy-domain --no-llm --from-outline
476
+ pnpm autobrowse compile buy-domain --finish # …then a model finishes it until tsc and its test pass
477
+ pnpm autobrowse finish buy-domain --brief "the Buy button charges the card"
478
+
479
+ pnpm autobrowse domains wren automation --max 15 # sending-domain ideas: ours / free at $price, from Cloudflare
480
+ pnpm autobrowse domain wren-six.com --inbox will:William:Jin --inbox hello:William:Jin --dry-run
481
+ pnpm autobrowse domain wren-six.com --inbox will:William:Jin --inbox hello:William:Jin
482
+ pnpm autobrowse try domain --plan plan.json --ask # same workflow in-process, no Restate (more inboxes on a live domain too)
483
+ pnpm autobrowse inbox will@wren-six.com Will Jin # one inbox, ready: user, sign-in, signature, Gmail consent, accounts row
484
+ pnpm autobrowse warmup-match will@wren-six.com --dry-run # which Instantly inboxes differ from that one's warmup settings; drop --dry-run to copy them
485
+ pnpm autobrowse workflows # what this worker can run
486
+ pnpm autobrowse flows --site reddit # every deterministic leg: hand-written flows + the routes on them, compiled workflows + proof, walks
487
+ pnpm autobrowse workflows bootstrap # its steps (! = irreversible) and every input: type, default, what it is
488
+ pnpm autobrowse workflows bootstrap --template > plan.json # fill in, then: run bootstrap cf --plan plan.json
489
+ pnpm autobrowse runs --limit 20 # the registry, newest first (--before <cursor> pages)
490
+ pnpm autobrowse explored google # explore runs kept for good: driver, goal, outcome, answer tokens (show <run>: its shape, no values)
491
+ pnpm autobrowse walks build google admin-sso --goal-like "sso" # runs that reached a goal → a walk, run as google/walk-admin-sso
492
+ pnpm autobrowse teach scratch join-list --url http://127.0.0.1:8765/ # do it by hand, type done; review the guesses (--yes takes them), --mod <dir> packs it
493
+ pnpm autobrowse film demo.tape.json --out takes/demo # type a tape in a filmed terminal; each browser it opens films too (needs ffmpeg, ttyd)
494
+ pnpm autobrowse walks run google/admin-sso --plan domain=x.com # no model in the loop; --yes when it has a final act, --profile <id> for whose details
495
+ pnpm autobrowse mods pack scratch --out ./mod # your walks, screens, fixes, --login for a site, scrubbed; you npm publish it
496
+ pnpm autobrowse mods search [words] # npm mods: sites, domains, gates, code or data
497
+ pnpm autobrowse mods add <npm-name|dir|tgz> # checks hashes, domains, gates, asks yes; code needs --trust; mods list, mods remove
498
+ # (the UI Mods page lists, searches, adds data mods, removes; sample: walkthrough/mods/)
499
+ pnpm autobrowse tokens --days 30 # model calls by purpose, explore answers vs whole-page reads, the verdict
500
+ pnpm autobrowse success --days 30 [--site x] # success rates: explore verdicts, failed commands by kind, site calls by route
501
+ pnpm autobrowse success import # backfill site calls from Restate (~1 day) and the caps ledger (14 days)
502
+ pnpm autobrowse status domain wren-six.com # every run is <workflow> <key>
503
+ pnpm autobrowse approve domain wren-six.com purchase
504
+ pnpm autobrowse approve domain wren-six.com human # after doing what the email asked
505
+ pnpm autobrowse reject domain wren-six.com purchase
506
+ pnpm autobrowse pause domain wren-six.com
507
+ pnpm autobrowse play domain wren-six.com
508
+ pnpm autobrowse run domain wren-six.com # after a failure: resumes the stored plan
509
+ # A plan that names a file on this Mac (a photo to upload) ships it to the shots bucket's inputs/
510
+ # first; the box can read only that folder, and files there expire after a week.
511
+ pnpm autobrowse reset domain wren-six.com
512
+ pnpm autobrowse desktop # the Mac outside the browser: apps, menus, root commands
513
+ ```
514
+
515
+ `pnpm gates` = lint + typecheck + tests (the Restate test needs Docker).
516
+ `pnpm test:live` runs the calls that cost money (Backboard, the configured
517
+ LLM) when `.env` has the keys; skipped otherwise.
518
+
519
+ ### Containers
520
+
521
+ ```sh
522
+ docker compose up -d --build # Restate + worker; .env supplies every secret
523
+ open http://localhost:9080 # UI (host side is loopback-only)
524
+ HOST_INGRESS_PORT=18080 HOST_ADMIN_PORT=19070 HOST_UI_PORT=19080 docker compose up -d # beside another Restate
525
+ ```
526
+
527
+ The worker registers itself with Restate on start (`RESTATE_ADMIN_URL` +
528
+ `RESTATE_ENDPOINT_URL`). `wren` is Lambda behind Restate Cloud;
529
+ autobrowse is a long-lived container because browser steps run for
530
+ minutes and hold a profile.
531
+
532
+ ### AWS
533
+
534
+ The AWS box was retired on 2026-10-02 (cost). Prod is the desk worker on the
535
+ operator's Mac, which dials Restate Cloud's tunnel (`RESTATE_TUNNEL_NAME` +
536
+ `RESTATE_ENVIRONMENT_ID` + `RESTATE_CLOUD_REGION` + `RESTATE_IDENTITY_KEY`)
537
+ and registers the tunnel URL itself. `deploy/README.md` is the runbook.
538
+ `IDLE_STOP_MINUTES` still stops an EC2 host the worker runs on, if one is
539
+ ever used again.
540
+
541
+ ### Owners
542
+
543
+ One autobrowse serves many businesses, one per process. `--owner <name>` or
544
+ `AUTOBROWSE_OWNER` picks whose accounts, files, SSM path and Restate names
545
+ load. The default owner is the operator: its names carry no suffix, and
546
+ `AUTOBROWSE_OPERATOR` names it (`me` on a fresh install; Wren sets `wren`). An owner's files live in
547
+ `~/.config/autobrowse/owners/<name>/` (its `.env` holds its accounts), its
548
+ secrets under SSM `/autobrowse/owners/<name>/`, its services as
549
+ `sites_<name>`, `Runs_<name>`, …. Every AWS call it makes assumes the owners
550
+ role (`AUTOBROWSE_OWNER_ROLE_ARN`, terraform output `owner_role_arn`) tagged
551
+ with its name, so it reaches its own paths only. The operator's tools (LLM,
552
+ search, browsers) are shared; its accounts, cards and phone are not.
553
+
554
+ ```sh
555
+ pnpm autobrowse --owner acme needs # what acme still owes
556
+ AUTOBROWSE_OWNER=acme RESTATE_PORT=9181 UI_PORT=9180 pnpm worker # acme's worker beside wren's
557
+ ```
558
+
559
+ Why and the full split: `designs/2026-09-30-owner-keys.md`.
560
+
561
+ ## Layout
562
+
563
+ ```
564
+ src/engine/ workflow/step types, effects seam, guards, run (advance/answer), the Restate run object, Runs registry, events
565
+ src/browser/ session (profiles, Browserbase), lock, flow runner (trace, hand-off, fp.act), locate, repair, film, flows/
566
+ src/film/ film tapes and their director (ttyd in our Chrome): a run as a take for a product video
567
+ src/clients/ http.ts (timeouts, retries, safe errors) + one client per API
568
+ src/auth/ site logins, code sources (totp, email), enrollment, the page guard; the vault itself is credvault (keep.ts = our names in it)
569
+ src/llm/ Llm seam: anthropic, openai, cohere, claude-code, fake; completeJson; OTLP trace sink
570
+ src/memory/ Memory seam: in-process store, Backboard; what repairs and gate answers taught us
571
+ src/recorder/ observer (in page), browser + terminal capture, redaction, store
572
+ src/compiler/ structure → outline → render (+ polish); output typechecks
573
+ src/channels/ email, phone (iMessage on this Mac), linq, webhook, inbound command parser
574
+ src/deps/ SecretSink (env file), Shell: what workflows read and write
575
+ src/devices/ what a person owns and a second step leans on: the paired phone (SMS in, iMessage out)
576
+ src/explore/ explore mode: one open browser, a loopback command API, pause/resume with hand acts journaled
577
+ src/runs/ run history (one chained file per explore session) and the token report
578
+ src/walks/ walks: built from runs that reached a goal or taught by hand (teach.ts), run as `<site>/walk-<name>`
579
+ src/mods/ mods: walks, screens, fixes, logins (code with --trust) packed to share; installed under `mods/`, the owner's own win
580
+ src/agent/ the exploration agent (digest, a batch of acts per screen), sessions (play/pause, persisted), repair, evaluator
581
+ src/workflows/ one dir per workflow; domain + bootstrap hand-written, compiled ones are served as they appear (one `Compiled` object)
582
+ src/ui/ Hono API (+ SSE bus, bearer, rate limit) and the static SPA
583
+ src/calls/ William's calls recorded by OBS over its websocket; the desk's `calls` service (wren designs/2026-10-16-call-recording.md)
584
+ src/app/ settings, composition root (lazy deps), self-registration, status, sentry, CLI, worker
585
+ Dockerfile, compose.yml the deploy unit; designs/2026-09-19-deploy.md
586
+ ui/ React SPA (Vite); ui/dist is served by the worker
587
+ designs/ architecture and per-workflow design docs
588
+ map/ system map: nouns, verbs, what a change hits (map/CLAUDE.md)
589
+ test/ one file per module; restate.test needs Docker
590
+ ```
591
+
592
+ ## Channels
593
+
594
+ Gates, failures and finishes reach the operator on every configured
595
+ channel, and a reply on any of them is a command (`yes`, `no`, `pause`,
596
+ `play`, `status`, `reset`, optionally `<workflow> <key>`):
597
+
598
+ - email (a fleet inbox → `NOTIFY_TO`)
599
+ - the paired iPhone (`PHONE_NUMBER`; Messages on this Mac, no vendor)
600
+ - Linq (`LINQ_API_KEY` + `LINQ_NUMBER`; iMessage from a number we own,
601
+ no Mac; replies arrive at `POST /hooks/linq`, verified with
602
+ `LINQ_WEBHOOK_SECRET`; the same chats serve SMS one-time codes)
603
+ - a webhook (`WEBHOOK_URL`)
604
+ - the caller's own hook, per run: start a run with `x-feed-url` (https,
605
+ host in `FEED_HOSTS`), `x-feed-tag` and an optional `traceparent`, and
606
+ its events are posted back as `{ tag, traceparent?, events: [{ seq,
607
+ event }] }` about once a second, bearer `FEED_TOKEN`; best effort, never
608
+ fails the run
609
+
610
+ With `SENTRY_DSN` set, failed runs, failed steps and crashes become
611
+ Sentry issues tagged workflow/key/step.
612
+
613
+ Agent sessions are runs too: rows in the Runs registry and on the live
614
+ feed under workflow `agent` (started, one `step` per agent step, finished;
615
+ a session that dies with the worker is finished as failed on the next
616
+ start). Every step is also a row of the hash-chained step ledger
617
+ (`pnpm autobrowse steps --last 50 [--session id]`): model, tokens, act,
618
+ outcome, time, host; never a page, a prompt or a value. With
619
+ `OTEL_EXPORTER_OTLP_ENDPOINT` (+ `OTEL_EXPORTER_OTLP_HEADERS` for the
620
+ vendor's auth, `OTEL_SERVICE_NAME`) every model call is a span over
621
+ OTLP/HTTP, one trace per session — Langfuse, Honeycomb, Grafana, Jaeger
622
+ take it as is; no SDK, nothing runs without the endpoint. Spans carry
623
+ sizes, hashes and token counts, never text (`src/llm/trace.ts`), under the
624
+ OpenTelemetry GenAI names (`gen_ai.usage.*`), and the sink flushes when the
625
+ process exits so a one-call CLI does not take its batch with it.
626
+
627
+ Langfuse is the default endpoint, set up the way every key here is — nothing
628
+ is copied by hand:
629
+
630
+ ```sh
631
+ pnpm autobrowse site setup langfuse project-keys # mints a key pair in the browser, keeps both
632
+ pnpm autobrowse site setup discord bot-token # a bot on discord.com/developers; DISCORD_APP_ID + DISCORD_BOT_TOKEN kept
633
+ pnpm autobrowse site setup discord invite # the bot joins your server (channels, roles, webhooks; not admin)
634
+ pnpm autobrowse site call discord POST "/channels/<id>/webhooks" --body '{"name":"intake","keep":"LANDER_DISCORD_WEBHOOK"}' # URL kept, never printed
635
+ pnpm autobrowse site call discord PUT "/guilds/<id>/layout" # a category + channel + webhook per sales lane; idempotent
636
+ pnpm autobrowse site call discord PATCH "/guilds/<id>" --body '{"icon":"../lander/public/brand/wren-pfp.png"}' # server icon
637
+ pnpm autobrowse connectors keys jobber # wren's HubSpot/QuickBooks/Jobber app keys off their consoles
638
+ pnpm autobrowse connectors prod # … into wren's /wren/prod/env-2 as WREN_CONNECTOR_*
639
+ pnpm autobrowse langfuse wire # derives the three OTEL names from them
640
+ pnpm autobrowse langfuse check # the door opens
641
+ pnpm autobrowse langfuse recent --minutes 30 # the spans that actually landed
642
+ ```
643
+
644
+ `site call langfuse GET /api/public/v2/observations` reads the same spans
645
+ through the site facade. Point the OTEL names elsewhere and nothing above
646
+ the sink changes.
647
+
648
+ ## Coupling to `wren`
649
+
650
+ Thin: writes the roster to SSM, dispatches wren's deploy, calls its ingress
651
+ to start loops. No imports in either direction.
652
+
653
+ The desk records William's calls with OBS. `autobrowse calls setup` turns on OBS's websocket
654
+ through its config file (quit OBS first) and keeps the password as credential `obs`. After that
655
+ the desk records each booked call that has a Meet or Zoom window open, and hands the file to
656
+ `wren calls add`. `autobrowse calls start|stop|status` covers calls nobody booked.
657
+
658
+ ## OAuth sign-in
659
+
660
+ A site behind "Continue with Google" needs no password of its own:
661
+
662
+ ```sh
663
+ pnpm autobrowse creds via new-tool google --url https://new-tool.test/login
664
+ pnpm autobrowse login new-tool # presses the button, signs in as the stored google account
665
+ pnpm autobrowse creds set google@ops # a second Google account, then:
666
+ pnpm autobrowse creds via other-tool google --account ops@x.com --url https://other-tool.test/login
667
+ ```
668
+
669
+ A site with no password, only a code mailed each sign-in (Cap):
670
+
671
+ ```sh
672
+ pnpm autobrowse creds via cap email --account william@wrenautomation.com --url https://cap.so/login
673
+ pnpm autobrowse login cap # types the address, reads the code from that inbox, types it
674
+ ```
675
+
676
+ Providers live in `src/auth/providers.ts` (google, github, microsoft); a `via`
677
+ credential on any site takes that path, spec or not. API consent
678
+ (`site setup youtube consent`) is the hand-written `google/oauth-consent`
679
+ flow: chooser, unverified-app warning, scope boxes, Continue, until the
680
+ loopback redirect. Design: `designs/2026-09-20-oauth-sign-in.md`.
681
+
682
+ Three resources answer with what you may do to them next: a run
683
+ (`GET /api/runs/:workflow/:key`) carries `actions` — the gate's `approve`
684
+ and `reject` while one is open, `pause`/`play`, `run`, `reset` — a need
685
+ carries the setup step that clears it, and a site carries the setup steps
686
+ whose inputs are in hand. Legality lives in state, so an agent reads it
687
+ instead of guessing a vocabulary (`src/ui/affordances.ts`). Nothing else is
688
+ hypermedia; the site facade keeps each vendor's own shape.
689
+
690
+ ## Site APIs
691
+
692
+ Which account a site posts as is configuration, not a habit: YouTube writes
693
+ (upload, thumbnail, comment, community post) check the token's own channel
694
+ against `YOUTUBE_CHANNEL_ID` and refuse when they differ or when it is unset,
695
+ so a stale consent cannot put Wren's video on a personal channel. Point it at
696
+ another channel and consent as that account to move it.
697
+
698
+ A service under its own API's shape: `POST /api/sites/linkedin/rest/posts`
699
+ takes what LinkedIn's Posts API takes and answers what it answers; `GET
700
+ /api/sites/youtube/youtube/v3/videos?part=statistics&id=…` is the Data API.
701
+ Behind one route the official API answers when a token is in hand, a browser
702
+ flow otherwise (gated reads, community posts). The caller has one client.
703
+ Reddit image posts (`kind: "image"`) and Studio thumbnails
704
+ (`POST /studio/thumbnail`) are browser only; both take `dry`, which fills
705
+ everything and stops before the irreversible click.
706
+ Sites: `linkedin`, `youtube`, `instagram` (Graph API, long-lived token),
707
+ `tiktok` (Content Posting API; `client_key`), `outlook` (Microsoft Graph:
708
+ mail and calendar, `/me/messages`, `/me/sendMail`, `/me/events`), `gmail`
709
+ (`/gmail/v1/users/me/...`; proven 2026-09-22), `drive` (`/drive/v3/...`, read
710
+ only: list a folder, export a Doc as text; proven 2026-10-01), `meta` (one Facebook Login
711
+ app: Marketing API campaigns/ad sets/creatives/ads/insights under
712
+ `/act_{id}/…`, Page posts/photos/videos with the Page's own token, Instagram
713
+ publishing for the Page's professional account), `x` (API v2: `/2/tweets`,
714
+ `/2/users/me`, a user's posts, metrics, `/2/media/upload` from a local
715
+ image or video — chunked and waited on; OAuth 2.0 with PKCE, the refresh
716
+ token rolls on every mint and is kept; follows, likes and text replies run
717
+ on the signed-in page, as do Instagram's and LinkedIn's follows, likes and
718
+ comments on others). Instagram, TikTok, Outlook, Meta
719
+ and X are written from the public docs and unproven until a credential
720
+ and a developer app exist.
721
+
722
+ A route that can start spending (`spends`: a campaign, ad set or ad set to
723
+ `ACTIVE`, a status update to it) goes through the same payment gate as a
724
+ browser "Buy" button before the API leg runs: the spend policy, then the
725
+ person, with the request's budget as the amount (`daily_budget: 2000` →
726
+ 20.00/day). No channel to ask on → refused.
727
+
728
+ One site, any number of identities: `site setup gmail consent --account
729
+ will@x.dev` runs the consent in the `google@<label>` profile whose credential
730
+ has that username and keeps the token as `GMAIL_REFRESH_TOKEN__WILL_X_DEV`;
731
+ `site call … --account will@x.dev` uses it. A consent without `--account` is
732
+ kept under whoever consented too (the site's `identity` call says who). Code
733
+ reading and mail sending act as a consented address through its own token,
734
+ so any Google inbox works, not only our Workspace (the service account's
735
+ domain-wide delegation stays the path for those).
736
+
737
+ ```sh
738
+ pnpm autobrowse site # sites, token state, setup left
739
+ pnpm autobrowse site status linkedin # every route: api | browser | none (why)
740
+ pnpm autobrowse site route youtube POST /upload/youtube/v3/videos # one route's inputs; --template for a body file
741
+ pnpm autobrowse site check # one who-am-I call per site: is each token alive; refused ones listed with since when
742
+ pnpm autobrowse site renew # probe each site, then make again every refused token and every one lapsing within 14 days
743
+ pnpm autobrowse site revoke tiktok --after 10 # end the grant (the only way our code revokes); its re-make is queued on the desk
744
+ pnpm autobrowse read https://firm.test --max 4000 # a page as plain text, no browser
745
+ pnpm autobrowse search fee-only RIA Austin -n 5 # web search: exa, brave, then duckduckgo
746
+ pnpm autobrowse maps "ria in austin tx" --max-minutes 10 # Google Maps listings as a CSV (Docker); wren --format google-maps
747
+ pnpm autobrowse creds key add exa@second --clipboard # more Exa keys live in the vault; the env names (EXA_API_KEY_1..n, NUM_EXA) are its projection; one out of credit is skipped until the 1st
748
+ pnpm autobrowse search fee-only RIA Austin --account exa@second # run on one named key; a spent or revoked one is refused, never swapped
749
+ pnpm autobrowse site call web GET "/linkedin/profile?url=linkedin.com/in/<vanity>" # from Exa's cache; LinkedIn sees nothing
750
+ pnpm autobrowse site call web GET "/linkedin/company?url=linkedin.com/company/<handle>"
751
+ pnpm autobrowse site call web GET "/companies?domain=acme.com" # Exa's company search: LinkedIn page, homepage match
752
+ pnpm autobrowse site call web GET "/exa/companies?q=staffing%20agency%20in%20Austin&n=10" # firms by niche and city: url, title, domain, raw; 7 mills a search
753
+ pnpm autobrowse site call web GET "/fetch?url=https://firm.test&from=impersonate" # one page raw up the fetch ladder: html, tier, block, tries
754
+ pnpm autobrowse doctor # which read/search/maps backends and site tokens work now; browser warnings
755
+ pnpm autobrowse browsers # our browsers (owner, age, MB) and explore sessions (idle, held); `browsers stop <port>`
756
+ pnpm autobrowse site call linkedin GET "/search/results/people?keywords=ria%20founder%20austin&pages=2" # as Wren's LinkedIn
757
+ pnpm autobrowse site call linkedin GET "/in/<vanity>?company=true" # one profile, every role, current employer's page
758
+ pnpm autobrowse site call linkedin GET "/company/<handle>" # website, size, industry, HQ, phone
759
+ pnpm autobrowse people ria founder austin --pages 2 --enrich # lead CSV, resumable; wren email import-people <file> --format linkedin --niche <niche>
760
+ pnpm autobrowse site call linkedin GET "/company/<handle>/people?keywords=founder"
761
+ pnpm autobrowse site call linkedin GET "/notifications?max=40" --account linkedin@wren # the notifications page: kind, actor, text, url, approximate time; reads only, 12 a day
762
+ pnpm autobrowse site call linkedin GET /audience --account linkedin@wren # own followers and connections, and Wren's Page's followers; reads only, 4 a day
763
+ pnpm autobrowse site call linkedin GET "/search/results/content?keywords=staffing%20agency&since=past-24h" --account linkedin@wren # others' recent posts: urn, author, text, counts; no-urn cards dropped; reads only, 12 a day with company posts
764
+ pnpm autobrowse site call linkedin GET "/company/<handle>/posts?max=10" --account linkedin@wren # a company's recent posts, same shape
765
+ pnpm autobrowse site setup youtube oauth-client # a browser flow on Cloud Console keeps the client id/secret
766
+ pnpm autobrowse site setup youtube consent # OAuth consent in the logged-in profile; refresh token kept
767
+ pnpm autobrowse site setup gmail consent --account will@x.dev # another account's inbox: token under its own name
768
+ pnpm autobrowse site call linkedin POST /rest/posts --body '{"author":"urn:li:person:…","commentary":"hi"}'
769
+ ```
770
+
771
+ Keys and tokens land in the env store (`autobrowse env`) through the same
772
+ sink `keep` uses. `OAUTH_PORT` (9400) is the loopback redirect the OAuth
773
+ clients register. The same facade is the Restate service `sites`
774
+ (`sites/call`, `sites/status`, `sites/setup`) for an orchestrator on the same
775
+ Restate (wren's `Content` service): no port on the box, a call queues while
776
+ the box is down, a write runs once. A write with a `sendKey` answers a typed
777
+ verdict (`sent`, `not_sent` or `unknown`) instead of words in an error, and
778
+ `sites/verdict {sendKey}` reads it back after a killed call. Design:
779
+ `designs/2026-09-21-site-apis.md`, `designs/2026-10-16-send-verdicts.md`.
780
+
781
+ The same service answers for the owner's API keys, for wren's Accounts page.
782
+ No answer carries a value. A bad input is a 400, an unknown address a 404, a
783
+ vendor with no mint flow a 501. Wren copies the shapes by hand (they are
784
+ exported from `src/sites/keys.ts`):
785
+
786
+ | handler | input | answer |
787
+ |---|---|---|
788
+ | `sites/keys` | `{vendor?, all?}` | `{keys: KeyRow[]}`; revoked keys only with `all` |
789
+ | `sites/keySpend` | `{address, until?}` | `KeyRow`; out of credit until the date (the 1st of next month) |
790
+ | `sites/keyRevoke` | `{address}` | `{key: KeyRow, projected: {put, removed}}`; revoked here, the env names follow |
791
+ | `sites/keyRotate` | `{address}` | `{run, workflow}`; starts the vendor's mint flow as a run |
792
+
793
+ `KeyRow` is the key without its value (`address`, `id`, `site`, `account`,
794
+ `owner`, `purposes`, `status`, `spentUntil?`, `madeAt`, `revokedAt?`, `via?`,
795
+ `vendorId?`, `cap?`, `previous`) plus `uses` and `lastUsedAt` from this
796
+ process's audit. `keyRotate` starts the vendor's mint flow as a run on the
797
+ owner's `Compiled` object; the run's own gate still asks before the key is
798
+ made. The desk serves all four, and the Console flow needs the desk's browser.
799
+
800
+ ### The fetch ladder
801
+
802
+ `web GET /fetch?url=` returns one page raw (`html`, `finalUrl`, `status`, `tier`,
803
+ `block`, `tries`). It tries four rungs and climbs only on a block signal: a plain
804
+ fetch, then Chrome's TLS fingerprint (`impit`), then a stealth browser (profile
805
+ `fetch`), then that browser out of an exit (profile `fetch@exit`, set with
806
+ `EGRESS_SITES=fetch@exit:<name>`). A block (Cloudflare, Turnstile, Akamai, 403,
807
+ 429, a JS shell) is data in the answer, not an error. One request per host every
808
+ 2 s; 1500 a day. Wren's batch render pass is the caller. Code:
809
+ `src/reach/ladder.ts`, `src/browser/render.ts`.
810
+
811
+ ### Chores on those APIs
812
+
813
+ ```sh
814
+ pnpm autobrowse unsubscribe --days 30 # every recent sender with List-Unsubscribe: count, path, latest subject
815
+ pnpm autobrowse unsubscribe --yes --keep wrenautomation.com # leave them: one-click POST, else mailto, else the link in the browser
816
+ pnpm autobrowse unsubscribe --yes --only news@x.io,hi@tool.io # a subset
817
+ ```
818
+
819
+ Only mail that says how to leave it is listed (a receipt, a code, a person
820
+ has no `List-Unsubscribe`); nothing leaves without `--yes`. The list is
821
+ `src/chores/unsubscribe.ts`.
822
+
823
+ ```sh
824
+ pnpm autobrowse aws-login --user william # renew the Mac's AWS CLI session: `aws login --remote` answered from the aws profile
825
+ pnpm autobrowse aws-login --user william --overwrite # …even when the profile holds another identity's (root) session
826
+ ```
827
+
828
+ `aws login --remote` prints an authorize URL and waits for a verification
829
+ code; the signed-in `aws` browser profile picks the console session and
830
+ reads the code off the Copy button (the code view elides it). The code goes
831
+ straight into the CLI's stdin: nothing prints it, no file holds it. The
832
+ CLI then refreshes its own credentials until the console session expires.
833
+ `src/chores/aws-login.ts`, flow `src/browser/flows/aws-cli-login.ts`.
834
+
835
+ ```sh
836
+ pnpm autobrowse wrangler-login --cwd ../lander # renew wrangler's Cloudflare OAuth token
837
+ pnpm autobrowse cloudflare-token wren-workers --env WREN_CLOUDFLARE_WORKERS_TOKEN --perm "Account:Workers Scripts:Edit" "Zone:DNS:Edit" # a scoped API token, minted + verified + stored under its own key
838
+ ```
839
+
840
+ `wrangler login --browser=false` prints an authorize URL and waits on
841
+ localhost:8976. The Cloudflare session (the Google profile, since Cloudflare
842
+ signs in via Google) opens it and clicks Authorize; wrangler keeps its own
843
+ token. Run it on the machine the browser runs on. `--scopes` narrows the
844
+ grant. `src/chores/wrangler-login.ts`, flow `src/browser/flows/wrangler-login.ts`.
845
+
846
+ ```sh
847
+ pnpm autobrowse gcloud-login # renew gcloud's credentials as its active account
848
+ pnpm autobrowse gcloud-login william@wrenautomation.com
849
+ ```
850
+
851
+ `gcloud auth login --no-launch-browser` prints a Google authorize URL and
852
+ waits for a verification code. The Google profile consents as the account
853
+ (chooser, re-verify, scopes); the code comes back in the redirect URL and
854
+ goes straight into the CLI's stdin. Run it when gcloud says
855
+ "Reauthentication failed". `src/chores/gcloud-login.ts`, flow
856
+ `src/browser/flows/oauth-consent.ts`.
857
+
858
+ ## Use as a library
859
+
860
+ Every layer is a plain function over explicit parts; only the composers
861
+ (`loadSettings`, `sitesFor` defaults, `backendFor`) read the process. Take
862
+ the whole thing, one site, or one piece. `pnpm build` emits `dist/` with
863
+ types; the subpaths are in `package.json` `exports`.
864
+
865
+ **The whole thing: one verb.**
866
+
867
+ ```ts
868
+ import { doerFor } from "autobrowse/do";
869
+ const verb = doerFor({ llm, catalog, browser, sink, sites, agent, compile }); // or doer({...}) over your own legs
870
+ await verb.do({ goal: "upload this to youtube", inputs: { file: "talk.mp4" } });
871
+ ```
872
+
873
+ Or over HTTP/Restate from any language: `POST /api/do`, `do/run`. Sites, workflows and flows you hand `abilitiesOf` are what it can
874
+ route to; anything else the agent explores once.
875
+
876
+ **One site, your wiring.** The facade takes your env store, HTTP client,
877
+ sink, flow catalog and site list; nothing is read from `process.env` unless
878
+ you leave `env` out.
879
+
880
+ ```ts
881
+ import { sitesFor, youtube } from "autobrowse/sites";
882
+ const sites = sitesFor({ sites: [youtube], env: (n) => vault.get(n), sink: vault, http, flows, catalog, browser, oauthPort: 9400 });
883
+ await sites.status("youtube"); // routes: api | browser | none (why); setup left
884
+ await sites.setup("youtube", "consent"); // refresh token → your sink
885
+ await sites.call("youtube", "GET", "/youtube/v3/videos?part=snippet&mine=true", {});
886
+ ```
887
+
888
+ **One piece.** Your own token against a route's API leg; your own consent
889
+ page opener against the token exchange; a site login on a page you drive.
890
+
891
+ ```ts
892
+ import { youtube, runConsent, accessTokens } from "autobrowse/sites";
893
+ const videos = youtube.routes.find((r) => r.path === "/youtube/v3/{resource}");
894
+ await videos.api({ resource: "videos", part: "snippet", mine: true }, { token, http });
895
+ const mint = accessTokens(http, env); // refresh token → bearer, cached
896
+ await runConsent(spec, { http, env, open: ({ url }) => myBrowser.consent(url), port: 9400 });
897
+
898
+ import { SITE_LOGINS, signInContext, signInToGoogle } from "autobrowse/auth";
899
+ await signInToGoogle(signInContext({ fp, site: "google", cred, credentials, codes }));
900
+ import { consentFlow, googleOauthConsent } from "autobrowse/flows";
901
+ import { digest, exploreWithAgent } from "autobrowse/agent";
902
+ import { fileStore, memoryFiles } from "autobrowse/files"; // the sealed file store
903
+ ```
904
+
905
+ **Usage stats, on by default.** `makeLlm` counts every model call and
906
+ `flowRunner` writes one row per run (outcome, time, failing step, captcha
907
+ tries, tokens) under `~/.config/autobrowse`. `autobrowse tokens` and
908
+ `autobrowse success` read them.
909
+
910
+ ```ts
911
+ import { readFlowRuns, flowRunReport, readLlmCalls, llmCallReport, statsDir } from "autobrowse";
912
+ const since = "2026-10-01";
913
+ flowRunReport(readFlowRuns(`${statsDir()}/flows`, since)); // failure rate by flow/site/step, p50/p95
914
+ llmCallReport(readLlmCalls(`${statsDir()}/llm`, since)); // tokens by purpose, model, day
915
+ makeLlm(settings, http, { calls: null }); // off for one model
916
+ flowRunner(opts, { runs: null }); // off for one runner; AUTOBROWSE_STATS=off for all
917
+ ```
918
+
919
+ **Resume by call key.** A run under `withCall(key, ...)` that stops (a person,
920
+ a crash, a failure) saves its page under `~/.config/autobrowse/resume`. The
921
+ next run under the same key opens that page first, and a `walk` goes on from
922
+ the screen there. Success deletes the record; records expire after 7 days.
923
+
924
+ ```ts
925
+ import { withCall, flowRunner } from "autobrowse";
926
+ await withCall(`apply ${jobId}`, () => runner.run(applyFlow, input)); // rerun with the same key to resume
927
+ flowRunner(opts, { resume: false }); // off for one runner; AUTOBROWSE_RESUME=off for all
928
+ ```
929
+
930
+ **Mail, Google and OAuth, no browser.** `autobrowse/mail`, `autobrowse/google`
931
+ and `autobrowse/oauth` are pure libraries. They import no Playwright, no Restate and nothing from
932
+ `src/browser`, `src/app` or `src/sites`; `test/pieces.test.ts` checks this.
933
+ They take a `fetch` (or an IMAP login) and do no retries; you set the time
934
+ limit and the retry policy.
935
+
936
+ - `autobrowse/mail`: `ImapReader`, `RoutedReader` and `InstantlyReader` read
937
+ an inbox into the `InboxReader` shape. `imapClient`, `withImap`,
938
+ `specialFolder` and `inFolder` run one IMAP session.
939
+ - `autobrowse/google`: `serviceAccountToken` signs a delegated token from a
940
+ service-account key. `GmailClient` is the Gmail wire (list, get, send,
941
+ watch, send-as). `gmailClient` is the per-user helper on top of it.
942
+ - `autobrowse/oauth`: the wire of every OAuth sign-in. `OAUTH_PROVIDERS` holds
943
+ each provider's URLs and client style, and `authorizeUrl` builds the consent
944
+ link. `exchangeCode` and `refreshGrant` call a provider's token endpoint;
945
+ `metaUserToken`, `metaPages` and `whoAmI` do Meta's two-step token, its
946
+ Pages and a who-am-I read per social platform. `mailExchange` and
947
+ `mailRefresh` sign in to Gmail and Microsoft mail, `appExchange` and
948
+ `appRefresh` sign in to a connected app from a spec you pass. A failure is an
949
+ `OAuthError` with a `code` and `revoked`; the token never goes in a message.
950
+
951
+ ```ts
952
+ import { ImapReader } from "autobrowse/mail";
953
+ import { GmailClient, loadServiceAccountKey } from "autobrowse/google";
954
+ const reader = new ImapReader({ host: "imap.example.com", port: 993, user, pass });
955
+ const key = loadServiceAccountKey("~/key.json", "MY_KEY_ENV_NAME");
956
+ const gmail = new GmailClient({ key, fetch });
957
+ const ids = await gmail.searchAll("me@example.com", "from:a@example.com");
958
+ ```
959
+
960
+ Adding a site is one module: a `SiteApi` (routes with `request` schema,
961
+ `api` leg, `browser` leg, `setup` steps that say which env names they make
962
+ and need) and, when it has a login, a `SiteLogin`. `route()` infers the
963
+ input type from the schema. Setup steps are the collectable part: a step is
964
+ a recorded flow on the developer console or an OAuth consent, and `setup`
965
+ runs it into whichever sink you pass (the `.env`, SSM, your vault).
966
+
967
+ ## Shared traces (on by default)
968
+
969
+ Each run's trace is scrubbed on your machine and sent to Wren, to make flows
970
+ better for everyone. The scrub removes screenshots, typed values, passwords,
971
+ cookies, headers, response bodies and query values, and masks names, emails,
972
+ phones and addresses in page text. Personal profiles and secret flows are
973
+ never sent. `autobrowse share status` shows what is on and queued.
974
+ Stop with `autobrowse share off`, `AUTOBROWSE_SHARE=off` or `DO_NOT_TRACK=1`.
975
+ Skip one site with `autobrowse share exclude <site>`.
976
+
977
+ A compiled workflow whose proof passes is shared the same way: its source
978
+ and step lines, scrubbed, without what it read. Wren checks each one and
979
+ puts the good ones in the public registry,
980
+ [wrenautomation/autobrowse-flows](https://github.com/wrenautomation/autobrowse-flows).
981
+ Install one with `autobrowse workflows add <name>`.
982
+
983
+ Wren side (needs `SHARE_ADMIN_TOKEN`): the desk runs Presidio over the
984
+ inbox every hour, then the static check. `autobrowse share review` lists
985
+ flows that wait for a yes; `share approve <id>` merges one into the
986
+ registry; `share refuse <id> <why>`. A registry flow with a `.plan.json`
987
+ beside it is re-proven each night; a failure opens a registry issue.
988
+ Design: `designs/2026-10-24-shared-library.md`.
989
+
990
+ ## License
991
+
992
+ PolyForm Shield 1.0.0: use, change and share for any purpose except a product that competes with Wren Automation. See LICENSE.md and CONTRIBUTING.md. Releases published before this change keep their old license.