@agentic-ui-experience/ui-runtime 0.0.1-beta.1 → 0.0.1-beta.2

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.
@@ -1 +1 @@
1
- function _0x4961(){var _0x1d4799=['1706956ZRWPiP','157203VQCfkN','5686737hqYhQE','154747CIqDAu','3rEjtoc','8607990JpAUMi','6287384eDlBLy','472XjmiFX','4816375IMyLxs'];_0x4961=function(){return _0x1d4799;};return _0x4961();}(function(_0x3bcab1,_0x365af4){var _0x4e4ee0=_0x2b33,_0x52d2c9=_0x3bcab1();while(!![]){try{var _0x23ac90=parseInt(_0x4e4ee0(0x11e))/0x1+parseInt(_0x4e4ee0(0x124))/0x2+-parseInt(_0x4e4ee0(0x11f))/0x3*(parseInt(_0x4e4ee0(0x121))/0x4)+parseInt(_0x4e4ee0(0x123))/0x5+-parseInt(_0x4e4ee0(0x120))/0x6+parseInt(_0x4e4ee0(0x126))/0x7+parseInt(_0x4e4ee0(0x122))/0x8*(parseInt(_0x4e4ee0(0x125))/0x9);if(_0x23ac90===_0x365af4)break;else _0x52d2c9['push'](_0x52d2c9['shift']());}catch(_0x2e3bc5){_0x52d2c9['push'](_0x52d2c9['shift']());}}}(_0x4961,0xc53fd));function _0x2b33(_0x3bf3d6,_0x2b7b0e){_0x3bf3d6=_0x3bf3d6-0x11e;var _0x496105=_0x4961();var _0x2b33cd=_0x496105[_0x3bf3d6];return _0x2b33cd;}export*from'@a2ui/web_core/v0_9/basic_catalog';
1
+ function _0x1c97(){var _0x5621da=['2336910dYutPz','232MFKbpq','40685ZjUnsz','4303229ZzohYC','611040WzZqpr','60OEmIDa','407QvwNhY','1169278bjBGgc','7906890auLJzC','213066LPXqwJ','1yDJVKj','8KqhFnX'];_0x1c97=function(){return _0x5621da;};return _0x1c97();}function _0x585c(_0x31d0c4,_0x2f5e19){_0x31d0c4=_0x31d0c4-0x189;var _0x1c97d0=_0x1c97();var _0x585c8f=_0x1c97d0[_0x31d0c4];return _0x585c8f;}(function(_0x236c7e,_0x3ccddb){var _0x16118c=_0x585c,_0x4f31fe=_0x236c7e();while(!![]){try{var _0x2d6f5e=parseInt(_0x16118c(0x191))/0x1*(parseInt(_0x16118c(0x18e))/0x2)+parseInt(_0x16118c(0x193))/0x3+parseInt(_0x16118c(0x194))/0x4*(-parseInt(_0x16118c(0x189))/0x5)+parseInt(_0x16118c(0x18f))/0x6+-parseInt(_0x16118c(0x18a))/0x7*(-parseInt(_0x16118c(0x192))/0x8)+-parseInt(_0x16118c(0x190))/0x9*(parseInt(_0x16118c(0x18c))/0xa)+-parseInt(_0x16118c(0x18d))/0xb*(parseInt(_0x16118c(0x18b))/0xc);if(_0x2d6f5e===_0x3ccddb)break;else _0x4f31fe['push'](_0x4f31fe['shift']());}catch(_0x5e29ce){_0x4f31fe['push'](_0x4f31fe['shift']());}}}(_0x1c97,0xc2dbd));export*from'@a2ui/web_core/v0_9/basic_catalog';
package/dist/catalog.js CHANGED
@@ -1 +1 @@
1
- (function(_0x93cfbf,_0x95bb8a){const _0x2dfeea=_0x2f6f,_0x5032b4=_0x93cfbf();while(!![]){try{const _0xcb2c5=parseInt(_0x2dfeea(0xde))/0x1+-parseInt(_0x2dfeea(0xe0))/0x2+-parseInt(_0x2dfeea(0xd6))/0x3*(parseInt(_0x2dfeea(0xe1))/0x4)+parseInt(_0x2dfeea(0xd5))/0x5*(-parseInt(_0x2dfeea(0xd4))/0x6)+parseInt(_0x2dfeea(0xd9))/0x7*(parseInt(_0x2dfeea(0xdf))/0x8)+-parseInt(_0x2dfeea(0xda))/0x9+parseInt(_0x2dfeea(0xdc))/0xa*(parseInt(_0x2dfeea(0xdb))/0xb);if(_0xcb2c5===_0x95bb8a)break;else _0x5032b4['push'](_0x5032b4['shift']());}catch(_0x14b638){_0x5032b4['push'](_0x5032b4['shift']());}}}(_0x2a89,0x9a6db));import{Catalog}from'@a2ui/web_core/v0_9';import{BASIC_COMPONENTS,BASIC_FUNCTIONS}from'@a2ui/web_core/v0_9/basic_catalog';import{A2UI_BASIC_CATALOG_ID}from'@agentic-ui-experience/ui-core';function defineCatalog(_0x1c73c5){const _0x4a44f3=_0x2f6f,_0x479a0a=_0x1c73c5[_0x4a44f3(0xdd)]??basicCatalog,_0x21625f=_0x1c73c5['components']??[],_0x13a831=_0x1c73c5[_0x4a44f3(0xd7)]??[];return new Catalog(_0x1c73c5['id'],[..._0x479a0a[_0x4a44f3(0xd3)][_0x4a44f3(0xd8)](),..._0x21625f],[..._0x479a0a['functions'][_0x4a44f3(0xd8)](),..._0x13a831],_0x479a0a['themeSchema']);}const basicCatalog=new Catalog(A2UI_BASIC_CATALOG_ID,BASIC_COMPONENTS,BASIC_FUNCTIONS);function _0x2f6f(_0x1ed905,_0x105486){_0x1ed905=_0x1ed905-0xd3;const _0x2a89d5=_0x2a89();let _0x2f6f49=_0x2a89d5[_0x1ed905];return _0x2f6f49;}function _0x2a89(){const _0xa6dfad=['1554BCTENZ','3985wKhMph','633javVoh','functions','values','518rasblX','9205020hOITyz','44FsNdZq','138980tEIrEU','extends','1021692ODCHRA','130768VukrvL','566286mUAJOX','2692HaGWge','components'];_0x2a89=function(){return _0xa6dfad;};return _0x2a89();}export{basicCatalog,defineCatalog};
1
+ function _0xd995(_0x9c11ba,_0x4240f0){_0x9c11ba=_0x9c11ba-0x1f0;const _0xc5e8cf=_0xc5e8();let _0xd995d3=_0xc5e8cf[_0x9c11ba];return _0xd995d3;}(function(_0x310eff,_0x1f556c){const _0xcdebe9=_0xd995,_0x445a29=_0x310eff();while(!![]){try{const _0x3c2979=parseInt(_0xcdebe9(0x1f9))/0x1*(parseInt(_0xcdebe9(0x1f2))/0x2)+-parseInt(_0xcdebe9(0x1f5))/0x3*(-parseInt(_0xcdebe9(0x1fd))/0x4)+parseInt(_0xcdebe9(0x1f1))/0x5*(parseInt(_0xcdebe9(0x1f7))/0x6)+-parseInt(_0xcdebe9(0x1fb))/0x7*(parseInt(_0xcdebe9(0x1f6))/0x8)+-parseInt(_0xcdebe9(0x1f0))/0x9+parseInt(_0xcdebe9(0x1f4))/0xa+parseInt(_0xcdebe9(0x1f3))/0xb;if(_0x3c2979===_0x1f556c)break;else _0x445a29['push'](_0x445a29['shift']());}catch(_0x121d9c){_0x445a29['push'](_0x445a29['shift']());}}}(_0xc5e8,0xec349));import{Catalog}from'@a2ui/web_core/v0_9';function _0xc5e8(){const _0x179f60=['components','41236zqjwRI','9381069NdIgyy','5yLYdpV','160620waoYzT','8094746PVUpSi','10556360vysOsx','258LySQQS','1903976VwfKcl','5022606RxGjUb','functions','2VWVxcq','values','49AUPjBa'];_0xc5e8=function(){return _0x179f60;};return _0xc5e8();}import{BASIC_COMPONENTS,BASIC_FUNCTIONS}from'@a2ui/web_core/v0_9/basic_catalog';import{A2UI_BASIC_CATALOG_ID}from'@agentic-ui-experience/ui-core';function defineCatalog(_0x1ad9c9){const _0x35c5a4=_0xd995,_0x241f09=_0x1ad9c9['extends']??basicCatalog,_0x431054=_0x1ad9c9[_0x35c5a4(0x1fc)]??[],_0x2dbd54=_0x1ad9c9[_0x35c5a4(0x1f8)]??[];return new Catalog(_0x1ad9c9['id'],[..._0x241f09[_0x35c5a4(0x1fc)][_0x35c5a4(0x1fa)](),..._0x431054],[..._0x241f09['functions'][_0x35c5a4(0x1fa)](),..._0x2dbd54],_0x241f09['themeSchema']);}const basicCatalog=new Catalog(A2UI_BASIC_CATALOG_ID,BASIC_COMPONENTS,BASIC_FUNCTIONS);export{basicCatalog,defineCatalog};
@@ -0,0 +1,3 @@
1
+ import type { Catalog, ComponentApi } from "@a2ui/web_core/v0_9";
2
+ import type { ComponentValidator } from "@agentic-ui-experience/ui-core";
3
+ export declare function createCatalogComponentValidator<TComp extends ComponentApi = ComponentApi>(catalogs: readonly Catalog<TComp>[]): ComponentValidator;
@@ -0,0 +1 @@
1
+ (function(_0xf1ee32,_0x14302d){const _0x423418=_0x2951,_0x2e0686=_0xf1ee32();while(!![]){try{const _0x2cb708=-parseInt(_0x423418(0xe5))/0x1*(parseInt(_0x423418(0xe4))/0x2)+parseInt(_0x423418(0xe1))/0x3*(-parseInt(_0x423418(0xdb))/0x4)+parseInt(_0x423418(0xdf))/0x5+parseInt(_0x423418(0xdc))/0x6+parseInt(_0x423418(0xde))/0x7*(parseInt(_0x423418(0xdd))/0x8)+-parseInt(_0x423418(0xe2))/0x9+parseInt(_0x423418(0xe3))/0xa;if(_0x2cb708===_0x14302d)break;else _0x2e0686['push'](_0x2e0686['shift']());}catch(_0xf0ced6){_0x2e0686['push'](_0x2e0686['shift']());}}}(_0x5458,0x7e1a6));function _0x2951(_0x1c0d02,_0x55f5bc){_0x1c0d02=_0x1c0d02-0xd6;const _0x54581d=_0x5458();let _0x29511f=_0x54581d[_0x1c0d02];return _0x29511f;}function createCatalogComponentValidator(_0x58b503){const _0x75e673=_0x2951,_0x2a8f61=new Map();for(const _0x5d2edc of _0x58b503){for(const [_0x15d518,_0x16b007]of _0x5d2edc['components']){if(!_0x2a8f61[_0x75e673(0xd6)](_0x15d518))_0x2a8f61['set'](_0x15d518,_0x16b007['schema']);}}return(_0x509f82,_0x1cdbef)=>{const _0x1797fe=_0x75e673,_0x1e24dd=_0x2a8f61[_0x1797fe(0xd7)](_0x509f82);if(!_0x1e24dd)return['unknown\x20component\x20\x22'+_0x509f82+'\x22'];const _0x49b837={..._0x1cdbef};delete _0x49b837['id'],delete _0x49b837['component'],delete _0x49b837['accessibility'],delete _0x49b837[_0x1797fe(0xda)];const _0x545a5c=_0x1e24dd[_0x1797fe(0xd9)](_0x49b837);if(_0x545a5c['success'])return[];return _0x545a5c['error']['issues']['map'](_0x56e0c0=>{const _0x57ee4b=_0x1797fe,_0x3e4b65=_0x56e0c0[_0x57ee4b(0xe0)]['join']('.');return _0x3e4b65?_0x3e4b65+':\x20'+_0x56e0c0[_0x57ee4b(0xd8)]:_0x56e0c0[_0x57ee4b(0xd8)];});};}export{createCatalogComponentValidator};function _0x5458(){const _0x112b1a=['path','309186OmHGXr','4617009EmQDoM','4269370SPCYhV','446ZTzdJo','2115xZBKPO','has','get','message','safeParse','weight','28LGEPGq','5117808olhndJ','6488lOXtKq','518TVreWY','4413395wjFNmn'];_0x5458=function(){return _0x112b1a;};return _0x5458();}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { basicCatalog, defineCatalog, type DefineCatalogOptions } from "./catalog.js";
2
2
  export * from "./runtime.js";
