@arcgis/ai-components 5.2.0-next.11 → 5.2.0-next.110

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 (371) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/agent-utils/BaseAgent.js +1 -1
  4. package/dist/agent-utils/FunctionAgent.js +1 -1
  5. package/dist/agent-utils/LLMAgent.d.ts +5 -2
  6. package/dist/agent-utils/LLMAgent.js +7 -4
  7. package/dist/agent-utils/WorkflowAgent.js +15 -16
  8. package/dist/agent-utils/index.d.ts +78 -0
  9. package/dist/agent-utils/index.js +117 -98
  10. package/dist/agent-utils/middlewares/humanInTheLoop.js +1 -1
  11. package/dist/agent-utils/middlewares/middleware.js +1 -1
  12. package/dist/agent-utils/middlewares/trace.d.ts +2 -0
  13. package/dist/agent-utils/middlewares/trace.js +1 -1
  14. package/dist/agent-utils/middlewares/types.js +1 -1
  15. package/dist/agent-utils/tools/FunctionTool.js +1 -1
  16. package/dist/agent-utils/types.d.ts +13 -13
  17. package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
  18. package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
  19. package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
  20. package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
  21. package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
  22. package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
  23. package/dist/agentic-workflow/AgenticWorkflowRuntime.d.ts +24 -0
  24. package/dist/agentic-workflow/Edge.d.ts +16 -0
  25. package/dist/agentic-workflow/WebAgent.d.ts +39 -0
  26. package/dist/agentic-workflow/jsonTypes.d.ts +189 -0
  27. package/dist/agentic-workflow/nodes/AgentNode.d.ts +28 -0
  28. package/dist/agentic-workflow/nodes/BaseNode.d.ts +35 -0
  29. package/dist/agentic-workflow/nodes/EndMessageNode.d.ts +25 -0
  30. package/dist/agentic-workflow/nodes/StartNode.d.ts +21 -0
  31. package/dist/agentic-workflow/nodes/tools/ArcgisTool.d.ts +21 -0
  32. package/dist/agentic-workflow/types.d.ts +29 -0
  33. package/dist/agents/runtime/skill/createSkillAgent.d.ts +31 -0
  34. package/dist/agents/runtime/skill/createSkillAgent.js +260 -0
  35. package/dist/agents/runtime/skill/loadAgentSkills.d.ts +16 -0
  36. package/dist/agents/runtime/skill/types.d.ts +28 -0
  37. package/dist/agents/runtime/skill/types.js +2 -0
  38. package/dist/agents/tools/filter/clearFilters/adapter.d.ts +8 -0
  39. package/dist/agents/tools/filter/clearFilters/adapter.js +22 -0
  40. package/dist/agents/tools/filter/resetMap/adapter.d.ts +8 -0
  41. package/dist/agents/tools/filter/resetMap/adapter.js +22 -0
  42. package/dist/agents/tools/filter/setFeatureEffect/adapter.d.ts +8 -0
  43. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +122 -0
  44. package/dist/agents/tools/help/listFields/adapter.d.ts +11 -0
  45. package/dist/agents/tools/help/listFields/adapter.js +30 -0
  46. package/dist/agents/tools/navigation/goToAddress/adapter.d.ts +10 -0
  47. package/dist/agents/tools/navigation/goToAddress/adapter.js +60 -0
  48. package/dist/agents/tools/navigation/goToBookmark/adapter.d.ts +8 -0
  49. package/dist/agents/tools/navigation/goToBookmark/adapter.js +30 -0
  50. package/dist/agents/tools/navigation/goToFeatures/adapter.d.ts +8 -0
  51. package/dist/agents/tools/navigation/goToFeatures/adapter.js +50 -0
  52. package/dist/agents/tools/navigation/goToFullExtent/adapter.d.ts +8 -0
  53. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +27 -0
  54. package/dist/agents/tools/navigation/goToHomeExtent/adapter.d.ts +8 -0
  55. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +24 -0
  56. package/dist/agents/tools/navigation/goToLayer/adapter.d.ts +8 -0
  57. package/dist/agents/tools/navigation/goToLayer/adapter.js +26 -0
  58. package/dist/agents/tools/navigation/goToScale/adapter.d.ts +8 -0
  59. package/dist/agents/tools/navigation/goToScale/adapter.js +21 -0
  60. package/dist/agents/tools/navigation/goToViewpoint/adapter.d.ts +8 -0
  61. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +42 -0
  62. package/dist/agents/tools/navigation/goToZoom/adapter.d.ts +8 -0
  63. package/dist/agents/tools/navigation/goToZoom/adapter.js +21 -0
  64. package/dist/agents/tools/query/getAttribute/adapter.d.ts +8 -0
  65. package/dist/agents/tools/query/getAttribute/adapter.js +40 -0
  66. package/dist/agents/tools/query/getStatistics/adapter.d.ts +8 -0
  67. package/dist/agents/tools/query/getStatistics/adapter.js +158 -0
  68. package/dist/agents/tools/query/getTopFeatures/adapter.d.ts +8 -0
  69. package/dist/agents/tools/query/getTopFeatures/adapter.js +145 -0
  70. package/dist/agents/tools/query/queryFeatures/adapter.d.ts +8 -0
  71. package/dist/agents/tools/query/queryFeatures/adapter.js +131 -0
  72. package/dist/agents/tools/search/findRelevantFields/adapter.d.ts +8 -0
  73. package/dist/agents/tools/search/findRelevantFields/adapter.js +57 -0
  74. package/dist/agents/tools/search/findRelevantLayers/adapter.d.ts +8 -0
  75. package/dist/agents/tools/search/findRelevantLayers/adapter.js +38 -0
  76. package/dist/agents/tools/shared/resolveToolArtifact.d.ts +22 -0
  77. package/dist/agents/tools/shared/resolveToolArtifact.js +20 -0
  78. package/dist/agents/tools/shared/types.d.ts +22 -0
  79. package/dist/agents/tools/shared/types.js +6 -0
  80. package/dist/cdn/24EIZVUM.js +2 -0
  81. package/dist/cdn/25MBI4PD.js +2 -0
  82. package/dist/cdn/275FFTBE.js +2 -0
  83. package/dist/cdn/27CK3JHY.js +2 -0
  84. package/dist/cdn/2F4TPWZQ.js +2 -0
  85. package/dist/cdn/2LVYAXHG.js +44 -0
  86. package/dist/cdn/2UJPYWWZ.js +3 -0
  87. package/dist/cdn/2WXXSZP5.js +2 -0
  88. package/dist/cdn/{Q7TL5Q5N.js → 3KNLFIM3.js} +2 -2
  89. package/dist/cdn/3PPXAIRE.js +14 -0
  90. package/dist/cdn/45BDE3MG.js +2 -0
  91. package/dist/cdn/477I66FH.js +56 -0
  92. package/dist/cdn/4CFCV47G.js +2 -0
  93. package/dist/cdn/4IWDBEMN.js +34 -0
  94. package/dist/cdn/4OI4QEV7.js +6 -0
  95. package/dist/cdn/{DXVU45KM.js → 4VBOTWC3.js} +2 -2
  96. package/dist/cdn/4YOG5F3W.js +2 -0
  97. package/dist/cdn/53KIFJFA.js +4 -0
  98. package/dist/cdn/5X23DDDZ.js +2 -0
  99. package/dist/cdn/65LCK3GG.js +3 -0
  100. package/dist/cdn/6KWGSXIN.js +2 -0
  101. package/dist/cdn/7DOYUO7L.js +71 -0
  102. package/dist/cdn/{WAIFKDR3.js → 7UBTNDV6.js} +2 -2
  103. package/dist/cdn/7Y43R7QJ.js +2 -0
  104. package/dist/cdn/A6LBMS7A.js +2 -0
  105. package/dist/cdn/AP3KPOHN.js +2 -0
  106. package/dist/cdn/AUCKEB52.js +2 -0
  107. package/dist/cdn/B3HXSEBN.js +2 -0
  108. package/dist/cdn/BBEGLIZC.js +2 -0
  109. package/dist/cdn/BJMGT6GV.js +19 -0
  110. package/dist/cdn/BTOBEN7Q.js +2 -0
  111. package/dist/cdn/BTTCBEPW.js +2 -0
  112. package/dist/cdn/BVUCNXC5.js +2 -0
  113. package/dist/cdn/CAOMMQSY.js +66 -0
  114. package/dist/cdn/CKUUYQLO.js +2 -0
  115. package/dist/cdn/{ZEYIBYSF.js → CSE6BHOJ.js} +2 -2
  116. package/dist/cdn/CX2HJ67C.js +2 -0
  117. package/dist/cdn/EGRRZTF6.js +2 -0
  118. package/dist/cdn/EK3PM4L5.js +2 -0
  119. package/dist/cdn/EXMEB4X2.js +2 -0
  120. package/dist/cdn/EYGZJKVD.js +2 -0
  121. package/dist/cdn/{24QNMEFG.js → FDRAKF5D.js} +2 -2
  122. package/dist/cdn/FHBRXZLV.js +2 -0
  123. package/dist/cdn/{5CV7R5IS.js → FK2CVSXW.js} +6 -6
  124. package/dist/cdn/FLUI6GCU.js +2 -0
  125. package/dist/cdn/{ZTBA5PM7.js → FPH52WOH.js} +2 -2
  126. package/dist/cdn/FRYS2PZJ.js +2 -0
  127. package/dist/cdn/FSLQCZRN.js +2 -0
  128. package/dist/cdn/{LQ6R5YRN.js → FTTLFIBV.js} +2 -2
  129. package/dist/cdn/FV6FHLYW.js +2 -0
  130. package/dist/cdn/G24MNC7D.js +6 -0
  131. package/dist/cdn/{F6QHMKF5.js → GW3IVAAZ.js} +2 -2
  132. package/dist/cdn/HI3XKFHD.js +2 -0
  133. package/dist/cdn/HKIA5PWU.js +2 -0
  134. package/dist/cdn/{6ZW7Z36F.js → HMMYCSOK.js} +4 -4
  135. package/dist/cdn/HNTSDY3J.js +2 -0
  136. package/dist/cdn/HV7MVIQV.js +2 -0
  137. package/dist/cdn/I3SUE2TR.js +2 -0
  138. package/dist/cdn/I72ST4JR.js +134 -0
  139. package/dist/cdn/{T537PKP4.js → IHUWQOMK.js} +2 -2
  140. package/dist/cdn/JMXXRRKQ.js +22 -0
  141. package/dist/cdn/JUNMTIB3.js +2 -0
  142. package/dist/cdn/{6YMR4QSD.js → JYNHWJUZ.js} +2 -2
  143. package/dist/cdn/KAX4A7SF.js +2 -0
  144. package/dist/cdn/KBSXHSBX.js +2 -0
  145. package/dist/cdn/KKCLHXHG.js +2 -0
  146. package/dist/cdn/L2HLFWCV.js +72 -0
  147. package/dist/cdn/{7RCQFLPP.js → L3BTURBA.js} +2 -2
  148. package/dist/cdn/LBTGOMCT.js +2 -0
  149. package/dist/cdn/LIRT72WY.js +2 -0
  150. package/dist/cdn/LL324IL6.js +2 -0
  151. package/dist/cdn/LLY5A2E2.js +2 -0
  152. package/dist/cdn/LXIKAXUT.js +2 -0
  153. package/dist/cdn/M2U456J5.js +181 -0
  154. package/dist/cdn/M3KKORBG.js +2 -0
  155. package/dist/cdn/M5B6X46F.js +2 -0
  156. package/dist/cdn/{X2ZDYHCG.js → MZUDIQQH.js} +11 -6
  157. package/dist/cdn/NBDOPGSN.js +2 -0
  158. package/dist/cdn/NGR5NVZE.js +2 -0
  159. package/dist/cdn/{5ZZGKP7N.js → NNPA3NLK.js} +2 -2
  160. package/dist/cdn/NV7CL4S3.js +2 -0
  161. package/dist/cdn/{5W7S2RS4.js → OALQBAZR.js} +2 -2
  162. package/dist/cdn/OF3TAARW.js +2 -0
  163. package/dist/cdn/{AZGGTNA3.js → OXC2WP7W.js} +2 -2
  164. package/dist/cdn/PJPP6LOS.js +3 -0
  165. package/dist/cdn/PUZ6RAFQ.js +2 -0
  166. package/dist/cdn/QAX6UF4L.js +99 -0
  167. package/dist/cdn/{NE7E52YR.js → QTEPFTAU.js} +10 -4
  168. package/dist/cdn/ROS22KOA.js +2 -0
  169. package/dist/cdn/RSM7MEVT.js +9 -0
  170. package/dist/cdn/SBNNJ5WA.js +2 -0
  171. package/dist/cdn/SDX46GZY.js +2 -0
  172. package/dist/cdn/SI22EJLC.js +2 -0
  173. package/dist/cdn/SJMAKF4P.js +2 -0
  174. package/dist/cdn/SNG3WODY.js +2 -0
  175. package/dist/cdn/STOGCXJH.js +2 -0
  176. package/dist/cdn/SUC2MIGE.js +2 -0
  177. package/dist/cdn/SXYKNDOF.js +2 -0
  178. package/dist/cdn/SZ2L5556.js +2 -0
  179. package/dist/cdn/T6W6F4TF.js +2 -0
  180. package/dist/cdn/TB2GJALS.js +2 -0
  181. package/dist/cdn/TFAJNKBC.js +2 -0
  182. package/dist/cdn/TLPZELG3.js +2 -0
  183. package/dist/cdn/TXZQZR3I.js +2 -0
  184. package/dist/cdn/UAZPINUQ.js +2 -0
  185. package/dist/cdn/UGIHS7OA.js +2 -0
  186. package/dist/cdn/{FX7UOGHP.js → V266DJ5V.js} +2 -2
  187. package/dist/cdn/V4PJMCJZ.js +2 -0
  188. package/dist/cdn/{P7DG5T3Z.js → V52GSTOC.js} +2 -2
  189. package/dist/cdn/VGLBH473.js +2 -0
  190. package/dist/cdn/VK6CCPTG.js +2 -0
  191. package/dist/cdn/{ZS2TZ6BF.js → VLPELJUS.js} +2 -2
  192. package/dist/cdn/VT5EWFH7.js +2 -0
  193. package/dist/cdn/{7CYGX4F4.js → VXLKTQ36.js} +2 -2
  194. package/dist/cdn/W54XYT2A.js +2 -0
  195. package/dist/cdn/X42ACC66.js +5 -0
  196. package/dist/cdn/XNUWVZN7.js +2 -0
  197. package/dist/cdn/XOTPSCNF.js +2 -0
  198. package/dist/cdn/XRVGYRXL.js +14 -0
  199. package/dist/cdn/XV7RMYLR.js +2 -0
  200. package/dist/cdn/XVJFPZTW.js +2 -0
  201. package/dist/cdn/XZF7Y6B2.js +2 -0
  202. package/dist/cdn/{UPEEHMSY.js → Y4TYL2AL.js} +2 -2
  203. package/dist/cdn/Y4ZOB6UH.js +2 -0
  204. package/dist/cdn/Y6CV2NZR.js +2 -0
  205. package/dist/cdn/YIXASZUW.js +2 -0
  206. package/dist/cdn/YOW3YKWR.js +11 -0
  207. package/dist/cdn/{23EQTPO3.js → ZA7ZU2F7.js} +2 -2
  208. package/dist/cdn/ZJWR4W2S.js +208 -0
  209. package/dist/cdn/ZWIKFBOU.js +2 -0
  210. package/dist/cdn/ZY3JQCZQ.js +179 -0
  211. package/dist/cdn/agent-utils/index.js +2 -2
  212. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -2
  213. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
  214. package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
  215. package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -1
  216. package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
  217. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.en.json +1 -0
  218. package/dist/cdn/assets/assistant-message/t9n/messages.en.json +1 -0
  219. package/dist/cdn/assets/assistant-message-loading/t9n/messages.en.json +1 -0
  220. package/dist/cdn/index.js +2 -2
  221. package/dist/chunks/BaseWorkflow.js +1 -1
  222. package/dist/chunks/SKILL.js +5 -0
  223. package/dist/chunks/SKILL2.js +5 -0
  224. package/dist/chunks/SKILL3.js +22 -0
  225. package/dist/chunks/SKILL4.js +5 -0
  226. package/dist/chunks/adapter.js +1127 -2011
  227. package/dist/chunks/aiFactory.js +94 -0
  228. package/dist/chunks/arcgisKnowledgeGraph.js +97 -77
  229. package/dist/chunks/arcgisToolRegistry.js +88 -0
  230. package/dist/chunks/arcgis_knowledge_current_lc_context.js +20 -3
  231. package/dist/chunks/arcgis_knowledge_current_map_context.js +32 -3
  232. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +102 -0
  233. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
  234. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +117 -28
  235. package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
  236. package/dist/chunks/baseAgentState.js +58 -0
  237. package/dist/chunks/converterUtils.js +67 -42
  238. package/dist/chunks/dataExplorationAgent.js +19 -0
  239. package/dist/chunks/data_explore_filter_prompt.js +1 -1
  240. package/dist/chunks/data_explore_query_prompt.js +10 -5
  241. package/dist/chunks/embeddings.worker.js +1 -1
  242. package/dist/chunks/fetchAgentContext.js +13 -0
  243. package/dist/chunks/fetchService.js +10 -0
  244. package/dist/chunks/fieldStatistics.js +79 -0
  245. package/dist/chunks/field_descriptions_prompt.js +1 -1
  246. package/dist/chunks/formatFeatureAttributes.js +132 -0
  247. package/dist/chunks/generateLayerDescriptions.js +190 -311
  248. package/dist/chunks/graph.js +1 -1
  249. package/dist/chunks/helpAgent.js +34 -0
  250. package/dist/chunks/help_prompt.js +35 -18
  251. package/dist/chunks/index.js +1 -1
  252. package/dist/chunks/intent_prompt.js +3 -3
  253. package/dist/chunks/layerStylingGraph.js +102 -84
  254. package/dist/chunks/layer_descriptions_prompt.js +1 -1
  255. package/dist/chunks/layer_styling_prompt.js +1 -1
  256. package/dist/chunks/mergeWhereClauses.js +15 -0
  257. package/dist/chunks/navigationAgent.js +27 -0
  258. package/dist/chunks/navigation_intent_prompt.js +9 -3
  259. package/dist/chunks/navigation_tool_prompt.js +1 -1
  260. package/dist/chunks/orchestrator.js +446 -235
  261. package/dist/chunks/requireAgentServices.js +11 -0
  262. package/dist/chunks/resolvePointGeometryFilter.js +92 -0
  263. package/dist/chunks/runtime.js +1 -1
  264. package/dist/chunks/slottableRequestUtils.js +1 -1
  265. package/dist/chunks/state.js +22 -28
  266. package/dist/chunks/summarize_query_response_prompt.js +1 -1
  267. package/dist/chunks/useT9n.js +1 -1
  268. package/dist/chunks/utils.js +1 -1
  269. package/dist/chunks/utils2.js +12 -12
  270. package/dist/chunks/utils3.js +1 -1
  271. package/dist/components/arcgis-assistant/customElement.d.ts +102 -1
  272. package/dist/components/arcgis-assistant/customElement.js +332 -184
  273. package/dist/components/arcgis-assistant-agent/customElement.d.ts +13 -1
  274. package/dist/components/arcgis-assistant-agent/customElement.js +533 -11
  275. package/dist/components/arcgis-assistant-chat/customElement.js +23 -18
  276. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  277. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +35 -9
  278. package/dist/components/arcgis-assistant-help-agent/customElement.js +32 -9
  279. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -0
  280. package/dist/components/arcgis-assistant-interrupt/customElement.js +12 -13
  281. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +13 -9
  282. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +1 -1
  283. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +41 -17
  284. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +31 -8
  285. package/dist/components/arcgis-assistant-message/customElement.d.ts +3 -0
  286. package/dist/components/arcgis-assistant-message/customElement.js +10 -9
  287. package/dist/components/arcgis-assistant-message-block/customElement.js +2 -2
  288. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  289. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  290. package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +3 -0
  291. package/dist/components/arcgis-assistant-message-loading/customElement.js +12 -11
  292. package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
  293. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
  294. package/dist/components/arcgis-assistant-message-text/customElement.d.ts +1 -0
  295. package/dist/components/arcgis-assistant-message-text/customElement.js +13 -13
  296. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +34 -10
  297. package/dist/components/arcgis-assistant-speech-input/customElement.js +35 -53
  298. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  299. package/dist/components/arcgis-assistant-user-message/customElement.d.ts +2 -0
  300. package/dist/components/arcgis-assistant-user-message/customElement.js +16 -11
  301. package/dist/docs/api.json +1 -1
  302. package/dist/docs/docs.json +1 -1
  303. package/dist/docs/vscode.html-custom-data.json +1 -1
  304. package/dist/docs/web-types.json +1 -1
  305. package/dist/index.js +1 -1
  306. package/dist/loader.js +7 -7
  307. package/dist/oauth-callback.html +1 -1
  308. package/dist/orchestrator/models/types.d.ts +1 -0
  309. package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +78 -0
  310. package/dist/orchestrator/providers/arcgis/aiFactory.d.ts +15 -0
  311. package/dist/orchestrator/types/types.d.ts +17 -0
  312. package/dist/types/lumina.d.ts +5 -4
  313. package/dist/types/preact.d.ts +5 -4
  314. package/dist/types/react.d.ts +5 -4
  315. package/dist/types/stencil.d.ts +7 -6
  316. package/dist/utils/index.d.ts +75 -39
  317. package/dist/utils/index.js +708 -84
  318. package/package.json +35 -12
  319. package/dist/cdn/34SG44C3.js +0 -72
  320. package/dist/cdn/3JGWGKT6.js +0 -2
  321. package/dist/cdn/3NBDVZ2I.js +0 -2
  322. package/dist/cdn/3VOQD2MR.js +0 -2
  323. package/dist/cdn/434TAA3J.js +0 -2
  324. package/dist/cdn/53NTYC4I.js +0 -2
  325. package/dist/cdn/5QAHYX7Y.js +0 -5
  326. package/dist/cdn/AXDZBBNL.js +0 -45
  327. package/dist/cdn/B7WJFBOZ.js +0 -2
  328. package/dist/cdn/BX7FSMUU.js +0 -56
  329. package/dist/cdn/CHPQM77M.js +0 -181
  330. package/dist/cdn/DHKUXLU3.js +0 -179
  331. package/dist/cdn/DQSEBKOX.js +0 -2
  332. package/dist/cdn/DZ2QWNUA.js +0 -3
  333. package/dist/cdn/EBISDZ5H.js +0 -2
  334. package/dist/cdn/ERL2CB2Y.js +0 -14
  335. package/dist/cdn/F2AHA4GB.js +0 -54
  336. package/dist/cdn/FUIGPHBH.js +0 -2
  337. package/dist/cdn/H2CHHGGH.js +0 -2
  338. package/dist/cdn/HWKDNS4K.js +0 -4
  339. package/dist/cdn/IMQ4TVHF.js +0 -16
  340. package/dist/cdn/IOD3GDA7.js +0 -2
  341. package/dist/cdn/IR7PTESF.js +0 -2
  342. package/dist/cdn/IRZDTYO2.js +0 -2
  343. package/dist/cdn/JIWK6QK6.js +0 -2
  344. package/dist/cdn/JLKGS6Y5.js +0 -36
  345. package/dist/cdn/K3JCH4XW.js +0 -2
  346. package/dist/cdn/KHXUWZHB.js +0 -2
  347. package/dist/cdn/KMQ3SP4I.js +0 -5
  348. package/dist/cdn/LIFK3QSD.js +0 -2
  349. package/dist/cdn/NXKKG5TK.js +0 -2
  350. package/dist/cdn/O3EN27N5.js +0 -2
  351. package/dist/cdn/O3RFFPU3.js +0 -6
  352. package/dist/cdn/PBO6FZN6.js +0 -2
  353. package/dist/cdn/Q3ZW4FYA.js +0 -3
  354. package/dist/cdn/Q6LRANX6.js +0 -2
  355. package/dist/cdn/QCSN44H4.js +0 -2
  356. package/dist/cdn/R56X6ZKR.js +0 -161
  357. package/dist/cdn/RUURNLTP.js +0 -2
  358. package/dist/cdn/T43LEBBE.js +0 -47
  359. package/dist/cdn/TR4GFL7X.js +0 -2
  360. package/dist/cdn/WNS5ZUF5.js +0 -2
  361. package/dist/cdn/X4XY5HIE.js +0 -2
  362. package/dist/cdn/XOH56EQ2.js +0 -2
  363. package/dist/cdn/XON27U6U.js +0 -2
  364. package/dist/cdn/YIMNOUTF.js +0 -2
  365. package/dist/cdn/YLN2BZ5J.js +0 -2
  366. package/dist/cdn/YUKR4AZW.js +0 -2
  367. package/dist/cdn/Z2G7MP5L.js +0 -22
  368. package/dist/chunks/dataExplorationGraph.js +0 -310
  369. package/dist/chunks/helpGraph.js +0 -126
  370. package/dist/chunks/navigationGraph.js +0 -270
  371. package/dist/chunks/toolCallResponse.js +0 -31
