@signalcore/ui 0.1.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (611) hide show
  1. package/README.md +896 -513
  2. package/dist/AgentAbout.d.ts +186 -0
  3. package/dist/AgentAbout.js +1020 -0
  4. package/dist/AgentAbout.js.map +1 -0
  5. package/dist/AgentCard.d.ts +49 -0
  6. package/dist/AgentCard.js +77 -0
  7. package/dist/AgentCard.js.map +1 -0
  8. package/dist/AgentChat.d.ts +233 -0
  9. package/dist/AgentChat.js +1127 -0
  10. package/dist/AgentChat.js.map +1 -0
  11. package/dist/AgentSpace.d.ts +112 -0
  12. package/dist/AgentSpace.js +339 -0
  13. package/dist/AgentSpace.js.map +1 -0
  14. package/dist/AgentTasks.d.ts +48 -0
  15. package/dist/AgentTasks.js +120 -0
  16. package/dist/AgentTasks.js.map +1 -0
  17. package/dist/BrowserView.d.ts +52 -0
  18. package/dist/BrowserView.js +328 -0
  19. package/dist/BrowserView.js.map +1 -0
  20. package/dist/FileView.d.ts +63 -0
  21. package/dist/FileView.js +449 -0
  22. package/dist/FileView.js.map +1 -0
  23. package/dist/Modes.d.ts +13 -0
  24. package/dist/Modes.js +75 -0
  25. package/dist/Modes.js.map +1 -0
  26. package/dist/VoiceCall.d.ts +91 -0
  27. package/dist/VoiceCall.js +302 -0
  28. package/dist/VoiceCall.js.map +1 -0
  29. package/dist/about.d.ts +212 -0
  30. package/dist/about.js +136 -0
  31. package/dist/about.js.map +1 -0
  32. package/dist/agentIcons.d.ts +33 -0
  33. package/dist/agentIcons.js +36 -0
  34. package/dist/agentIcons.js.map +1 -0
  35. package/dist/automation/Automation.d.ts +35 -0
  36. package/dist/automation/Automation.js +268 -0
  37. package/dist/automation/Automation.js.map +1 -0
  38. package/dist/automation/RunView.d.ts +25 -0
  39. package/dist/automation/RunView.js +187 -0
  40. package/dist/automation/RunView.js.map +1 -0
  41. package/dist/automation/cron.d.ts +41 -0
  42. package/dist/automation/cron.js +169 -0
  43. package/dist/automation/cron.js.map +1 -0
  44. package/dist/automation/marks.js +121 -0
  45. package/dist/automation/marks.js.map +1 -0
  46. package/dist/automation/messages.d.ts +113 -0
  47. package/dist/automation/messages.js +113 -0
  48. package/dist/automation/messages.js.map +1 -0
  49. package/dist/automation/record.d.ts +47 -0
  50. package/dist/automation/record.js +177 -0
  51. package/dist/automation/record.js.map +1 -0
  52. package/dist/automation/types.d.ts +143 -0
  53. package/dist/automation/when.d.ts +36 -0
  54. package/dist/automation/when.js +168 -0
  55. package/dist/automation/when.js.map +1 -0
  56. package/dist/blocks.d.ts +185 -0
  57. package/dist/browser.js +292 -0
  58. package/dist/browser.js.map +1 -0
  59. package/dist/call.d.ts +89 -0
  60. package/dist/call.js +218 -0
  61. package/dist/call.js.map +1 -0
  62. package/dist/channelParts.js +26 -0
  63. package/dist/channelParts.js.map +1 -0
  64. package/dist/classes.js +8 -3
  65. package/dist/classes.js.map +1 -0
  66. package/dist/client.d.ts +146 -54
  67. package/dist/client.js +204 -1
  68. package/dist/client.js.map +1 -0
  69. package/dist/conversationFiles.js +46 -0
  70. package/dist/conversationFiles.js.map +1 -0
  71. package/dist/credentials.d.ts +45 -0
  72. package/dist/credentials.js +98 -0
  73. package/dist/credentials.js.map +1 -0
  74. package/dist/dev.js +17 -0
  75. package/dist/dev.js.map +1 -0
  76. package/dist/es.d.ts +17 -0
  77. package/dist/es.js +382 -0
  78. package/dist/es.js.map +1 -0
  79. package/dist/files.d.ts +21 -0
  80. package/dist/files.js +214 -0
  81. package/dist/files.js.map +1 -0
  82. package/dist/frames.d.ts +115 -0
  83. package/dist/frames.js +219 -0
  84. package/dist/frames.js.map +1 -0
  85. package/dist/icons.js +29 -0
  86. package/dist/icons.js.map +1 -0
  87. package/dist/index.d.ts +63 -60
  88. package/dist/index.js +59 -45
  89. package/dist/kit/AudioPlayer.d.ts +20 -0
  90. package/dist/kit/AudioPlayer.js +116 -0
  91. package/dist/kit/AudioPlayer.js.map +1 -0
  92. package/dist/kit/Button.d.ts +29 -0
  93. package/dist/kit/Button.js +59 -0
  94. package/dist/kit/Button.js.map +1 -0
  95. package/dist/kit/Card.d.ts +16 -0
  96. package/dist/kit/Card.js +36 -0
  97. package/dist/kit/Card.js.map +1 -0
  98. package/dist/kit/Chart.js +152 -0
  99. package/dist/kit/Chart.js.map +1 -0
  100. package/dist/kit/Choices.d.ts +21 -0
  101. package/dist/kit/Choices.js +99 -0
  102. package/dist/kit/Choices.js.map +1 -0
  103. package/dist/kit/Combobox.d.ts +26 -0
  104. package/dist/kit/Combobox.js +190 -0
  105. package/dist/kit/Combobox.js.map +1 -0
  106. package/dist/kit/DateField.d.ts +17 -0
  107. package/dist/kit/DateField.js +133 -0
  108. package/dist/kit/DateField.js.map +1 -0
  109. package/dist/kit/Field.d.ts +40 -0
  110. package/dist/kit/Field.js +98 -0
  111. package/dist/kit/Field.js.map +1 -0
  112. package/dist/kit/FileField.d.ts +113 -0
  113. package/dist/kit/FileField.js +341 -0
  114. package/dist/kit/FileField.js.map +1 -0
  115. package/dist/kit/FileMark.d.ts +15 -0
  116. package/dist/kit/FileMark.js +39 -0
  117. package/dist/kit/FileMark.js.map +1 -0
  118. package/dist/kit/Inputs.d.ts +59 -0
  119. package/dist/kit/Inputs.js +205 -0
  120. package/dist/kit/Inputs.js.map +1 -0
  121. package/dist/kit/List.d.ts +47 -0
  122. package/dist/kit/List.js +85 -0
  123. package/dist/kit/List.js.map +1 -0
  124. package/dist/kit/Mark.d.ts +30 -0
  125. package/dist/kit/Mark.js +27 -0
  126. package/dist/kit/Mark.js.map +1 -0
  127. package/dist/kit/MarkStack.d.ts +15 -0
  128. package/dist/kit/MarkStack.js +26 -0
  129. package/dist/kit/MarkStack.js.map +1 -0
  130. package/dist/kit/Note.d.ts +11 -0
  131. package/dist/kit/Note.js +31 -0
  132. package/dist/kit/Note.js.map +1 -0
  133. package/dist/kit/Popover.js +90 -0
  134. package/dist/kit/Popover.js.map +1 -0
  135. package/dist/kit/RangeField.d.ts +14 -0
  136. package/dist/kit/RangeField.js +47 -0
  137. package/dist/kit/RangeField.js.map +1 -0
  138. package/dist/kit/RatingField.d.ts +14 -0
  139. package/dist/kit/RatingField.js +50 -0
  140. package/dist/kit/RatingField.js.map +1 -0
  141. package/dist/kit/Stat.d.ts +26 -0
  142. package/dist/kit/Stat.js +46 -0
  143. package/dist/kit/Stat.js.map +1 -0
  144. package/dist/kit/Switch.d.ts +14 -0
  145. package/dist/kit/Switch.js +21 -0
  146. package/dist/kit/Switch.js.map +1 -0
  147. package/dist/kit/Tag.d.ts +16 -0
  148. package/dist/kit/Tag.js +20 -0
  149. package/dist/kit/Tag.js.map +1 -0
  150. package/dist/kit/Tile.d.ts +34 -0
  151. package/dist/kit/Tile.js +52 -0
  152. package/dist/kit/Tile.js.map +1 -0
  153. package/dist/kit/TimeField.d.ts +31 -0
  154. package/dist/kit/TimeField.js +109 -0
  155. package/dist/kit/TimeField.js.map +1 -0
  156. package/dist/kit/context.d.ts +22 -0
  157. package/dist/kit/context.js +46 -0
  158. package/dist/kit/context.js.map +1 -0
  159. package/dist/kit/dates.d.ts +14 -0
  160. package/dist/kit/dates.js +129 -0
  161. package/dist/kit/dates.js.map +1 -0
  162. package/dist/kit/messages.d.ts +99 -0
  163. package/dist/kit/messages.js +66 -0
  164. package/dist/kit/messages.js.map +1 -0
  165. package/dist/kit/numbers.d.ts +12 -0
  166. package/dist/kit/numbers.js +40 -0
  167. package/dist/kit/numbers.js.map +1 -0
  168. package/dist/kit/options.d.ts +10 -0
  169. package/dist/kit/options.js +23 -0
  170. package/dist/kit/options.js.map +1 -0
  171. package/dist/kit/uploads.d.ts +42 -0
  172. package/dist/kit/uploads.js +165 -0
  173. package/dist/kit/uploads.js.map +1 -0
  174. package/dist/kit/waveform.js +76 -0
  175. package/dist/kit/waveform.js.map +1 -0
  176. package/dist/locale.d.ts +1 -0
  177. package/dist/locale.js +1 -0
  178. package/dist/markdown.js +84 -0
  179. package/dist/markdown.js.map +1 -0
  180. package/dist/marks.js +217 -0
  181. package/dist/marks.js.map +1 -0
  182. package/dist/reveal.js +48 -0
  183. package/dist/reveal.js.map +1 -0
  184. package/dist/stepGlyphs.js +62 -0
  185. package/dist/stepGlyphs.js.map +1 -0
  186. package/dist/surface/Form.js +264 -0
  187. package/dist/surface/Form.js.map +1 -0
  188. package/dist/surface/Markdown.js +42 -0
  189. package/dist/surface/Markdown.js.map +1 -0
  190. package/dist/surface/Surface.d.ts +31 -17
  191. package/dist/surface/Surface.js +480 -57
  192. package/dist/surface/Surface.js.map +1 -0
  193. package/dist/surface/scope.d.ts +32 -0
  194. package/dist/surface/scope.js +23 -0
  195. package/dist/surface/scope.js.map +1 -0
  196. package/dist/surface/values.d.ts +44 -0
  197. package/dist/surface/values.js +237 -0
  198. package/dist/surface/values.js.map +1 -0
  199. package/dist/tint.d.ts +10 -0
  200. package/dist/tint.js +19 -0
  201. package/dist/tint.js.map +1 -0
  202. package/dist/types.d.ts +541 -0
  203. package/dist/types.js +16 -0
  204. package/dist/types.js.map +1 -0
  205. package/dist/useAgentFace.d.ts +18 -0
  206. package/dist/useAgentFace.js +45 -0
  207. package/dist/useAgentFace.js.map +1 -0
  208. package/dist/useCall.d.ts +39 -0
  209. package/dist/useCall.js +273 -0
  210. package/dist/useCall.js.map +1 -0
  211. package/dist/useConversation.d.ts +77 -0
  212. package/dist/useConversation.js +523 -0
  213. package/dist/useConversation.js.map +1 -0
  214. package/dist/useDictation.d.ts +17 -0
  215. package/dist/useDictation.js +68 -0
  216. package/dist/useDictation.js.map +1 -0
  217. package/dist/useLive.d.ts +26 -0
  218. package/dist/useLive.js +88 -0
  219. package/dist/useLive.js.map +1 -0
  220. package/dist/usePolled.js +68 -0
  221. package/dist/usePolled.js.map +1 -0
  222. package/dist/voice/Orb.d.ts +10 -9
  223. package/dist/voice/Orb.js +43 -39
  224. package/dist/voice/Orb.js.map +1 -0
  225. package/dist/voice/StillOrb.js +33 -0
  226. package/dist/voice/StillOrb.js.map +1 -0
  227. package/dist/voice/WebGLOrb.js +98 -0
  228. package/dist/voice/WebGLOrb.js.map +1 -0
  229. package/dist/voice/fluidDots.js +161 -0
  230. package/dist/voice/fluidDots.js.map +1 -0
  231. package/dist/voice/motion.js +84 -0
  232. package/dist/voice/motion.js.map +1 -0
  233. package/dist/voice/orbs.d.ts +32 -0
  234. package/dist/voice/orbs.js +16 -0
  235. package/dist/voice/orbs.js.map +1 -0
  236. package/dist/voice/useReducedMotion.js +16 -16
  237. package/dist/voice/useReducedMotion.js.map +1 -0
  238. package/dist/voice/wave.js +116 -0
  239. package/dist/voice/wave.js.map +1 -0
  240. package/dist/voice/webgl.js +177 -0
  241. package/dist/voice/webgl.js.map +1 -0
  242. package/dist/widget.js +284 -8
  243. package/package.json +49 -39
  244. package/src/AgentAbout.tsx +1621 -0
  245. package/src/AgentCard.tsx +123 -0
  246. package/src/AgentChat.tsx +1812 -0
  247. package/src/AgentSpace.tsx +540 -0
  248. package/src/AgentTasks.tsx +163 -0
  249. package/src/BrowserView.tsx +442 -0
  250. package/src/FileView.tsx +620 -0
  251. package/src/Modes.tsx +112 -0
  252. package/src/VoiceCall.tsx +411 -0
  253. package/src/about.ts +355 -0
  254. package/src/agentIcons.ts +56 -0
  255. package/src/automation/Automation.tsx +308 -0
  256. package/src/automation/RunView.tsx +213 -0
  257. package/src/automation/cron.ts +196 -0
  258. package/src/automation/marks.tsx +144 -0
  259. package/src/automation/messages.ts +231 -0
  260. package/src/automation/record.ts +206 -0
  261. package/src/automation/types.ts +146 -0
  262. package/src/automation/when.ts +195 -0
  263. package/src/blocks.ts +249 -0
  264. package/src/browser.ts +334 -0
  265. package/src/call.ts +300 -0
  266. package/src/channelParts.ts +17 -0
  267. package/src/classes.ts +10 -0
  268. package/src/client.ts +397 -0
  269. package/src/conversationFiles.ts +54 -0
  270. package/src/credentials.ts +158 -0
  271. package/src/dev.ts +20 -0
  272. package/src/es.ts +423 -0
  273. package/src/files.ts +238 -0
  274. package/src/frames.ts +291 -0
  275. package/src/icons.tsx +49 -0
  276. package/src/index.ts +271 -0
  277. package/src/kit/AudioPlayer.tsx +129 -0
  278. package/src/kit/Button.tsx +97 -0
  279. package/src/kit/Card.tsx +47 -0
  280. package/src/kit/Chart.tsx +129 -0
  281. package/src/kit/Choices.tsx +131 -0
  282. package/src/kit/Combobox.tsx +247 -0
  283. package/src/kit/DateField.tsx +156 -0
  284. package/src/kit/Field.tsx +137 -0
  285. package/src/kit/FileField.tsx +492 -0
  286. package/src/kit/FileMark.tsx +56 -0
  287. package/src/kit/Inputs.tsx +250 -0
  288. package/src/kit/List.tsx +135 -0
  289. package/src/kit/Mark.tsx +64 -0
  290. package/src/kit/MarkStack.tsx +29 -0
  291. package/src/kit/Note.tsx +42 -0
  292. package/src/kit/Popover.tsx +121 -0
  293. package/src/kit/RangeField.tsx +53 -0
  294. package/src/kit/RatingField.tsx +62 -0
  295. package/src/kit/Stat.tsx +60 -0
  296. package/src/kit/Switch.tsx +28 -0
  297. package/src/kit/Tag.tsx +32 -0
  298. package/src/kit/Tile.tsx +74 -0
  299. package/src/kit/TimeField.tsx +157 -0
  300. package/src/kit/context.tsx +246 -0
  301. package/src/kit/dates.ts +150 -0
  302. package/src/kit/messages.ts +160 -0
  303. package/src/kit/numbers.ts +44 -0
  304. package/src/kit/options.ts +30 -0
  305. package/src/kit/uploads.ts +244 -0
  306. package/src/kit/waveform.ts +84 -0
  307. package/src/locale.ts +6 -0
  308. package/src/markdown.ts +69 -0
  309. package/src/marks.tsx +328 -0
  310. package/src/reveal.ts +52 -0
  311. package/src/stepGlyphs.ts +83 -0
  312. package/src/styles.css +6970 -0
  313. package/src/surface/Form.tsx +299 -0
  314. package/src/surface/Markdown.tsx +55 -0
  315. package/src/surface/Surface.tsx +605 -0
  316. package/src/surface/scope.ts +82 -0
  317. package/src/surface/values.ts +361 -0
  318. package/src/tint.ts +14 -0
  319. package/src/types.ts +604 -0
  320. package/src/useAgentFace.ts +47 -0
  321. package/src/useCall.ts +292 -0
  322. package/src/useConversation.ts +627 -0
  323. package/src/useDictation.ts +83 -0
  324. package/src/useLive.ts +115 -0
  325. package/src/usePolled.ts +60 -0
  326. package/src/voice/Orb.tsx +45 -0
  327. package/src/voice/StillOrb.tsx +29 -0
  328. package/src/voice/WebGLOrb.tsx +98 -0
  329. package/src/voice/fluidDots.tsx +171 -0
  330. package/src/voice/motion.ts +112 -0
  331. package/src/voice/orbs.ts +39 -0
  332. package/src/voice/useReducedMotion.ts +24 -0
  333. package/src/voice/wave.tsx +129 -0
  334. package/src/voice/webgl.ts +209 -0
  335. package/src/widget/css.d.ts +5 -0
  336. package/src/widget/element.tsx +535 -0
  337. package/src/widget/index.ts +10 -0
  338. package/src/widget/mount.ts +27 -0
  339. package/src/widget/widget.css +253 -0
  340. package/dist/SignalcoreProvider.d.ts +0 -113
  341. package/dist/SignalcoreProvider.js +0 -84
  342. package/dist/automations/AppMarks.d.ts +0 -11
  343. package/dist/automations/AppMarks.js +0 -18
  344. package/dist/automations/AutomationCard.d.ts +0 -27
  345. package/dist/automations/AutomationCard.js +0 -53
  346. package/dist/automations/AutomationsWindow.d.ts +0 -38
  347. package/dist/automations/AutomationsWindow.js +0 -57
  348. package/dist/automations/Card.d.ts +0 -46
  349. package/dist/automations/Card.js +0 -45
  350. package/dist/automations/ScheduleMarks.d.ts +0 -13
  351. package/dist/automations/ScheduleMarks.js +0 -24
  352. package/dist/automations/presentationIcons.d.ts +0 -7
  353. package/dist/automations/presentationIcons.js +0 -67
  354. package/dist/automations/schedule.d.ts +0 -25
  355. package/dist/automations/schedule.js +0 -59
  356. package/dist/automations/time.d.ts +0 -3
  357. package/dist/automations/time.js +0 -25
  358. package/dist/browser/BrowserView.d.ts +0 -43
  359. package/dist/browser/BrowserView.js +0 -94
  360. package/dist/browser/room.d.ts +0 -21
  361. package/dist/browser/room.js +0 -33
  362. package/dist/browser/useBrowserSession.d.ts +0 -17
  363. package/dist/browser/useBrowserSession.js +0 -67
  364. package/dist/builder/BuilderChat.d.ts +0 -32
  365. package/dist/builder/BuilderChat.js +0 -41
  366. package/dist/builder/BuilderTranscript.d.ts +0 -49
  367. package/dist/builder/BuilderTranscript.js +0 -62
  368. package/dist/builder/StatusLine.d.ts +0 -8
  369. package/dist/builder/StatusLine.js +0 -17
  370. package/dist/builder/answer.d.ts +0 -7
  371. package/dist/builder/answer.js +0 -8
  372. package/dist/builder/blocks.d.ts +0 -31
  373. package/dist/builder/blocks.js +0 -74
  374. package/dist/builder/items.d.ts +0 -15
  375. package/dist/builder/items.js +0 -21
  376. package/dist/builder/steps.d.ts +0 -20
  377. package/dist/builder/steps.js +0 -120
  378. package/dist/builder/time.d.ts +0 -4
  379. package/dist/builder/time.js +0 -24
  380. package/dist/builder/useBuildSession.d.ts +0 -36
  381. package/dist/builder/useBuildSession.js +0 -130
  382. package/dist/builder/workingOn.d.ts +0 -7
  383. package/dist/builder/workingOn.js +0 -15
  384. package/dist/chat/AgentChat.d.ts +0 -37
  385. package/dist/chat/AgentChat.js +0 -21
  386. package/dist/chat/ChatView.d.ts +0 -25
  387. package/dist/chat/ChatView.js +0 -34
  388. package/dist/chat/Composer.d.ts +0 -20
  389. package/dist/chat/Composer.js +0 -22
  390. package/dist/chat/MessageRow.d.ts +0 -22
  391. package/dist/chat/MessageRow.js +0 -32
  392. package/dist/chat/arrival.d.ts +0 -15
  393. package/dist/chat/arrival.js +0 -25
  394. package/dist/chat/history.d.ts +0 -24
  395. package/dist/chat/history.js +0 -45
  396. package/dist/chat/moments.d.ts +0 -25
  397. package/dist/chat/moments.js +0 -72
  398. package/dist/chat/types.d.ts +0 -12
  399. package/dist/chat/types.js +0 -1
  400. package/dist/chat/useComposer.d.ts +0 -46
  401. package/dist/chat/useComposer.js +0 -62
  402. package/dist/chat/useConversation.d.ts +0 -35
  403. package/dist/chat/useConversation.js +0 -71
  404. package/dist/chat/useStickToBottom.d.ts +0 -9
  405. package/dist/chat/useStickToBottom.js +0 -33
  406. package/dist/chat/useTurns.d.ts +0 -49
  407. package/dist/chat/useTurns.js +0 -111
  408. package/dist/classes.d.ts +0 -2
  409. package/dist/development.d.ts +0 -5
  410. package/dist/development.js +0 -8
  411. package/dist/flow/FlowWindow.d.ts +0 -42
  412. package/dist/flow/FlowWindow.js +0 -126
  413. package/dist/flow/index.d.ts +0 -16
  414. package/dist/flow/index.js +0 -16
  415. package/dist/flow/kinds.d.ts +0 -23
  416. package/dist/flow/kinds.js +0 -48
  417. package/dist/flow/map.d.ts +0 -44
  418. package/dist/flow/map.js +0 -225
  419. package/dist/flow/nodePaths.d.ts +0 -7
  420. package/dist/flow/nodePaths.js +0 -17
  421. package/dist/flow/relations.d.ts +0 -42
  422. package/dist/flow/relations.js +0 -174
  423. package/dist/host.d.ts +0 -124
  424. package/dist/host.js +0 -1
  425. package/dist/live/LiveView.d.ts +0 -28
  426. package/dist/live/LiveView.js +0 -55
  427. package/dist/live/capture.d.ts +0 -20
  428. package/dist/live/capture.js +0 -100
  429. package/dist/live/follow.d.ts +0 -26
  430. package/dist/live/follow.js +0 -72
  431. package/dist/live/paint.d.ts +0 -13
  432. package/dist/live/paint.js +0 -77
  433. package/dist/live/useLiveStream.d.ts +0 -16
  434. package/dist/live/useLiveStream.js +0 -57
  435. package/dist/look.d.ts +0 -33
  436. package/dist/look.js +0 -241
  437. package/dist/messages/en.d.ts +0 -3
  438. package/dist/messages/en.js +0 -251
  439. package/dist/messages/es.d.ts +0 -3
  440. package/dist/messages/es.js +0 -251
  441. package/dist/messages/index.d.ts +0 -16
  442. package/dist/messages/index.js +0 -33
  443. package/dist/messages/types.d.ts +0 -246
  444. package/dist/messages/types.js +0 -1
  445. package/dist/parts/Button.d.ts +0 -18
  446. package/dist/parts/Button.js +0 -17
  447. package/dist/parts/Icon.d.ts +0 -39
  448. package/dist/parts/Icon.js +0 -37
  449. package/dist/parts/Input.d.ts +0 -6
  450. package/dist/parts/Input.js +0 -11
  451. package/dist/parts/Spinner.d.ts +0 -2
  452. package/dist/parts/Spinner.js +0 -7
  453. package/dist/patterns.d.ts +0 -15
  454. package/dist/patterns.js +0 -5
  455. package/dist/presets.d.ts +0 -82
  456. package/dist/presets.js +0 -81
  457. package/dist/primitives.d.ts +0 -22
  458. package/dist/primitives.js +0 -58
  459. package/dist/request/RequestCard.d.ts +0 -34
  460. package/dist/request/RequestCard.js +0 -101
  461. package/dist/request/approval/ApprovalPreview.d.ts +0 -5
  462. package/dist/request/approval/ApprovalPreview.js +0 -27
  463. package/dist/request/approval/shapes.d.ts +0 -32
  464. package/dist/request/approval/shapes.js +0 -68
  465. package/dist/request/apps.d.ts +0 -11
  466. package/dist/request/apps.js +0 -27
  467. package/dist/request/cards.d.ts +0 -12
  468. package/dist/request/cards.js +0 -24
  469. package/dist/request/deliver.d.ts +0 -12
  470. package/dist/request/deliver.js +0 -21
  471. package/dist/request/handOver.d.ts +0 -18
  472. package/dist/request/handOver.js +0 -33
  473. package/dist/request/kinds/Approval.d.ts +0 -3
  474. package/dist/request/kinds/Approval.js +0 -9
  475. package/dist/request/kinds/Choice.d.ts +0 -3
  476. package/dist/request/kinds/Choice.js +0 -8
  477. package/dist/request/kinds/Connect.d.ts +0 -9
  478. package/dist/request/kinds/Connect.js +0 -119
  479. package/dist/request/kinds/FreeText.d.ts +0 -3
  480. package/dist/request/kinds/FreeText.js +0 -20
  481. package/dist/request/kinds/HandOver.d.ts +0 -13
  482. package/dist/request/kinds/HandOver.js +0 -20
  483. package/dist/request/kinds/Secret.d.ts +0 -7
  484. package/dist/request/kinds/Secret.js +0 -49
  485. package/dist/request/kinds/Upload.d.ts +0 -6
  486. package/dist/request/kinds/Upload.js +0 -47
  487. package/dist/request/types.d.ts +0 -83
  488. package/dist/request/types.js +0 -1
  489. package/dist/safeUrl.d.ts +0 -6
  490. package/dist/safeUrl.js +0 -8
  491. package/dist/stream/builder.d.ts +0 -176
  492. package/dist/stream/builder.js +0 -202
  493. package/dist/stream/reduce.d.ts +0 -51
  494. package/dist/stream/reduce.js +0 -58
  495. package/dist/stream/untilAborted.d.ts +0 -7
  496. package/dist/stream/untilAborted.js +0 -32
  497. package/dist/stream/useRunStream.d.ts +0 -26
  498. package/dist/stream/useRunStream.js +0 -137
  499. package/dist/styles.css +0 -2318
  500. package/dist/surface/HostNode.d.ts +0 -14
  501. package/dist/surface/HostNode.js +0 -30
  502. package/dist/surface/Node.d.ts +0 -7
  503. package/dist/surface/Node.js +0 -49
  504. package/dist/surface/SurfaceBoundary.d.ts +0 -26
  505. package/dist/surface/SurfaceBoundary.js +0 -20
  506. package/dist/surface/bindings.d.ts +0 -14
  507. package/dist/surface/bindings.js +0 -37
  508. package/dist/surface/check.d.ts +0 -27
  509. package/dist/surface/check.js +0 -102
  510. package/dist/surface/format.d.ts +0 -10
  511. package/dist/surface/format.js +0 -32
  512. package/dist/surface/hosts.d.ts +0 -6
  513. package/dist/surface/hosts.js +0 -11
  514. package/dist/surface/scene.d.ts +0 -21
  515. package/dist/surface/scene.js +0 -8
  516. package/dist/surface/templates/Browser.d.ts +0 -6
  517. package/dist/surface/templates/Browser.js +0 -11
  518. package/dist/surface/templates/Chart.d.ts +0 -6
  519. package/dist/surface/templates/Chart.js +0 -13
  520. package/dist/surface/templates/Choices.d.ts +0 -3
  521. package/dist/surface/templates/Choices.js +0 -12
  522. package/dist/surface/templates/Form.d.ts +0 -3
  523. package/dist/surface/templates/Form.js +0 -44
  524. package/dist/surface/templates/KeyValue.d.ts +0 -3
  525. package/dist/surface/templates/KeyValue.js +0 -7
  526. package/dist/surface/templates/Layout.d.ts +0 -5
  527. package/dist/surface/templates/Layout.js +0 -16
  528. package/dist/surface/templates/Live.d.ts +0 -6
  529. package/dist/surface/templates/Live.js +0 -9
  530. package/dist/surface/templates/Media.d.ts +0 -5
  531. package/dist/surface/templates/Media.js +0 -13
  532. package/dist/surface/templates/Slots.d.ts +0 -3
  533. package/dist/surface/templates/Slots.js +0 -19
  534. package/dist/surface/templates/Table.d.ts +0 -3
  535. package/dist/surface/templates/Table.js +0 -12
  536. package/dist/surface/templates/Text.d.ts +0 -4
  537. package/dist/surface/templates/Text.js +0 -15
  538. package/dist/surface/templates/index.d.ts +0 -7
  539. package/dist/surface/templates/index.js +0 -32
  540. package/dist/surface/types.d.ts +0 -68
  541. package/dist/surface/types.js +0 -6
  542. package/dist/theme.d.ts +0 -62
  543. package/dist/theme.js +0 -9
  544. package/dist/useTokens.d.ts +0 -7
  545. package/dist/useTokens.js +0 -41
  546. package/dist/voice/VoiceWindow.d.ts +0 -18
  547. package/dist/voice/VoiceWindow.js +0 -35
  548. package/dist/voice/index.d.ts +0 -13
  549. package/dist/voice/index.js +0 -12
  550. package/dist/voice/meter.d.ts +0 -16
  551. package/dist/voice/meter.js +0 -52
  552. package/dist/voice/orbColors.d.ts +0 -16
  553. package/dist/voice/orbColors.js +0 -75
  554. package/dist/voice/pushable.d.ts +0 -16
  555. package/dist/voice/pushable.js +0 -56
  556. package/dist/voice/useDictation.d.ts +0 -24
  557. package/dist/voice/useDictation.js +0 -60
  558. package/dist/voice/useReducedMotion.d.ts +0 -5
  559. package/dist/voice/useVoice.d.ts +0 -70
  560. package/dist/voice/useVoice.js +0 -197
  561. package/dist/voice/useVoicePrimitives.d.ts +0 -7
  562. package/dist/voice/useVoicePrimitives.js +0 -11
  563. package/dist/voice/voice.d.ts +0 -55
  564. package/dist/voice/voice.js +0 -9
  565. package/dist/voice/webSpeech.d.ts +0 -33
  566. package/dist/voice/webSpeech.js +0 -258
  567. package/dist/widget.js.map +0 -1
  568. package/dist/windows/AgentSpace.d.ts +0 -78
  569. package/dist/windows/AgentSpace.js +0 -135
  570. package/dist/windows/Captions.d.ts +0 -13
  571. package/dist/windows/Captions.js +0 -22
  572. package/dist/windows/Dock.d.ts +0 -37
  573. package/dist/windows/Dock.js +0 -22
  574. package/dist/windows/Journal.d.ts +0 -15
  575. package/dist/windows/Journal.js +0 -19
  576. package/dist/windows/KindMark.d.ts +0 -7
  577. package/dist/windows/KindMark.js +0 -31
  578. package/dist/windows/Pending.d.ts +0 -8
  579. package/dist/windows/Pending.js +0 -17
  580. package/dist/windows/Stage.d.ts +0 -18
  581. package/dist/windows/Stage.js +0 -21
  582. package/dist/windows/StatusLabel.d.ts +0 -9
  583. package/dist/windows/StatusLabel.js +0 -7
  584. package/dist/windows/Strip.d.ts +0 -17
  585. package/dist/windows/Strip.js +0 -42
  586. package/dist/windows/SurfaceWindow.d.ts +0 -20
  587. package/dist/windows/SurfaceWindow.js +0 -12
  588. package/dist/windows/WindowFrame.d.ts +0 -23
  589. package/dist/windows/WindowFrame.js +0 -22
  590. package/dist/windows/hearing.d.ts +0 -11
  591. package/dist/windows/hearing.js +0 -26
  592. package/dist/windows/kinds.d.ts +0 -47
  593. package/dist/windows/kinds.js +0 -28
  594. package/dist/windows/reduce.d.ts +0 -98
  595. package/dist/windows/reduce.js +0 -151
  596. package/dist/windows/registry.d.ts +0 -18
  597. package/dist/windows/registry.js +0 -61
  598. package/dist/windows/reveal.d.ts +0 -9
  599. package/dist/windows/reveal.js +0 -6
  600. package/dist/windows/space.d.ts +0 -21
  601. package/dist/windows/space.js +0 -6
  602. package/dist/windows/status.d.ts +0 -11
  603. package/dist/windows/status.js +0 -30
  604. package/dist/windows/types.d.ts +0 -15
  605. package/dist/windows/types.js +0 -1
  606. package/dist/windows/useLoaded.d.ts +0 -44
  607. package/dist/windows/useLoaded.js +0 -58
  608. package/dist/windows/useUnread.d.ts +0 -7
  609. package/dist/windows/useUnread.js +0 -21
  610. package/dist/windows/useWindows.d.ts +0 -70
  611. package/dist/windows/useWindows.js +0 -60
