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

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
  const e = '---\nname: query\ndescription: Answers questions about feature-layer data, including counts, matching records, field values, aggregates, rankings, and spatially constrained results. Use when the user asks to inspect or summarize map data.\nallowed-tools: findRelevantLayers findRelevantFields getAttribute getStatistics getTopFeatures queryFeatures\n---\n\n# Query\n\n- When the task refers to an address, place, or location resolved by an earlier agent, call `listSharedResources` with `point` as the requested kind. If a resource description clearly matches the location, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches a referential location such as "this location," state that the spatial anchor is unavailable and do not guess coordinates.\n- Start with `findRelevantLayers` unless a previous tool result from this run explicitly identifies the relevant layer ID. Use the assigned task as the semantic query.\n- If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- Before querying, call `findRelevantFields` with only relevant layer IDs. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Set `includeSummaryStatistics` to true when the requested answer directly depends on whole-layer numeric summary statistics such as average, minimum, maximum, sum, variance, standard deviation, null count, or range. Otherwise leave it false and use `getStatistics` later if analysis requires statistics under an attribute or spatial constraint.\n- Use statistics returned by `findRelevantFields` when they directly answer an unfiltered whole-layer question. Use `getStatistics` when a where clause or spatial constraint must be applied.\n- Use `queryFeatures` to count, find, or list matching features. It is the default query tool.\n- Use `getTopFeatures` for highest, lowest, first, last, or top-N records ranked by an existing field.\n- Use `getAttribute` only when retrieving a particular attribute from a specifically identified feature.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- If the request asks to visually show, display, highlight, map, filter, reveal, emphasize, hide, include, or exclude matching features, preserve the information needed for a visual operation in the working context: layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs when available, and count. Preserve the exact values returned or used by tools so another skill can reuse them without repeating discovery.\n- Base the final answer only on returned tool data. State failures or empty results directly and do not fabricate values.\n';