@@ -0,0 +1,11 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ const t = (r, s) => (o, i) => {
3
+ const c = i?.configurable?.services;
4
+ for (const e of r)
5
+ if (!c?.[e])
6
+ throw new Error(`${s} requires services.${e} to be available.`);
7
+ return o;
8
+ };
9
+ export {
10
+ t as r
11
+ };
@@ -0,0 +1,92 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import l from "@arcgis/core/geometry/Point.js";
3
+ import * as f from "@arcgis/core/geometry/operators/unionOperator.js";
4
+ import r from "zod";
5
+ import { distanceUnitsSchema as m } from "../agents/tools/shared/types.js";
6
+ const d = 750;
7
+ function y(e) {
8
+ return "point" in e && e.point !== void 0;
9
+ }
10
+ function h(e) {
11
+ return "layerId" in e && e.layerId !== void 0;
12
+ }
13
+ const v = async (e, n) => {
14
+ if (y(e)) {
15
+ const { point: t } = e;
16
+ return { geometry: new l({
17
+ x: t.x,
18
+ y: t.y,
19
+ spatialReference: t.spatialReference ? { wkid: t.spatialReference.wkid } : n.spatialReference
20
+ }) };
21
+ }
22
+ if (h(e)) {
23
+ const t = n.map?.allLayers.find(
24
+ (o) => o.id === e.layerId
25
+ );
26
+ if (!t)
27
+ return { error: `Could not find geometry layer with ID: ${e.layerId}` };
28
+ const a = t.title ?? t.id, s = e.where?.trim() || "1=1";
29
+ try {
30
+ const o = await t.queryFeatures({
31
+ where: s,
32
+ returnGeometry: !0,
33
+ outSpatialReference: n.spatialReference,
34
+ num: d + 1
35
+ });
36
+ if (!o.features.length)
37
+ return {
38
+ error: `No features found in geometry layer "${a}" with the specified where clause: ${s}`
39
+ };
40
+ if (o.features.length > d)
41
+ return {
42
+ error: `Geometry filter for layer "${a}" matched too many features (${o.features.length}+). Please narrow the geometry layer filter.`
43
+ };
44
+ const i = o.features.map((c) => c.geometry).filter((c) => !!c);
45
+ if (!i.length)
46
+ return { error: "No valid geometries found for the matched geometry layer features." };
47
+ const u = i.length === 1 ? i[0] : f.executeMany(i);
48
+ return u ? (u.spatialReference || (u.spatialReference = n.spatialReference), { geometry: u }) : { error: "Failed to combine geometries from geometry layer." };
49
+ } catch (o) {
50
+ return { error: `Failed to query geometry: ${String(o)}` };
51
+ }
52
+ }
53
+ return { error: "Invalid geometry configuration provided" };
54
+ }, p = r.object({ id: r.string() }), b = r.object({
55
+ id: r.string(),
56
+ kind: r.literal("point"),
57
+ payload: r.object({
58
+ x: r.number(),
59
+ y: r.number(),
60
+ spatialReference: r.object({ wkid: r.number() }).optional()
61
+ })
62
+ }), S = r.object({
63
+ sharedResourceId: r.string().describe("ID of a point returned by listSharedResources for a previously geocoded address or place."),
64
+ distance: r.number().optional().describe("Optional buffer distance around the point."),
65
+ units: m.optional().describe("The units for the distance buffer.")
66
+ }), g = (e, n) => {
67
+ if (!e || !("sharedResourceId" in e))
68
+ return e;
69
+ if (!n)
70
+ throw new Error("Shared resources are unavailable in the tool runtime state.");
71
+ const t = n.find((s) => {
72
+ const o = p.safeParse(s);
73
+ return o.success && o.data.id === e.sharedResourceId;
74
+ });
75
+ if (!t)
76
+ throw new Error(`Shared resource not found: ${e.sharedResourceId}`);
77
+ const a = b.safeParse(t);
78
+ if (!a.success)
79
+ throw new Error(`Shared resource ${e.sharedResourceId} does not contain a valid point.`);
80
+ return {
81
+ point: a.data.payload,
82
+ distance: e.distance,
83
+ units: e.units
84
+ };
85
+ };
86
+ export {
87
+ y as a,
88
+ v as g,
89
+ h as i,
90
+ g as r,
91
+ S as s
92
+ };
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  import "../cdn/main.css";
3
3
  import { makeRuntime as e } from "@arcgis/lumina";
