@arcgis/ai-components 5.2.0-next.106 → 5.2.0-next.107

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 (285) hide show
  1. package/dist/agent-utils/BaseAgent.js +1 -1
  2. package/dist/agent-utils/FunctionAgent.js +1 -1
  3. package/dist/agent-utils/LLMAgent.js +1 -1
  4. package/dist/agent-utils/WorkflowAgent.js +1 -1
  5. package/dist/agent-utils/index.js +1 -1
  6. package/dist/agent-utils/middlewares/humanInTheLoop.js +1 -1
  7. package/dist/agent-utils/middlewares/middleware.js +1 -1
  8. package/dist/agent-utils/middlewares/trace.js +1 -1
  9. package/dist/agent-utils/middlewares/types.js +1 -1
  10. package/dist/agent-utils/tools/FunctionTool.js +1 -1
  11. package/dist/agent-utils/workflows/ConditionalWorkflow.js +1 -1
  12. package/dist/agent-utils/workflows/LoopWorkflow.js +1 -1
  13. package/dist/agent-utils/workflows/ParallelWorkflow.js +1 -1
  14. package/dist/agent-utils/workflows/RouterWorkflow.js +1 -1
  15. package/dist/agent-utils/workflows/SequentialWorkflow.js +1 -1
  16. package/dist/agent-utils/workflows/SwitchWorkflow.js +1 -1
  17. package/dist/agents/runtime/skill/createSkillAgent.d.ts +1 -1
  18. package/dist/agents/runtime/skill/createSkillAgent.js +42 -44
  19. package/dist/agents/runtime/skill/types.d.ts +1 -1
  20. package/dist/agents/runtime/skill/types.js +1 -1
  21. package/dist/agents/tools/filter/clearFilters/adapter.js +1 -1
  22. package/dist/agents/tools/filter/resetMap/adapter.js +1 -1
  23. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +1 -1
  24. package/dist/agents/tools/help/listFields/adapter.js +1 -1
  25. package/dist/agents/tools/navigation/goToAddress/adapter.js +1 -1
  26. package/dist/agents/tools/navigation/goToBookmark/adapter.js +1 -1
  27. package/dist/agents/tools/navigation/goToFeatures/adapter.js +1 -1
  28. package/dist/agents/tools/navigation/goToFullExtent/adapter.js +1 -1
  29. package/dist/agents/tools/navigation/goToHomeExtent/adapter.js +1 -1
  30. package/dist/agents/tools/navigation/goToLayer/adapter.js +1 -1
  31. package/dist/agents/tools/navigation/goToScale/adapter.js +1 -1
  32. package/dist/agents/tools/navigation/goToViewpoint/adapter.js +1 -1
  33. package/dist/agents/tools/navigation/goToZoom/adapter.js +1 -1
  34. package/dist/agents/tools/query/getAttribute/adapter.js +1 -1
  35. package/dist/agents/tools/query/getStatistics/adapter.js +1 -1
  36. package/dist/agents/tools/query/getTopFeatures/adapter.js +1 -1
  37. package/dist/agents/tools/query/queryFeatures/adapter.js +1 -1
  38. package/dist/agents/tools/search/findRelevantFields/adapter.js +1 -1
  39. package/dist/agents/tools/search/findRelevantLayers/adapter.js +1 -1
  40. package/dist/agents/tools/shared/resolveToolArtifact.js +1 -1
  41. package/dist/agents/tools/shared/types.js +1 -1
  42. package/dist/cdn/25MBI4PD.js +2 -0
  43. package/dist/cdn/{3XDT7MWI.js → 275FFTBE.js} +2 -2
  44. package/dist/cdn/{XQ3NBBQ3.js → 2F4TPWZQ.js} +1 -1
  45. package/dist/cdn/{KJLLN4P4.js → 2LVYAXHG.js} +3 -3
  46. package/dist/cdn/{5MK44FNO.js → 2NRCE53B.js} +2 -2
  47. package/dist/cdn/{XKH37FLY.js → 2WXXSZP5.js} +2 -2
  48. package/dist/cdn/{APFZY4PI.js → 3KNLFIM3.js} +2 -2
  49. package/dist/cdn/{VMZZR7MY.js → 3PPXAIRE.js} +2 -2
  50. package/dist/cdn/{JMNHFKGL.js → 45BDE3MG.js} +2 -2
  51. package/dist/cdn/{S4LELUBK.js → 477I66FH.js} +2 -2
  52. package/dist/cdn/4CFCV47G.js +2 -0
  53. package/dist/cdn/{TPULIO6I.js → 4IWDBEMN.js} +2 -2
  54. package/dist/cdn/{HHBNLCJP.js → 4OI4QEV7.js} +2 -2
  55. package/dist/cdn/{2W7LK4HA.js → 4UAREC76.js} +2 -2
  56. package/dist/cdn/{TEI6WXW7.js → 4VBOTWC3.js} +2 -2
  57. package/dist/cdn/{RLEHNAIA.js → 4YOG5F3W.js} +1 -1
  58. package/dist/cdn/5X23DDDZ.js +2 -0
  59. package/dist/cdn/65ZACLYB.js +2 -0
  60. package/dist/cdn/{D5EKX26R.js → 6KWGSXIN.js} +2 -2
  61. package/dist/cdn/{O4NVW75A.js → 6MRTZ4OM.js} +2 -2
  62. package/dist/cdn/{6YZGKVYB.js → 77NAJM5H.js} +2 -2
  63. package/dist/cdn/{NEV6OZN3.js → 7DOYUO7L.js} +2 -2
  64. package/dist/cdn/{EYOWRGDP.js → 7JJX6VGI.js} +2 -2
  65. package/dist/cdn/{ONQ6JSBJ.js → A6LBMS7A.js} +1 -1
  66. package/dist/cdn/{EOD5PNOL.js → AP3KPOHN.js} +2 -2
  67. package/dist/cdn/AUCKEB52.js +2 -0
  68. package/dist/cdn/B3HXSEBN.js +2 -0
  69. package/dist/cdn/{6ECRQVHY.js → BAKJLCYO.js} +2 -2
  70. package/dist/cdn/{74CVYM72.js → BJMGT6GV.js} +2 -2
  71. package/dist/cdn/{5LMYUEK7.js → BTOBEN7Q.js} +2 -2
  72. package/dist/cdn/BTTCBEPW.js +2 -0
  73. package/dist/cdn/{UZLQALHY.js → BVUCNXC5.js} +1 -1
  74. package/dist/cdn/{RFVZ7KCG.js → CAOMMQSY.js} +1 -1
  75. package/dist/cdn/{P4GFYBBO.js → CBYBFBD3.js} +2 -2
  76. package/dist/cdn/{725MBCQF.js → CKUUYQLO.js} +2 -2
  77. package/dist/cdn/{MWYBF3F3.js → CSE6BHOJ.js} +2 -2
  78. package/dist/cdn/{XTCLJEID.js → CX2HJ67C.js} +2 -2
  79. package/dist/cdn/EELMDCPV.js +2 -0
  80. package/dist/cdn/{6RAWG2KQ.js → EGRRZTF6.js} +2 -2
  81. package/dist/cdn/EHYDAEGL.js +2 -0
  82. package/dist/cdn/{TBYDZN4H.js → EK3PM4L5.js} +2 -2
  83. package/dist/cdn/{PYGX4HN7.js → ENAEE4UU.js} +2 -2
  84. package/dist/cdn/EXMEB4X2.js +2 -0
  85. package/dist/cdn/{AGQ5ADFU.js → EYGZJKVD.js} +2 -2
  86. package/dist/cdn/{BTTBKTFM.js → FK2CVSXW.js} +2 -2
  87. package/dist/cdn/FLUI6GCU.js +2 -0
  88. package/dist/cdn/{ZU2FHVNK.js → FPH52WOH.js} +2 -2
  89. package/dist/cdn/FRYS2PZJ.js +2 -0
  90. package/dist/cdn/FSLQCZRN.js +2 -0
  91. package/dist/cdn/{PQ2DPOFM.js → FTTLFIBV.js} +2 -2
  92. package/dist/cdn/{2AMUOR7X.js → FV6FHLYW.js} +2 -2
  93. package/dist/cdn/{TFRWUAB6.js → G24MNC7D.js} +2 -2
  94. package/dist/cdn/{6OOZSZRJ.js → GN56DOYL.js} +2 -2
  95. package/dist/cdn/{ROQGPAR5.js → HIJGY4GU.js} +2 -2
  96. package/dist/cdn/{BL273EGZ.js → HMMYCSOK.js} +2 -2
  97. package/dist/cdn/{ES6D4UD6.js → HNTSDY3J.js} +2 -2
  98. package/dist/cdn/HQOK6DDH.js +2 -0
  99. package/dist/cdn/{HB72YIII.js → HV7MVIQV.js} +2 -2
  100. package/dist/cdn/I3SUE2TR.js +2 -0
  101. package/dist/cdn/{VAXH6RUQ.js → I72ST4JR.js} +2 -2
  102. package/dist/cdn/{FYZATVB3.js → IHUWQOMK.js} +2 -2
  103. package/dist/cdn/{J6A4AS7E.js → JMXXRRKQ.js} +2 -2
  104. package/dist/cdn/{5HBAJ57P.js → JPXEMNPR.js} +2 -2
  105. package/dist/cdn/{UHEYPSOR.js → JYNHWJUZ.js} +2 -2
  106. package/dist/cdn/KAX4A7SF.js +2 -0
  107. package/dist/cdn/{BQYF37UD.js → KBSXHSBX.js} +2 -2
  108. package/dist/cdn/{CCC6LBMY.js → KKCLHXHG.js} +1 -1
  109. package/dist/cdn/{7UF3WRLO.js → L2HLFWCV.js} +2 -2
  110. package/dist/cdn/{LK7ZIQW6.js → L3BTURBA.js} +2 -2
  111. package/dist/cdn/{IRSJXHRN.js → LBTGOMCT.js} +2 -2
  112. package/dist/cdn/{34O57OGV.js → LLY5A2E2.js} +1 -1
  113. package/dist/cdn/{OOGADOKQ.js → LXIKAXUT.js} +2 -2
  114. package/dist/cdn/{S627D4K7.js → M2U456J5.js} +2 -2
  115. package/dist/cdn/{UAG6GDUG.js → M3KKORBG.js} +2 -2
  116. package/dist/cdn/M5B6X46F.js +2 -0
  117. package/dist/cdn/{SDWWUWAF.js → MZUDIQQH.js} +2 -2
  118. package/dist/cdn/{CEKOEHB3.js → NNPA3NLK.js} +2 -2
  119. package/dist/cdn/{MXTXJKFE.js → NPWLYHMU.js} +2 -2
  120. package/dist/cdn/NV7CL4S3.js +2 -0
  121. package/dist/cdn/{3UEKINYC.js → OALQBAZR.js} +2 -2
  122. package/dist/cdn/{RHYNE5OE.js → OF3TAARW.js} +1 -1
  123. package/dist/cdn/{F5NIRETW.js → P53TDER7.js} +2 -2
  124. package/dist/cdn/{SXM4NUT5.js → PJLGCS33.js} +2 -2
  125. package/dist/cdn/{EJJFG5DE.js → PJPP6LOS.js} +2 -2
  126. package/dist/cdn/PUZ6RAFQ.js +2 -0
  127. package/dist/cdn/{IHP25JWI.js → QAX6UF4L.js} +2 -2
  128. package/dist/cdn/{JEBRN3EU.js → QTEPFTAU.js} +2 -2
  129. package/dist/cdn/ROS22KOA.js +2 -0
  130. package/dist/cdn/RPOFBIE7.js +2 -0
  131. package/dist/cdn/{COH3QXWG.js → S5GFNIHC.js} +3 -3
  132. package/dist/cdn/{A7BKHIMA.js → SBNNJ5WA.js} +2 -2
  133. package/dist/cdn/SI22EJLC.js +2 -0
  134. package/dist/cdn/{7QIX4PZR.js → SJMAKF4P.js} +2 -2
  135. package/dist/cdn/{6P44KOKX.js → SKCUGZ7G.js} +2 -2
  136. package/dist/cdn/{V6HOUZPZ.js → SNG3WODY.js} +2 -2
  137. package/dist/cdn/{JWZD3D5E.js → STOGCXJH.js} +2 -2
  138. package/dist/cdn/{OMF6ITSG.js → SUC2MIGE.js} +2 -2
  139. package/dist/cdn/SXYKNDOF.js +2 -0
  140. package/dist/cdn/SZ2L5556.js +2 -0
  141. package/dist/cdn/{4ALF2CJY.js → T6W6F4TF.js} +2 -2
  142. package/dist/cdn/{RN6WMVZX.js → TFAJNKBC.js} +2 -2
  143. package/dist/cdn/{R74ZHFA6.js → TLPZELG3.js} +1 -1
  144. package/dist/cdn/{2O4DON37.js → TNLFUXIB.js} +2 -2
  145. package/dist/cdn/{RLB6TK6B.js → TXZQZR3I.js} +2 -2
  146. package/dist/cdn/UGIHS7OA.js +2 -0
  147. package/dist/cdn/{UDRKUVZP.js → UX457AQR.js} +2 -2
  148. package/dist/cdn/{ICBIUFK7.js → V266DJ5V.js} +2 -2
  149. package/dist/cdn/{FDOMMK2M.js → V4PJMCJZ.js} +1 -1
  150. package/dist/cdn/{3VCPN2KW.js → V52GSTOC.js} +2 -2
  151. package/dist/cdn/{UHICISBZ.js → VGLBH473.js} +2 -2
  152. package/dist/cdn/{WSWB3B7B.js → VHNTHPH7.js} +2 -2
  153. package/dist/cdn/{OZ2CM3J2.js → VK6CCPTG.js} +2 -2
  154. package/dist/cdn/{AOVJ34QE.js → VLPELJUS.js} +2 -2
  155. package/dist/cdn/VT5EWFH7.js +2 -0
  156. package/dist/cdn/{Y7LGFSHO.js → VXLKTQ36.js} +2 -2
  157. package/dist/cdn/{CFAC4FN3.js → W54XYT2A.js} +2 -2
  158. package/dist/cdn/{RZIXMISL.js → X42ACC66.js} +2 -2
  159. package/dist/cdn/{7EOS4SGJ.js → XNUWVZN7.js} +2 -2
  160. package/dist/cdn/{2OUIRKTV.js → XOTPSCNF.js} +2 -2
  161. package/dist/cdn/{ZZZB3GES.js → XRVGYRXL.js} +2 -2
  162. package/dist/cdn/{JKKU4K4C.js → XV7RMYLR.js} +2 -2
  163. package/dist/cdn/{3SD47V7G.js → XVJFPZTW.js} +2 -2
  164. package/dist/cdn/XZF7Y6B2.js +2 -0
  165. package/dist/cdn/Y4ZOB6UH.js +2 -0
  166. package/dist/cdn/{ZFOG3KXV.js → Y6CV2NZR.js} +2 -2
  167. package/dist/cdn/YMJKT5OK.js +2 -0
  168. package/dist/cdn/{6GODC6RU.js → YOW3YKWR.js} +2 -2
  169. package/dist/cdn/{OKVLGJAG.js → ZA7ZU2F7.js} +2 -2
  170. package/dist/cdn/{OL7QBAGS.js → ZJWR4W2S.js} +2 -2
  171. package/dist/cdn/ZWIKFBOU.js +2 -0
  172. package/dist/cdn/{MXAZE2VM.js → ZY3JQCZQ.js} +36 -36
  173. package/dist/cdn/agent-utils/index.js +2 -2
  174. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +2 -2
  175. package/dist/cdn/agent-utils/middlewares/middleware.js +2 -2
  176. package/dist/cdn/agent-utils/middlewares/trace.js +2 -2
  177. package/dist/cdn/index.js +2 -2
  178. package/dist/chunks/BaseWorkflow.js +1 -1
  179. package/dist/chunks/SKILL.js +1 -1
  180. package/dist/chunks/SKILL2.js +1 -1
  181. package/dist/chunks/SKILL3.js +1 -1
  182. package/dist/chunks/SKILL4.js +1 -1
  183. package/dist/chunks/adapter.js +1 -1
  184. package/dist/chunks/aiFactory.js +1 -1
  185. package/dist/chunks/arcgisKnowledgeGraph.js +1 -1
  186. package/dist/chunks/arcgisToolRegistry.js +88 -0
  187. package/dist/chunks/arcgis_knowledge_current_lc_context.js +1 -1
  188. package/dist/chunks/arcgis_knowledge_current_map_context.js +1 -1
  189. package/dist/chunks/arcgis_knowledge_cypher_query_prompt.js +1 -1
  190. package/dist/chunks/arcgis_knowledge_lucene_generation_prompt.js +1 -1
  191. package/dist/chunks/arcgis_knowledge_summarize_result_prompt.js +1 -1
  192. package/dist/chunks/arcgis_knowledge_tool_prompt.js +1 -1
  193. package/dist/chunks/baseAgentState.js +1 -1
  194. package/dist/chunks/converterUtils.js +1 -1
  195. package/dist/chunks/dataExplorationAgent.js +3 -14
  196. package/dist/chunks/data_explore_filter_prompt.js +1 -1
  197. package/dist/chunks/data_explore_query_prompt.js +1 -1
  198. package/dist/chunks/embeddings.worker.js +1 -1
  199. package/dist/chunks/fetchAgentContext.js +1 -1
  200. package/dist/chunks/fetchService.js +1 -1
  201. package/dist/chunks/fieldStatistics.js +1 -1
  202. package/dist/chunks/field_descriptions_prompt.js +1 -1
  203. package/dist/chunks/formatFeatureAttributes.js +1 -1
  204. package/dist/chunks/generateLayerDescriptions.js +1 -1
  205. package/dist/chunks/graph.js +1 -1
  206. package/dist/chunks/helpAgent.js +11 -14
  207. package/dist/chunks/help_prompt.js +1 -1
  208. package/dist/chunks/index.js +1 -1
  209. package/dist/chunks/intent_prompt.js +1 -1
  210. package/dist/chunks/layerStylingGraph.js +1 -1
  211. package/dist/chunks/layer_descriptions_prompt.js +1 -1
  212. package/dist/chunks/layer_styling_prompt.js +1 -1
  213. package/dist/chunks/mergeWhereClauses.js +1 -1
  214. package/dist/chunks/navigationAgent.js +7 -20
  215. package/dist/chunks/navigation_intent_prompt.js +1 -1
  216. package/dist/chunks/navigation_tool_prompt.js +1 -1
  217. package/dist/chunks/orchestrator.js +1 -1
  218. package/dist/chunks/requireAgentServices.js +1 -1
  219. package/dist/chunks/resolvePointGeometryFilter.js +1 -1
  220. package/dist/chunks/runtime.js +2 -2
  221. package/dist/chunks/slottableRequestUtils.js +1 -1
  222. package/dist/chunks/state.js +1 -1
  223. package/dist/chunks/summarize_query_response_prompt.js +1 -1
  224. package/dist/chunks/useT9n.js +1 -1
  225. package/dist/chunks/utils.js +1 -1
  226. package/dist/chunks/utils2.js +1 -1
  227. package/dist/chunks/utils3.js +1 -1
  228. package/dist/components/arcgis-assistant/customElement.js +1 -1
  229. package/dist/components/arcgis-assistant-agent/customElement.js +130 -212
  230. package/dist/components/arcgis-assistant-chat/customElement.js +1 -1
  231. package/dist/components/arcgis-assistant-chat-entry/customElement.js +1 -1
  232. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  233. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -1
  234. package/dist/components/arcgis-assistant-interrupt/customElement.js +1 -1
  235. package/dist/components/arcgis-assistant-interrupt-preview/customElement.js +1 -1
  236. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -1
  237. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  238. package/dist/components/arcgis-assistant-message/customElement.js +1 -1
  239. package/dist/components/arcgis-assistant-message-block/customElement.js +1 -1
  240. package/dist/components/arcgis-assistant-message-feedback/customElement.js +1 -1
  241. package/dist/components/arcgis-assistant-message-footer/customElement.js +1 -1
  242. package/dist/components/arcgis-assistant-message-loading/customElement.js +1 -1
  243. package/dist/components/arcgis-assistant-message-log/customElement.js +1 -1
  244. package/dist/components/arcgis-assistant-message-read-aloud/customElement.js +1 -1
  245. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  246. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  247. package/dist/components/arcgis-assistant-speech-input/customElement.js +1 -1
  248. package/dist/components/arcgis-assistant-suggested-prompts/customElement.js +1 -1
  249. package/dist/components/arcgis-assistant-user-message/customElement.js +1 -1
  250. package/dist/docs/api.json +1 -1
  251. package/dist/docs/docs.json +1 -1
  252. package/dist/docs/web-types.json +1 -1
  253. package/dist/index.js +1 -1
  254. package/dist/loader.js +1 -1
  255. package/dist/utils/index.js +1 -1
  256. package/package.json +5 -5
  257. package/dist/cdn/23C34FEU.js +0 -2
  258. package/dist/cdn/2OHRNRNT.js +0 -2
  259. package/dist/cdn/2S6L3P4Q.js +0 -2
  260. package/dist/cdn/3IOP64NG.js +0 -2
  261. package/dist/cdn/3OH35VXS.js +0 -2
  262. package/dist/cdn/434TAA3J.js +0 -2
  263. package/dist/cdn/AFSBL4ZP.js +0 -2
  264. package/dist/cdn/BVSK2GWP.js +0 -2
  265. package/dist/cdn/EGN5BCHV.js +0 -2
  266. package/dist/cdn/HLN5675C.js +0 -2
  267. package/dist/cdn/IFFOSSNB.js +0 -2
  268. package/dist/cdn/IO7DYFL2.js +0 -2
  269. package/dist/cdn/JD2TB7H4.js +0 -2
  270. package/dist/cdn/KZ73TZOB.js +0 -2
  271. package/dist/cdn/LEO3USHH.js +0 -2
  272. package/dist/cdn/LNIMGXB4.js +0 -2
  273. package/dist/cdn/MG2W2ZF3.js +0 -2
  274. package/dist/cdn/MSXMHRI7.js +0 -2
  275. package/dist/cdn/PK5KI2XF.js +0 -2
  276. package/dist/cdn/PWFUEBTT.js +0 -2
  277. package/dist/cdn/RSJSRETN.js +0 -2
  278. package/dist/cdn/RSR66KB4.js +0 -2
  279. package/dist/cdn/SL4Y7IRG.js +0 -2
  280. package/dist/cdn/STUBN3L5.js +0 -2
  281. package/dist/cdn/T2OYKP3V.js +0 -2
  282. package/dist/cdn/U3ETGDT7.js +0 -2
  283. package/dist/cdn/VXFQANGJ.js +0 -2
  284. package/dist/cdn/WW4BEFDF.js +0 -2
  285. package/dist/cdn/XGCQS3N4.js +0 -2
