@arcgis/ai-components 5.1.0-next.0 → 5.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/cdn/{OUVX4QS2.js → FVVYK5KV.js} +1 -1
  2. package/dist/cdn/{3EBDE5UU.js → GLPXJC3A.js} +1 -1
  3. package/dist/cdn/{OLPFL2NN.js → KSJNIOUZ.js} +1 -1
  4. package/dist/cdn/SLRL7NB7.js +239 -0
  5. package/dist/cdn/{QTP47HEP.js → ZIHS43OH.js} +1 -1
  6. package/dist/cdn/{PWXNH5LQ.js → ZV2N427X.js} +1 -1
  7. package/dist/cdn/index.js +1 -1
  8. package/dist/components/arcgis-assistant/customElement.d.ts +2 -2
  9. package/dist/components/arcgis-assistant-agent/customElement.d.ts +1 -1
  10. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.d.ts +1 -1
  11. package/dist/components/arcgis-assistant-navigation-agent/customElement.d.ts +1 -1
  12. package/dist/docs/api.json +1 -1
  13. package/dist/docs/docs.json +1 -1
  14. package/dist/docs/vscode.html-custom-data.json +1 -1
  15. package/dist/docs/web-types.json +1 -1
  16. package/package.json +6 -6
  17. package/dist/cdn/2GMCG6SX.js +0 -2
  18. package/dist/cdn/2LSVWAZO.js +0 -2
  19. package/dist/cdn/33UOPY5K.js +0 -2
  20. package/dist/cdn/3YA7AYJB.js +0 -59
  21. package/dist/cdn/4H44OILN.js +0 -2
  22. package/dist/cdn/63ACCRM5.js +0 -239
  23. package/dist/cdn/7JQF7K4O.js +0 -2
  24. package/dist/cdn/7XU5DHDB.js +0 -2
  25. package/dist/cdn/AHBZA3FR.js +0 -2
  26. package/dist/cdn/BN4IYD74.js +0 -17
  27. package/dist/cdn/CFWC26EG.js +0 -2
  28. package/dist/cdn/EF43HQG4.js +0 -2
  29. package/dist/cdn/EFU7HGPY.js +0 -109
  30. package/dist/cdn/EU7GHH2Y.js +0 -56
  31. package/dist/cdn/G65WIFNI.js +0 -88
  32. package/dist/cdn/GXFH7ZNV.js +0 -77
  33. package/dist/cdn/HNKWDK3D.js +0 -2
  34. package/dist/cdn/IMPD5HA4.js +0 -25
  35. package/dist/cdn/IZ4NSOIH.js +0 -19
  36. package/dist/cdn/JMVSBIZH.js +0 -2
  37. package/dist/cdn/JVPRUGML.js +0 -28
  38. package/dist/cdn/LDS4EYQM.js +0 -17
  39. package/dist/cdn/M32BWJ4D.js +0 -14
  40. package/dist/cdn/M3HTSZRF.js +0 -271
  41. package/dist/cdn/M7LOJK3R.js +0 -4
  42. package/dist/cdn/OEDEKAJJ.js +0 -4
  43. package/dist/cdn/OERTOQSW.js +0 -2
  44. package/dist/cdn/QJ3OZMLS.js +0 -2
  45. package/dist/cdn/QWUKKFEV.js +0 -2
  46. package/dist/cdn/QZJ4SRT5.js +0 -5
  47. package/dist/cdn/RFHHK4CN.js +0 -2
  48. package/dist/cdn/RUY3V36A.js +0 -239
  49. package/dist/cdn/TBTPT64L.js +0 -69
  50. package/dist/cdn/V32SS7PJ.js +0 -2
  51. package/dist/cdn/WE5QPXDZ.js +0 -30
  52. package/dist/cdn/XJN4OIMJ.js +0 -2
  53. package/dist/cdn/XOLWLHTD.js +0 -41
  54. package/dist/cdn/Y4325EIX.js +0 -2
  55. package/dist/cdn/YCAUYSSP.js +0 -2
