corisco 1.3.4-dev → 1.3.4
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/dist/corisco.es.js +3 -3
- package/dist/corisco.umd.js +1 -1
- package/package.json +1 -1
package/dist/corisco.es.js
CHANGED
|
@@ -15,9 +15,9 @@ const Ai = {
|
|
|
15
15
|
app: {
|
|
16
16
|
name: "Corisco ChatJT",
|
|
17
17
|
version: "1.3.0",
|
|
18
|
-
iframe_url: "
|
|
18
|
+
iframe_url: "https://ia.jt.jus.br/chat/"
|
|
19
19
|
},
|
|
20
|
-
env: "
|
|
20
|
+
env: "prd",
|
|
21
21
|
// 'dev' | 'hml' | 'prd'
|
|
22
22
|
ui: {
|
|
23
23
|
panel: {
|
|
@@ -25,7 +25,7 @@ const Ai = {
|
|
|
25
25
|
max_width_ratio: 0.9
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
max_pdf_size:
|
|
28
|
+
max_pdf_size: 15,
|
|
29
29
|
// em MB
|
|
30
30
|
action_map: [
|
|
31
31
|
{
|
package/dist/corisco.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ne,Yt){typeof exports=="object"&&typeof module<"u"?module.exports=Yt():typeof define=="function"&&define.amd?define(Yt):(ne=typeof globalThis<"u"?globalThis:ne||self,ne.Corisco=Yt())})(this,function(){"use strict";var W1=ne=>{throw TypeError(ne)};var Hy=(ne,Yt,mt)=>Yt.has(ne)||W1("Cannot "+mt);var ye=(ne,Yt,mt)=>(Hy(ne,Yt,"read from private field"),mt?mt.call(ne):Yt.get(ne)),Yi=(ne,Yt,mt)=>Yt.has(ne)?W1("Cannot add the same private member more than once"):Yt instanceof WeakSet?Yt.add(ne):Yt.set(ne,mt),kn=(ne,Yt,mt,Qt)=>(Hy(ne,Yt,"write to private field"),Qt?Qt.call(ne,mt):Yt.set(ne,mt),mt),Wi=(ne,Yt,mt)=>(Hy(ne,Yt,"access private method"),mt);var Q1=(ne,Yt,mt,Qt)=>({set _(Qi){kn(ne,Yt,Qi,mt)},get _(){return ye(ne,Yt,Qt)}});var Us,fi,es,xa,Lu,Ca,Ra,fn,Oh,K1,Z1,zc,Dr,kh;var ne=typeof document<"u"?document.currentScript:null;const Yt={app:{name:"Corisco ChatJT",version:"1.3.0",iframe_url:"
|
|
1
|
+
(function(ne,Yt){typeof exports=="object"&&typeof module<"u"?module.exports=Yt():typeof define=="function"&&define.amd?define(Yt):(ne=typeof globalThis<"u"?globalThis:ne||self,ne.Corisco=Yt())})(this,function(){"use strict";var W1=ne=>{throw TypeError(ne)};var Hy=(ne,Yt,mt)=>Yt.has(ne)||W1("Cannot "+mt);var ye=(ne,Yt,mt)=>(Hy(ne,Yt,"read from private field"),mt?mt.call(ne):Yt.get(ne)),Yi=(ne,Yt,mt)=>Yt.has(ne)?W1("Cannot add the same private member more than once"):Yt instanceof WeakSet?Yt.add(ne):Yt.set(ne,mt),kn=(ne,Yt,mt,Qt)=>(Hy(ne,Yt,"write to private field"),Qt?Qt.call(ne,mt):Yt.set(ne,mt),mt),Wi=(ne,Yt,mt)=>(Hy(ne,Yt,"access private method"),mt);var Q1=(ne,Yt,mt,Qt)=>({set _(Qi){kn(ne,Yt,Qi,mt)},get _(){return ye(ne,Yt,Qt)}});var Us,fi,es,xa,Lu,Ca,Ra,fn,Oh,K1,Z1,zc,Dr,kh;var ne=typeof document<"u"?document.currentScript:null;const Yt={app:{name:"Corisco ChatJT",version:"1.3.0",iframe_url:"https://ia.jt.jus.br/chat/"},env:"prd",ui:{panel:{min_width:420,max_width_ratio:.9}},max_pdf_size:15,action_map:[{tool:"pje",allowed_hosts:["/^.*pje.*\\.jus\\.br\\/pjekz\\/.*$/","/^.*localhost:[0-9]+\\/.*$/"],actions:[{name:"Anexar selecionados",description:"Anexa os processos selecionados da timeline do PJe",job:"pje-docs-selecionados",loading_message:"Anexando documentos selecionados...",icon_menu:"SQUARE_MOUSE_POINTER",message:"EXTRACT_SELECTED_DOCUMENTS",auto_capture:!1,metadata_capture:!1},{name:"Processo completo",description:"Extrai o processo completo do PJe",job:"pje-processo-completo",loading_message:"Capturando processo completo...",icon_menu:"BOOK_UP",message:"EXTRACT_FULL_PROCESS",auto_capture:!1,metadata_capture:!1},{name:"Capturar documento visualizado",description:"Faz a captura automática do documento visualizado no PJe",job:"pje-doc-visualizado",loading_message:null,icon_menu:null,message:"EXTRACT_VISIBLE_DOCUMENT",auto_capture:!0,metadata_capture:!1},{name:"Capturar metadados da página",description:"Faz a captura automática dos metadados da página no PJe",job:"pje-metadados",loading_message:null,icon_menu:null,message:"EXTRACT_METADATA",auto_capture:!0,metadata_capture:!0}],mapping:{"/processo/\\d+/detalhe":["pje-processo-completo","pje-docs-selecionados","pje-doc-visualizado","pje-metadados"],"/processo/\\d+/detalhe/peticao/\\d+":["pje-processo-completo","pje-docs-selecionados","pje-doc-visualizado","pje-metadados"],"/processo/\\d+/documento/\\d+/conteudo":["pje-doc-visualizado","pje-metadados"],"/processo/\\d+/tarefa/\\d+/minutar":["pje-processo-completo","pje-metadados"],"/painel/global/\\d+/lista-processos":["pje-metadados"]}}]},mt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Qt=globalThis,Qi="10.8.0";function Hc(){return Bc(Qt),Qt}function Bc(l){const t=l.__SENTRY__=l.__SENTRY__||{};return t.version=t.version||Qi,t[Qi]=t[Qi]||{}}function Io(l,t,i=Qt){const a=i.__SENTRY__=i.__SENTRY__||{},r=a[Qi]=a[Qi]||{};return r[l]||(r[l]=t())}const J1=["debug","info","warn","error","log","assert","trace"],tw="Sentry Logger ",Fc={};function hr(l){if(!("console"in Qt))return l();const t=Qt.console,i={},a=Object.keys(Fc);a.forEach(r=>{const c=Fc[r];i[r]=t[r],t[r]=c});try{return l()}finally{a.forEach(r=>{t[r]=i[r]})}}function ew(){Lh().enabled=!0}function nw(){Lh().enabled=!1}function By(){return Lh().enabled}function iw(...l){Nh("log",...l)}function sw(...l){Nh("warn",...l)}function aw(...l){Nh("error",...l)}function Nh(l,...t){mt&&By()&&hr(()=>{Qt.console[l](`${tw}[${l}]:`,...t)})}function Lh(){return mt?Io("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Tt={enable:ew,disable:nw,isEnabled:By,log:iw,warn:sw,error:aw},Fy=50,ya="?",jy=/\(error: (.*)\)/,$y=/captureMessage|captureException/;function Gy(...l){const t=l.sort((i,a)=>i[0]-a[0]).map(i=>i[1]);return(i,a=0,r=0)=>{const c=[],u=i.split(`
|
|
2
2
|
`);for(let h=a;h<u.length;h++){let p=u[h];p.length>1024&&(p=p.slice(0,1024));const m=jy.test(p)?p.replace(jy,"$1"):p;if(!m.match(/\S*Error: /)){for(const g of t){const y=g(m);if(y){c.push(y);break}}if(c.length>=Fy+r)break}}return ow(c.slice(r))}}function rw(l){return Array.isArray(l)?Gy(...l):l}function ow(l){if(!l.length)return[];const t=Array.from(l);return/sentryWrapped/.test(jc(t).function||"")&&t.pop(),t.reverse(),$y.test(jc(t).function||"")&&(t.pop(),$y.test(jc(t).function||"")&&t.pop()),t.slice(0,Fy).map(i=>({...i,filename:i.filename||jc(t).filename,function:i.function||ya}))}function jc(l){return l[l.length-1]||{}}const Ih="<anonymous>";function Ds(l){try{return!l||typeof l!="function"?Ih:l.name||Ih}catch{return Ih}}function Vy(l){const t=l.exception;if(t){const i=[];try{return t.values.forEach(a=>{a.stacktrace.frames&&i.push(...a.stacktrace.frames)}),i}catch{return}}}const $c={},qy={};function Gc(l,t){$c[l]=$c[l]||[],$c[l].push(t)}function Vc(l,t){if(!qy[l]){qy[l]=!0;try{t()}catch(i){mt&&Tt.error(`Error while instrumenting ${l}`,i)}}}function fr(l,t){const i=l&&$c[l];if(i)for(const a of i)try{a(t)}catch(r){mt&&Tt.error(`Error while triggering instrumentation handler.
|
|
3
3
|
Type: ${l}
|
|
4
4
|
Name: ${Ds(a)}
|