3
+ export { createCatalogComponentValidator } from "./component-validator.js";
3
4
  export { Catalog } from "@a2ui/web_core/v0_9";
4
5
  export type { ComponentApi, FunctionImplementation } from "@a2ui/web_core/v0_9";
5
6
  export { ActionSchema, CheckableSchema, CommonSchemas, DataBindingSchema, DynamicBooleanSchema, DynamicNumberSchema, DynamicStringListSchema, DynamicStringSchema, DynamicValueSchema, FunctionCallSchema } from "@a2ui/web_core/v0_9";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1203e7,_0x2e46b2){var _0x196c73=_0x1415,_0x5097be=_0x1203e7();while(!![]){try{var _0x15d411=-parseInt(_0x196c73(0x8d))/0x1*(parseInt(_0x196c73(0x85))/0x2)+-parseInt(_0x196c73(0x86))/0x3*(parseInt(_0x196c73(0x8c))/0x4)+-parseInt(_0x196c73(0x89))/0x5*(-parseInt(_0x196c73(0x8b))/0x6)+parseInt(_0x196c73(0x84))/0x7+parseInt(_0x196c73(0x8e))/0x8*(parseInt(_0x196c73(0x8a))/0x9)+parseInt(_0x196c73(0x83))/0xa*(parseInt(_0x196c73(0x88))/0xb)+parseInt(_0x196c73(0x87))/0xc*(parseInt(_0x196c73(0x8f))/0xd);if(_0x15d411===_0x2e46b2)break;else _0x5097be['push'](_0x5097be['shift']());}catch(_0x5648ee){_0x5097be['push'](_0x5097be['shift']());}}}(_0x4ffc,0xd8277));import{basicCatalog,defineCatalog}from'./catalog.js';import{createUIRuntime}from'./runtime.js';function _0x4ffc(){var _0x23a816=['3tEaRBM','1488jEiEcj','453002AwbFkN','1704955YHECnM','2790PHxzcv','6DHErEb','2379092NGAAEn','845702nJXHvT','13048MaQXeg','100906vmnxQA','40OqRhox','2464175BCBGnW','2xgNpDr'];_0x4ffc=function(){return _0x23a816;};return _0x4ffc();}import{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema}from'@a2ui/web_core/v0_9';function _0x1415(_0x3d3cb0,_0x49f06a){_0x3d3cb0=_0x3d3cb0-0x83;var _0x4ffc74=_0x4ffc();var _0x1415e2=_0x4ffc74[_0x3d3cb0];return _0x1415e2;}import{z}from'zod';export{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema,basicCatalog,createUIRuntime,defineCatalog,z};
