@shumai-one/shumai-agent 0.4.2 → 0.4.3
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/chunk-115gx56y.js +12 -0
- package/bin/chunk-24s58f6x.js +11 -0
- package/bin/chunk-2mj5h53m.js +5 -0
- package/bin/chunk-3dr4h1df.js +16 -0
- package/bin/chunk-3mdhkfgq.js +3 -0
- package/bin/chunk-5axrg8rz.js +2 -0
- package/bin/chunk-5vk5pgxq.js +45 -0
- package/bin/chunk-7hkzk9pe.js +3 -0
- package/bin/chunk-7z62cgr7.js +3 -0
- package/bin/chunk-8cz84wva.js +4 -0
- package/bin/chunk-97avgejq.js +2 -0
- package/bin/chunk-avm8xsd8.js +3 -0
- package/bin/chunk-b5hbfteg.js +2 -0
- package/bin/chunk-c8vf5ezv.js +24 -0
- package/bin/chunk-caw017nc.js +3 -0
- package/bin/chunk-dak3e9js.js +2 -0
- package/bin/chunk-dpd0zpsp.js +3 -0
- package/bin/chunk-gkwywrkk.js +2 -0
- package/bin/chunk-gqvwjf6q.js +2 -0
- package/bin/chunk-hme2crct.js +2 -0
- package/bin/chunk-hyc2kn1w.js +8 -0
- package/bin/chunk-kvt13jb9.js +2 -0
- package/bin/chunk-m51y6s92.js +2 -0
- package/bin/chunk-p7sczpks.js +3 -0
- package/bin/chunk-phjnj6x5.js +3 -0
- package/bin/chunk-ptxcc9bv.js +2 -0
- package/bin/chunk-q7ypqj4c.js +2 -0
- package/bin/chunk-r8hcdypf.js +2 -0
- package/bin/chunk-rv0jkz1g.js +8 -0
- package/bin/chunk-shv0zdbp.js +4 -0
- package/bin/chunk-smv5ztx4.js +2 -0
- package/bin/chunk-spcaxtg5.js +7 -0
- package/bin/chunk-sxrz8e3j.js +3 -0
- package/bin/chunk-v8rxcp9h.js +2 -0
- package/bin/chunk-xmq8pwcp.js +13379 -0
- package/bin/chunk-y6h80xaa.js +13 -0
- package/bin/chunk-zcx3awzq.js +3 -0
- package/bin/shumai-agent-app.js +656 -449
- package/package.json +18 -18
- package/prisma/migrations/20260904022457_add_agent_id_to_assets_and_audit_logs/migration.sql +17 -0
- package/prisma/migrations/20260906081230_default_denied_tools_delete_asset/migration.sql +15 -0
- package/prisma/schema.prisma +9 -0
- package/bin/chunk-1ep7nnzp.js +0 -5
- package/bin/chunk-1jq2vgrd.js +0 -3
- package/bin/chunk-2ntm65jn.js +0 -3
- package/bin/chunk-3nh1p64q.js +0 -12
- package/bin/chunk-41gh01qj.js +0 -3
- package/bin/chunk-4n1309xp.js +0 -2
- package/bin/chunk-616f7y5x.js +0 -8
- package/bin/chunk-6a9h5d64.js +0 -3
- package/bin/chunk-6dp3ybh2.js +0 -3
- package/bin/chunk-6nd8f70y.js +0 -4
- package/bin/chunk-6vs3gb9g.js +0 -2
- package/bin/chunk-7dyx5m0f.js +0 -6
- package/bin/chunk-7j3qbvwc.js +0 -7
- package/bin/chunk-9h5qhgqx.js +0 -13
- package/bin/chunk-b9s67nd8.js +0 -2
- package/bin/chunk-c14kvr2r.js +0 -11
- package/bin/chunk-cb5p7shk.js +0 -12240
- package/bin/chunk-ccx6803n.js +0 -44
- package/bin/chunk-cm4dpd3k.js +0 -4
- package/bin/chunk-dd2tfwzy.js +0 -45
- package/bin/chunk-dk9vz5tv.js +0 -4
- package/bin/chunk-e6691p0v.js +0 -3
- package/bin/chunk-e9d2ah8y.js +0 -3
- package/bin/chunk-fvmb8en4.js +0 -24
- package/bin/chunk-gegf6d3m.js +0 -2
- package/bin/chunk-gx9vdcbm.js +0 -2
- package/bin/chunk-j427r7a5.js +0 -2
- package/bin/chunk-jperx2a8.js +0 -6
- package/bin/chunk-k4jm2gt4.js +0 -3
- package/bin/chunk-m29dphbf.js +0 -3
- package/bin/chunk-mpgy1y53.js +0 -3
- package/bin/chunk-n1t3he2k.js +0 -3
- package/bin/chunk-pmdb6y7t.js +0 -2
- package/bin/chunk-qx9njyk7.js +0 -3
- package/bin/chunk-r5h7vczc.js +0 -3
- package/bin/chunk-spm76160.js +0 -2
- package/bin/chunk-t8k09sgb.js +0 -3
- package/bin/chunk-tvef1ck8.js +0 -2
- package/bin/chunk-v4j6yxch.js +0 -3
- package/bin/chunk-vjzrmneg.js +0 -2
- package/bin/chunk-x25enwfz.js +0 -3
- package/bin/chunk-xg9xscqz.js +0 -1
- package/bin/chunk-xqg06q7q.js +0 -2
- package/bin/chunk-xvbd9e2b.js +0 -8
- package/bin/chunk-y2z3xj0m.js +0 -12
- package/bin/chunk-ywhrsshf.js +0 -2
- package/bin/chunk-z512b49m.js +0 -3
- package/bin/chunk-z58rb52r.js +0 -3
- package/bin/chunk-zazbsz25.js +0 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{h,r}from"./chunk-kvt13jb9.js";var B=r(function(m){Object.defineProperty(m,"__esModule",{value:!0});m.Allow=m.ALL=m.COLLECTION=m.ATOM=m.SPECIAL=m.INF=m._INFINITY=m.INFINITY=m.NAN=m.BOOL=m.NULL=m.OBJ=m.ARR=m.NUM=m.STR=void 0;m.STR=1;m.NUM=2;m.ARR=4;m.OBJ=8;m.NULL=16;m.BOOL=32;m.NAN=64;m.INFINITY=128;m._INFINITY=256;m.INF=m.INFINITY|m._INFINITY;m.SPECIAL=m.NULL|m.BOOL|m.INF|m.NAN;m.ATOM=m.STR|m.NUM|m.SPECIAL;m.COLLECTION=m.ARR|m.OBJ;m.ALL=m.ATOM|m.COLLECTION;m.Allow={STR:m.STR,NUM:m.NUM,ARR:m.ARR,OBJ:m.OBJ,NULL:m.NULL,BOOL:m.BOOL,NAN:m.NAN,INFINITY:m.INFINITY,_INFINITY:m._INFINITY,INF:m.INF,SPECIAL:m.SPECIAL,ATOM:m.ATOM,COLLECTION:m.COLLECTION,ALL:m.ALL};m.default=m.Allow});var W=r(function(u){var H=u&&u.__createBinding||(Object.create?function(t,s,i,e){if(e===void 0)e=i;var o=Object.getOwnPropertyDescriptor(s,i);if(!o||("get"in o?!s.__esModule:o.writable||o.configurable))o={enumerable:!0,get:function(){return s[i]}};Object.defineProperty(t,e,o)}:function(t,s,i,e){if(e===void 0)e=i;t[e]=s[i]}),K=u&&u.__exportStar||function(t,s){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))H(s,t,i)};Object.defineProperty(u,"__esModule",{value:!0});u.Allow=u.MalformedJSON=u.PartialJSON=u.parseJSON=u.parse=void 0;var c=B();Object.defineProperty(u,"Allow",{enumerable:!0,get:function(){return c.Allow}});K(B(),u);class F extends Error{}u.PartialJSON=F;class P extends Error{}u.MalformedJSON=P;function v(t,s=c.Allow.ALL){if(typeof t!=="string")throw TypeError(`expecting str, got ${typeof t}`);if(!t.trim())throw Error(`${t} is empty`);return Q(t.trim(),s)}u.parseJSON=v;var Q=(t,s)=>{let i=t.length,e=0,o=(n)=>{throw new F(`${n} at position ${e}`)},p=(n)=>{throw new P(`${n} at position ${e}`)},N=()=>{if(l(),e>=i)o("Unexpected end of input");if(t[e]==='"')return U();if(t[e]==="{")return q();if(t[e]==="[")return V();if(t.substring(e,e+4)==="null"||c.Allow.NULL&s&&i-e<4&&"null".startsWith(t.substring(e)))return e+=4,null;if(t.substring(e,e+4)==="true"||c.Allow.BOOL&s&&i-e<4&&"true".startsWith(t.substring(e)))return e+=4,!0;if(t.substring(e,e+5)==="false"||c.Allow.BOOL&s&&i-e<5&&"false".startsWith(t.substring(e)))return e+=5,!1;if(t.substring(e,e+8)==="Infinity"||c.Allow.INFINITY&s&&i-e<8&&"Infinity".startsWith(t.substring(e)))return e+=8,1/0;if(t.substring(e,e+9)==="-Infinity"||c.Allow._INFINITY&s&&1<i-e&&i-e<9&&"-Infinity".startsWith(t.substring(e)))return e+=9,-1/0;if(t.substring(e,e+3)==="NaN"||c.Allow.NAN&s&&i-e<3&&"NaN".startsWith(t.substring(e)))return e+=3,NaN;return z()},U=()=>{let n=e,a=!1;e++;while(e<i&&(t[e]!=='"'||a&&t[e-1]==="\\"))a=t[e]==="\\"?!a:!1,e++;if(t.charAt(e)=='"')try{return JSON.parse(t.substring(n,++e-Number(a)))}catch(f){p(String(f))}else if(c.Allow.STR&s)try{return JSON.parse(t.substring(n,e-Number(a))+'"')}catch(f){return JSON.parse(t.substring(n,t.lastIndexOf("\\"))+'"')}o("Unterminated string literal")},q=()=>{e++,l();let n={};try{while(t[e]!=="}"){if(l(),e>=i&&c.Allow.OBJ&s)return n;let a=U();l(),e++;try{let f=N();n[a]=f}catch(f){if(c.Allow.OBJ&s)return n;else throw f}if(l(),t[e]===",")e++}}catch(a){if(c.Allow.OBJ&s)return n;else o("Expected '}' at end of object")}return e++,n},V=()=>{e++;let n=[];try{while(t[e]!=="]")if(n.push(N()),l(),t[e]===",")e++}catch(a){if(c.Allow.ARR&s)return n;o("Expected ']' at end of array")}return e++,n},z=()=>{if(e===0){if(t==="-")p("Not sure what '-' is");try{return JSON.parse(t)}catch(a){if(c.Allow.NUM&s)try{return JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch(f){}p(String(a))}}let n=e;if(t[e]==="-")e++;while(t[e]&&",]}".indexOf(t[e])===-1)e++;if(e==i&&!(c.Allow.NUM&s))o("Unterminated number literal");try{return JSON.parse(t.substring(n,e))}catch(a){if(t.substring(n,e)==="-")o("Not sure what '-' is");try{return JSON.parse(t.substring(n,t.lastIndexOf("e")))}catch(f){p(String(f))}}},l=()=>{while(e<i&&`
|
|
3
|
+
\r `.includes(t[e]))e++};return N()},X=v;u.parse=X});var M=h(W(),1),Z=new Set(['"',"\\","/","b","f","n","r","t","u"]);function S(t){let s=t.codePointAt(0);return s!==void 0&&s>=0&&s<=31}function g(t){switch(t){case"\b":return"\\b";case"\f":return"\\f";case`
|
|
4
|
+
`:return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:return`\\u${t.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function D(t){let s="",i=!1;for(let e=0;e<t.length;e++){let o=t[e];if(!i){if(s+=o,o==='"')i=!0;continue}if(o==='"'){s+=o,i=!1;continue}if(o==="\\"){let p=t[e+1];if(p===void 0){s+="\\\\";continue}if(p==="u"){let N=t.slice(e+2,e+6);if(/^[0-9a-fA-F]{4}$/.test(N)){s+=`\\u${N}`,e+=5;continue}}if(Z.has(p)){s+=`\\${p}`,e+=1;continue}s+="\\\\";continue}s+=S(o)?g(o):o}return s}function tt(t){try{return JSON.parse(t)}catch(s){let i=D(t);if(i!==t)return JSON.parse(i);throw s}}function E(t){if(!t||t.trim()==="")return{};try{return tt(t)}catch{try{return M.parse(t)??{}}catch{try{return M.parse(D(t))??{}}catch{return{}}}}}
|
|
5
|
+
export{tt,E};
|