@@ -1,25 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./2GMCG6SX.js";var e=`# Navigation Tool Instructions
3
-
4
- CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
5
-
6
- Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
7
-
8
- Detected intent:
9
- {intent}
10
-
11
- {bookmarksSection}
12
-
13
- {layersSection}
14
-
15
- {fieldsSection}
16
-
17
- Current zoom level: {currentZoom}
18
-
19
- Rules:
20
-
21
- - Call exactly one navigation tool
22
- - Use ONLY provided layerIds and fields if present
23
- - Do NOT invent layerIds or field names
24
- - If required context is missing, fall back to a valid non-layer tool
25
- `;export{e as default};
@@ -1,19 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./2GMCG6SX.js";var e=`## GIS Feature Layer Intent Classifier
3
-
4
- You are an assistant that classifies user intent in ArcGIS Online Map Viewer.
5
-
6
- Return **up to {maxIntents} intents in the exact order they should be executed** for the user's request.
7
- If none apply, return an **empty list** (no "none" label).
8
-
9
- Choose only from registered agents. Input format will be: {{id: string, name: string, description: string}}[]
10
- {registeredAgents}
11
-
12
- Rules:
13
-
14
- - Output 0\u2013{maxIntents} items, ordered for execution.
15
- - Do **not** include any labels outside the list above.
16
- - Do **not** include "none"; return an empty list instead when unrelated questions like labels, popups, etc.
17
- - If none apply, return an empty array [].
18
- - Each returned intent must be supported by evidence in the user request. Don\u2019t add \u2018nice-to-have\u2019 follow-up intents.
19
- `;export{e as default};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as c}from"./AHBZA3FR.js";import"./2LSVWAZO.js";import{g as e,h as t,p as s,t as i}from"./OEDEKAJJ.js";import"./2GMCG6SX.js";var r=e`.assistant-chat-card__prompt-container{display:flex;align-items:center;gap:var(--calcite-spacing-md);background:color-mix(in srgb,var(--calcite-color-brand) 25%,transparent);padding:var(--calcite-spacing-md);border-radius:var(--calcite-border-radius);width:fit-content;margin-left:auto;justify-content:flex-end}.assistant-chat-card__prompt-avatar{display:flex;align-items:center;justify-content:center}.assistant-chat-card__content-container{display:flex;flex:1;flex-direction:column;width:100%}.assistant-chat-card__response-container{display:flex;flex-direction:column;align-items:flex-start;gap:var(--calcite-spacing-sm);width:100%;text-align:left}.assistant-chat-card__response-icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.assistant-chat-card__footer{display:flex;width:100%;justify-content:space-between;padding:0 var(--calcite-spacing-xxs)}.assistant-chat-card__feedback-actions{display:flex;flex-direction:row;gap:var(--calcite-spacing-xxs)}.assistant-chat-card__log-container{padding:0 var(--calcite-spacing-sm);border-radius:var(--calcite-border-radius);margin-bottom:var(--calcite-spacing-sm)}.assistant-chat-card__log{margin:0;font-size:var(--calcite-font-size-sm);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);width:100%;overflow:auto}.assistant-chat-card__footer-start{display:flex;gap:var(--calcite-spacing-xxs)}@media(min-width:1280px){.assistant-chat-card__prompt-container,.assistant-chat-card__response-container{max-width:80%}}`,a=class extends s{constructor(){super(...arguments),this._messages=c({blocking:!0}),this._showLog=!1,this.loading=!1,this.type="prompt",this.feedbackDisabled=!1,this.timestampDisabled=!1}static{this.properties={_showLog:16,loading:5,type:1,feedbackDisabled:5,timestampDisabled:5,content:1,loadingMessage:1,log:1,error:1,user:1}}static{this.styles=r}_renderLog(){return this.log&&this._showLog?t`<div class="assistant-chat-card__log-container"><pre class="assistant-chat-card__log">${this.log}</pre></div>`:null}_renderThumbsUpButton(){return t`<calcite-action id=action-thumbs-up icon=thumbs-up scale=s appearance=transparent @click=${()=>{}} text></calcite-action><calcite-tooltip reference-element=action-thumbs-up overlay-positioning=fixed placement=bottom><span>${this._messages.thumbsUpLabel}</span></calcite-tooltip>`}_renderThumbsDownButton(){return t`<calcite-action id=action-thumbs-down icon=thumbs-down scale=s appearance=transparent @click=${()=>{}} text></calcite-action><calcite-tooltip reference-element=action-thumbs-down overlay-positioning=fixed placement=bottom><span>${this._messages.thumbsDownLabel}</span></calcite-tooltip>`}_renderFeedback(){return!this.feedbackDisabled&&!this.error?t`<div class="assistant-chat-card__feedback-actions">${this._renderThumbsUpButton()}${this._renderThumbsDownButton()}</div>`:null}_renderCopyButton(){return this.error?null:t`<calcite-action id=action-copy icon=copy-to-clipboard scale=s appearance=transparent @click=${async()=>{try{this.content&&await navigator.clipboard.writeText(this.content)}catch(n){console.error("Failed to copy text to clipboard:",n)}}} text></calcite-action><calcite-tooltip reference-element=action-copy overlay-positioning=fixed placement=bottom><span>${this._messages.copyButtonLabel}</span></calcite-tooltip>`}_renderLogButton(){return this.log?t`<calcite-action id=action-log icon=access-string-results scale=s appearance=transparent @click=${()=>this._showLog=!this._showLog} .text=${this._messages.logButtonLabel} .active=${this._showLog}></calcite-action><calcite-tooltip reference-element=action-log overlay-positioning=fixed placement=bottom><span>${this._messages.logButtonLabel}</span></calcite-tooltip>`:null}_renderFooter(){return this.loading?null:t`<div class="assistant-chat-card__footer"><slot name=footer-start class="assistant-chat-card__footer-start">${this._renderCopyButton()}${this._renderLogButton()}</slot>${this._renderFeedback()}</div>`}render(){return this.type==="prompt"?t`<div class="assistant-chat-card__prompt-container"><div>${this.content}</div><div class="assistant-chat-card__prompt-avatar"><calcite-avatar .fullName=${this.user} scale=s></calcite-avatar></div></div>`:t`<div class="assistant-chat-card__response-container"><calcite-icon icon=effects class="assistant-chat-card__response-icon"></calcite-icon><div class="assistant-chat-card__content-container"><arcgis-assistant-chat-card-content .loading=${this.loading} .loadingMessage=${this.loadingMessage} .type=${this.error?"error":"text"} .content=${this.error??this.content}></arcgis-assistant-chat-card-content>${this._renderLog()}${this._renderFooter()}</div></div>`}};i("arcgis-assistant-chat-card",a);export{a as ArcgisAssistantChatCard};
@@ -1,28 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./2GMCG6SX.js";var e=`## Task: Summarize Geographic Features
3
-
4
- You are given features from ArcGIS Feature layer for multiple layers:
5
- {queryResponse}
6
-
7
- Also consider any **relevant context from the chat history**, such as user questions or instructions.
8
-
9
- ### Your goal:
10
-
11
- 1. If the user question is about a **specific calculation** (e.g., average, total, count, min, max), return only the **direct numeric answer** \u2014 short and clear.
12
- - Example: \u201CThe average price is $4.00.\u201D
13
-
14
- 2. If the question is more general or there are **multiple features with varying attributes**, write a **brief summary** (2\u20133 sentences max) that highlights key patterns or insights.
15
-
16
- 3. The response can be per layer, or summarize based on the question.
17
-
18
- 4. When the user asks "where" a feature is located: Simply confirm whether the feature was found and in which layer. DO NOT attempt to provide coordinates, addresses, or geographic descriptions.
19
-
20
- 5. DO NOT ramble.
21
-
22
- In all cases:
23
-
24
- - Focus on **notable attribute values**, **commonalities or differences**, and **interesting trends**.
25
- - If the feature list is empty or not meaningful, state that clearly.
26
-
27
- **Keep your response concise and relevant to the user\u2019s question.**
28
- `;export{e as default};
@@ -1,17 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./2GMCG6SX.js";var e=`## Navigation Agent - Tool Intent Classifier
3
-
4
- You are an assistant that classifies user intent for navigation agent.
5
-
6
- You are given the following tool options:
7
- {tools}
8
-
9
- Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
10
-
11
- Return exactly one intent (tool name) based on the user's request.
12
- If none apply, return an **empty string**.
13
-
14
- Choose only from provided tools.
15
-
16
- Return the name of the tool as a string.
17
- `;export{e as default};
@@ -1,14 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./2GMCG6SX.js";var e=`# ArcgisKnowledge Tool Instructions
3
-
4
- CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
5
-
6
- Use the most recent relevant user question from the chat history. The question will **not** be restated again here.
7
-
8
- Detected intent:
9
- {intent}
10
-
11
- Rules:
12
-
13
- - Call exactly one arcgisKnowledge tool
14
- `;export{e as default};