3
3
  export {
4
4
  e as default
@@ -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 = '---\nname: filter\ndescription: Changes feature emphasis on the map by including, excluding, highlighting, dimming, or clearing filtered features. Use when the user asks to visually filter feature-layer data.\nallowed-tools: findRelevantLayers findRelevantFields setFeatureEffect resetMap clearFilters\n---\n\n# Filter\n\n- Use `clearFilters` when the user asks only to remove feature filters or effects. Use `resetMap` only when the user asks to reset the broader map state.\n- Reuse a preceding query result from this run whenever it contains the layer ID and filtering criteria needed for the visual operation. Do not repeat layer or field discovery in that case.\n- A preceding query result may provide the layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs, and count. Preserve and reuse those values rather than reconstructing them.\n- If no usable preceding query geometry exists and the task refers to an address, place, or location resolved by an earlier agent, call `listSharedResources` with `point` as the requested kind. If a resource description clearly matches the location, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches a referential location such as "this location," state that the spatial anchor is unavailable and do not guess coordinates.\n- If no usable preceding query result exists, start with `findRelevantLayers`. Use the assigned task as the semantic query. If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- When discovery is required, call `findRelevantFields` with only relevant layer IDs before constructing a filter. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Leave `includeSummaryStatistics` false unless the filter criteria explicitly depend on a requested numeric summary.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- For highlight, show, include, exclude, or other visual-filter requests with feature criteria, call `setFeatureEffect` using the same layer ID, where clause, geometry filter, and `useCurrentExtent` value determined by the preceding query or discovery steps.\n- If a preceding query returned object IDs for ranked, top-N, or otherwise selected records, pass those object IDs to `setFeatureEffect` instead of rebuilding the selection using only a where clause.\n- Prefer the default feature effects unless the user explicitly requests a particular visual treatment.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- When available, use the preceding query result for feature counts or attribute details in the final response.\n- Report the `setFeatureEffect` outcome faithfully. Do not claim that a map effect was applied when the tool failed or no matching layer or field was found.\n';
3
3
  export {
4
4
  e as default
@@ -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 = `---
3
3
  name: help
4
4
  description: Answers questions about the current map, its layers and fields, available assistant capabilities, unsupported map actions, and unrelated requests that need a map-focused redirect.
@@ -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 = "---\nname: navigation\ndescription: Navigates the map to addresses, bookmarks, layers, matching features, extents, scales, zoom levels, and viewpoints using live map context and semantic layer and field search.\nallowed-tools: findRelevantLayers findRelevantFields goToAddress goToBookmark goToFeatures goToFullExtent goToHomeExtent goToLayer goToScale goToViewpoint goToZoom\n---\n\n# Navigation\n\n- Complete exactly one map-changing navigation action for the assigned task. Semantic search calls do not count as navigation actions.\n- Use the runtime context as the authoritative source for the current zoom level and exact available bookmark names.\n- Prefer an available bookmark over a feature or address when it clearly matches the requested place. Prefer a matching map feature over geocoding when the request identifies a layer or feature. Otherwise use `goToAddress` for an address or place name.\n- Use `goToZoom`, `goToScale`, or `goToViewpoint` directly for explicit numeric requests. For a relative zoom request, calculate one level above or below the current zoom from the runtime context and keep it within the tool's supported range.\n- Use `goToHomeExtent` to reset the map and `goToFullExtent` for the full-world extent. These actions do not require semantic search.\n- Before `goToLayer`, call `findRelevantLayers` with a concise query describing the requested layer. Use only a returned `layerId`. If there is no clear match, do not invent an ID or navigate.\n- Before `goToFeatures`, call `findRelevantLayers`, then call `findRelevantFields` with the relevant returned layer IDs and a query describing the requested condition. Use only the exact layer IDs returned by `findRelevantLayers`. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Build `goToFeatures` filters with valid ArcGIS SQL-92. Use field names rather than aliases, use coded-value domain codes when supplied, quote string values, and use `1=1` when all features in the selected layer are requested.\n- Do not call `findRelevantFields` for layer-only navigation or direct address, bookmark, extent, scale, viewpoint, or zoom navigation.\n- If required map context or semantic search results are missing or ambiguous, explain what is missing instead of guessing.\n- Report the navigation tool result faithfully. Never claim the map moved when the tool failed.\n";
3
3
  export {
4
4
  e as default
@@ -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 H from "@arcgis/core/identity/IdentityManager.js";
3
3
  import P from "@arcgis/core/portal/Portal.js";
4
4
  import J from "@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 { ChatOpenAI as E, OpenAIEmbeddings as U } from "@langchain/openai";
3
3
  import p from "@arcgis/core/portal/Portal.js";
4
4
  import h from "@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 { StateGraph as x, START as k, END as c, Command as b } from "@langchain/langgraph/web";
3
3
  import { a as K, c as _, g as T, b as A, d as S, s as M, q as v, e as u, f as q, t as g, h as C, G as E, i as m } from "./adapter.js";
4
4
  import "@arcgis/core/identity/IdentityManager.js";
@@ -0,0 +1,88 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ const a = /* @__PURE__ */ new Map([
3
+ [
4
+ "clearFilters",
5
+ async () => (await import("../agents/tools/filter/clearFilters/adapter.js")).clearFiltersTool
6
+ ],
7
+ [
8
+ "resetMap",
9
+ async () => (await import("../agents/tools/filter/resetMap/adapter.js")).resetMapTool
10
+ ],
11
+ [
12
+ "setFeatureEffect",
13
+ async () => (await import("../agents/tools/filter/setFeatureEffect/adapter.js")).setFeatureEffectTool
14
+ ],
15
+ [
16
+ "listLayerFields",
17
+ async () => (await import("../agents/tools/help/listFields/adapter.js")).listLayerFieldsTool
18
+ ],
19
+ [
20
+ "goToAddress",
21
+ async () => (await import("../agents/tools/navigation/goToAddress/adapter.js")).goToAddressTool
22
+ ],
23
+ [
24
+ "goToBookmark",
25
+ async () => (await import("../agents/tools/navigation/goToBookmark/adapter.js")).goToBookmarkTool
26
+ ],
27
+ [
28
+ "goToFeatures",
29
+ async () => (await import("../agents/tools/navigation/goToFeatures/adapter.js")).goToFeaturesTool
30
+ ],
31
+ [
32
+ "goToFullExtent",
33
+ async () => (await import("../agents/tools/navigation/goToFullExtent/adapter.js")).goToFullExtentTool
34
+ ],
35
+ [
36
+ "goToHomeExtent",
37
+ async () => (await import("../agents/tools/navigation/goToHomeExtent/adapter.js")).goToHomeExtentTool
38
+ ],
39
+ [
40
+ "goToLayer",
41
+ async () => (await import("../agents/tools/navigation/goToLayer/adapter.js")).goToLayerTool
42
+ ],
43
+ [
44
+ "goToScale",
45
+ async () => (await import("../agents/tools/navigation/goToScale/adapter.js")).goToScaleTool
46
+ ],
47
+ [
48
+ "goToViewpoint",
49
+ async () => (await import("../agents/tools/navigation/goToViewpoint/adapter.js")).goToViewpointTool
50
+ ],
51
+ [
52
+ "goToZoom",
53
+ async () => (await import("../agents/tools/navigation/goToZoom/adapter.js")).goToZoomTool
54
+ ],
55
+ [
56
+ "findRelevantFields",
57
+ async () => (await import("../agents/tools/search/findRelevantFields/adapter.js")).findRelevantFieldsTool
58
+ ],
59
+ [
60
+ "findRelevantLayers",
61
+ async () => (await import("../agents/tools/search/findRelevantLayers/adapter.js")).findRelevantLayersTool
62
+ ],
63
+ [
64
+ "getAttribute",
65
+ async () => (await import("../agents/tools/query/getAttribute/adapter.js")).getAttributeTool
66
+ ],
67
+ [
68
+ "getStatistics",
69
+ async () => (await import("../agents/tools/query/getStatistics/adapter.js")).getStatisticsTool
70
+ ],
71
+ [
72
+ "getTopFeatures",
73
+ async () => (await import("../agents/tools/query/getTopFeatures/adapter.js")).getTopFeaturesTool
74
+ ],
75
+ [
76
+ "queryFeatures",
77
+ async () => (await import("../agents/tools/query/queryFeatures/adapter.js")).queryFeaturesTool
78
+ ]
79
+ ]);
80
+ async function e(o) {
81
+ const t = a.get(o);
82
+ if (!t)
83
+ throw new Error(`"${o}" tool not found`);
84
+ return await t();
85
+ }
86
+ export {
87
+ e as r
88
+ };
@@ -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 = `## Membership Bind Parameters
3
3
 
4
4
  The current link chart contains a subset of entities and relationships from the database. Their membership is available to Cypher queries as lists of string identifiers through these bind parameters:
@@ -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 = `## Membership Bind Parameters
3
3
 
4
4
  The current map contains a subset of entities and relationships from the database. Their membership is available to Cypher queries as lists of string identifiers through these bind parameters:
@@ -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 = `# ArcGIS Knowledge Graph Cypher Rules
3
3
 
4
4
  ## GOAL
@@ -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 = `## ArcgisKnowledge Agent - Lucene Generation for Graph Search
3
3
 
4
4
  You are an assistant that generates a lucene query for graph query searching.
@@ -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 n = `# ArcGIS Knowledge Agent — Action Summary
3
3
 
4
4
  You are a Knowledge Graph assistant that has executed tool calls to answer a user request.
@@ -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 = `# ArcgisKnowledge Tool Instructions
3
3
 
4
4
  You are an assistant that helps users answer questions and perform operations on their knowledge graph, map or link chart. You have been assigned the task below, which must be achieved by calling a single tool.
@@ -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 { Annotation as r } from "@langchain/langgraph/web";
3
3
  const a = (e, t) => t, c = (e, t) => ({
4
4
  ...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 w from "@esri/arcgis-html-sanitizer";
3
3
  import { marked as S } from "marked";
4
4
  S.use({
@@ -1,24 +1,13 @@
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 { createSkillAgent as e } from "../agents/runtime/skill/createSkillAgent.js";
3
3
  const t = [
4
4
  async () => (await import("./SKILL.js")).default,
5
5
  async () => (await import("./SKILL2.js")).default
6
- ], a = {
7
- clearFilters: async () => (await import("../agents/tools/filter/clearFilters/adapter.js")).clearFiltersTool,
8
- findRelevantFields: async () => (await import("../agents/tools/search/findRelevantFields/adapter.js")).findRelevantFieldsTool,
9
- findRelevantLayers: async () => (await import("../agents/tools/search/findRelevantLayers/adapter.js")).findRelevantLayersTool,
10
- getAttribute: async () => (await import("../agents/tools/query/getAttribute/adapter.js")).getAttributeTool,
11
- getStatistics: async () => (await import("../agents/tools/query/getStatistics/adapter.js")).getStatisticsTool,
12
- getTopFeatures: async () => (await import("../agents/tools/query/getTopFeatures/adapter.js")).getTopFeaturesTool,
13
- queryFeatures: async () => (await import("../agents/tools/query/queryFeatures/adapter.js")).queryFeaturesTool,
14
- resetMap: async () => (await import("../agents/tools/filter/resetMap/adapter.js")).resetMapTool,
15
- setFeatureEffect: async () => (await import("../agents/tools/filter/setFeatureEffect/adapter.js")).setFeatureEffectTool
16
- }, i = e({
6
+ ], r = e({
17
7
  id: "dataExploration",
18
8
  name: "Data Exploration Agent",
19
9
  description: "Explores feature-layer data and applies data-driven map filters using on-demand query and filter skills.",
20
10
  skillLoaders: t,
21
- toolLoaders: a,
22
11
  modelTier: "default",
23
12
  systemPrompt: "You are an ArcGIS data exploration agent.",
24
13
  instructions: "A request can require both query and filter skills. Treat show, display, highlight, map, filter, reveal, emphasize, include, or exclude as visual map intent when the request targets matching features. For visual map intent, do not stop after query. First use query to identify/count the matching features, then load the filter skill and call setFeatureEffect with the same layer, where clause, geometry filter, extent setting, or object IDs. Use only tool results to describe data or map changes.",
@@ -26,5 +15,5 @@ const t = [
26
15
  failureMessage: "I couldn't complete the data exploration request."
27
16
  });
28
17
  export {
29
- i as D
18
+ r as D
30
19
  };
@@ -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 = `# ArcGIS Online Map Viewer — Layer Filter Tool Calling Assistant
3
3
 
4
4
  You are an assistant that helps manage layer filters and visual effects for **ArcGIS Online Map Viewer** by selecting and calling the appropriate tool.
@@ -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 = `# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
3
3
 
4
4
  You are a GIS assistant that generates query parameters for the ArcGIS JavaScript SDK FeatureLayerView \`queryFeatures()\` method.
@@ -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 o = `(function(){"use strict";const h=(a,r)=>{if(a.length!==r.length)throw new Error("Vectors must be the same length");let c=0,t=0,e=0;for(let n=0;n<a.length;++n){const s=a[n],l=r[n];c+=s*l,t+=s*s,e+=l*l}const i=Math.sqrt(t*e);if(i===0)return 0;const m=c/i;return Math.max(-1,Math.min(1,m))},f=(a,r,c=.6)=>{const t=[],e=[...a];for(;t.length<r&&e.length>0;){let i=-1,m=-1/0;for(let n=0;n<e.length;n++){const s=e[n].score,l=t.length===0?0:Math.max(...t.map(o=>h(e[n].vector,o.vector))),d=c*s-(1-c)*l;d>m&&(m=d,i=n)}t.push(e[i]),e.splice(i,1)}return t.map(({name:i,score:m})=>({name:i,score:m}))};let p=[];const u=new Map,v=12,y=10,M=a=>{p=a.layers.map(r=>({id:r.id,vector:r.vector}))},E=a=>{u.clear();for(const r of a.layers){const c=r.fields.map(t=>({name:t.name,vector:t.vector}));u.set(r.id,c)}};globalThis.addEventListener("message",a=>{(async()=>{const{type:r,webmapEmbeddings:c,layerIdForFieldsSearch:t=[],requestId:e,precomputedEmbedding:i,minScore:m=0,topResults:n=v}=a.data;switch(r){case"generateEmbeddings":{c&&(M(c),E(c)),globalThis.postMessage("completed");break}case"layerSearch":{if(p.length>0)try{const s=p.map(o=>({id:o.id,vector:o.vector,score:h(i,o.vector)})),d=f(s.map(o=>({name:o.id,vector:o.vector,score:o.score})),y).map(({name:o,score:b})=>({id:o,score:b}));globalThis.postMessage({requestId:e,results:d})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Calculation error"})}else globalThis.postMessage({requestId:e,results:[],error:"Layer embeddings not initialized"});break}case"fieldSearch":{if(t.length>0)try{const s=t.map(l=>{const d=u.get(l);if(!d)return{layerId:l,results:[]};const o=d.map(g=>({name:g.name,vector:g.vector,score:h(i,g.vector)})).filter(({score:g})=>g>=m),b=f(o,n);return{layerId:l,results:b}});globalThis.postMessage({requestId:e,results:s})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Field search calculation error"})}break}default:console.warn("Unknown message type:",r)}})()})})();
3
3
  `, s = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", o], { type: "text/javascript;charset=utf-8" });
4
4
  function a(r) {
@@ -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 c(e, o) {
3
3
  const t = e?.configurable?.context;
4
4
  if (!t || typeof t != "object")
@@ -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 i = (s, e) => {
3
3
  const r = s?.configurable?.services?.[e];
4
4
  if (r == null)
@@ -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 v from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
3
3
  import L from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
4
4
  const $ = 10, b = ["string", "small-integer", "integer"], w = async (u, e, { includeSummaryStatistics: d = !0, includeUniqueValues: y = !0 } = {}) => {
@@ -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 = `You are a knowledgeable GIS expert.
3
3
 
