@jait/gateway 0.1.458 → 0.1.459

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 (81) hide show
  1. package/dist/providers/acp-provider.d.ts +1 -0
  2. package/dist/providers/acp-provider.d.ts.map +1 -1
  3. package/dist/providers/acp-provider.js +5 -0
  4. package/dist/providers/acp-provider.js.map +1 -1
  5. package/dist/providers/contracts.d.ts +12 -0
  6. package/dist/providers/contracts.d.ts.map +1 -1
  7. package/dist/providers/provider-auth.d.ts +2 -0
  8. package/dist/providers/provider-auth.d.ts.map +1 -1
  9. package/dist/providers/provider-auth.js +31 -3
  10. package/dist/providers/provider-auth.js.map +1 -1
  11. package/dist/routes/chat.d.ts.map +1 -1
  12. package/dist/routes/chat.js +26 -0
  13. package/dist/routes/chat.js.map +1 -1
  14. package/dist/routes/providers.d.ts.map +1 -1
  15. package/dist/routes/providers.js +19 -0
  16. package/dist/routes/providers.js.map +1 -1
  17. package/dist/routes/threads.d.ts.map +1 -1
  18. package/dist/routes/threads.js +41 -33
  19. package/dist/routes/threads.js.map +1 -1
  20. package/dist/tools/validate.js +1 -1
  21. package/dist/tools/validate.js.map +1 -1
  22. package/dist/ws.d.ts +1 -0
  23. package/dist/ws.d.ts.map +1 -1
  24. package/dist/ws.js.map +1 -1
  25. package/package.json +1 -1
  26. package/web-dist/assets/{_basePickBy-O-RWj0JA.js → _basePickBy-CkWDeGPD.js} +1 -1
  27. package/web-dist/assets/{_baseUniq-BlQGT27e.js → _baseUniq-D1rP23sP.js} +1 -1
  28. package/web-dist/assets/{arc-Cp4zkKB5.js → arc-BZez8uiI.js} +1 -1
  29. package/web-dist/assets/{architectureDiagram-2XIMDMQ5-Cgg_kfKR.js → architectureDiagram-2XIMDMQ5-CBjNSVej.js} +1 -1
  30. package/web-dist/assets/{blockDiagram-WCTKOSBZ-fR-CqYBX.js → blockDiagram-WCTKOSBZ-ClFIF-by.js} +1 -1
  31. package/web-dist/assets/{c4Diagram-IC4MRINW-DnmUxQAj.js → c4Diagram-IC4MRINW-B8JTgVuV.js} +1 -1
  32. package/web-dist/assets/channel-DrbpDeBV.js +1 -0
  33. package/web-dist/assets/{chunk-4BX2VUAB-DTRMd7AJ.js → chunk-4BX2VUAB-BNXQ6DTS.js} +1 -1
  34. package/web-dist/assets/{chunk-55IACEB6-ysxfZauS.js → chunk-55IACEB6-Jps2WqIV.js} +1 -1
  35. package/web-dist/assets/{chunk-FMBD7UC4-Bbb8cj1c.js → chunk-FMBD7UC4-Cq_Dvv3z.js} +1 -1
  36. package/web-dist/assets/{chunk-JSJVCQXG-C_BDqRfq.js → chunk-JSJVCQXG-BHuqHd2O.js} +1 -1
  37. package/web-dist/assets/{chunk-KX2RTZJC-Adcyyz5o.js → chunk-KX2RTZJC-Dh4snerT.js} +1 -1
  38. package/web-dist/assets/{chunk-NQ4KR5QH-CVSTV2r6.js → chunk-NQ4KR5QH-C9cYr1RI.js} +1 -1
  39. package/web-dist/assets/{chunk-QZHKN3VN-By1id77V.js → chunk-QZHKN3VN-D0xhdu8d.js} +1 -1
  40. package/web-dist/assets/{chunk-WL4C6EOR-DulcfuqR.js → chunk-WL4C6EOR-DhyPxBi5.js} +1 -1
  41. package/web-dist/assets/classDiagram-VBA2DB6C-B59j_NTh.js +1 -0
  42. package/web-dist/assets/classDiagram-v2-RAHNMMFH-B59j_NTh.js +1 -0
  43. package/web-dist/assets/clone-B2EjBTJ2.js +1 -0
  44. package/web-dist/assets/{cose-bilkent-S5V4N54A-C5exOZwj.js → cose-bilkent-S5V4N54A-DDa2siwF.js} +1 -1
  45. package/web-dist/assets/{dagre-KLK3FWXG-D_wQRFJV.js → dagre-KLK3FWXG-gnz4jOj6.js} +1 -1
  46. package/web-dist/assets/{diagram-E7M64L7V-D78gHmDk.js → diagram-E7M64L7V-kWsk0Ayk.js} +1 -1
  47. package/web-dist/assets/{diagram-IFDJBPK2-C-roEcSi.js → diagram-IFDJBPK2-CKFQ4UWV.js} +1 -1
  48. package/web-dist/assets/{diagram-P4PSJMXO-Dj8Dmk-x.js → diagram-P4PSJMXO-D7CxGbaA.js} +1 -1
  49. package/web-dist/assets/{erDiagram-INFDFZHY-DTm10M-i.js → erDiagram-INFDFZHY-Clybs-qO.js} +1 -1
  50. package/web-dist/assets/{flowDiagram-PKNHOUZH-COOZS7yF.js → flowDiagram-PKNHOUZH-BnWQ9gCB.js} +1 -1
  51. package/web-dist/assets/{ganttDiagram-A5KZAMGK-BtxRaw7q.js → ganttDiagram-A5KZAMGK-Br3O9nof.js} +1 -1
  52. package/web-dist/assets/{gitGraphDiagram-K3NZZRJ6-CJXq0MKa.js → gitGraphDiagram-K3NZZRJ6-CM6UB5ii.js} +1 -1
  53. package/web-dist/assets/{graph-5qQJlaU9.js → graph-CCyB7p3W.js} +1 -1
  54. package/web-dist/assets/{index-DO-ZRtYS.css → index-Bir79SR1.css} +1 -1
  55. package/web-dist/assets/{index-Dlc8KESP.js → index-Cb-Nl6Fg.js} +1 -1
  56. package/web-dist/assets/{index-B56waKQp.js → index-Cq4e58jx.js} +348 -347
  57. package/web-dist/assets/{index-CZDTihsP.js → index-iRclKKEy.js} +1 -1
  58. package/web-dist/assets/{infoDiagram-LFFYTUFH-D3wlQug5.js → infoDiagram-LFFYTUFH-CD2NFwZI.js} +1 -1
  59. package/web-dist/assets/{ishikawaDiagram-PHBUUO56-uMRT24ew.js → ishikawaDiagram-PHBUUO56-GhjswR6l.js} +1 -1
  60. package/web-dist/assets/{journeyDiagram-4ABVD52K-JN8JMnUu.js → journeyDiagram-4ABVD52K-BcfF4Tyu.js} +1 -1
  61. package/web-dist/assets/{kanban-definition-K7BYSVSG-Com6T6bC.js → kanban-definition-K7BYSVSG-CVjQL1oG.js} +1 -1
  62. package/web-dist/assets/{layout-DIpWKOKF.js → layout-nzu8URXl.js} +1 -1
  63. package/web-dist/assets/{linear-BR5ucRXu.js → linear-CEQeN8T6.js} +1 -1
  64. package/web-dist/assets/{mindmap-definition-YRQLILUH-B6r6cYtV.js → mindmap-definition-YRQLILUH-DavN8Cni.js} +1 -1
  65. package/web-dist/assets/{pieDiagram-SKSYHLDU-C34CPDD-.js → pieDiagram-SKSYHLDU-CR8GmBvK.js} +1 -1
  66. package/web-dist/assets/{quadrantDiagram-337W2JSQ-DLOfFWGq.js → quadrantDiagram-337W2JSQ-T_4jQdt2.js} +1 -1
  67. package/web-dist/assets/{requirementDiagram-Z7DCOOCP-hg_lSAb-.js → requirementDiagram-Z7DCOOCP-CsCgI7ol.js} +1 -1
  68. package/web-dist/assets/{sankeyDiagram-WA2Y5GQK-tQ1Lb9gy.js → sankeyDiagram-WA2Y5GQK-ZH6v4ph0.js} +1 -1
  69. package/web-dist/assets/{sequenceDiagram-2WXFIKYE-2oyPcOXc.js → sequenceDiagram-2WXFIKYE-B5BPH36S.js} +1 -1
  70. package/web-dist/assets/{stateDiagram-RAJIS63D-CB9xvy0a.js → stateDiagram-RAJIS63D-CeIeiINI.js} +1 -1
  71. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-Duh0lrzh.js +1 -0
  72. package/web-dist/assets/{timeline-definition-YZTLITO2-KYjeSdWj.js → timeline-definition-YZTLITO2-D0G_gQHX.js} +1 -1
  73. package/web-dist/assets/{treemap-KZPCXAKY-D72GrDIv.js → treemap-KZPCXAKY-BEI9z1k3.js} +1 -1
  74. package/web-dist/assets/{vennDiagram-LZ73GAT5-ses81n7y.js → vennDiagram-LZ73GAT5-d78BzcJw.js} +1 -1
  75. package/web-dist/assets/{xychartDiagram-JWTSCODW-CVnfrfR8.js → xychartDiagram-JWTSCODW-DkGXRlS1.js} +1 -1
  76. package/web-dist/index.html +2 -2
  77. package/web-dist/assets/channel-B6A968le.js +0 -1
  78. package/web-dist/assets/classDiagram-VBA2DB6C-BZrGuXnw.js +0 -1
  79. package/web-dist/assets/classDiagram-v2-RAHNMMFH-BZrGuXnw.js +0 -1
  80. package/web-dist/assets/clone-Duxk_gj_.js +0 -1
  81. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-DP8zXCn_.js +0 -1