1
+ (function(_0x5f1265,_0x1fdb1b){var _0x3d598b=_0x342e,_0x575840=_0x5f1265();while(!![]){try{var _0x48e8a4=-parseInt(_0x3d598b(0x166))/0x1*(-parseInt(_0x3d598b(0x164))/0x2)+parseInt(_0x3d598b(0x165))/0x3+-parseInt(_0x3d598b(0x167))/0x4+-parseInt(_0x3d598b(0x162))/0x5+parseInt(_0x3d598b(0x163))/0x6+parseInt(_0x3d598b(0x169))/0x7+-parseInt(_0x3d598b(0x168))/0x8;if(_0x48e8a4===_0x1fdb1b)break;else _0x575840['push'](_0x575840['shift']());}catch(_0x454bfe){_0x575840['push'](_0x575840['shift']());}}}(_0x4a21,0x791fc));import{basicCatalog,defineCatalog}from'./catalog.js';function _0x342e(_0x54d426,_0x174d1e){_0x54d426=_0x54d426-0x162;var _0x4a218b=_0x4a21();var _0x342efb=_0x4a218b[_0x54d426];return _0x342efb;}import{createUIRuntime}from'./runtime.js';function _0x4a21(){var _0x24cf10=['3898209isyxJg','1274205rvZhVj','5721228heVoBF','6lavTzU','128106ozuWVE','193852JKSbZg','2103028pfDHtg','6863688gnrDbL'];_0x4a21=function(){return _0x24cf10;};return _0x4a21();}import{createCatalogComponentValidator}from'./component-validator.js';import{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema}from'@a2ui/web_core/v0_9';import{z}from'zod';export{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema,basicCatalog,createCatalogComponentValidator,createUIRuntime,defineCatalog,z};
package/dist/runtime.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3adf13,_0x2e2165){const _0x4bb9fd=_0x430f,_0x37587a=_0x3adf13();while(!![]){try{const _0x50051b=-parseInt(_0x4bb9fd(0xe6))/0x1+-parseInt(_0x4bb9fd(0xef))/0x2+-parseInt(_0x4bb9fd(0xf9))/0x3*(parseInt(_0x4bb9fd(0xda))/0x4)+parseInt(_0x4bb9fd(0xfd))/0x5+-parseInt(_0x4bb9fd(0xf7))/0x6+-parseInt(_0x4bb9fd(0xfb))/0x7+parseInt(_0x4bb9fd(0xd7))/0x8*(parseInt(_0x4bb9fd(0xd8))/0x9);if(_0x50051b===_0x2e2165)break;else _0x37587a['push'](_0x37587a['shift']());}catch(_0x57f407){_0x37587a['push'](_0x37587a['shift']());}}}(_0x48bc,0xad13a));function _0x430f(_0x584e78,_0x425d52){_0x584e78=_0x584e78-0xd3;const _0x48bc60=_0x48bc();let _0x430f5b=_0x48bc60[_0x584e78];return _0x430f5b;}import{MessageProcessor}from'@a2ui/web_core/v0_9';import{splitUIEnvelope,normalizeUIResponse,toSDKCompatibleA2UIMessage}from'@agentic-ui-experience/ui-core';function _0x48bc(){const _0x461376=['closed','component','getClientDataModel','uiMessages','model','2548386fKnEvG','onSurfaceCreated','path','unsubscribe','nextIdx','values','error','assistantText','3338478iGxALN','dispose','105297mmcqqu','processMessages','2466520nyZtou','add','5959400fgTyWF','A2UI\x20surface\x20error','components','length','startsWith','3318648mfIuUC','63wMHlUP','code','4aIWTbO','has','normalizeMode','catalogs','schema','success','deleteSurface','message','slice','safeParse','map','surfacesMap','1168710mAGpOa','clear','test','onError'];_0x48bc=function(){return _0x461376;};return _0x48bc();}function scanNextTopLevelObject(_0x18a5b4,_0x318df6){const _0x56a2ee=_0x430f;let _0x399ec1=_0x318df6;while(_0x399ec1<_0x18a5b4['length']&&/\s/[_0x56a2ee(0xe8)](_0x18a5b4[_0x399ec1]))_0x399ec1++;while(_0x399ec1<_0x18a5b4[_0x56a2ee(0xd5)]&&(_0x18a5b4[_0x399ec1]==='['||_0x18a5b4[_0x399ec1]===',')){_0x399ec1++;while(_0x399ec1<_0x18a5b4['length']&&/\s/['test'](_0x18a5b4[_0x399ec1]))_0x399ec1++;}if(_0x399ec1>=_0x18a5b4[_0x56a2ee(0xd5)]||_0x18a5b4[_0x399ec1]!=='{')return null;let _0x8461bc=0x0,_0x247324=![],_0x244e6d=![];const _0x579b53=_0x399ec1;for(;_0x399ec1<_0x18a5b4[_0x56a2ee(0xd5)];_0x399ec1++){const _0x511c2c=_0x18a5b4[_0x399ec1];if(_0x247324){if(_0x244e6d){_0x244e6d=![];continue;}if(_0x511c2c==='\x5c'){_0x244e6d=!![];continue;}_0x511c2c==='\x22'&&(_0x247324=![]);continue;}if(_0x511c2c==='\x22'){_0x247324=!![];continue;}if(_0x511c2c==='{')_0x8461bc++;else{if(_0x511c2c==='}'){_0x8461bc--;if(_0x8461bc===0x0)return{'obj':_0x18a5b4[_0x56a2ee(0xe2)](_0x579b53,_0x399ec1+0x1),'nextIdx':_0x399ec1+0x1};}}}return null;}function createUIRuntime(_0x187c29){const _0x4b25ca=_0x430f,_0xc0f97f=_0x187c29[_0x4b25ca(0xdd)],_0x75dc15=_0x187c29[_0x4b25ca(0xdc)]??'repair',_0x3b8011=new Map();for(const _0x3940b4 of _0xc0f97f){for(const [_0x222ce9,_0x34e6e9]of _0x3940b4[_0x4b25ca(0xd4)]){if(!_0x3b8011[_0x4b25ca(0xdb)](_0x222ce9))_0x3b8011['set'](_0x222ce9,_0x34e6e9[_0x4b25ca(0xde)]);}}const _0x2c6acb=(_0x11b9a0,_0x4b2975)=>{const _0x5f10e0=_0x4b25ca,_0x371f59=_0x3b8011['get'](_0x11b9a0);if(!_0x371f59)return['unknown\x20component\x20\x22'+_0x11b9a0+'\x22'];const _0x2c9282={..._0x4b2975};delete _0x2c9282['id'],delete _0x2c9282[_0x5f10e0(0xeb)];const _0x17f489=_0x371f59[_0x5f10e0(0xe3)](_0x2c9282);if(_0x17f489[_0x5f10e0(0xdf)])return[];return _0x17f489[_0x5f10e0(0xf5)]['issues']['map'](_0x3d1912=>{const _0xd93455=_0x5f10e0,_0x1b6bb1=_0x3d1912[_0xd93455(0xf1)]['join']('.');return _0x1b6bb1['length']>0x0?_0x1b6bb1+':\x20'+_0x3d1912[_0xd93455(0xe1)]:_0x3d1912[_0xd93455(0xe1)];});},_0x290fba=new Set();let _0x177d33;const _0x3c77e5=[],_0x3fab5f=new Map();let _0x1cf5c3=![],_0x22d44b='',_0x1a3620=0x0,_0x44faed=0x0,_0x2caf63=![];const _0x4c937b=()=>{_0x22d44b='',_0x1a3620=0x0,_0x44faed=0x0,_0x2caf63=![];},_0x3e524e=new MessageProcessor(_0xc0f97f,_0x5ebff1=>{_0x187c29['onAction']?.(_0x5ebff1);});let _0x1fe70a=null;const _0x4b528d=()=>{_0x1fe70a=null;for(const _0x4ccbb7 of _0x290fba)_0x4ccbb7();},_0x9b1f3b=_0x560c9d=>{const _0x2317e4=_0x4b25ca;_0x3c77e5['push'](_0x560c9d),_0x187c29[_0x2317e4(0xe9)]?.(_0x560c9d);},_0x1ccf7b=_0x3e524e[_0x4b25ca(0xf0)](_0x5f74aa=>{const _0x30afd5=_0x4b25ca,_0x32fdeb=_0x5f74aa[_0x30afd5(0xe9)]['subscribe'](_0x41944e=>{const _0x4da22e=_0x30afd5,_0x29057e=_0x41944e??{};_0x9b1f3b({'surfaceId':_0x5f74aa['id'],..._0x29057e[_0x4da22e(0xd9)]!==void 0x0?{'code':_0x29057e['code']}:{},'message':_0x29057e[_0x4da22e(0xe1)]??_0x4da22e(0xd3)}),_0x4b528d();});_0x3fab5f['set'](_0x5f74aa['id'],_0x32fdeb),_0x4b528d();}),_0x2ea1f0=_0x3e524e['onSurfaceDeleted'](_0x178cc2=>{const _0x25efda=_0x4b25ca;_0x3fab5f['get'](_0x178cc2)?.[_0x25efda(0xf2)](),_0x3fab5f['delete'](_0x178cc2),_0x4b528d();}),_0xe278cf=()=>{const _0x381a12=_0x4b25ca;if(_0x1fe70a!==null)return _0x1fe70a;const _0xbf4cba=Array['from'](_0x3e524e[_0x381a12(0xee)][_0x381a12(0xe5)][_0x381a12(0xf4)]());return _0x1fe70a=_0x177d33===void 0x0?{'surfaces':_0xbf4cba,'errors':[..._0x3c77e5]}:{'surfaces':_0xbf4cba,'assistantText':_0x177d33,'errors':[..._0x3c77e5]},_0x1fe70a;},_0x36ee6a=_0x44837d=>{const _0x3e7ca6=_0x4b25ca;if(_0x1cf5c3)return;let _0x3ab413=![];try{const _0x11ad47=normalizeUIResponse(_0x44837d,{'mode':_0x75dc15,'validateComponent':_0x2c6acb});_0x11ad47['assistantText']!==void 0x0&&(_0x177d33=_0x11ad47[_0x3e7ca6(0xf6)],_0x3ab413=!![]);if(_0x11ad47['uiMessages'][_0x3e7ca6(0xd5)]>0x0){const _0x26cf68=_0x11ad47[_0x3e7ca6(0xed)][_0x3e7ca6(0xe4)](toSDKCompatibleA2UIMessage);_0x3e524e['processMessages'](_0x26cf68),_0x3ab413=!![];}}catch(_0x2811e3){_0x9b1f3b({'message':_0x2811e3 instanceof Error?_0x2811e3[_0x3e7ca6(0xe1)]:String(_0x2811e3)}),_0x3ab413=!![];}if(_0x3ab413)_0x4b528d();},_0x4cb00c=_0x2afab5=>{const _0x454c9a=_0x4b25ca;if(_0x1cf5c3)return;!_0x2afab5[_0x454c9a(0xd6)](_0x22d44b)&&_0x4c937b();let _0x4adcb3=![];const _0x2e8939=splitUIEnvelope(_0x2afab5);_0x177d33!==_0x2e8939['visibleText']&&(_0x177d33=_0x2e8939['visibleText'],_0x4adcb3=!![]);if(_0x2e8939['a2uiInner']!==null&&!_0x2caf63)while(!![]){const _0x45f4bc=scanNextTopLevelObject(_0x2e8939['a2uiInner'],_0x1a3620);if(!_0x45f4bc)break;try{const _0x35787b=JSON['parse'](_0x45f4bc['obj']),_0x55f53d=toSDKCompatibleA2UIMessage(_0x35787b);_0x3e524e[_0x454c9a(0xfa)]([_0x55f53d]),_0x44faed++,_0x4adcb3=!![];}catch{_0x2caf63=!![];break;}_0x1a3620=_0x45f4bc[_0x454c9a(0xf3)];}_0x22d44b=_0x2afab5;if(_0x4adcb3)_0x4b528d();},_0x55a647=()=>{const _0x51a519=_0x4b25ca;if(_0x1cf5c3)return;const _0x4e4c99=_0x22d44b;if(_0x4e4c99['length']===0x0&&!_0x2caf63)return;const _0x314887=splitUIEnvelope(_0x4e4c99);let _0x512f17=![];_0x177d33!==_0x314887['visibleText']&&(_0x177d33=_0x314887['visibleText'],_0x512f17=!![]);const _0x54888e=_0x2caf63||!_0x314887[_0x51a519(0xea)];if(_0x54888e&&_0x4e4c99['length']>0x0)try{const _0x4eb57c=normalizeUIResponse(_0x4e4c99,{'mode':_0x75dc15,'validateComponent':_0x2c6acb}),_0x1a54d2=_0x4eb57c['uiMessages'][_0x51a519(0xe2)](_0x44faed);if(_0x1a54d2['length']>0x0){const _0x3fb98f=_0x1a54d2['map'](toSDKCompatibleA2UIMessage);_0x3e524e['processMessages'](_0x3fb98f),_0x44faed+=_0x1a54d2[_0x51a519(0xd5)],_0x512f17=!![];}}catch(_0x3211e6){_0x9b1f3b({'message':_0x3211e6 instanceof Error?_0x3211e6['message']:String(_0x3211e6)}),_0x512f17=!![];}_0x4c937b();if(_0x512f17)_0x4b528d();},_0x74fec9=()=>{const _0x4a654d=_0x4b25ca;if(_0x1cf5c3)return;const _0x104ae4=Array['from'](_0x3e524e['model']['surfacesMap']['keys']());for(const _0x2e1772 of _0x104ae4){_0x3e524e['model'][_0x4a654d(0xe0)](_0x2e1772);}_0x177d33=void 0x0,_0x3c77e5['length']=0x0,_0x4c937b(),_0x4b528d();},_0x3d6de5=()=>{const _0x47baba=_0x4b25ca;if(_0x1cf5c3)return;_0x1cf5c3=!![],_0x1ccf7b[_0x47baba(0xf2)](),_0x2ea1f0[_0x47baba(0xf2)]();for(const _0x17f135 of _0x3fab5f['values']())_0x17f135[_0x47baba(0xf2)]();_0x3fab5f[_0x47baba(0xe7)](),_0x3e524e[_0x47baba(0xee)][_0x47baba(0xf8)](),_0x290fba['clear']();},_0x114552=_0x4a6cfc=>{const _0x2fe3ec=_0x4b25ca;if(_0x1cf5c3)return()=>{};return _0x290fba[_0x2fe3ec(0xfc)](_0x4a6cfc),()=>{_0x290fba['delete'](_0x4a6cfc);};},_0x2699ae=()=>{const _0x541b2c=_0x4b25ca;if(_0x1cf5c3)return;if(_0x3c77e5['length']===0x0)return;_0x3c77e5[_0x541b2c(0xd5)]=0x0,_0x4b528d();};return{'ingest':_0x36ee6a,'ingestStreaming':_0x4cb00c,'endStream':_0x55a647,'reset':_0x74fec9,'clearErrors':_0x2699ae,'dispose':_0x3d6de5,'getState':_0xe278cf,'subscribe':_0x114552,'getClientCapabilities':_0x2a36f7=>_0x3e524e['getClientCapabilities'](_0x2a36f7),'getClientDataModel':()=>_0x3e524e[_0x4b25ca(0xec)]()};}export{createUIRuntime};
1
+ (function(_0x751d4,_0x43394f){const _0x48ebf7=_0x411a,_0xad1445=_0x751d4();while(!![]){try{const _0x1595b8=parseInt(_0x48ebf7(0xf6))/0x1*(-parseInt(_0x48ebf7(0xe1))/0x2)+-parseInt(_0x48ebf7(0xe8))/0x3*(parseInt(_0x48ebf7(0xf2))/0x4)+parseInt(_0x48ebf7(0x101))/0x5+-parseInt(_0x48ebf7(0xf1))/0x6*(parseInt(_0x48ebf7(0xf7))/0x7)+-parseInt(_0x48ebf7(0xea))/0x8*(parseInt(_0x48ebf7(0xfd))/0x9)+parseInt(_0x48ebf7(0xec))/0xa+parseInt(_0x48ebf7(0x100))/0xb*(parseInt(_0x48ebf7(0xf9))/0xc);if(_0x1595b8===_0x43394f)break;else _0xad1445['push'](_0xad1445['shift']());}catch(_0x1d4d5b){_0xad1445['push'](_0xad1445['shift']());}}}(_0x1252,0x67ce8));import{MessageProcessor}from'@a2ui/web_core/v0_9';import{splitUIEnvelope,normalizeUIResponse,toSDKCompatibleA2UIMessage}from'@agentic-ui-experience/ui-core';function _0x411a(_0x5ecaea,_0x4b244d){_0x5ecaea=_0x5ecaea-0xde;const _0x1252ba=_0x1252();let _0x411ab9=_0x1252ba[_0x5ecaea];return _0x411ab9;}import{createCatalogComponentValidator}from'./component-validator.js';function scanNextTopLevelObject(_0x53541d,_0x5235d3){const _0x244707=_0x411a;let _0x339e17=_0x5235d3;while(_0x339e17<_0x53541d[_0x244707(0xef)]&&/\s/['test'](_0x53541d[_0x339e17]))_0x339e17++;while(_0x339e17<_0x53541d[_0x244707(0xef)]&&(_0x53541d[_0x339e17]==='['||_0x53541d[_0x339e17]===',')){_0x339e17++;while(_0x339e17<_0x53541d[_0x244707(0xef)]&&/\s/[_0x244707(0xe2)](_0x53541d[_0x339e17]))_0x339e17++;}if(_0x339e17>=_0x53541d[_0x244707(0xef)]||_0x53541d[_0x339e17]!=='{')return null;let _0x54c1d2=0x0,_0x25604d=![],_0xb5cd50=![];const _0x2931f3=_0x339e17;for(;_0x339e17<_0x53541d['length'];_0x339e17++){const _0x5ee262=_0x53541d[_0x339e17];if(_0x25604d){if(_0xb5cd50){_0xb5cd50=![];continue;}if(_0x5ee262==='\x5c'){_0xb5cd50=!![];continue;}_0x5ee262==='\x22'&&(_0x25604d=![]);continue;}if(_0x5ee262==='\x22'){_0x25604d=!![];continue;}if(_0x5ee262==='{')_0x54c1d2++;else{if(_0x5ee262==='}'){_0x54c1d2--;if(_0x54c1d2===0x0)return{'obj':_0x53541d['slice'](_0x2931f3,_0x339e17+0x1),'nextIdx':_0x339e17+0x1};}}}return null;}function _0x1252(){const _0x16a76e=['model','parse','surfacesMap','onError','30qLGOkX','test','a2uiInner','obj','startsWith','onSurfaceCreated','onAction','2299359GdcSnX','repair','8sddzgu','getClientDataModel','4185650qFaZov','delete','visibleText','length','normalizeMode','38652UKFPqp','4CBwXxN','uiMessages','message','unsubscribe','54362hCqMya','140bHsmxJ','map','14507196ySTVQk','closed','from','clear','2195325VsNgpo','assistantText','push','11rKXCMH','3761710aCbnKa','getClientCapabilities'];_0x1252=function(){return _0x16a76e;};return _0x1252();}function createUIRuntime(_0x3f2764){const _0x2704f6=_0x411a,_0x2e29c3=_0x3f2764['catalogs'],_0x421b1a=_0x3f2764[_0x2704f6(0xf0)]??_0x2704f6(0xe9),_0x362eac=createCatalogComponentValidator(_0x2e29c3),_0x417aa6=new Set();let _0x44d8d1;const _0x53075a=[],_0x1122b3=new Map();let _0x2a407d=![],_0x50cc13='',_0x3a1c3a=0x0,_0x2c384d=0x0,_0x438b58=![];const _0x348584=()=>{_0x50cc13='',_0x3a1c3a=0x0,_0x2c384d=0x0,_0x438b58=![];},_0x9ddb7a=new MessageProcessor(_0x2e29c3,_0x2852e2=>{const _0x520b97=_0x2704f6;_0x3f2764[_0x520b97(0xe7)]?.(_0x2852e2);});let _0x438d73=null;const _0x2fae1e=()=>{_0x438d73=null;for(const _0x94f7d5 of _0x417aa6)_0x94f7d5();},_0x951b07=_0x3df34c=>{const _0x42b875=_0x2704f6;_0x53075a[_0x42b875(0xff)](_0x3df34c),_0x3f2764[_0x42b875(0xe0)]?.(_0x3df34c);},_0x3808f4=_0x9ddb7a[_0x2704f6(0xe6)](_0x183f8c=>{const _0x151134=_0x2704f6,_0x5a1cec=_0x183f8c[_0x151134(0xe0)]['subscribe'](_0x1f16fd=>{const _0x1a030f=_0x151134,_0x458a86=_0x1f16fd??{};_0x951b07({'surfaceId':_0x183f8c['id'],..._0x458a86['code']!==void 0x0?{'code':_0x458a86['code']}:{},'message':_0x458a86[_0x1a030f(0xf4)]??'A2UI\x20surface\x20error'}),_0x2fae1e();});_0x1122b3['set'](_0x183f8c['id'],_0x5a1cec),_0x2fae1e();}),_0x59e10a=_0x9ddb7a['onSurfaceDeleted'](_0xd1327d=>{const _0x32a1d9=_0x2704f6;_0x1122b3['get'](_0xd1327d)?.[_0x32a1d9(0xf5)](),_0x1122b3['delete'](_0xd1327d),_0x2fae1e();}),_0x139f22=()=>{const _0x3ff18c=_0x2704f6;if(_0x438d73!==null)return _0x438d73;const _0x44b0c8=Array[_0x3ff18c(0xfb)](_0x9ddb7a[_0x3ff18c(0x103)][_0x3ff18c(0xdf)]['values']());return _0x438d73=_0x44d8d1===void 0x0?{'surfaces':_0x44b0c8,'errors':[..._0x53075a]}:{'surfaces':_0x44b0c8,'assistantText':_0x44d8d1,'errors':[..._0x53075a]},_0x438d73;},_0x196673=_0x3c513b=>{const _0x5e8292=_0x2704f6;if(_0x2a407d)return;let _0x10358c=![];try{const _0x36461d=normalizeUIResponse(_0x3c513b,{'mode':_0x421b1a,'validateComponent':_0x362eac});_0x36461d[_0x5e8292(0xfe)]!==void 0x0&&(_0x44d8d1=_0x36461d['assistantText'],_0x10358c=!![]);if(_0x36461d[_0x5e8292(0xf3)][_0x5e8292(0xef)]>0x0){const _0x47b1b1=_0x36461d['uiMessages']['map'](toSDKCompatibleA2UIMessage);_0x9ddb7a['processMessages'](_0x47b1b1),_0x10358c=!![];}}catch(_0x59fe4f){_0x951b07({'message':_0x59fe4f instanceof Error?_0x59fe4f[_0x5e8292(0xf4)]:String(_0x59fe4f)}),_0x10358c=!![];}if(_0x10358c)_0x2fae1e();},_0x356c0b=_0x43f4b4=>{const _0x38c394=_0x2704f6;if(_0x2a407d)return;!_0x43f4b4[_0x38c394(0xe5)](_0x50cc13)&&_0x348584();let _0x495952=![];const _0x407439=splitUIEnvelope(_0x43f4b4);_0x44d8d1!==_0x407439[_0x38c394(0xee)]&&(_0x44d8d1=_0x407439[_0x38c394(0xee)],_0x495952=!![]);if(_0x407439[_0x38c394(0xe3)]!==null&&!_0x438b58)while(!![]){const _0x4133d8=scanNextTopLevelObject(_0x407439['a2uiInner'],_0x3a1c3a);if(!_0x4133d8)break;try{const _0x5aacad=JSON[_0x38c394(0xde)](_0x4133d8[_0x38c394(0xe4)]),_0x49ab10=toSDKCompatibleA2UIMessage(_0x5aacad);_0x9ddb7a['processMessages']([_0x49ab10]),_0x2c384d++,_0x495952=!![];}catch{_0x438b58=!![];break;}_0x3a1c3a=_0x4133d8['nextIdx'];}_0x50cc13=_0x43f4b4;if(_0x495952)_0x2fae1e();},_0x1d1c26=()=>{const _0x1cd0cc=_0x2704f6;if(_0x2a407d)return;const _0x3ef6c2=_0x50cc13;if(_0x3ef6c2['length']===0x0&&!_0x438b58)return;const _0x2e746a=splitUIEnvelope(_0x3ef6c2);let _0x3a9fd8=![];_0x44d8d1!==_0x2e746a['visibleText']&&(_0x44d8d1=_0x2e746a[_0x1cd0cc(0xee)],_0x3a9fd8=!![]);const _0x4ac76b=_0x438b58||!_0x2e746a[_0x1cd0cc(0xfa)];if(_0x4ac76b&&_0x3ef6c2['length']>0x0)try{const _0x1ffee0=normalizeUIResponse(_0x3ef6c2,{'mode':_0x421b1a,'validateComponent':_0x362eac}),_0x2796c3=_0x1ffee0['uiMessages']['slice'](_0x2c384d);if(_0x2796c3[_0x1cd0cc(0xef)]>0x0){const _0x251fd8=_0x2796c3[_0x1cd0cc(0xf8)](toSDKCompatibleA2UIMessage);_0x9ddb7a['processMessages'](_0x251fd8),_0x2c384d+=_0x2796c3[_0x1cd0cc(0xef)],_0x3a9fd8=!![];}}catch(_0x113778){_0x951b07({'message':_0x113778 instanceof Error?_0x113778['message']:String(_0x113778)}),_0x3a9fd8=!![];}_0x348584();if(_0x3a9fd8)_0x2fae1e();},_0x453928=()=>{if(_0x2a407d)return;const _0x4e0012=Array['from'](_0x9ddb7a['model']['surfacesMap']['keys']());for(const _0x5e7e77 of _0x4e0012){_0x9ddb7a['model']['deleteSurface'](_0x5e7e77);}_0x44d8d1=void 0x0,_0x53075a['length']=0x0,_0x348584(),_0x2fae1e();},_0x399671=()=>{const _0x54b74f=_0x2704f6;if(_0x2a407d)return;_0x2a407d=!![],_0x3808f4['unsubscribe'](),_0x59e10a[_0x54b74f(0xf5)]();for(const _0x25aae6 of _0x1122b3['values']())_0x25aae6[_0x54b74f(0xf5)]();_0x1122b3[_0x54b74f(0xfc)](),_0x9ddb7a['model']['dispose'](),_0x417aa6['clear']();},_0x342406=_0x21379d=>{if(_0x2a407d)return()=>{};return _0x417aa6['add'](_0x21379d),()=>{const _0x352eb8=_0x411a;_0x417aa6[_0x352eb8(0xed)](_0x21379d);};},_0x48fe54=()=>{if(_0x2a407d)return;if(_0x53075a['length']===0x0)return;_0x53075a['length']=0x0,_0x2fae1e();};return{'ingest':_0x196673,'ingestStreaming':_0x356c0b,'endStream':_0x1d1c26,'reset':_0x453928,'clearErrors':_0x48fe54,'dispose':_0x399671,'getState':_0x139f22,'subscribe':_0x342406,'getClientCapabilities':_0x44b543=>_0x9ddb7a[_0x2704f6(0x102)](_0x44b543),'getClientDataModel':()=>_0x9ddb7a[_0x2704f6(0xeb)]()};}export{createUIRuntime};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic-ui-experience/ui-runtime",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@a2ui/web_core": "0.9.2",
26
26
  "zod": "^3.25.76",
27
- "@agentic-ui-experience/ui-core": "0.0.1-beta.1"
27
+ "@agentic-ui-experience/ui-core": "0.0.1-beta.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@a2ui/react": "0.9.0"