4
4
  You are given a Feature Service description and title.
@@ -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 { formatDateOnly as F, convertDateFormatToIntlOptions as m, formatTimeOnly as T, formatDate as p } from "@arcgis/core/intl.js";
3
3
  const w = /* @__PURE__ */ new Set([
4
4
  "date",
@@ -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 { Annotation as m } from "@langchain/langgraph/web";
3
3
  import { b as j, r as T, m as P, c as q } from "./baseAgentState.js";
4
4
  import p, { z as s } from "zod";
@@ -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 { StateGraph as G, END as p, START as k } from "@langchain/langgraph/web";
3
3
  function b(t, c, o, s = {}) {
4
4
  const { agent: h, entryNode: u, middlewares: l = [] } = s;
@@ -1,37 +1,34 @@
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 { createSkillAgent as o } from "../agents/runtime/skill/createSkillAgent.js";
3
3
  const d = (a, e) => {
4
- const r = Array.from(a?.values() ?? []).map(({ fieldRegistry: l, layerItem: t }) => {
5
- const s = Array.from(l.values(), ({ name: i }) => i);
4
+ const l = Array.from(a?.values() ?? []).map(({ fieldRegistry: r, layerItem: t }) => {
5
+ const s = Array.from(r.values(), ({ name: i }) => i);
6
6
  return {
7
7
  title: t.title,
8
8
  description: t.description,
9
9
  fields: s.slice(0, 10),
10
10
  additionalFieldCount: Math.max(s.length - 10, 0)
11
11
  };
12
- }), n = (e?.list() ?? []).map(({ agent: { description: l, id: t, name: s } }) => ({
12
+ }), n = (e?.list() ?? []).map(({ agent: { description: r, id: t, name: s } }) => ({
13
13
  id: t,
14
14
  name: s,
15
- description: l
15
+ description: r
16
16
  }));
17
- return JSON.stringify({ layers: r, agents: n }, null, 2);
18
- }, c = ({ config: a }) => {
17
+ return JSON.stringify({ layers: l, agents: n }, null, 2);
18
+ }, p = ({ config: a }) => {
19
19
  const e = a?.configurable?.services;
20
20
  return d(e?.layersAndFieldsRegistry, e?.agentRegistry);
21
- }, p = [async () => (await import("./SKILL3.js")).default], u = {
22
- listLayerFields: async () => (await import("../agents/tools/help/listFields/adapter.js")).listLayerFieldsTool
23
- }, g = o({
21
+ }, c = [async () => (await import("./SKILL3.js")).default], m = o({
24
22
  id: "help",
25
23
  name: "Help Agent",
26
24
  description: "Answers questions about the current map, its layers and fields, and available assistant capabilities. Use for general help, unsupported map actions, and unrelated requests that should be redirected to map-related questions.",
27
- skillLoaders: p,
28
- toolLoaders: u,
25
+ skillLoaders: c,
29
26
  modelTier: "default",
30
27
  systemPrompt: "You are an ArcGIS map help agent.",
31
- runtimeContextLoader: c,
28
+ runtimeContextLoader: p,
32
29
  fallbackMessage: "Help request completed.",
33
30
  failureMessage: "I couldn't complete the help request."
34
31
  });
35
32
  export {
36
- g as H
33
+ m as H
37
34
  };
@@ -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 n = `## Who you are
3
3
 
4
4
  You are a map assistant embedded inside a GIS application. You have no knowledge of history, science, people, events, cooking, or anything outside of this map and its data. You only know what is described in the Map Context below.
@@ -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 { dispatchCustomEvent as e } from "@langchain/core/callbacks/dispatch/web";
3
3
  const n = async (s, a) => {
4
4
  await e("trace_message", s, a);
@@ -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 = `## GIS Agent Orchestrator
3
3
 
4
4
  You are an orchestrator for an ArcGIS Maps SDK for JavaScript system.
@@ -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 w, StateGraph as L, START as E, END as m } from "@langchain/langgraph/web";
3
3
  import "@arcgis/core/identity/IdentityManager.js";
4
4
  import "@arcgis/core/portal/Portal.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
  const e = `This Feature Layer is part of a Feature Service. The Feature Layer contains various fields, each with its own name, type, and description.
3
3
  The Feature Layer is a collection of geographic features that represent real-world entities. Each feature in the layer has attributes that provide additional information about the feature. The layer may include point, line, or polygon geometries, depending on the type of data it represents.
4
4
  The geometry type for this layer is {layerGeometryType}.
@@ -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 = `# ArcGIS Online Map Viewer — Smart Mapping Assistant
3
3
 
4
4
  You are a Smart Mapping Assistant for ArcGIS Online Map Viewer.
@@ -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 r = (e, s, a) => {
3
3
  if (!(a ? e.hasAllFeaturesInView : e.hasAllFeatures))
4
4
  return !1;
@@ -1,34 +1,21 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { createSkillAgent as n } from "../agents/runtime/skill/createSkillAgent.js";
3
- import { f as r } from "./fetchAgentContext.js";
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import { createSkillAgent as r } from "../agents/runtime/skill/createSkillAgent.js";
3
+ import { f as n } from "./fetchAgentContext.js";
4
4
  const s = ({ config: a }) => {
5
- const { mapView: o } = r(a, ["mapView"]), e = o.map, t = Number.isFinite(o.zoom) ? o.zoom : void 0;
5
+ const { mapView: e } = n(a, ["mapView"]), t = e.map, o = Number.isFinite(e.zoom) ? e.zoom : void 0;
6
6
  return JSON.stringify(
7
7
  {
8
- availableBookmarks: e.bookmarks?.map(({ name: i }) => i).filter(Boolean) ?? [],
9
- currentZoom: t
8
+ availableBookmarks: t.bookmarks?.map(({ name: i }) => i).filter(Boolean) ?? [],
9
+ currentZoom: o
10
10
  },
11
11
  null,
12
12
  2
13
13
  );
14
- }, l = [async () => (await import("./SKILL4.js")).default], m = {
15
- findRelevantFields: async () => (await import("../agents/tools/search/findRelevantFields/adapter.js")).findRelevantFieldsTool,
16
- findRelevantLayers: async () => (await import("../agents/tools/search/findRelevantLayers/adapter.js")).findRelevantLayersTool,
17
- goToAddress: async () => (await import("../agents/tools/navigation/goToAddress/adapter.js")).goToAddressTool,
18
- goToBookmark: async () => (await import("../agents/tools/navigation/goToBookmark/adapter.js")).goToBookmarkTool,
19
- goToFeatures: async () => (await import("../agents/tools/navigation/goToFeatures/adapter.js")).goToFeaturesTool,
20
- goToFullExtent: async () => (await import("../agents/tools/navigation/goToFullExtent/adapter.js")).goToFullExtentTool,
21
- goToHomeExtent: async () => (await import("../agents/tools/navigation/goToHomeExtent/adapter.js")).goToHomeExtentTool,
22
- goToLayer: async () => (await import("../agents/tools/navigation/goToLayer/adapter.js")).goToLayerTool,
23
- goToScale: async () => (await import("../agents/tools/navigation/goToScale/adapter.js")).goToScaleTool,
24
- goToViewpoint: async () => (await import("../agents/tools/navigation/goToViewpoint/adapter.js")).goToViewpointTool,
25
- goToZoom: async () => (await import("../agents/tools/navigation/goToZoom/adapter.js")).goToZoomTool
26
- }, p = n({
14
+ }, l = [async () => (await import("./SKILL4.js")).default], p = r({
27
15
  id: "navigation",
28
16
  name: "Navigation Agent",
29
17
  description: "Navigates the map for explicit zoom, center, address, bookmark, layer, feature, extent, scale, and viewpoint requests. Use for questions asking where a place is or to resolve an address or place as a reusable spatial anchor for a proximity request. Resolves only the location; it does not query, display, filter, or highlight feature data.",
30
18
  skillLoaders: l,
31
- toolLoaders: m,
32
19
  modelTier: "default",
33
20
  systemPrompt: "You are an ArcGIS map navigation agent.",
34
21
  runtimeContextLoader: s,
@@ -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 = `## Navigation Agent - Tool Intent Classifier
3
3
 
4
4
  You are an assistant that classifies the assigned task intent for navigation agent.
@@ -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 = `# Navigation Tool Instructions
3
3
 
4
4
  CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
@@ -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/identity/IdentityManager.js";
3
3
  import _ from "@arcgis/core/portal/Portal.js";
4
4
  import { g as $, a as D } from "./aiFactory.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
  const t = (r, s) => (o, i) => {
3
3
  const c = i?.configurable?.services;
4
4
  for (const e of r)
@@ -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 l from "@arcgis/core/geometry/Point.js";
3
3
  import * as f from "@arcgis/core/geometry/operators/unionOperator.js";
4
4
  import r from "zod";
@@ -1,8 +1,8 @@
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";
5
- const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.2.0-next/ai-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: i, setAssetPath: d } = t;
5
+ const t = e({ defaultAssetPath: "https://js.arcgis.com/1.0.0/ai-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: i, setAssetPath: d } = t;
6
6
  t.t = s;
7
7
  t.o = a;
8
8
  t.c = r;
@@ -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,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 { Annotation as o } from "@langchain/langgraph/web";
3
3
  import { c } from "./baseAgentState.js";
4
4
  const i = /* @__PURE__ */ new Set(["agentExecutionContext", "outputMessage", "summary", "status"]);
@@ -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,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 i } from "@arcgis/toolkit/dom";
3
3
  import { g as s, a as o } from "./utils3.js";
4
4
  function c(e, 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 { 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,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 as x } from "../../chunks/runtime.js";
3
3
  import { css as L, html as g } from "lit";
4
4
  import T from "@arcgis/core/core/Collection.js";