@lawreneliang/atel-sdk 0.5.6 → 0.5.8
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/bin/atel.mjs +61 -15
- package/dist/anchor/base.js +1 -1
- package/dist/anchor/bsc.js +1 -1
- package/dist/anchor/evm.js +1 -1
- package/dist/anchor/index.js +1 -1
- package/dist/anchor/mock.js +1 -1
- package/dist/anchor/solana.js +1 -1
- package/dist/auditor/index.js +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/crypto/index.js +1 -1
- package/dist/endpoint/index.js +1 -1
- package/dist/envelope/index.js +1 -1
- package/dist/gateway/index.js +1 -1
- package/dist/graph/index.js +1 -1
- package/dist/handshake/index.js +1 -1
- package/dist/identity/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/negotiation/index.js +1 -1
- package/dist/network/index.js +1 -1
- package/dist/orchestrator/index.js +1 -1
- package/dist/policy/index.js +1 -1
- package/dist/proof/index.js +1 -1
- package/dist/registry/index.js +1 -1
- package/dist/rollback/index.js +1 -1
- package/dist/score/index.js +1 -1
- package/dist/service/index.js +1 -1
- package/dist/service/server.js +1 -1
- package/dist/trace/index.js +1 -1
- package/dist/trust/index.js +1 -1
- package/dist/trust-sync/index.js +1 -1
- package/package.json +1 -1
package/dist/trust/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x459816=_0x4962;function _0x4962(_0x4291e6,_0x460c5){_0x4291e6=_0x4291e6-0x197;const _0x4e61f6=_0x4e61();let _0x496259=_0x4e61f6[_0x4291e6];if(_0x4962['gFSyKk']===undefined){var _0x1b3223=function(_0x331c32){const _0x70406a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6b5021='',_0x548b18='';for(let _0x5ec5be=0x0,_0x358429,_0x10347d,_0x5de252=0x0;_0x10347d=_0x331c32['charAt'](_0x5de252++);~_0x10347d&&(_0x358429=_0x5ec5be%0x4?_0x358429*0x40+_0x10347d:_0x10347d,_0x5ec5be++%0x4)?_0x6b5021+=String['fromCharCode'](0xff&_0x358429>>(-0x2*_0x5ec5be&0x6)):0x0){_0x10347d=_0x70406a['indexOf'](_0x10347d);}for(let _0x1238b5=0x0,_0x94d3f8=_0x6b5021['length'];_0x1238b5<_0x94d3f8;_0x1238b5++){_0x548b18+='%'+('00'+_0x6b5021['charCodeAt'](_0x1238b5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x548b18);};_0x4962['zBKWcQ']=_0x1b3223,_0x4962['sHIUnp']={},_0x4962['gFSyKk']=!![];}const _0x3b250e=_0x4e61f6[0x0],_0x383663=_0x4291e6+_0x3b250e,_0x5c72e6=_0x4962['sHIUnp'][_0x383663];return!_0x5c72e6?(_0x496259=_0x4962['zBKWcQ'](_0x496259),_0x4962['sHIUnp'][_0x383663]=_0x496259):_0x496259=_0x5c72e6,_0x496259;}(function(_0x2640ec,_0x390c52){const _0x3e5821=_0x4962,_0x7db175=_0x2640ec();while(!![]){try{const _0x5b597b=-parseInt(_0x3e5821(0x1ac))/0x1+-parseInt(_0x3e5821(0x1af))/0x2+-parseInt(_0x3e5821(0x1a7))/0x3+-parseInt(_0x3e5821(0x197))/0x4+-parseInt(_0x3e5821(0x1a3))/0x5*(parseInt(_0x3e5821(0x19c))/0x6)+-parseInt(_0x3e5821(0x1ad))/0x7+-parseInt(_0x3e5821(0x1aa))/0x8*(-parseInt(_0x3e5821(0x1ae))/0x9);if(_0x5b597b===_0x390c52)break;else _0x7db175['push'](_0x7db175['shift']());}catch(_0x5045f2){_0x7db175['push'](_0x7db175['shift']());}}}(_0x4e61,0x68013));import{TrustScoreClient}from'../score/index.js';function _0x4e61(){const _0x4b22e3=['mtK3ndKXmLD2qMHiAa','AxnZDwvY','z2v0r3jHCgHuCNvZDa','oty4ref2EK5v','z3jHCgG','mJeZmJmWvgzRwgrR','ndG4nJiXyurYs1zh','mJa3mZuXBuDKsgf6','nZK4nJG2sMrVvePV','z2v0qwDLBNrty29Yzq','mZeWntm2me5sB3fPua','Bwf4x2nVC3q','wMPdrfC','zhvYyxrPB25FBxm','rwPzwem','ntaYofvgtMjnsW','C2nLBMu','C2nVCMvdBgLLBNq','y29TCg9ZAxrLvhj1C3q','C3vIBwL0rxHLy3v0Aw9Uu3vTBwfYEq','C3vJy2vZCW','DgfZA190ExbL','mtq2me1bzwnczq','x2vZDgLTyxrLq29ZDa','y29TyMLUzwrty29Yzq','D2LpBLq'];_0x4e61=function(){return _0x4b22e3;};return _0x4e61();}import{TrustGraph,calculateTaskWeight}from'../graph/index.js';export class TrustManager{['scoreClient'];[_0x459816(0x1ab)];constructor(_0x4c476c){const _0x32d824=_0x459816;this[_0x32d824(0x19e)]=_0x4c476c?.[_0x32d824(0x19e)]??new TrustScoreClient(),this[_0x32d824(0x1ab)]=_0x4c476c?.['graph']??new TrustGraph();}['submitResult'](_0x263183){const _0x1d00e0=_0x459816,_0x1d7140={'EWQMo':function(_0x57ac08,_0x5c4bec){return _0x57ac08(_0x5c4bec);}};this[_0x1d00e0(0x19e)][_0x1d00e0(0x1a0)](_0x263183);const _0x49c2e7=_0x1d7140['EWQMo'](calculateTaskWeight,{'tool_calls':_0x263183['tool_calls'],'duration_ms':_0x263183[_0x1d00e0(0x19a)],'max_cost':_0x263183[_0x1d00e0(0x198)]??this[_0x1d00e0(0x1a4)](_0x263183['risk_level']),'risk_level':_0x263183['risk_level'],'similar_task_count':_0x263183['similar_task_count']??0x0}),_0x5efd7a={};_0x5efd7a['from']=_0x263183[_0x1d00e0(0x1a8)],_0x5efd7a['to']=_0x263183['executor'],_0x5efd7a[_0x1d00e0(0x19d)]=_0x263183[_0x1d00e0(0x19d)]??_0x263183[_0x1d00e0(0x1a2)],_0x5efd7a['success']=_0x263183[_0x1d00e0(0x1a1)],_0x5efd7a['task_weight']=_0x49c2e7,_0x5efd7a['duration_ms']=_0x263183['duration_ms'],this['graph']['recordInteraction'](_0x5efd7a);}['queryTrust'](_0x408539,_0x400160,_0x24d56d){const _0x56e62d=_0x459816,_0x405ab2={};_0x405ab2['gCwqF']=function(_0x529217,_0xb621f2){return _0x529217+_0xb621f2;},_0x405ab2[_0x56e62d(0x19b)]=function(_0x510be9,_0x4c1683){return _0x510be9*_0x4c1683;};const _0x145700=_0x405ab2,_0x433166=this[_0x56e62d(0x1ab)][_0x56e62d(0x19f)](_0x408539,_0x400160,_0x24d56d),_0x19e2ab=this['scoreClient']['getAgentScore'](_0x400160),_0x52423c=_0x19e2ab['trust_score']/0x64,_0x24f30c=_0x145700['gCwqF'](_0x145700['EjYXC'](0.6,_0x433166['trust_score']),0.4*_0x52423c),_0x2426a4={};return _0x2426a4['graphTrust']=_0x433166,_0x2426a4['scoreReport']=_0x19e2ab,_0x2426a4[_0x56e62d(0x1a5)]=_0x24f30c,_0x2426a4;}[_0x459816(0x1b0)](_0x25d5b6){const _0x694b4d=_0x459816;return this[_0x694b4d(0x19e)][_0x694b4d(0x1b0)](_0x25d5b6);}[_0x459816(0x1a9)](_0x1504d7,_0x250ce1,_0x2c6ae4){const _0x22ec6c=_0x459816;return this[_0x22ec6c(0x1ab)]['compositeTrust'](_0x1504d7,_0x250ce1,_0x2c6ae4);}['_estimateCost'](_0x54e2dc){const _0x534605=_0x459816,_0x3b2402={};_0x3b2402[_0x534605(0x1a6)]='critical',_0x3b2402['rLKUg']='high',_0x3b2402[_0x534605(0x199)]='medium';const _0x4bde45=_0x3b2402;switch(_0x54e2dc){case _0x4bde45[_0x534605(0x1a6)]:return 0xa;case _0x4bde45['rLKUg']:return 0x5;case _0x4bde45[_0x534605(0x199)]:return 0x2;default:return 0x1;}}}
|
package/dist/trust-sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x6a9c(){const _0x392dac=['mtiYnta1nM12CuvRrq','yMfZzvvYBa','nZeYmduYBxnzAvPt','mJyXmJe2zuDruujp','nJC3mJC1AfPsC1bo','sfruuca','qxv0Ag9YAxPHDgLVBG','yMvHCMvYvg9Rzw4','yxbWBgLJyxrPB24VANnVBG','ywDLBNrFAwq','mti0mZKYDenzt255','C3LUy2vK','DgLTzw91De1Z','Dgv4Da','zgv0ywLS','ndq4mdq4D0ftzwTl','C3rHDhvZvgv4Da','mtu4odC0r2PsDeTt','whnZz3u','ywjVCNq','BgfZDf91CgrHDgvK','n0fzqK1sCW','CMvMzxjLBMnL'];_0x6a9c=function(){return _0x392dac;};return _0x6a9c();}function _0x322e(_0x3d97af,_0xb49886){_0x3d97af=_0x3d97af-0x137;const _0x6a9cff=_0x6a9c();let _0x322eae=_0x6a9cff[_0x3d97af];if(_0x322e['eycjrn']===undefined){var _0x3dbf9d=function(_0x51ad94){const _0x1e4c69='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4781da='',_0x22e175='';for(let _0xf40941=0x0,_0xfc1c3a,_0x2d7bec,_0x4e512e=0x0;_0x2d7bec=_0x51ad94['charAt'](_0x4e512e++);~_0x2d7bec&&(_0xfc1c3a=_0xf40941%0x4?_0xfc1c3a*0x40+_0x2d7bec:_0x2d7bec,_0xf40941++%0x4)?_0x4781da+=String['fromCharCode'](0xff&_0xfc1c3a>>(-0x2*_0xf40941&0x6)):0x0){_0x2d7bec=_0x1e4c69['indexOf'](_0x2d7bec);}for(let _0x111704=0x0,_0x47a48f=_0x4781da['length'];_0x111704<_0x47a48f;_0x111704++){_0x22e175+='%'+('00'+_0x4781da['charCodeAt'](_0x111704)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x22e175);};_0x322e['xoGFpr']=_0x3dbf9d,_0x322e['qEfltb']={},_0x322e['eycjrn']=!![];}const _0x21cdc8=_0x6a9cff[0x0],_0x12104d=_0x3d97af+_0x21cdc8,_0x5eb2b7=_0x322e['qEfltb'][_0x12104d];return!_0x5eb2b7?(_0x322eae=_0x322e['xoGFpr'](_0x322eae),_0x322e['qEfltb'][_0x12104d]=_0x322eae):_0x322eae=_0x5eb2b7,_0x322eae;}const _0x2d3e68=_0x322e;(function(_0x460069,_0x51b913){const _0x5e9ff8=_0x322e,_0x4cefb2=_0x460069();while(!![]){try{const _0x3d6732=-parseInt(_0x5e9ff8(0x13f))/0x1+-parseInt(_0x5e9ff8(0x13d))/0x2+-parseInt(_0x5e9ff8(0x138))/0x3+parseInt(_0x5e9ff8(0x147))/0x4+parseInt(_0x5e9ff8(0x149))/0x5+parseInt(_0x5e9ff8(0x145))/0x6*(parseInt(_0x5e9ff8(0x143))/0x7)+parseInt(_0x5e9ff8(0x148))/0x8;if(_0x3d6732===_0x51b913)break;else _0x4cefb2['push'](_0x4cefb2['shift']());}catch(_0x285957){_0x4cefb2['push'](_0x4cefb2['shift']());}}}(_0x6a9c,0x1ebee));export class HttpTrustSyncAdapter{[_0x2d3e68(0x146)];['timeoutMs'];[_0x2d3e68(0x14c)];constructor(_0x32b4f6){const _0x535360=_0x2d3e68;this[_0x535360(0x146)]=_0x32b4f6['baseUrl']['replace'](/\/+$/,''),this['timeoutMs']=_0x32b4f6[_0x535360(0x13a)]??0x2710,this[_0x535360(0x14c)]=_0x32b4f6['bearerToken'];}async['submit'](_0x109bc0){const _0x515ecf=_0x2d3e68,_0x414a11={'PWmDl':function(_0x173052,_0xfbd003,_0x1c0108){return _0x173052(_0xfbd003,_0x1c0108);},'xbhCI':_0x515ecf(0x14d),'gLjwN':function(_0x4deea1,_0x4b2422,_0xf2bc43){return _0x4deea1(_0x4b2422,_0xf2bc43);},'Xssgu':function(_0x557b41,_0xb52dcc){return _0x557b41 instanceof _0xb52dcc;},'fCzff':function(_0x28e3e1,_0x3e6bce){return _0x28e3e1(_0x3e6bce);}},_0xac6d85=new AbortController(),_0x3934ee=_0x414a11['PWmDl'](setTimeout,()=>_0xac6d85[_0x515ecf(0x141)](),this[_0x515ecf(0x13a)]),_0x5cde21={};_0x5cde21['Content-Type']=_0x414a11['xbhCI'];const _0x35e838=_0x5cde21;this[_0x515ecf(0x14c)]&&(_0x35e838[_0x515ecf(0x14b)]='Bearer\x20'+this[_0x515ecf(0x14c)]);try{const _0x586e7d=await _0x414a11['gLjwN'](fetch,this[_0x515ecf(0x146)]+'/api/v1/summary',{'method':'POST','headers':_0x35e838,'body':JSON['stringify'](_0x109bc0),'signal':_0xac6d85['signal']});if(!_0x586e7d['ok']){const _0x112ce3=await _0x586e7d[_0x515ecf(0x13b)](),_0xe9f6de={};return _0xe9f6de[_0x515ecf(0x139)]=![],_0xe9f6de[_0x515ecf(0x13c)]=_0x515ecf(0x14a)+_0x586e7d['status']+':\x20'+(_0x112ce3||_0x586e7d[_0x515ecf(0x13e)]),_0xe9f6de;}const _0x4f97e6=await _0x586e7d['json'](),_0x5a652a={};return _0x5a652a['synced']=!![],_0x5a652a[_0x515ecf(0x144)]=_0x4f97e6[_0x515ecf(0x137)]??_0x109bc0['executor'],_0x5a652a['detail']=_0x4f97e6[_0x515ecf(0x142)]?'updated_at='+_0x4f97e6[_0x515ecf(0x142)]:'ok',_0x5a652a;}catch(_0xb7f45a){const _0x306b73=_0x414a11[_0x515ecf(0x140)](_0xb7f45a,Error)?_0xb7f45a['message']:String(_0xb7f45a),_0x45567c={};return _0x45567c['synced']=![],_0x45567c[_0x515ecf(0x13c)]=_0x306b73,_0x45567c;}finally{_0x414a11['fCzff'](clearTimeout,_0x3934ee);}}}
|