@shumai-one/shumai-agent 0.5.2 → 0.5.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.
Files changed (36) hide show
  1. package/bin/{chunk-4622htj3.js → chunk-2q7pqgsw.js} +1 -1
  2. package/bin/{chunk-ytemrert.js → chunk-64gbw4r0.js} +1 -1
  3. package/bin/{chunk-y25ytsvy.js → chunk-6bhq84ch.js} +1 -1
  4. package/bin/{chunk-gp3pygq4.js → chunk-9qtkwd7s.js} +1 -1
  5. package/bin/{chunk-dvtetv7g.js → chunk-drtafypq.js} +1 -1
  6. package/bin/{chunk-099qsxx7.js → chunk-hns6ext1.js} +1 -1
  7. package/bin/{chunk-hh1xn96g.js → chunk-j9q0fxft.js} +1 -1
  8. package/bin/{chunk-5x7t37y2.js → chunk-nfjv7dfc.js} +1 -1
  9. package/bin/{chunk-v3m002t2.js → chunk-nfqf38kr.js} +57 -99
  10. package/bin/{chunk-esvgx5tp.js → chunk-r702scp7.js} +1 -1
  11. package/bin/{chunk-5bjq4xfz.js → chunk-yhq7v756.js} +1 -1
  12. package/bin/shumai-agent-app.js +389 -372
  13. package/package.json +7 -7
  14. package/prisma/migrations/20261014054332_add_embedding_768/migration.sql +8 -0
  15. package/prisma/schema.prisma +10 -8
  16. /package/bin/{chunk-04pp5y8r.js → chunk-004pfb5g.js} +0 -0
  17. /package/bin/{chunk-e56mawh8.js → chunk-19ghpqaj.js} +0 -0
  18. /package/bin/{chunk-tvaymt9f.js → chunk-1tx1y1hc.js} +0 -0
  19. /package/bin/{chunk-1pq0fbct.js → chunk-270yeh6q.js} +0 -0
  20. /package/bin/{chunk-bt74cq3j.js → chunk-302pvwy7.js} +0 -0
  21. /package/bin/{chunk-5tt4cs38.js → chunk-544s5zxn.js} +0 -0
  22. /package/bin/{chunk-ey92y4db.js → chunk-5881ydbf.js} +0 -0
  23. /package/bin/{chunk-k2e1ywm1.js → chunk-8w95rn69.js} +0 -0
  24. /package/bin/{chunk-8wfbcygf.js → chunk-93jj9eez.js} +0 -0
  25. /package/bin/{chunk-2x49exs8.js → chunk-9dhr6ezp.js} +0 -0
  26. /package/bin/{chunk-nxvssvtc.js → chunk-a5zyg2eb.js} +0 -0
  27. /package/bin/{chunk-6trcvf7g.js → chunk-a7bqrh9a.js} +0 -0
  28. /package/bin/{chunk-svhmffyd.js → chunk-ack1sv6t.js} +0 -0
  29. /package/bin/{chunk-fskwwr61.js → chunk-bp8g8n0q.js} +0 -0
  30. /package/bin/{chunk-03afm27e.js → chunk-gapywea3.js} +0 -0
  31. /package/bin/{chunk-w5ped8e9.js → chunk-mmjazmhm.js} +0 -0
  32. /package/bin/{chunk-17krnt1b.js → chunk-mvazf7vc.js} +0 -0
  33. /package/bin/{chunk-bcyejrnb.js → chunk-nd9d7jrk.js} +0 -0
  34. /package/bin/{chunk-5dabj991.js → chunk-q3hrx7p4.js} +0 -0
  35. /package/bin/{chunk-h6kmgdqa.js → chunk-s15xppa5.js} +0 -0
  36. /package/bin/{chunk-tjhp86sk.js → chunk-wdpscphg.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{m,f}from"./shumai-agent-app.js";import{i}from"./chunk-h2vg744n.js";var g=i(f()),t=i(m());import{readFileSync as T}from"fs";var d=(e)=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:l,providerId:n,policyArns:E,policy:p,durationSeconds:_}=e,{roleAssumerWithWebIdentity:c}=e;if(!c){let{getDefaultRoleAssumerWithWebIdentity:S}=await import("./chunk-h6kmgdqa.js");c=S({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...s?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:l,ProviderId:n,PolicyArns:E,Policy:p,DurationSeconds:_})};var a="AWS_WEB_IDENTITY_TOKEN_FILE",N="AWS_ROLE_ARN",I="AWS_ROLE_SESSION_NAME",y=(e={})=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[a],r=e?.roleArn??process.env[N],l=e?.roleSessionName??process.env[I];if(!o||!r)throw new t.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await d({...e,webIdentityToken:t.externalDataInterceptor?.getTokenRecord?.()[o]??T(o,{encoding:"ascii"}),roleArn:r,roleSessionName:l})(s);if(o===process.env[a])g.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{y as fromTokenFile};
2
+ import{m,f}from"./shumai-agent-app.js";import{i}from"./chunk-h2vg744n.js";var g=i(f()),t=i(m());import{readFileSync as T}from"fs";var d=(e)=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:l,providerId:n,policyArns:E,policy:p,durationSeconds:_}=e,{roleAssumerWithWebIdentity:c}=e;if(!c){let{getDefaultRoleAssumerWithWebIdentity:S}=await import("./chunk-s15xppa5.js");c=S({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...s?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:l,ProviderId:n,PolicyArns:E,Policy:p,DurationSeconds:_})};var a="AWS_WEB_IDENTITY_TOKEN_FILE",N="AWS_ROLE_ARN",I="AWS_ROLE_SESSION_NAME",y=(e={})=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[a],r=e?.roleArn??process.env[N],l=e?.roleSessionName??process.env[I];if(!o||!r)throw new t.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await d({...e,webIdentityToken:t.externalDataInterceptor?.getTokenRecord?.()[o]??T(o,{encoding:"ascii"}),roleArn:r,roleSessionName:l})(s);if(o===process.env[a])g.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{y as fromTokenFile};