@arcgis/ai-components 5.2.0-next.36 → 5.2.0-next.38

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 (53) hide show
  1. package/dist/cdn/{KRE4U7V7.js → 2K3FTW7J.js} +1 -1
  2. package/dist/cdn/{TSEQVE2H.js → 32B6ZVYG.js} +1 -1
  3. package/dist/cdn/{L77BTGXY.js → 3RPE2QMJ.js} +1 -1
  4. package/dist/cdn/{4RZPOYZ7.js → 3X7JLPXS.js} +1 -1
  5. package/dist/cdn/53TGCGSX.js +18 -0
  6. package/dist/cdn/{JEIMRNYM.js → 7GE723EX.js} +1 -1
  7. package/dist/cdn/{S27EJSLC.js → B7W5WD4R.js} +1 -1
  8. package/dist/cdn/BLKXZEPZ.js +56 -0
  9. package/dist/cdn/{IGZWQJW7.js → D36UDLAY.js} +1 -1
  10. package/dist/cdn/{7IFCBXV7.js → DFF2LGQI.js} +1 -1
  11. package/dist/cdn/{YRBANNQ5.js → E2JBQWHX.js} +1 -1
  12. package/dist/cdn/{O7TGCM5P.js → EJ2LRQVR.js} +1 -1
  13. package/dist/cdn/{Q73PK7Q7.js → FDPJ5Y3M.js} +1 -1
  14. package/dist/cdn/FK7ENS6I.js +2 -0
  15. package/dist/cdn/{CIW3QMKV.js → FNFJYOHX.js} +1 -1
  16. package/dist/cdn/{2NMR43NW.js → GJHBXGNP.js} +1 -1
  17. package/dist/cdn/HW2FV2RU.js +48 -0
  18. package/dist/cdn/{XVQJBUMY.js → I4A2LAZS.js} +1 -1
  19. package/dist/cdn/{O3F47IO5.js → I5QIEV37.js} +1 -1
  20. package/dist/cdn/{YYY7HKYX.js → IBKTXP76.js} +1 -1
  21. package/dist/cdn/MU52B4SV.js +181 -0
  22. package/dist/cdn/{SMADRJ67.js → NV2KTZTO.js} +1 -1
  23. package/dist/cdn/ON5PWODA.js +208 -0
  24. package/dist/cdn/{IXAKT6L3.js → P22UEKRX.js} +1 -1
  25. package/dist/cdn/PA5W5PWE.js +2 -0
  26. package/dist/cdn/{WAVKMZA6.js → QA7IATZC.js} +1 -1
  27. package/dist/cdn/{IC5P5NYY.js → QJJ6YSAC.js} +1 -1
  28. package/dist/cdn/{HOCTVCHH.js → RHM3WKYV.js} +1 -1
  29. package/dist/cdn/{E7TMP4YV.js → SHFSDORL.js} +1 -1
  30. package/dist/cdn/{AMVOJNWN.js → TIEV263K.js} +1 -1
  31. package/dist/cdn/{HXOSLGWU.js → TKSWXCCJ.js} +1 -1
  32. package/dist/cdn/{AFLQZIKS.js → VAX3IAC3.js} +31 -31
  33. package/dist/cdn/{WDE3HN7K.js → XHJTT7BG.js} +1 -1
  34. package/dist/cdn/XNITXZDU.js +2 -0
  35. package/dist/cdn/{C7E7MJSR.js → XXIKORXX.js} +1 -1
  36. package/dist/cdn/{HBYZSLEZ.js → Y7KEZCVG.js} +1 -1
  37. package/dist/cdn/agent-utils/index.js +1 -1
  38. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +1 -1
  39. package/dist/cdn/agent-utils/middlewares/middleware.js +1 -1
  40. package/dist/cdn/agent-utils/middlewares/trace.js +1 -1
  41. package/dist/cdn/index.js +1 -1
  42. package/dist/docs/api.json +1 -1
  43. package/dist/docs/docs.json +1 -1
  44. package/dist/docs/web-types.json +1 -1
  45. package/package.json +9 -9
  46. package/dist/cdn/6LZ6GOHF.js +0 -56
  47. package/dist/cdn/CJIV4KJZ.js +0 -179
  48. package/dist/cdn/CVHJMR5X.js +0 -2
  49. package/dist/cdn/EBRNMPPO.js +0 -48
  50. package/dist/cdn/IKEF7ZHH.js +0 -181
  51. package/dist/cdn/LODKJRS4.js +0 -2
  52. package/dist/cdn/PKHQW7QU.js +0 -18
  53. package/dist/cdn/VKU4WAQV.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as p}from"./6LZ6GOHF.js";function f(r,e,o){return{name:r,handler:async(a,t)=>{let n=async l=>{let u=await e.beforeAgent?.(l),w=u?{...l,state:{...l.state,...u}}:l,i=await t(w),d=await e.afterAgent?.({...w,result:i});return d?{...i,...d}:i};return e.wrapAgent?await e.wrapAgent(a,n):await n(a)},hooks:e,outputKey:o?.outputKey}}function M(r,e,o){return{name:r,handler:async(a,t)=>e.wrapToolCall?await e.wrapToolCall(a,t):await t(a),outputKey:o?.outputKey}}function y(r){return r.map(e=>s(e.name,e.hooks??{})).filter(e=>!!e)}function s(r,e){let{afterModel:o,beforeModel:a,wrapModelCall:t,wrapToolCall:n}=e;if(!(!o&&!a&&!t&&!n))return p({afterModel:o,beforeModel:a,name:r,wrapModelCall:t,wrapToolCall:n})}export{f as a,M as b,y as c};
