@arcgis/ai-components 5.1.0-next.8 → 5.1.0-next.9
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.
- package/dist/cdn/2MXPDPA4.js +2 -0
- package/dist/cdn/{TTJBCQZA.js → ARYXVNW7.js} +53 -53
- package/dist/cdn/{CN6VFVA2.js → BSIB6MUI.js} +1 -0
- package/dist/cdn/ERJNZQMY.js +3 -0
- package/dist/cdn/{NSM3CLQ7.js → FO4QKKIM.js} +1 -1
- package/dist/cdn/{2S4DQWU7.js → HSYKCCGW.js} +1 -1
- package/dist/cdn/{TNI4DRHG.js → LO3J46FW.js} +1 -1
- package/dist/cdn/{M7XUI5KY.js → OBS3OCJ2.js} +3 -3
- package/dist/cdn/{TISLVKGP.js → SC3NUIQA.js} +1 -1
- package/dist/cdn/{I4LOCAOT.js → UQLPFM3V.js} +1 -1
- package/dist/cdn/{KDL663TG.js → USRLSPIO.js} +1 -1
- package/dist/cdn/{MN4FA32I.js → XXMUQOKT.js} +77 -78
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-assistant/customElement.js +0 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/WTK5H7Z6.js +0 -2
- package/dist/cdn/ZF7JAW4Z.js +0 -2
|
@@ -11,6 +11,7 @@ Choose only from registered agents. Input format will be: {{id: string, name: st
|
|
|
11
11
|
|
|
12
12
|
Rules:
|
|
13
13
|
|
|
14
|
+
- Pay primary attention to the **latest user query** when determining intents. Use the full context only if the latest query explicitly depends on it.
|
|
14
15
|
- Output 0\u2013{maxIntents} items, ordered for execution.
|
|
15
16
|
- Do **not** include any labels outside the list above.
|
|
16
17
|
- Do **not** include "none"; return an empty list instead when unrelated questions like labels, popups, etc.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import"./CFDTXKJ6.js";var o=`(function(){"use strict";let d=[];const g=new Map,u=12,p=10,h=(r,s)=>{if(r.length!==s.length)throw new Error("Vectors must be the same length");let o=0,a=0,n=0;for(let e=0;e<r.length;++e){const i=r[e],c=s[e];o+=i*c,a+=i*i,n+=c*c}const l=Math.sqrt(a*n);if(l===0)return 0;const t=o/l;return Math.max(-1,Math.min(1,t))},b=r=>{d=r.layers.map(s=>({id:s.id,vector:s.vector})),console.log("Layer Vectorstore contents:",d)},f=r=>{g.clear();for(const s of r.layers){const o=s.fields.map(a=>({name:a.name,vector:a.vector}));g.set(s.id,o)}console.log("Field lookups initialized for layers:",g)};globalThis.addEventListener("message",r=>{(async()=>{const{type:s,webmapEmbeddings:o,layerIdForFieldsSearch:a=[],requestId:n,precomputedEmbedding:l}=r.data;switch(s){case"generateEmbeddings":{o&&(b(o),f(o)),globalThis.postMessage("completed");break}case"layerSearch":{if(d.length>0)try{const t=d.map(e=>({id:e.id,score:h(l,e.vector)})).sort((e,i)=>i.score-e.score).slice(0,p);globalThis.postMessage({requestId:n,results:t})}catch(t){globalThis.postMessage({requestId:n,results:[],error:t instanceof Error?t.message:"Calculation error"})}else globalThis.postMessage({requestId:n,results:[],error:"Layer embeddings not initialized"});break}case"fieldSearch":{if(a.length>0)try{const t=a.map(e=>{const i=g.get(e);if(!i)return{layerId:e,results:[]};const c=i.map(m=>({name:m.name,score:h(l,m.vector)})).sort((m,y)=>y.score-m.score).slice(0,u);return{layerId:e,results:c}});globalThis.postMessage({requestId:n,results:t})}catch(t){globalThis.postMessage({requestId:n,results:[],error:t instanceof Error?t.message:"Field search calculation error"})}break}default:console.warn("Unknown message type:",s)}})()})})();
|
|
3
|
+
`,r=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",o],{type:"text/javascript;charset=utf-8"});function a(t){let e;try{if(e=r&&(self.URL||self.webkitURL).createObjectURL(r),!e)throw"";let s=new Worker(e,{name:t?.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),s}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(o),{name:t?.name})}}export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./ARYXVNW7.js";import b from"./XXMUQOKT.js";import{a as s,b as a}from"./WFEBJPQ4.js";import"./OJUEJ4RT.js";import"./WBSNYWJJ.js";import{v as e,z as r}from"./VG7GKLZR.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{d:i}])=>{var t=class extends e{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-query-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=s(this,"arcgis-assistant-layer-query-agent"),a(this)}};r("arcgis-assistant-layer-query-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./ARYXVNW7.js";import b from"./XXMUQOKT.js";import{a as i,b as e}from"./WFEBJPQ4.js";import"./OJUEJ4RT.js";import"./WBSNYWJJ.js";import{v as s,z as a}from"./VG7GKLZR.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{a:r}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=r}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-navigation-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=i(this,"arcgis-assistant-navigation-agent"),e(this)}};a("arcgis-assistant-navigation-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./ARYXVNW7.js";import a from"./XXMUQOKT.js";import{a as r,b as i}from"./WFEBJPQ4.js";import"./OJUEJ4RT.js";import"./WBSNYWJJ.js";import{v as s,z as e}from"./VG7GKLZR.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{f:a}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=a}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-help-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=r(this,"arcgis-assistant-help-agent"),i(this)}};e("arcgis-assistant-help-agent",t);return t},a,b)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import"./CFDTXKJ6.js";var e=`# ArcGIS Online Map Viewer \u2014 Layer Filter Tool Calling Assistant
|
|
3
3
|
|
|
4
|
-
You are an assistant that helps
|
|
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.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
You may make **zero or one** tool call based on the user's request.
|
|
7
7
|
|
|
8
8
|
## You are given:
|
|
9
9
|
|
|
@@ -48,7 +48,7 @@ To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
|
|
|
48
48
|
|
|
49
49
|
Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Geometry and Spatial Queries (for setFeatureEffect)
|
|
52
52
|
|
|
53
53
|
When dealing with geometry and proximity and spatial queries:
|
|
54
54
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./ARYXVNW7.js";import b from"./XXMUQOKT.js";import{a as r,b as e}from"./WFEBJPQ4.js";import"./OJUEJ4RT.js";import"./WBSNYWJJ.js";import{v as a,z as s}from"./VG7GKLZR.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{b:i}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=r(this,"arcgis-assistant-data-exploration-agent"),e(this)}};s("arcgis-assistant-data-exploration-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./ARYXVNW7.js";import a from"./XXMUQOKT.js";import{a as e,b as i}from"./WFEBJPQ4.js";import"./OJUEJ4RT.js";import"./WBSNYWJJ.js";import{v as s,z as r}from"./VG7GKLZR.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{e:a}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=a}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=e(this,"arcgis-assistant-layer-styling-agent"),i(this)}};r("arcgis-assistant-layer-styling-agent",t);return t},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./ARYXVNW7.js";import a from"./XXMUQOKT.js";import{a as s,b as i}from"./WFEBJPQ4.js";import"./OJUEJ4RT.js";import"./WBSNYWJJ.js";import{v as r,z as e}from"./VG7GKLZR.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{c:a}])=>{var t=class extends r{constructor(){super(...arguments),this.agent=a}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-filter-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=s(this,"arcgis-assistant-layer-filter-agent"),i(this)}};e("arcgis-assistant-layer-filter-agent",t);return t},a,b)
|