@@ -1,251 +0,0 @@
1
- /** What each default window is called, in the words the product uses for the owner's pages. */
2
- const WINDOW_TITLES = {
3
- chat: "Conversación",
4
- automations: "Qué hace",
5
- flow: "Mapa",
6
- voice: "Voz",
7
- browser: "Navegador",
8
- live: "En directo",
9
- };
10
- /** The words as the product says them to a business owner: the default language. */
11
- export const es = {
12
- // Surfaces
13
- cannotShow: "No se puede mostrar esto.",
14
- send: "Enviar",
15
- sent: "Enviado",
16
- blankPage: "Página en blanco",
17
- // The browser the agent drives
18
- agentBrowses: "El agente navega",
19
- agentBrowsing: "El agente navega…",
20
- youHaveControl: "Tienes el control",
21
- shrink: "Reducir",
22
- enlarge: "Ampliar",
23
- openInTab: "Abrir en una pestaña",
24
- takeControl: "Tomar el control",
25
- sessionEnded: "Sesión terminada",
26
- step: "Paso ",
27
- browserTitle: (page) => `Navegador: ${page}`,
28
- pageOf: (page) => `Página ${page}`,
29
- // A live stream
30
- liveView: "Vista en directo",
31
- liveStatus: {
32
- connecting: "conectando",
33
- live: "en directo",
34
- reconnecting: "reconectando",
35
- ended: "terminado",
36
- unavailable: "no disponible",
37
- },
38
- // Requests: the card's heading by kind
39
- question: "Pregunta",
40
- choice: "Elige una opción",
41
- connect: "Conectar una app",
42
- upload: "Compartir un documento",
43
- approval: "Necesita tu aprobación",
44
- secret: "Necesita una clave",
45
- handOver: "Te toca a ti",
46
- // Requests: what the owner can do
47
- approve: "Aprobar",
48
- reject: "Rechazar",
49
- approved: "Aprobado",
50
- rejected: "Rechazado",
51
- reply: "Responder",
52
- yourAnswer: "Tu respuesta",
53
- moreRows: (count) => `y ${count} más`,
54
- steps: "Lo que tienes que hacer",
55
- doItInTheBrowser: "Hazlo tú en el navegador: tus claves se quedan ahí, el agente no las recibe. Termina el paso (envía el formulario) y luego dile que siga.",
56
- done: "Listo, sigue",
57
- theApp: "la app",
58
- alreadyConnected: (app) => `${app} ya está conectado. No hace falta autorizar nada.`,
59
- continue: "Continuar",
60
- waitingFor: (app) => `Esperando a ${app}…`,
61
- connectWith: (app) => `Conectar con ${app}`,
62
- iConnectedIt: "Ya lo he conectado",
63
- notNow: "Ahora no",
64
- connected: (app) => `${app} conectado`,
65
- notConnectedYet: "Aún no está conectado. Termina la autorización en la ventana que se abrió.",
66
- unsafeAddress: "Esa dirección no es segura y no se puede abrir.",
67
- pasteTheKey: "Pega aquí la clave",
68
- secretValue: (name) => `Valor de ${name}`,
69
- storedEncrypted: "Se guarda cifrada. Ni el builder ni el agente pueden leerla; solo la usan al llamar a ese servicio.",
70
- onlySentTo: "Solo se envía a ",
71
- saveInVault: "Guardar en el vault",
72
- savedInVault: "Guardada en el vault",
73
- chooseAFile: "Elegir un PDF o un texto",
74
- uploading: "Subiendo…",
75
- uploaded: (title) => `Subido: ${title}`,
76
- cannotReadFile: "No se pudo leer el archivo",
77
- cannotUpload: "No se pudo subir",
78
- cannotSend: "No se pudo enviar",
79
- cannotAnswerHere: "Esta pregunta no se puede responder desde aquí.",
80
- cannotStoreHere: "Aquí no se puede guardar. Hazlo desde la app de SignalCore.",
81
- // The message box both chats share
82
- message: "Mensaje",
83
- stop: "Detener",
84
- stopWithKey: "Detener (Esc)",
85
- // The chat with an agent, as the person it serves sees it
86
- agentChat: "Conversación con el agente",
87
- today: "Hoy",
88
- yesterday: "Ayer",
89
- you: "Tú",
90
- theAgent: "Agente",
91
- writing: "Escribiendo…",
92
- waitingForConfirmation: "Esperando una confirmación…",
93
- handedToPerson: "Una persona del equipo te responderá.",
94
- cannotSendMessage: "No se pudo enviar el mensaje. Inténtalo de nuevo.",
95
- cannotFinishAnswer: "No se pudo completar la respuesta. Inténtalo de nuevo.",
96
- loadingConversation: "Cargando la conversación…",
97
- cannotLoadConversation: "No se pudo cargar la conversación.",
98
- chatUnavailable: "El chat no está disponible en este momento.",
99
- defaultPlaceholder: "Escribe un mensaje…",
100
- // La ventana de voz: hablar con el agente, como lo ve la persona a la que atiende
101
- voiceWindow: "Conversación de voz con el agente",
102
- voiceStates: {
103
- idle: "Pulsa para hablar",
104
- listening: "Te escucho…",
105
- thinking: "Pensando…",
106
- speaking: "Hablando…",
107
- },
108
- voiceMuted: "Micrófono silenciado",
109
- startVoice: "Empezar a hablar",
110
- stopVoice: "Terminar la conversación",
111
- muteVoice: "Silenciar el micrófono",
112
- unmuteVoice: "Activar el micrófono",
113
- voiceUnsupported: "Este navegador no puede escuchar ni hablar. Usa Chrome, Edge o Safari, o escribe al agente.",
114
- voiceDenied: "El micrófono está bloqueado. Permítelo en los ajustes del navegador para poder hablar.",
115
- voiceFailed: "La voz ha dejado de funcionar. Inténtalo de nuevo.",
116
- // The chat with the builder, as the owner sees it
117
- builderChat: "Conversación con el builder",
118
- builderEmptyTitle: "¿Qué quieres que haga tu agente?",
119
- builderEmptyBody: "Cuéntaselo como a alguien nuevo en tu equipo. Te hará preguntas, conectará tus herramientas y lo dejará funcionando.",
120
- describeYourAgent: "Describe qué quieres que haga tu agente…",
121
- replyOrAskForChange: "Responde o pide un cambio…",
122
- working: "Trabajando",
123
- writingReply: "Escribiendo",
124
- stepFailed: "falló",
125
- stepStopped: "detenido",
126
- stepDetail: "Ver el detalle",
127
- published: (version) => `Publicado · versión ${version}`,
128
- whatChanged: "Qué ha cambiado",
129
- newAutomation: "Nueva automatización",
130
- newSkill: "Nueva habilidad",
131
- changedPart: "Cambiada",
132
- removedPart: "Quitada",
133
- learned: "Aprendió:",
134
- turnDone: (ok, duration) => `${ok ? "Listo" : "Terminado con problemas"} en ${duration}`,
135
- turnCost: (usd) => `Coste: ${usd}`,
136
- escToStop: "para detener",
137
- // What the builder is doing, a verb for each kind of step
138
- verbs: {
139
- read: "Leer",
140
- write: "Escribir",
141
- edit: "Editar",
142
- run: "Ejecutar",
143
- findFiles: "Buscar archivos",
144
- searchCode: "Buscar en el código",
145
- searchWeb: "Buscar en la web",
146
- readAgentCode: "Leer el código del agente",
147
- save: "Guardar",
148
- checkAgent: "Revisar el agente",
149
- browse: "Navegar",
150
- saveSettings: "Guardar la configuración",
151
- askYou: "Preguntarte",
152
- remember: "Recordar",
153
- checkApps: "Revisar tus apps conectadas",
154
- searchApps: "Buscar apps",
155
- connect: "Conectar",
156
- explore: "Explorar",
157
- useApp: "Usar app",
158
- giveAccess: "Dar acceso a",
159
- workOnAgent: "Trabajar en el agente",
160
- },
161
- connectionLost: "Se perdió la conexión",
162
- files: (count) => `${count} archivos`,
163
- windows: {
164
- loading: "Cargando…",
165
- unavailable: "Esta vista no está disponible en este momento.",
166
- },
167
- automations: {
168
- label: "Lo que hace el agente",
169
- cannotLoad: "No se pudo cargar lo que hace el agente.",
170
- withCustomers: "Con tus clientes",
171
- onItsOwn: "Por su cuenta",
172
- noChannelTitle: "Contesta con lo que sabe",
173
- noChannelTagline: "Aún no está en ningún canal. Pídele en el chat que conecte WhatsApp o Instagram.",
174
- noChannelBody: "Responde a quien le escriba con sus instrucciones y lo que sabe del negocio. Cuando no sabe algo, te pasa la conversación.",
175
- noAutomations: "Todavía nada. Pídele en el chat lo que debe hacer solo: un resumen cada mañana, un aviso cuando llegue algo.",
176
- channelStatus: {
177
- active: "Conectado",
178
- pending: "Esperando el primer mensaje",
179
- error: "Con errores",
180
- disconnected: "Desconectado",
181
- },
182
- status: { active: "Activa", draft: "Sin activar", changed: "Cambios sin activar" },
183
- building: "Construyendo",
184
- when: "Cuándo",
185
- needsApproval: "Te pide permiso",
186
- approvalIn: (action, app) => `${action} en ${app}`,
187
- neverRan: "Todavía no se ha puesto en marcha",
188
- ranLast: (ago) => `Última vez ${ago}`,
189
- failedLast: (ago, error) => `Falló ${ago}${error ? `: ${error}` : ""}`,
190
- thisWeek: (times, failed) => `Esta semana, ${times} ${times === 1 ? "vez" : "veces"}${failed ? `, ${failed} con error` : ""}`,
191
- notConnected: "sin conectar",
192
- everyDayAt: (time) => `Cada día a las ${time}`,
193
- daysAt: (days, time) => `${days} a las ${time}`,
194
- never: "Nunca",
195
- },
196
- flow: {
197
- label: "Mapa del agente",
198
- cannotLoad: "No se pudo cargar el mapa del agente.",
199
- empty: "Todavía no hay partes que dibujar. Cuando el agente tenga automatizaciones, acciones o registros, aquí verás cómo se conectan.",
200
- kinds: {
201
- conduct: "Cómo trabaja",
202
- channels: "Canales",
203
- automations: "Qué hace",
204
- actions: "Acciones",
205
- records: "Registros",
206
- apps: "Apps",
207
- tests: "Pruebas",
208
- dependencies: "Librerías",
209
- other: "Otros archivos",
210
- readme: "Léeme",
211
- },
212
- conductFiles: { instructions: "Instrucciones", settings: "Ajustes" },
213
- outside: {
214
- owner: { label: "Tú", detail: "avisos y permisos" },
215
- browser: { label: "Navegador", detail: "una ventana que maneja" },
216
- files: { label: "Archivos", detail: "lo que guarda" },
217
- store: { label: "Datos", detail: "lo que apunta" },
218
- },
219
- detail: {
220
- action: "acción",
221
- record: "registro",
222
- channel: "canal",
223
- connected: "conectada",
224
- notConnected: "sin conectar",
225
- },
226
- verbs: {
227
- calls: "llama",
228
- writes: "guarda",
229
- reads: "lee",
230
- "uses-app": "usa",
231
- reaches: "avisa",
232
- "starts-from": "dispara",
233
- sends: "envía",
234
- canUse: "puede usar",
235
- },
236
- },
237
- space: {
238
- label: "Espacio del agente",
239
- windows: "Ventanas",
240
- titleOf: (kind) => WINDOW_TITLES[kind],
241
- close: (title) => `Cerrar ${title}`,
242
- reopen: (title) => `Reabrir ${title}`,
243
- openedIn: "Abierto en",
244
- newMessage: "Mensaje nuevo",
245
- noComponent: "Esta ventana no está disponible aquí.",
246
- speak: "Hablar",
247
- write: "Escribir",
248
- captions: "Subtítulos",
249
- answer: "Respuesta",
250
- },
251
- };
@@ -1,16 +0,0 @@
1
- import type { MessageOverrides, Messages } from "./types.js";
2
- export type { MessageOverrides, Messages } from "./types.js";
3
- /** The languages that ship with the package: their words, and how their dates are written. */
4
- export type Locale = "es" | "en";
5
- export declare function isLocale(value: unknown): value is Locale;
6
- /** The words and the locale that dates are written in: what a component speaks. */
7
- export interface Language {
8
- locale: Locale;
9
- messages: Messages;
10
- }
11
- /**
12
- * The language a provider speaks: the locale's dictionary with the host's words laid over it.
13
- * A word the host leaves out (or gives as `undefined`) stays the dictionary's, and a locale the
14
- * package does not know is the default one, Spanish.
15
- */
16
- export declare function languageOf(locale?: Locale, overrides?: MessageOverrides): Language;
@@ -1,33 +0,0 @@
1
- import { en } from "./en.js";
2
- import { es } from "./es.js";
3
- const DICTIONARIES = { es, en };
4
- const DEFAULT_LOCALE = "es";
5
- export function isLocale(value) {
6
- return typeof value === "string" && Object.hasOwn(DICTIONARIES, value);
7
- }
8
- /**
9
- * The language a provider speaks: the locale's dictionary with the host's words laid over it.
10
- * A word the host leaves out (or gives as `undefined`) stays the dictionary's, and a locale the
11
- * package does not know is the default one, Spanish.
12
- */
13
- export function languageOf(locale, overrides) {
14
- const known = isLocale(locale) ? locale : DEFAULT_LOCALE;
15
- const base = DICTIONARIES[known];
16
- return { locale: known, messages: overrides ? layer(base, overrides) : base };
17
- }
18
- const isGroup = (value) => typeof value === "object" && value !== null;
19
- /**
20
- * `words` laid over `base`, one entry at a time through the groups (`verbs`, `flow.kinds`…),
21
- * so changing a single verb leaves the others. A word that is a function is replaced whole, and
22
- * an entry that holds nothing (`{ send: undefined }`) says nothing.
23
- */
24
- function layer(base, words) {
25
- if (words === undefined)
26
- return base;
27
- if (!isGroup(base) || !isGroup(words))
28
- return words;
29
- const merged = { ...base };
30
- for (const [key, word] of Object.entries(words))
31
- merged[key] = layer(base[key], word);
32
- return merged;
33
- }
@@ -1,246 +0,0 @@
1
- import type { LiveStatus } from "../live/follow.js";
2
- import type { VoiceState } from "../voice/voice.js";
3
- import type { DefaultWindowKind } from "../windows/kinds.js";
4
- /**
5
- * Every word the components say themselves, in one place. A language is a dictionary of this
6
- * shape (`es` and `en` ship with the package), and a host changes single words by passing a
7
- * part of it to the provider (`MessageOverrides`). Words that carry a name or a number are
8
- * functions, so each language puts them where it needs them.
9
- */
10
- export interface Messages {
11
- cannotShow: string;
12
- send: string;
13
- sent: string;
14
- blankPage: string;
15
- agentBrowses: string;
16
- agentBrowsing: string;
17
- youHaveControl: string;
18
- shrink: string;
19
- enlarge: string;
20
- openInTab: string;
21
- takeControl: string;
22
- sessionEnded: string;
23
- /** Read aloud before the line saying what the agent does; ends with a space. */
24
- step: string;
25
- browserTitle: (page: string) => string;
26
- pageOf: (page: string) => string;
27
- liveView: string;
28
- liveStatus: Record<LiveStatus, string>;
29
- question: string;
30
- choice: string;
31
- connect: string;
32
- upload: string;
33
- approval: string;
34
- secret: string;
35
- handOver: string;
36
- approve: string;
37
- reject: string;
38
- approved: string;
39
- rejected: string;
40
- reply: string;
41
- yourAnswer: string;
42
- moreRows: (count: number) => string;
43
- steps: string;
44
- doItInTheBrowser: string;
45
- done: string;
46
- theApp: string;
47
- alreadyConnected: (app: string) => string;
48
- continue: string;
49
- waitingFor: (app: string) => string;
50
- connectWith: (app: string) => string;
51
- iConnectedIt: string;
52
- notNow: string;
53
- connected: (app: string) => string;
54
- notConnectedYet: string;
55
- unsafeAddress: string;
56
- pasteTheKey: string;
57
- /** The label of a secret's box, by its name. (Not `valueOf`: every object has one of those.) */
58
- secretValue: (name: string) => string;
59
- storedEncrypted: string;
60
- /** Read before the hosts a secret is sent to; ends with a space. */
61
- onlySentTo: string;
62
- saveInVault: string;
63
- savedInVault: string;
64
- chooseAFile: string;
65
- uploading: string;
66
- uploaded: (title: string) => string;
67
- cannotReadFile: string;
68
- cannotUpload: string;
69
- cannotSend: string;
70
- cannotAnswerHere: string;
71
- cannotStoreHere: string;
72
- message: string;
73
- stop: string;
74
- stopWithKey: string;
75
- agentChat: string;
76
- today: string;
77
- yesterday: string;
78
- you: string;
79
- theAgent: string;
80
- writing: string;
81
- waitingForConfirmation: string;
82
- handedToPerson: string;
83
- cannotSendMessage: string;
84
- cannotFinishAnswer: string;
85
- loadingConversation: string;
86
- cannotLoadConversation: string;
87
- chatUnavailable: string;
88
- defaultPlaceholder: string;
89
- voiceWindow: string;
90
- /** What the window says under the orb, by where the conversation stands. */
91
- voiceStates: Record<VoiceState, string>;
92
- voiceMuted: string;
93
- startVoice: string;
94
- stopVoice: string;
95
- muteVoice: string;
96
- unmuteVoice: string;
97
- voiceUnsupported: string;
98
- voiceDenied: string;
99
- voiceFailed: string;
100
- builderChat: string;
101
- builderEmptyTitle: string;
102
- builderEmptyBody: string;
103
- describeYourAgent: string;
104
- replyOrAskForChange: string;
105
- working: string;
106
- writingReply: string;
107
- stepFailed: string;
108
- stepStopped: string;
109
- stepDetail: string;
110
- published: (version: number) => string;
111
- whatChanged: string;
112
- newAutomation: string;
113
- newSkill: string;
114
- changedPart: string;
115
- removedPart: string;
116
- learned: string;
117
- turnDone: (ok: boolean, duration: string) => string;
118
- turnCost: (usd: string) => string;
119
- escToStop: string;
120
- /** What the builder is doing, a verb for each kind of step. */
121
- verbs: {
122
- read: string;
123
- write: string;
124
- edit: string;
125
- run: string;
126
- findFiles: string;
127
- searchCode: string;
128
- searchWeb: string;
129
- readAgentCode: string;
130
- save: string;
131
- checkAgent: string;
132
- browse: string;
133
- saveSettings: string;
134
- askYou: string;
135
- remember: string;
136
- checkApps: string;
137
- searchApps: string;
138
- connect: string;
139
- explore: string;
140
- useApp: string;
141
- giveAccess: string;
142
- workOnAgent: string;
143
- };
144
- connectionLost: string;
145
- files: (count: number) => string;
146
- /** Words every window of an agent shares (see `AutomationsWindow`, `FlowWindow`). */
147
- windows: {
148
- loading: string;
149
- /** There is no overview to draw and no client to ask for one. */
150
- unavailable: string;
151
- };
152
- /** The automations window: what the agent does, in the owner's words. */
153
- automations: {
154
- /** What the window is called to someone who cannot see it. */
155
- label: string;
156
- cannotLoad: string;
157
- withCustomers: string;
158
- onItsOwn: string;
159
- /** A channel's card before there is any: the agent answers with what it knows. */
160
- noChannelTitle: string;
161
- noChannelTagline: string;
162
- noChannelBody: string;
163
- noAutomations: string;
164
- /** How a channel stands, by the state the overview names. */
165
- channelStatus: Record<"active" | "pending" | "error" | "disconnected", string>;
166
- /** How an automation stands, by the state the overview names. */
167
- status: Record<"active" | "draft" | "changed", string>;
168
- /** The builder is working on this automation right now. */
169
- building: string;
170
- when: string;
171
- needsApproval: string;
172
- approvalIn: (action: string, app: string) => string;
173
- neverRan: string;
174
- ranLast: (ago: string) => string;
175
- failedLast: (ago: string, error: string | null) => string;
176
- thisWeek: (times: number, failed: number) => string;
177
- /** An app of the automation that the owner has not connected yet. */
178
- notConnected: string;
179
- everyDayAt: (time: string) => string;
180
- /** `days` is a list in the language ("lunes, martes y jueves"). */
181
- daysAt: (days: string, time: string) => string;
182
- never: string;
183
- };
184
- /** The flow window: the agent as a map of its parts. */
185
- flow: {
186
- label: string;
187
- cannotLoad: string;
188
- empty: string;
189
- /** The folders of the agent's package, in the owner's words. */
190
- kinds: Record<"conduct" | "channels" | "automations" | "actions" | "records" | "apps" | "tests" | "dependencies" | "other" | "readme", string>;
191
- /** The two files of the conduct folder that have a name of their own. */
192
- conductFiles: {
193
- instructions: string;
194
- settings: string;
195
- };
196
- /** What a part reaches outside the package: its name, and a word under it. */
197
- outside: Record<"owner" | "browser" | "files" | "store", {
198
- label: string;
199
- detail: string;
200
- }>;
201
- /** The word under a node, by what it is. */
202
- detail: {
203
- action: string;
204
- record: string;
205
- channel: string;
206
- connected: string;
207
- notConnected: string;
208
- };
209
- /** What a line between two parts says, by what the code does. */
210
- verbs: Record<"calls" | "writes" | "reads" | "uses-app" | "reaches" | "starts-from" | "sends" | "canUse", string>;
211
- };
212
- /** The shell that holds the windows (`AgentSpace`): its strip, its stage and its dock. */
213
- space: {
214
- /** What the shell is called to someone who cannot see it. */
215
- label: string;
216
- /** What the strip of open windows is called. */
217
- windows: string;
218
- /** What a default window is called when nobody named it. */
219
- titleOf: (kind: DefaultWindowKind) => string;
220
- close: (title: string) => string;
221
- reopen: (title: string) => string;
222
- /** Read before the title of the window a surface was opened in; the title follows. */
223
- openedIn: string;
224
- /** The mark on the conversation when the agent said something while another window was open. */
225
- newMessage: string;
226
- /** A window whose kind no component here draws, and that the agent gave no words for. */
227
- noComponent: string;
228
- /** The button that turns the conversation into a voice one, and the one that turns it back. */
229
- speak: string;
230
- write: string;
231
- /** What the words the conversation collapses to in voice mode are called. */
232
- captions: string;
233
- /** The window a spoken answer's surface gets when the agent placed it in none. */
234
- answer: string;
235
- };
236
- }
237
- /** A shape with every level optional; a word that is a function is changed whole. */
238
- type Layer<T> = T extends (...args: never[]) => unknown ? T : T extends object ? {
239
- [K in keyof T]?: Layer<T[K]>;
240
- } : T;
241
- /**
242
- * The words a host changes: any of them, laid over the language's dictionary. The groups
243
- * (`verbs`, `liveStatus`, `voiceStates`, `automations`, `flow`…) can be changed one entry at a time.
244
- */
245
- export type MessageOverrides = Layer<Messages>;
246
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import type { ButtonHTMLAttributes } from "react";
2
- export interface PushButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: "primary" | "secondary" | "ghost" | undefined;
4
- size?: "sm" | "md" | undefined;
5
- /** A spinner takes the label's place beside it, and the button cannot be pressed. */
6
- loading?: boolean | undefined;
7
- }
8
- /**
9
- * Our push button: a secondary one has a little body, the primary one is the accent. The look
10
- * is all in styles.css (`.sc-button--primary`…). This is what the platform's own cards use; a
11
- * surface is drawn with the host's `Button` when the provider has one.
12
- */
13
- export declare function Button({ variant, size, loading, className, children, disabled, type, ...props }: PushButtonProps): import("react").JSX.Element;
14
- /** A button that is only an icon: the label is what it is called, and its tooltip. */
15
- export declare function IconButton({ label, modifier, children, type, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & {
16
- label: string;
17
- modifier?: string;
18
- }): import("react").JSX.Element;
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useParts } from "../SignalcoreProvider.js";
3
- import { Spinner } from "./Spinner.js";
4
- /**
5
- * Our push button: a secondary one has a little body, the primary one is the accent. The look
6
- * is all in styles.css (`.sc-button--primary`…). This is what the platform's own cards use; a
7
- * surface is drawn with the host's `Button` when the provider has one.
8
- */
9
- export function Button({ variant = "secondary", size = "md", loading = false, className, children, disabled, type = "button", ...props }) {
10
- const part = useParts();
11
- return (_jsxs("button", { type: type, disabled: disabled ?? loading, ...part("button", [variant, size], className), ...props, children: [loading && _jsx(Spinner, {}), children] }));
12
- }
13
- /** A button that is only an icon: the label is what it is called, and its tooltip. */
14
- export function IconButton({ label, modifier, children, type = "button", ...props }) {
15
- const part = useParts();
16
- return (_jsx("button", { type: type, "aria-label": label, title: label, ...part("icon-button", [modifier]), ...props, children: children }));
17
- }
@@ -1,39 +0,0 @@
1
- import type { Slot } from "../look.js";
2
- /**
3
- * The few marks the cards and the browser need, drawn from Phosphor Icons (MIT, phosphoricons.com;
4
- * the regular weight, as the web app draws them) so the package carries no icon dependency.
5
- */
6
- declare const PATHS: {
7
- readonly check: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z";
8
- readonly question: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z";
9
- readonly listChecks: "M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z";
10
- readonly plug: "M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z";
11
- readonly upload: "M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z";
12
- readonly shieldWarning: "M120,136V96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,48a12,12,0,1,0-12-12A12,12,0,0,0,128,184ZM224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Zm-16,0L48,56l0,56c0,37.3,13.82,67.51,41.07,89.81A128.25,128.25,0,0,0,128,223.62a129.3,129.3,0,0,0,39.41-22.2C194.34,179.16,208,149.07,208,112Z";
13
- readonly key: "M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z";
14
- readonly cursorClick: "M88,24V16a8,8,0,0,1,16,0v8a8,8,0,0,1-16,0ZM16,104h8a8,8,0,0,0,0-16H16a8,8,0,0,0,0,16ZM124.42,39.16a8,8,0,0,0,10.74-3.58l8-16a8,8,0,0,0-14.31-7.16l-8,16A8,8,0,0,0,124.42,39.16Zm-96,81.69-16,8a8,8,0,0,0,7.16,14.31l16-8a8,8,0,1,0-7.16-14.31ZM219.31,184a16,16,0,0,1,0,22.63l-12.68,12.68a16,16,0,0,1-22.63,0L132.7,168,115,214.09c0,.1-.08.21-.13.32a15.83,15.83,0,0,1-14.6,9.59l-.79,0a15.83,15.83,0,0,1-14.41-11L32.8,52.92A16,16,0,0,1,52.92,32.8L213,85.07a16,16,0,0,1,1.41,29.8l-.32.13L168,132.69ZM208,195.31,156.69,144h0a16,16,0,0,1,4.93-26l.32-.14,45.95-17.64L48,48l52.2,159.86,17.65-46c0-.11.08-.22.13-.33a16,16,0,0,1,11.69-9.34,16.72,16.72,0,0,1,3-.28,16,16,0,0,1,11.3,4.69L195.31,208Z";
15
- readonly arrowsIn: "M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z";
16
- readonly arrowsOut: "M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z";
17
- readonly squareOut: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z";
18
- readonly arrowUp: "M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z";
19
- readonly stop: "M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Z";
20
- readonly caretDown: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z";
21
- readonly x: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z";
22
- readonly microphone: "M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z";
23
- readonly microphoneSlash: "M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z";
24
- };
25
- export type IconName = keyof typeof PATHS;
26
- /**
27
- * A mark drawn from a Phosphor path (its 256-unit box), for the windows that carry their own
28
- * tables of them. As large as the text around it; `slot` names it for the places that size it.
29
- */
30
- export declare function Mark({ path, slot }: {
31
- path: string;
32
- slot?: Slot;
33
- }): import("react").JSX.Element;
34
- /** One of the marks above, as large as the text around it. */
35
- export declare function Icon({ name, slot }: {
36
- name: IconName;
37
- slot?: Slot;
38
- }): import("react").JSX.Element;
39
- export {};