@@ -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 m from "@arcgis/core/core/Accessor.js";
3
3
  import { property as i, subclass as l } from "@arcgis/core/core/accessorSupport/decorators.js";
4
4
  import { a as u } from "../chunks/state.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
  import { property as u, subclass as p } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { isGraphInterrupt as m } from "@langchain/langgraph/web";
4
4
  import { BaseAgent as d } from "./BaseAgent.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
  import "@arcgis/core/identity/IdentityManager.js";
3
3
  import "@arcgis/core/portal/Portal.js";
4
4
  import "@arcgis/core/request.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
  import { property as h, subclass as c } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
4
4
  import { BaseAgent as m } from "./BaseAgent.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
  let i, a, c, u, l, s, w, m, f, p, d, g;
3
3
  async function n(e, t) {
4
4
  if (t in e)
@@ -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 { NodeInterrupt as s } from "@langchain/langgraph/web";
3
3
  import { createAgentMiddleware as f, createToolMiddleware as I } from "./middleware.js";
4
4
  const m = "human-in-the-loop", w = "Agent execution requires approval", p = "Agent execution rejected by the user.", h = "human-in-the-loop-tool", y = "Tool execution requires approval";
@@ -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 { createMiddleware as p } from "langchain";
3
3
  function g(e, t, r) {
4
4
  return {
@@ -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 { s as r } from "../../chunks/index.js";
3
3
  import { AIMessage as i, ToolMessage as s } from "@langchain/core/messages";
4
4
  import { createAgentMiddleware as c, createToolMiddleware as d } from "./middleware.js";
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
 
@@ -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 c from "@arcgis/core/core/Accessor.js";
3
3
  import { property as a, subclass as p } from "@arcgis/core/core/accessorSupport/decorators.js";
4
4
  import { tool as d } from "@langchain/core/tools";
@@ -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 { property as u, subclass as f } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { B as p, g as c } from "../../chunks/BaseWorkflow.js";
4
4
  var g = Object.defineProperty, w = Object.getOwnPropertyDescriptor, a = (e, r, n, 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 { property as u, subclass as w } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { c as f } from "../../chunks/graph.js";
4
4
  import { B as h } from "../../chunks/BaseWorkflow.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
  import { property as A, subclass as I } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { c as U } from "../../chunks/graph.js";
4
4
  import { a as W } from "../../chunks/state.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
  import { property as h, subclass as g } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { B as v, g as l } from "../../chunks/BaseWorkflow.js";
4
4
  var w = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, f = (e) => {
@@ -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 { property as p, subclass as f } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { B as c, g as i, a as m } from "../../chunks/BaseWorkflow.js";
4
4
  var d = Object.defineProperty, w = Object.getOwnPropertyDescriptor, u = (e, o, r, 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 { property as u, subclass as _ } from "@arcgis/core/core/accessorSupport/decorators.js";
3
3
  import { B as y, g as v } from "../../chunks/BaseWorkflow.js";
4
4
  var A = Object.defineProperty, N = Object.getOwnPropertyDescriptor, g = (e) => {
@@ -16,7 +16,7 @@ export type SkillAgentOptions = {
16
16
  name: string;
17
17
  description: string;
18
18
  skillLoaders: readonly [SkillLoader, ...SkillLoader[]];
19
- toolLoaders: ToolLoaders;
19
+ toolLoaders?: ToolLoaders;
20
20
  modelTier?: ModelTier;
21
21
  systemPrompt: string;
22
22
  runtimeContextLoader?: RuntimeContextLoader;
@@ -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 { getCurrentTaskInput as I, Annotation as q, StateGraph as D, START as G, END as K, isGraphInterrupt as J } from "@langchain/langgraph/web";
3
3
  import { createMiddleware as y, createAgent as L } from "langchain";
4
4
  import d, { z as m } from "zod";
@@ -7,7 +7,8 @@ import { s as p } from "../../../chunks/index.js";
7
7
  import { a as U } from "../../../chunks/baseAgentState.js";
8
8
  import { ToolMessage as B } from "@langchain/core/messages";
9
9
  import { tool as R } from "@langchain/core/tools";
10
- const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["point", "polyline", "polygon", "extent", "custom"], Q = (e) => typeof e == "string" && H.some((t) => t === e), W = (e, t) => {
10
+ import { r as H } from "../../../chunks/arcgisToolRegistry.js";
11
+ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Q = ["point", "polyline", "polygon", "extent", "custom"], W = (e) => typeof e == "string" && Q.some((t) => t === e), X = (e, t) => {
11
12
  if (!(!w(e) || !("value" in e))) {
12
13
  if (w(e.sharedStatePatch)) {
13
14
  const s = { ...t.sharedStatePatch };
@@ -17,13 +18,13 @@ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["
17
18
  }
18
19
  if (Array.isArray(e.sharedResourceAdditions))
19
20
  for (const s of e.sharedResourceAdditions)
20
- w(s) && Q(s.kind) && typeof s.description == "string" && "payload" in s && t.sharedResourceAdditions.push({
21
+ w(s) && W(s.kind) && typeof s.description == "string" && "payload" in s && t.sharedResourceAdditions.push({
21
22
  kind: s.kind,
22
23
  description: s.description,
23
24
  payload: s.payload
24
25
  });
25
26
  }
26
- }, X = () => {
27
+ }, Y = () => {
27
28
  const e = { sharedResourceAdditions: [] };
28
29
  return {
29
30
  middleware: y({
@@ -36,14 +37,14 @@ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["
36
37
  for (const o of s)
37
38
  if (B.isInstance(o) && o.status !== "error") {
38
39
  const r = o.artifact;
39
- W(r, e);
40
+ X(r, e);
40
41
  }
41
42
  }
42
43
  }
43
44
  }),
44
45
  collectedEffects: e
45
46
  };
46
- }, Y = (e) => y({
47
+ }, Z = (e) => y({
47
48
  name: "TraceMiddleware",
48
49
  wrapModelCall: async (t, s) => {
49
50
  await p({ text: "Determining the next step" }, e);
@@ -64,23 +65,23 @@ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["
64
65
  throw await p({ text: `Failed executing ${t.toolCall.name}` }, e), o;
65
66
  }
66
67
  }
67
- }), M = ["custom", "extent", "point", "polygon", "polyline"], Z = d.object({
68
+ }), M = ["custom", "extent", "point", "polygon", "polyline"], V = d.object({
68
69
  id: d.string(),
69
70
  kind: d.enum(M),
70
71
  description: d.string()
71
- }), V = d.object({
72
+ }), ee = d.object({
72
73
  kinds: d.array(d.enum(M)).optional().describe("Optional resource kinds to include. Omit to list all available resources.")
73
- }), ee = ({ kinds: e }, t) => {
74
+ }), te = ({ kinds: e }, t) => {
74
75
  const s = I(t), o = e ? new Set(e) : void 0, r = (s.agentExecutionContext?.sharedResources ?? []).flatMap((n) => {
75
- const i = Z.safeParse(n);
76
+ const i = V.safeParse(n);
76
77
  return i.success && (!o || o.has(i.data.kind)) ? [i.data] : [];
77
78
  });
78
79
  return JSON.stringify({ resources: r }, null, 2);
79
- }, te = R(ee, {
80
+ }, oe = R(te, {
80
81
  name: "listSharedResources",
81
82
  description: "List IDs, kinds, and descriptions for resources created by earlier agents. Use this to reuse prior results instead of repeating work. Resource payloads are hidden.",
82
- schema: V
83
- }), oe = (e) => {
83
+ schema: ee
84
+ }), se = (e) => {
84
85
  if (e.size === 0)
85
86
  throw new Error("At least one skill is required.");
86
87
  const t = [...e.keys()];
@@ -97,7 +98,7 @@ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["
97
98
  schema: d.object({ name: d.enum(t) })
98
99
  }
99
100
  );
100
- }, se = (e) => {
101
+ }, re = (e) => {
101
102
  const t = /^---\r?\nname: (?<name>[^\r\n]+)\r?\ndescription: (?<description>[^\r\n]+)\r?\n(?:allowed-tools: (?<allowedTools>[^\r\n]+)\r?\n)?---\r?\n(?<instructions>[\s\S]+)$/u.exec(
102
103
  e
103
104
  )?.groups;
@@ -109,59 +110,56 @@ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["
109
110
  description: t.description,
110
111
  instructions: t.instructions.trim()
111
112
  };
112
- }, re = async (e) => {
113
- const t = await Promise.all(e.map(async (o) => se(await o()))), s = /* @__PURE__ */ new Map();
113
+ }, ae = async (e) => {
114
+ const t = await Promise.all(e.map(async (o) => re(await o()))), s = /* @__PURE__ */ new Map();
114
115
  for (const o of t) {
115
116
  if (s.has(o.name))
116
117
  throw new Error(`Skill name must be unique: ${o.name}`);
117
118
  s.set(o.name, o);
118
119
  }
119
120
  return s;
120
- }, $ = "load_skill", v = (e) => typeof e == "object" && e !== null && "name" in e && typeof e.name == "string" ? e.name : void 0, ae = (e, t, s = []) => {
121
+ }, T = "load_skill", $ = (e) => typeof e == "object" && e !== null && "name" in e && typeof e.name == "string" ? e.name : void 0, ne = (e, t, s = []) => {
121
122
  let o = t;
122
123
  return y({
123
124
  name: "ActiveSkillMiddleware",
124
125
  wrapModelCall: async (r, n) => {
125
126
  const i = /* @__PURE__ */ new Set([
126
- $,
127
+ T,
127
128
  ...s,
128
129
  ...o?.allowedTools ?? []
129
130
  ]);
130
131
  return await n({
131
132
  ...r,
132
133
  tools: r.tools.filter((l) => {
133
- const a = v(l);
134
+ const a = $(l);
134
135
  return a !== void 0 && i.has(a);
135
136
  })
136
137
  });
137
138
  },
138
139
  wrapToolCall: async (r, n) => {
139
140
  const i = await n(r);
140
- if (r.toolCall.name === $) {
141
- const l = v(r.toolCall.args), a = l ? e.get(l) : void 0;
141
+ if (r.toolCall.name === T) {
142
+ const l = $(r.toolCall.args), a = l ? e.get(l) : void 0;
142
143
  a && (o = a);
143
144
  }
144
145
  return i;
145
146
  }
146
147
  });
147
- }, ne = async (e, t) => {
148
+ }, ie = async (e, t = {}) => {
148
149
  const s = new Set([...e.values()].flatMap((o) => o.allowedTools));
149
150
  return await Promise.all(
150
151
  [...s].map(async (o) => {
151
- const r = t[o];
152
- if (!r)
153
- throw new Error(`Skill tool does not have a loader: ${o}`);
154
- const n = await r();
152
+ const r = t[o], n = r ? await r() : await H(o);
155
153
  if (n.name !== o)
156
154
  throw new Error(`Skill tool "${o}" resolved to "${n.name}".`);
157
155
  return n;
158
156
  })
159
157
  );
160
- }, ie = async (e, t) => {
161
- const s = await re(e), o = [...s.values()];
158
+ }, le = async (e, t = {}) => {
159
+ const s = await ae(e), o = [...s.values()];
162
160
  if (o.length === 0)
163
161
  throw new Error("createSkillRuntime requires at least one skill.");
164
- const r = [te], n = new Set(r.map((a) => a.name));
162
+ const r = [oe], n = new Set(r.map((a) => a.name));
165
163
  for (const a of o) {
166
164
  const h = a.allowedTools.find((f) => n.has(f));
167
165
  if (h)
@@ -169,9 +167,9 @@ const w = (e) => typeof e == "object" && e !== null && !Array.isArray(e), H = ["
169
167
  `Skill "${a.name}" must not declare framework tool "${h}" in allowed-tools; it is provided automatically.`
170
168
  );
171
169
  }
172
- const i = await ne(s, t), l = o.length === 1 ? o[0] : void 0;
170
+ const i = await ie(s, t), l = o.length === 1 ? o[0] : void 0;
173
171
  return {
174
- activeSkillMiddleware: ae(
172
+ activeSkillMiddleware: ne(
175
173
  s,
176
174
  l,
177
175
  r.map((a) => a.name)
@@ -184,11 +182,11 @@ ${o.map((a) => `- ${a.name}: ${a.description}`).join(`
184
182
  `)}
185
183
 
186
184
  Call load_skill before using a skill and follow its instructions. Framework tools and the active skill's tools are available. Switch skills when another skill is needed to complete the task.`,
187
- tools: l ? [...r, ...i] : [oe(s), ...r, ...i]
185
+ tools: l ? [...r, ...i] : [se(s), ...r, ...i]
188
186
  };
189
- }, x = q.Root({ ...U() }), le = m.object({
187
+ }, v = q.Root({ ...U() }), ce = m.object({
190
188
  agentExecutionContext: m.custom()
191
- }), T = m.object({
189
+ }), x = m.object({
192
190
  outcome: m.enum(["completed", "blocked"]).describe(
193
191
  'Return "completed" when the assigned task is done, including valid empty results. Return "blocked" when required information, context, or state is unavailable and the task cannot proceed.'
194
192
  ),
@@ -198,7 +196,7 @@ Call load_skill before using a skill and follow its instructions. Framework tool
198
196
  summary: m.string().describe(
199
197
  "A concise orchestration summary. For a blocker, identify the missing prerequisite and capability needed."
200
198
  )
201
- }), ye = ({
199
+ }), Ae = ({
202
200
  id: e,
203
201
  name: t,
204
202
  description: s,
@@ -211,15 +209,15 @@ Call load_skill before using a skill and follow its instructions. Framework tool
211
209
  fallbackMessage: h = `${t} request completed.`,
212
210
  failureMessage: f = "I couldn't complete this request."
213
211
  }) => {
214
- const E = async (S, u) => {
212
+ const C = async (S, u) => {
215
213
  await p({ text: `Running ${t}` }, u);
216
214
  try {
217
- const { activeSkillMiddleware: c, skillsPrompt: k, tools: C } = await ie(o, r), { collectedEffects: P, middleware: N } = X(), { assignedTask: j, priorSteps: O, userRequest: z } = S.agentExecutionContext, A = await l?.({ config: u }), F = await L({
215
+ const { activeSkillMiddleware: c, skillsPrompt: k, tools: E } = await le(o, r), { collectedEffects: P, middleware: N } = Y(), { assignedTask: j, priorSteps: O, userRequest: z } = S.agentExecutionContext, A = await l?.({ config: u }), F = await L({
218
216
  model: await _({ modelTier: n, config: u }),
219
- tools: C,
220
- stateSchema: le,
221
- responseFormat: T,
222
- middleware: [c, N, Y(u)],
217
+ tools: E,
218
+ stateSchema: ce,
219
+ responseFormat: x,
220
+ middleware: [c, N, Z(u)],
223
221
  systemPrompt: `${i}
224
222
 
225
223
  Primary task assigned by the orchestrator: ${j}
@@ -235,7 +233,7 @@ Call load_skill before using a skill and follow its instructions. Framework tool
235
233
 
236
234
  ${k}
237
235
  ${a ?? ""}`
238
- }).invoke({ messages: [], agentExecutionContext: S.agentExecutionContext }, u), g = T.parse(F.structuredResponse), b = g.outputMessage || h;
236
+ }).invoke({ messages: [], agentExecutionContext: S.agentExecutionContext }, u), g = x.parse(F.structuredResponse), b = g.outputMessage || h;
239
237
  return {
240
238
  outputMessage: b,
241
239
  status: g.outcome === "completed" ? "success" : "failed",
@@ -255,8 +253,8 @@ Reason: ${k}`,
255
253
  };
256
254
  }
257
255
  };
258
- return { id: e, name: t, description: s, createGraph: () => new D(x).addNode("agent", E).addEdge(G, "agent").addEdge("agent", K), workspace: x };
256
+ return { id: e, name: t, description: s, createGraph: () => new D(v).addNode("agent", C).addEdge(G, "agent").addEdge("agent", K), workspace: v };
259
257
  };
260
258
  export {
261
- ye as createSkillAgent
259
+ Ae as createSkillAgent
262
260
  };
@@ -1,7 +1,7 @@
1
1
  import type { RunnableConfig } from "@langchain/core/runnables";
2
2
  import type { StructuredToolInterface } from "@langchain/core/tools";
3
3
 
4
- /** Maps skill tool names to lazy tool loaders. */
4
+ /** Maps skill tool names to custom or configured lazy tool loaders. */
5
5
  export type ToolLoaders = Readonly<Record<string, ToolLoader>>;
6
6
 
7
7
  /**
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
 
@@ -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 { tool as l } from "@langchain/core/tools";
3
3
  import o from "zod";
4
4
  import { f } from "../../../../chunks/fetchAgentContext.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
  import { tool as n } from "@langchain/core/tools";
3
3
  import i from "zod";
4
4
  import { f as l } from "../../../../chunks/fetchAgentContext.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
  import e from "zod";
3
3
  import { tool as h } from "@langchain/core/tools";
4
4
  import m from "@arcgis/core/layers/support/FeatureEffect.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
  import { tool as n } from "@langchain/core/tools";
3
3
  import s from "zod";
4
4
  import { f as c } from "../../../../chunks/fetchService.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
  import { tool as f } from "@langchain/core/tools";
3
3
  import s from "@arcgis/core/config.js";
4
4
  import u from "@arcgis/core/Graphic.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
  import { z as i } from "zod";
3
3
  import { tool as k } from "@langchain/core/tools";
4
4
  import { f as s } from "../../../../chunks/fetchAgentContext.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
  import { z as i } from "zod";
3
3
  import { tool as u } from "@langchain/core/tools";
4
4
  import { f as c } from "../../../../chunks/fetchAgentContext.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
  import { z as n } from "zod";
3
3
  import r from "@arcgis/core/geometry/Extent.js";
4
4
  import { tool as i } from "@langchain/core/tools";
@@ -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 { tool as n } from "@langchain/core/tools";
3
3
  import i from "zod";
4
4
  import { f as r } from "../../../../chunks/fetchAgentContext.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
  import { z as r } from "zod";
3
3
  import { tool as i } from "@langchain/core/tools";
4
4
  import { f as c } from "../../../../chunks/fetchAgentContext.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
  import t from "zod";
3
3
  import { tool as a } from "@langchain/core/tools";
4
4
  import { f as i } from "../../../../chunks/fetchAgentContext.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
  import t from "zod";
3
3
  import { tool as c } from "@langchain/core/tools";
4
4
  import l from "@arcgis/core/geometry/Point.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
  import t from "zod";
3
3
  import { tool as m } from "@langchain/core/tools";
4
4
  import { f as i } from "../../../../chunks/fetchAgentContext.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
  import { tool as f } from "@langchain/core/tools";
3
3
  import i from "zod";
4
4
  import { f as h, g } from "../../../../chunks/formatFeatureAttributes.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
  import { tool as L } from "@langchain/core/tools";
3
3
  import t from "zod";
4
4
  import E from "@arcgis/core/smartMapping/statistics/summaryStatistics.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
  import { tool as S } from "@langchain/core/tools";
3
3
  import e from "zod";
4
4
  import T from "@arcgis/core/rest/support/TopFeaturesQuery.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
  import { tool as v } from "@langchain/core/tools";
3
3
  import { a as C } from "../../../../chunks/formatFeatureAttributes.js";
4
4
  import { g as R, i as F, a as I, s as G, r as O } from "../../../../chunks/resolvePointGeometryFilter.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
  import { tool as y } from "@langchain/core/tools";
3
3
  import t from "zod";
4
4
  import { f as h } from "../../../../chunks/fetchAgentContext.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
  import { tool as y } from "@langchain/core/tools";
3
3
  import i from "zod";
4
4
  import { f as n } from "../../../../chunks/fetchService.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
  import { ToolMessage as a } from "@langchain/core/messages";
3
3
  const i = (r) => typeof r == "object" && r !== null && "value" in r, c = ({ messages: r, schema: n, toolName: t }) => {
4
4
  for (let o = r.length - 1; o >= 0; o--) {
@@ -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 e from "zod";
3
3
  const t = ["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"], i = e.enum(t);
4
4
  export {
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a}from"./CKUUYQLO.js";import"./A6LBMS7A.js";import"./M2U456J5.js";import"./5X23DDDZ.js";import"./CSE6BHOJ.js";import"./BVUCNXC5.js";export{a as goToFeaturesTool};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as n}from"./ONQ6JSBJ.js";import{Dc as o}from"./S627D4K7.js";import{a as i}from"./VXFQANGJ.js";async function a(e){let t=e.map.initialViewProperties?.viewpoint?.targetGeometry;if(t)await e.goTo(t);else throw new Error("Initial extent is undefined");return{text:"Successfully zoomed to home extent"}}async function m(e,t){let{mapView:r}=n(t,["mapView"]);return await a(r)}var s=i.object({}),f=o(m,{name:"goToHomeExtent",description:"Go to the initial web map view extent",schema:s});export{f as a};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as n}from"./A6LBMS7A.js";import{Dc as o}from"./M2U456J5.js";import{a as i}from"./5X23DDDZ.js";async function a(e){let t=e.map.initialViewProperties?.viewpoint?.targetGeometry;if(t)await e.goTo(t);else throw new Error("Initial extent is undefined");return{text:"Successfully zoomed to home extent"}}async function m(e,t){let{mapView:r}=n(t,["mapView"]);return await a(r)}var s=i.object({}),f=o(m,{name:"goToHomeExtent",description:"Go to the initial web map view extent",schema:s});export{f as a};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
2
  var i=(e,o)=>(s,t)=>{let c=t?.configurable?.services;for(let r of e)if(!c?.[r])throw new Error(`${o} requires services.${r} to be available.`);return s};export{i as a};