2
+ import{a as p}from"./BLKXZEPZ.js";function f(r,e,o){return{name:r,handler:async(a,t)=>{let n=async l=>{let u=await e.beforeAgent?.(l),w=u?{...l,state:{...l.state,...u}}:l,i=await t(w),d=await e.afterAgent?.({...w,result:i});return d?{...i,...d}:i};return e.wrapAgent?await e.wrapAgent(a,n):await n(a)},hooks:e,outputKey:o?.outputKey}}function M(r,e,o){return{name:r,handler:async(a,t)=>e.wrapToolCall?await e.wrapToolCall(a,t):await t(a),outputKey:o?.outputKey}}function y(r){return r.map(e=>s(e.name,e.hooks??{})).filter(e=>!!e)}function s(r,e){let{afterModel:o,beforeModel:a,wrapModelCall:t,wrapToolCall:n}=e;if(!(!o&&!a&&!t&&!n))return p({afterModel:o,beforeModel:a,name:r,wrapModelCall:t,wrapToolCall:n})}export{f as a,M as b,y as c};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./WAVKMZA6.js";import a from"./L77BTGXY.js";import{c as m}from"./CVHJMR5X.js";import"./CJIV4KJZ.js";import"./IKEF7ZHH.js";import"./ZEYIBYSF.js";import"./YIMNOUTF.js";export default $arcgis.t(([{property:n,subclass:l},{watch:w},c])=>{var d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,r,s,o)=>{for(var t=o>1?void 0:o?f(r,s):r,i=e.length-1,a;i>=0;i--)(a=e[i])&&(t=(o?a(r,s,t):a(t))||t);return o&&t&&d(r,s,t),t},h=class extends c{constructor(e){super(e)}initialize(){this.addHandles(w(()=>[this.name,this.description,this.inputSchema,this.outputSchema,this.workflow],()=>this.generate(),{initial:!0,sync:!0}))}getSchemas(){return[this.inputSchema,...this.workflow.getAgents().flatMap(e=>e.getSchemas()),this.outputSchema].filter(Boolean)}generate(){let{workspace:e,createGraph:r}=this.workflow.generate();if(this._set("workspace",e),!this.middlewares?.length)this._set("createGraph",r);else{let s=this.id,o={[s]:async(i,a)=>await r().compile().invoke(i,a)},t=[{from:s,decide:()=>{}}];this._set("createGraph",()=>m(o,t,e,{agent:this,entryNode:s,middlewares:this.middlewares}))}}};p([n()],h.prototype,"workflow",2);p([n()],h.prototype,"inputSchema",2);p([n()],h.prototype,"outputSchema",2);h=p([l("WorkflowAgent")],h);return h},"core/accessorSupport/decorators","core/reactiveUtils",a,b)
2
+ import b from"./QA7IATZC.js";import a from"./3RPE2QMJ.js";import{c as m}from"./XNITXZDU.js";import"./ON5PWODA.js";import"./MU52B4SV.js";import"./ZEYIBYSF.js";import"./YIMNOUTF.js";export default $arcgis.t(([{property:n,subclass:l},{watch:w},c])=>{var d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,r,s,o)=>{for(var t=o>1?void 0:o?f(r,s):r,i=e.length-1,a;i>=0;i--)(a=e[i])&&(t=(o?a(r,s,t):a(t))||t);return o&&t&&d(r,s,t),t},h=class extends c{constructor(e){super(e)}initialize(){this.addHandles(w(()=>[this.name,this.description,this.inputSchema,this.outputSchema,this.workflow],()=>this.generate(),{initial:!0,sync:!0}))}getSchemas(){return[this.inputSchema,...this.workflow.getAgents().flatMap(e=>e.getSchemas()),this.outputSchema].filter(Boolean)}generate(){let{workspace:e,createGraph:r}=this.workflow.generate();if(this._set("workspace",e),!this.middlewares?.length)this._set("createGraph",r);else{let s=this.id,o={[s]:async(i,a)=>await r().compile().invoke(i,a)},t=[{from:s,decide:()=>{}}];this._set("createGraph",()=>m(o,t,e,{agent:this,entryNode:s,middlewares:this.middlewares}))}}};p([n()],h.prototype,"workflow",2);p([n()],h.prototype,"inputSchema",2);p([n()],h.prototype,"outputSchema",2);h=p([l("WorkflowAgent")],h);return h},"core/accessorSupport/decorators","core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./WAVKMZA6.js";import"./CVHJMR5X.js";import"./CJIV4KJZ.js";import"./IKEF7ZHH.js";import"./ZEYIBYSF.js";import"./YIMNOUTF.js";export default $arcgis.t(([{property:d,subclass:f},{a:u,c:i,d:c}])=>{var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,p=(e,o,r,t)=>{for(var s=t>1?void 0:t?g(o,r):o,a=e.length-1,n;a>=0;a--)(n=e[a])&&(s=(t?n(o,r,s):n(s))||s);return t&&s&&m(o,r,s),s},l=class extends c{constructor(e){super(e)}getAgents(){return this.agents}getEntryNode(e){return e[0]?i(e[0],0):void 0}isTerminalAgent(e,o){return o===e.length-1}validateAgents(e){super.validateAgents(e);let o=new Map;for(let[r,t]of e.entries()){let s=e[r-1];if(t.outputSchema)for(let a of u(t.outputSchema)){let n=o.get(a)??[];n.push(`${t.name} [${r}]`),o.set(a,n)}if(!(r===0||!t.inputSchema||s?.outputSchema))throw new Error(`Workflow agent "${t.name}" declares an input schema, so upstream agent "${s.name}" must declare an output schema.`)}for(let[r,t]of o.entries())t.length>1&&console.warn(`Workflow output field "${r}" is declared by multiple steps (${t.join(", ")}). Later steps will overwrite earlier values in shared state.`)}buildEdges(e){return e.length===1?[{from:i(e[0],0),decide:()=>{}}]:e.slice(0,-1).map((o,r)=>({from:i(o,r),decide:t=>t.status==="failed"?void 0:i(e[r+1],r+1)}))}};p([d()],l.prototype,"agents",2);l=p([f("SequentialWorkflow")],l);return l},"core/accessorSupport/decorators",a)
2
+ import a from"./QA7IATZC.js";import"./XNITXZDU.js";import"./ON5PWODA.js";import"./MU52B4SV.js";import"./ZEYIBYSF.js";import"./YIMNOUTF.js";export default $arcgis.t(([{property:d,subclass:f},{a:u,c:i,d:c}])=>{var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,p=(e,o,r,t)=>{for(var s=t>1?void 0:t?g(o,r):o,a=e.length-1,n;a>=0;a--)(n=e[a])&&(s=(t?n(o,r,s):n(s))||s);return t&&s&&m(o,r,s),s},l=class extends c{constructor(e){super(e)}getAgents(){return this.agents}getEntryNode(e){return e[0]?i(e[0],0):void 0}isTerminalAgent(e,o){return o===e.length-1}validateAgents(e){super.validateAgents(e);let o=new Map;for(let[r,t]of e.entries()){let s=e[r-1];if(t.outputSchema)for(let a of u(t.outputSchema)){let n=o.get(a)??[];n.push(`${t.name} [${r}]`),o.set(a,n)}if(!(r===0||!t.inputSchema||s?.outputSchema))throw new Error(`Workflow agent "${t.name}" declares an input schema, so upstream agent "${s.name}" must declare an output schema.`)}for(let[r,t]of o.entries())t.length>1&&console.warn(`Workflow output field "${r}" is declared by multiple steps (${t.join(", ")}). Later steps will overwrite earlier values in shared state.`)}buildEdges(e){return e.length===1?[{from:i(e[0],0),decide:()=>{}}]:e.slice(0,-1).map((o,r)=>({from:i(o,r),decide:t=>t.status==="failed"?void 0:i(e[r+1],r+1)}))}};p([d()],l.prototype,"agents",2);l=p([f("SequentialWorkflow")],l);return l},"core/accessorSupport/decorators",a)