@@ -1 +1 @@
1
- import{E as w,I as j,F as g}from"./index-B56waKQp.js";var A=class I{constructor(t){this._ruleStack=t}get ruleStack(){return this._ruleStack}clone(){return new I(this._ruleStack)}equals(t){return!(!t||!(t instanceof I)||t!==this||t._ruleStack!==this._ruleStack)}};function f(e){if(Array.isArray(e)&&(e=e[0]),!!e)return e=(e.charCodeAt(0)===35?e.slice(1):e).toLowerCase(),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e}function v(e){let t="rules"in e?e.rules:void 0;if(!t){t=[];const u=e.settings||e.tokenColors;for(const{scope:a,settings:{foreground:l,background:c,fontStyle:k}={}}of u){if(!l&&!c&&!k)continue;const p=Array.isArray(a)?a:a?[a]:[],T=b(k),m=f(l),L=f(c);t.push(...p.map(y=>({token:y,foreground:m,background:L,fontStyle:T})))}}const o=Object.fromEntries(Object.entries(e.colors||{}).map(([u,a])=>[u,`#${f(a)}`]));return{base:e.type==="light"?"vs":"vs-dark",inherit:!1,colors:o,rules:t}}function D(e,t,o={}){const u=new Map,a=e.getLoadedThemes();for(const r of a){const n=v(e.getTheme(r));u.set(r,n),t.editor.defineTheme(r,n)}const l=[],c=new Map,k=t.editor.setTheme.bind(t.editor);t.editor.setTheme=r=>{const n=e.setTheme(r),i=u.get(r);l.length=n.colorMap.length;for(let s=0;s<n.colorMap.length;s++)l[s]=n.colorMap[s];c.clear(),i==null||i.rules.forEach(s=>{const h=f(s.foreground);if(!h)return;const d=F(h,b(s.fontStyle));c.has(d)||c.set(d,s.token)}),k(r)};const p=t.editor.create;t.editor.create=(r,n,i)=>(n!=null&&n.theme&&t.editor.setTheme(n.theme),p(r,n,i)),t.editor.setTheme(a[0]);function T(r,n){const i=F(r,x(n));return c.get(i)}const{tokenizeMaxLineLength:m=2e4,tokenizeTimeLimit:L=500}=o,y=new Set(t.languages.getLanguages().map(r=>r.id));for(const r of e.getLoadedLanguages())y.has(r)&&t.languages.setTokensProvider(r,{getInitialState(){return new A(j)},tokenize(n,i){if(n.length>=m)return{endState:i,tokens:[{startIndex:0,scopes:""}]};const s=e.getLanguage(r).tokenizeLine2(n,i.ruleStack,L);s.stoppedEarly&&console.warn(`Time limit reached when tokenizing line: ${n.substring(0,100)}`);const h=s.tokens.length/2,d=[];for(let S=0;S<h;S++){const _=s.tokens[2*S],z=s.tokens[2*S+1],M=f(l[w.getForeground(z)]||""),C=w.getFontStyle(z),E=M&&T(M,C)||"";d.push({startIndex:_,scopes:E})}return{endState:new A(s.ruleStack),tokens:d}}})}function x(e){if(e<=g.None)return"";const t=[];return e&g.Italic&&t.push("italic"),e&g.Bold&&t.push("bold"),e&g.Underline&&t.push("underline"),e&g.Strikethrough&&t.push("strikethrough"),t.join(" ")}const B=["italic","bold","underline","strikethrough"],O={"line-through":"strikethrough"};function b(e){if(!e)return"";const t=new Set(e.split(/[\s,]+/).map(o=>o.trim().toLowerCase()).map(o=>O[o]||o).filter(Boolean));return B.filter(o=>t.has(o)).join(" ")}function F(e,t){return t?`${e}|${t}`:e}export{D as shikiToMonaco,v as textmateThemeToMonacoTheme};
1
+ import{E as w,I as j,F as g}from"./index-Cq4e58jx.js";var A=class I{constructor(t){this._ruleStack=t}get ruleStack(){return this._ruleStack}clone(){return new I(this._ruleStack)}equals(t){return!(!t||!(t instanceof I)||t!==this||t._ruleStack!==this._ruleStack)}};function f(e){if(Array.isArray(e)&&(e=e[0]),!!e)return e=(e.charCodeAt(0)===35?e.slice(1):e).toLowerCase(),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e}function v(e){let t="rules"in e?e.rules:void 0;if(!t){t=[];const u=e.settings||e.tokenColors;for(const{scope:a,settings:{foreground:l,background:c,fontStyle:k}={}}of u){if(!l&&!c&&!k)continue;const p=Array.isArray(a)?a:a?[a]:[],T=b(k),m=f(l),L=f(c);t.push(...p.map(y=>({token:y,foreground:m,background:L,fontStyle:T})))}}const o=Object.fromEntries(Object.entries(e.colors||{}).map(([u,a])=>[u,`#${f(a)}`]));return{base:e.type==="light"?"vs":"vs-dark",inherit:!1,colors:o,rules:t}}function D(e,t,o={}){const u=new Map,a=e.getLoadedThemes();for(const r of a){const n=v(e.getTheme(r));u.set(r,n),t.editor.defineTheme(r,n)}const l=[],c=new Map,k=t.editor.setTheme.bind(t.editor);t.editor.setTheme=r=>{const n=e.setTheme(r),i=u.get(r);l.length=n.colorMap.length;for(let s=0;s<n.colorMap.length;s++)l[s]=n.colorMap[s];c.clear(),i==null||i.rules.forEach(s=>{const h=f(s.foreground);if(!h)return;const d=F(h,b(s.fontStyle));c.has(d)||c.set(d,s.token)}),k(r)};const p=t.editor.create;t.editor.create=(r,n,i)=>(n!=null&&n.theme&&t.editor.setTheme(n.theme),p(r,n,i)),t.editor.setTheme(a[0]);function T(r,n){const i=F(r,x(n));return c.get(i)}const{tokenizeMaxLineLength:m=2e4,tokenizeTimeLimit:L=500}=o,y=new Set(t.languages.getLanguages().map(r=>r.id));for(const r of e.getLoadedLanguages())y.has(r)&&t.languages.setTokensProvider(r,{getInitialState(){return new A(j)},tokenize(n,i){if(n.length>=m)return{endState:i,tokens:[{startIndex:0,scopes:""}]};const s=e.getLanguage(r).tokenizeLine2(n,i.ruleStack,L);s.stoppedEarly&&console.warn(`Time limit reached when tokenizing line: ${n.substring(0,100)}`);const h=s.tokens.length/2,d=[];for(let S=0;S<h;S++){const _=s.tokens[2*S],z=s.tokens[2*S+1],M=f(l[w.getForeground(z)]||""),C=w.getFontStyle(z),E=M&&T(M,C)||"";d.push({startIndex:_,scopes:E})}return{endState:new A(s.ruleStack),tokens:d}}})}function x(e){if(e<=g.None)return"";const t=[];return e&g.Italic&&t.push("italic"),e&g.Bold&&t.push("bold"),e&g.Underline&&t.push("underline"),e&g.Strikethrough&&t.push("strikethrough"),t.join(" ")}const B=["italic","bold","underline","strikethrough"],O={"line-through":"strikethrough"};function b(e){if(!e)return"";const t=new Set(e.split(/[\s,]+/).map(o=>o.trim().toLowerCase()).map(o=>O[o]||o).filter(Boolean));return B.filter(o=>t.has(o)).join(" ")}function F(e,t){return t?`${e}|${t}`:e}export{D as shikiToMonaco,v as textmateThemeToMonacoTheme};