4
4
  import { trackAccess as s, createObservable as a, createTrackingTarget as r, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  function e(o, t) {
3
3
  return `block-${o}-${t}`;
4
4
  }
@@ -1,55 +1,47 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { Annotation as s } from "@langchain/langgraph/web";
3
- const c = /* @__PURE__ */ new Set(["agentExecutionContext", "outputMessage", "summary", "status"]);
4
- function u() {
5
- return {
6
- assignedTask: "",
7
- messages: [],
8
- priorSteps: [],
9
- sharedState: {},
10
- userRequest: ""
11
- };
12
- }
13
- function i(r) {
14
- const n = [...new Set([...r].filter((t) => c.has(t)))];
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import { Annotation as o } from "@langchain/langgraph/web";
3
+ import { c } from "./baseAgentState.js";
4
+ const i = /* @__PURE__ */ new Set(["agentExecutionContext", "outputMessage", "summary", "status"]);
5
+ function u(r) {
6
+ const n = [...new Set([...r].filter((t) => i.has(t)))];
15
7
  if (n.length !== 0)
16
- throw new Error(`ADK custom state cannot define reserved runtime fields: ${n.join(", ")}.`);
8
+ throw new Error(`custom state cannot define reserved runtime fields: ${n.join(", ")}.`);
17
9
  }
18
10
  function f(r) {
19
11
  const n = Object.entries(r);
20
12
  return Object.fromEntries(
21
13
  n.map(([t, e]) => [
22
14
  t,
23
- s({
24
- reducer: (o, a) => a,
15
+ o({
16
+ reducer: (s, a) => a,
25
17
  default: () => e
26
18
  })
27
19
  ])
28
20
  );
29
21
  }
30
22
  function m(r = {}) {
31
- i(Object.keys(r));
23
+ u(Object.keys(r));
32
24
  const n = f(r);
33
- return s.Root({
25
+ return o.Root({
34
26
  ...n,
35
- agentExecutionContext: s({
27
+ agentExecutionContext: o({
36
28
  reducer: (t, e) => ({
37
29
  ...t,
38
30
  ...e
39
31
  }),
40
- default: u
32
+ default: c
41
33
  }),
42
- outputMessage: s({
34
+ outputMessage: o({
43
35
  // Preserve the last meaningful user-facing message produced by the graph.
44
36
  reducer: (t = "", e) => typeof e == "string" && e.trim() ? e : t,
45
37
  default: () => ""
46
38
  }),
47
- summary: s({
39
+ summary: o({
48
40
  // Summary is a compact orchestrator-facing outcome, so replacement semantics are enough.
49
41
  reducer: (t = "", e) => typeof e == "string" ? e : t,
50
42
  default: () => ""
51
43
  }),
52
- status: s({
44
+ status: o({
53
45
  // Keep the first meaningful status until a later node explicitly replaces it.
54
46
  reducer: (t, e) => e ?? t,
55
47
  default: () => {
@@ -57,15 +49,17 @@ function m(r = {}) {
57
49
  })
58
50
  });
59
51
  }
60
- function l(r) {
52
+ function g(r) {
61
53
  const n = /* @__PURE__ */ new Set();
62
54
  for (const e of r)
63
- for (const o of Object.keys(e.shape ?? {}))
64
- n.add(o);
55
+ for (const s of Object.keys(e.shape ?? {}))
56
+ n.add(s);
65
57
  const t = Object.fromEntries([...n].map((e) => [e, void 0]));
66
58
  return m(t);
67
59
  }
68
60
  export {
69
61
  m as a,
70
- l as c
62
+ u as b,
63
+ g as c,
64
+ f as d
71
65
  };
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  const e = `## Task: Summarize Geographic Features
3
3
 
4
4
  You are given features from ArcGIS Feature layer for multiple layers:
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  import { makeT9nController as o } from "@arcgis/lumina/controllers";
3
3
  import { g as t } from "./runtime.js";
4
4
  const s = o(t);
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  import { AIMessage as i } from "@langchain/core/messages";
3
3
  function p(e, s, t) {
4
4
  return {
@@ -1,11 +1,11 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  import { getClosestElement as i } from "@arcgis/toolkit/dom";
3
- import { g as r, a as o } from "./utils3.js";
3
+ import { g as s, a as o } from "./utils3.js";
4
4
  function c(e, t) {
5
- const s = r(e.el, e.referenceElement);
6
- if (s)
7
- return s;
8
- const n = i(e.el, "arcgis-assistant"), a = r(e.el, n?.referenceElement);
5
+ const r = s(e.el, e.referenceElement);
6
+ if (r)
7
+ return r;
8
+ const n = i(e.el, "arcgis-assistant"), a = s(e.el, n?.referenceElement);
9
9
  if (a)
10
10
  return a;
11
11
  throw new Error(`${t}: Reference element not found`);
@@ -23,16 +23,16 @@ function g(e) {
23
23
  const t = i(e.el, "arcgis-assistant");
24
24
  if (t === void 0)
25
25
  throw new Error("arcgis-assistant-agent must be used within an arcgis-assistant element");
26
- t.register({
26
+ return t.register({
27
27
  agent: e.agent,
28
28
  getContext: async () => await e.getContext?.() ?? e.context ?? {}
29
- });
29
+ }), t;
30
30
  }
31
31
  function l(e) {
32
32
  const t = o(e.el, e.referenceElement);
33
33
  if (t)
34
34
  return t;
35
- const s = i(e.el, "arcgis-assistant"), n = r(e.el, s?.referenceElement);
35
+ const r = i(e.el, "arcgis-assistant"), n = s(e.el, r?.referenceElement);
36
36
  return n || null;
37
37
  }
38
38
  function v(e) {
@@ -40,8 +40,8 @@ function v(e) {
40
40
  return t ? t.view : null;
41
41
  }
42
42
  export {
43
- g as a,
44
- v as b,
45
- w as i,
43
+ v as a,
44
+ w as b,
45
+ g as i,
46
46
  m as r
47
47
  };
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  import { getClosestElement as s } from "@arcgis/toolkit/dom";
3
3
  function l(t, o) {
4
4
  return o ? typeof o == "string" ? u(t, o) ?? null : o : s(t, "arcgis-map") ?? null;
@@ -1,5 +1,6 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type Collection from "@arcgis/core/core/Collection.js";
3
+ import type { RuntimeSpanEvent } from "../../orchestrator/orchestrator/orchestratorEvents.js";
3
4
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
5
  import type { AssistantMessage, AssistantPromptSelectDetail, AssistantSlottableRequestDetail, ChatMessage, Interrupt } from "./types.js";
5
6
  import type { T9nMeta } from "@arcgis/lumina/controllers";
@@ -41,6 +42,11 @@ import type { ArcgisMap as ArcgisMap } from "@arcgis/map-components/components/a
41
42
  * for the included ArcGIS agents to function properly, as they rely on the map context to perform their tasks. This is not
42
43
  * a requirement for [custom agents](https://developers.arcgis.com/javascript/latest/agentic-apps/ai-custom-agents/).
43
44
  *
45
+ * ## Application Identification
46
+ * For applications that use the arcgis-assistant component, setting the [`applicationName`](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-applicationName) property on the ArcGIS config object [`esriConfig`](https://developers.arcgis.com/javascript/latest/references/core/config/) is recommended.
47
+ * When provided, this value can help associate assistant activity and feedback with a specific application, where supported.
48
+ * This can make it easier to understand usage patterns and troubleshoot feedback.
49
+ *
44
50
  * ## Context
45
51
  *
46
52
  * Use the [referenceElement](https://developers.arcgis.com/javascript/latest/references/ai-components/components/arcgis-assistant/#referenceElement) property to provide a web map as context to the assistant and its agents.
@@ -84,13 +90,79 @@ export abstract class ArcgisAssistant extends LitElement {
84
90
  assistantLabel: string;
85
91
  stopButtonLabel: string;
86
92
  askButtonLabel: string;
93
+ stoppedByUserLabel: string;
94
+ noAgentsFoundMessage: string;
95
+ orchestratorInitializationErrorMessage: string;
96
+ signInErrorMessage: string;
97
+ signInRequiredMessage: string;
98
+ signInLabel: string;
99
+ signInToArcGISOnlineLabel: string;
100
+ noPortalInformationMessage: string;
101
+ readMoreLabel: string;
102
+ learnAboutWebMapEmbeddingsLabel: string;
103
+ waitingForUserInputMessage: string;
87
104
  } & T9nMeta<{
88
105
  assistantLabel: string;
89
106
  stopButtonLabel: string;
90
107
  askButtonLabel: string;
108
+ stoppedByUserLabel: string;
109
+ noAgentsFoundMessage: string;
110
+ orchestratorInitializationErrorMessage: string;
111
+ signInErrorMessage: string;
112
+ signInRequiredMessage: string;
113
+ signInLabel: string;
114
+ signInToArcGISOnlineLabel: string;
115
+ noPortalInformationMessage: string;
116
+ readMoreLabel: string;
117
+ learnAboutWebMapEmbeddingsLabel: string;
118
+ waitingForUserInputMessage: string;
91
119
  }>;
92
120
  /**
93
- * When `true`, disables the assistant avatar in the chat interface.
121
+ * The IDs of the agents available for automatic intent routing.
122
+ * A single ID still uses automatic routing and does not enable direct routing.
123
+ * This property cannot be used together with [alwaysUseAgentId](https://developers.arcgis.com/javascript/latest/references/ai-components/components/arcgis-assistant/#alwaysUseAgentId).
124
+ * If this property is not set, all registered agents are available for routing.
125
+ *
126
+ * > **Note:** Agent ids for custom agents are automatically created from the agent's
127
+ * > [BaseAgent.name](https://developers.arcgis.com/javascript/latest/references/ai-components/agent-utils/BaseAgent/#name) property.
128
+ * > For example, an agent with the name "My Custom Agent" will have the id "my-custom-agent".
129
+ *
130
+ * Agent ids for SDK agents are as follows:
131
+ *
132
+ * - Navigation Agent: `navigation`
133
+ * - Data Exploration Agent: `dataExploration`
134
+ * - Help Agent: `help`
135
+ * - Knowledge Agent: `arcgisKnowledge`
136
+ *
137
+ * @since 5.2
138
+ * @example
139
+ * ```js
140
+ * const assistant = document.querySelector("arcgis-assistant");
141
+ * // only route user questions to either the navigation or help agents
142
+ * // even if other agents are registered to the assistant
143
+ * assistant.allowedAgentIds = ["navigation", "help"];
144
+ * ```
145
+ */
146
+ accessor allowedAgentIds: readonly string[] | undefined;
147
+ /**
148
+ * The ID of the agent that should process every user message without intent routing.
149
+ * When set, the assistant will route all user messages to the specified agent.
150
+ *
151
+ * This is useful for applications that want to bypass the orchestrator's default intent routing
152
+ * in favor of a single custom agent that directly handles its own intent orchestration to one or more sub-agents. This property
153
+ * should not be used to route requests to an SDK agent, as the SDK agents do not have their own intent routing outside of the orchestrator.
154
+ *
155
+ * This property cannot be used together with [allowedAgentIds](https://developers.arcgis.com/javascript/latest/references/ai-components/components/arcgis-assistant/#allowedAgentIds).
156
+ *
157
+ * @since 5.2
158
+ * @example
159
+ * ```html
160
+ * <arcgis-assistant always-use-agent-id="my-custom-orchestration-agent"></arcgis-assistant>
161
+ * ```
162
+ */
163
+ accessor alwaysUseAgentId: string | undefined;
164
+ /**
165
+ * When `true`, displays the assistant avatar in the chat interface.
94
166
  *
95
167
  * @default false
96
168
  * @since 5.1
@@ -277,6 +349,21 @@ export abstract class ArcgisAssistant extends LitElement {
277
349
  * ```
278
350
  */
279
351
  accessor referenceElement: ArcgisMap | string | null;
352
+ /**
353
+ * When `true`, emits normalized runtime span events while processing requests.
354
+ *
355
+ * @default false
356
+ * @internal
357
+ * @since 5.2
358
+ */
359
+ accessor runtimeEventsEnabled: boolean;
360
+ /**
361
+ * When `true`, assistant text responses render after completion instead of streaming progressively.
362
+ *
363
+ * @default false
364
+ * @since 5.1
365
+ */
366
+ accessor streamingDisabled: boolean;
280
367
  /**
281
368
  * Prompts to suggest to the end user on load. These are intended to help users understand which questions they can ask.
282
369
  * This property should be set to establish boundaries for the end user. As all agents have limitations and LLMs can
@@ -298,6 +385,13 @@ export abstract class ArcgisAssistant extends LitElement {
298
385
  * ```
299
386
  */
300
387
  accessor suggestedPrompts: string[];
388
+ /**
389
+ * When `true`, displays the user avatar in the chat interface.
390
+ *
391
+ * @default false
392
+ * @since 5.2
393
+ */
394
+ accessor userAvatarEnabled: boolean;
301
395
  /**
302
396
  * Cancels the active interrupt, if one is pending.
303
397
  *
@@ -468,6 +562,12 @@ export abstract class ArcgisAssistant extends LitElement {
468
562
  * @since 5.1
469
563
  */
470
564
  readonly arcgisResponse: import("@arcgis/lumina").TargetedEvent<this, AssistantMessage>;
565
+ /**
566
+ * Emitted for each normalized runtime span lifecycle event produced while processing a request.
567
+ *
568
+ * @internal
569
+ */
570
+ readonly arcgisRuntime: import("@arcgis/lumina").TargetedEvent<this, RuntimeSpanEvent>;
471
571
  /**
472
572
  * Emitted when the assistant requests custom slotted content for an assistant message.
473
573
  *
@@ -523,6 +623,7 @@ export abstract class ArcgisAssistant extends LitElement {
523
623
  arcgisPromptSelect: ArcgisAssistant["arcgisPromptSelect"]["detail"];
524
624
  arcgisReady: ArcgisAssistant["arcgisReady"]["detail"];
525
625
  arcgisResponse: ArcgisAssistant["arcgisResponse"]["detail"];
626
+ arcgisRuntime: ArcgisAssistant["arcgisRuntime"]["detail"];
526
627
  arcgisSlottableRequest: ArcgisAssistant["arcgisSlottableRequest"]["detail"];
527
628
  arcgisSubmit: ArcgisAssistant["arcgisSubmit"]["detail"];
528
629
  };