@rlabs-cl/arketum 1.0.1 → 1.0.2
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/CHANGELOG.md +10 -0
- package/README.md +18 -1
- package/dist/mcp/arketum.js +1 -1
- package/dist/mcp/ci-cli.js +1 -1
- package/dist/mcp/cli.js +1 -1
- package/dist/mcp/comun-KGK2IPVP.js +1 -0
- package/dist/mcp/comun-UQEILMSB.js +1 -0
- package/dist/mcp/panel-cli.js +1 -1
- package/dist/mcp/telemetria-cli.js +1 -1
- package/package.json +13 -1
- package/server.json +2 -2
- package/dist/mcp/comun-ZEXDDERM.js +0 -1
- package/dist/mcp/comun-ZTEHRDHC.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,16 @@ and a new store format or a renamed action bumps the major.
|
|
|
13
13
|
|
|
14
14
|
## Unreleased
|
|
15
15
|
|
|
16
|
+
## 1.0.2
|
|
17
|
+
|
|
18
|
+
### Fixes
|
|
19
|
+
|
|
20
|
+
- **The server reports its real version.** The MCP handshake announced
|
|
21
|
+
`0.1.0`; it now announces the installed package's version.
|
|
22
|
+
- **npm page.** The package declares its homepage and keywords, and the README
|
|
23
|
+
shows the two quickest ways to install it: the Claude Code plugin and
|
|
24
|
+
`npx add-mcp @rlabs-cl/arketum -g`.
|
|
25
|
+
|
|
16
26
|
## 1.0.1
|
|
17
27
|
|
|
18
28
|
### Fixes
|
package/README.md
CHANGED
|
@@ -15,7 +15,24 @@ What it does not ensure: that the decisions are good. Checking that a decision w
|
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
|
-
Node.js 20 or later.
|
|
18
|
+
Node.js 20 or later. Pick one:
|
|
19
|
+
|
|
20
|
+
- **Claude Code plugin** (brings the server, the local panel at session start, a skill and three commands):
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
/plugin marketplace add rlabs-cl/claude-plugins
|
|
24
|
+
/plugin install arketum@rlabs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- **Any MCP client, in one line** (choose your clients from the list; `-g` makes it available in every project):
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx add-mcp @rlabs-cl/arketum -g
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
It is also listed on the official MCP registry as `cl.rlabs/arketum`.
|
|
34
|
+
|
|
35
|
+
To set it up by hand, register this command as a stdio MCP server in your client:
|
|
19
36
|
|
|
20
37
|
```bash
|
|
21
38
|
npx -y @rlabs-cl/arketum
|
package/dist/mcp/arketum.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
function b(c,d){c=c-
|
|
3
|
+
function b(c,d){c=c-0x16e;var e=a();var f=e[c];if(b['CddwPd']===undefined){var g=function(l){var m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var n='',o='';for(var p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(var t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['AgVJsP']=g,b['bgaqfc']={},b['CddwPd']=!![];}var h=e[0x0],i=c+h,j=b['bgaqfc'][i];return!j?(f=b['AgVJsP'](f),b['bgaqfc'][i]=f):f=j,f;}var m=b;function a(){var n=['nZi4mtyZofLwCe1vva','yxjNDG','D3jPDgu','DxnVoIbHCMTLDhvTicHLBcbZzxj2AwrVCIbnq1aGCg9Yihn0zgLVksb8igfYA2v0Dw0Gy2KGphjHW616pIa8Dw5PzgfKpUkaPIb8igfYA2v0Dw0GCgfUzwWGw3jHW616xsbBls1WDwvYDg8GtL0GFcbHCMTLDhvTihbHBMvSic0TC2vYDMLKB3iGFcbHCMTLDhvTihbHBMvSic0Tzgv0zw5LCIb8igfYA2v0Dw0GDgvSzw1LDhjPysbBls1Hy2vWDg8GFcaTlw5VihWGls1WCM9IyxjDcG','nZqYndCWtLHWwNDh','ndi5nfDkCKvsDq','nw5fteP2rW','mtK1mta3mMT3y1P0Ca','mJD3qvnbAfK','n3rJs3vKDq','mJK1ndK3nLrdD21XyW','C2XPy2u','ls1OzwXW','mJyWmtyWyvLpufbi','DgvSzw1LDhjPyq','CgfUzwW','mZq1ndyYm1LTCxnUEq'];a=function(){return n;};return a();}(function(g,h){var l=b,i=g();while(!![]){try{var j=-parseInt(l(0x17c))/0x1*(-parseInt(l(0x178))/0x2)+parseInt(l(0x172))/0x3+parseInt(l(0x16f))/0x4+-parseInt(l(0x179))/0x5*(-parseInt(l(0x17d))/0x6)+-parseInt(l(0x173))/0x7+parseInt(l(0x17a))/0x8+-parseInt(l(0x17b))/0x9*(parseInt(l(0x177))/0xa);if(j===h)break;else i['push'](i['shift']());}catch(k){i['push'](i['shift']());}}}(a,0xac1f7));var c=m(0x176),d=process['argv'][0x2];if(d===void 0x0)await import('./cli.js');else{if(d==='ci'||d===m(0x171))process['argv']['splice'](0x2,0x1),await(d==='ci'?import('./ci-cli.js'):import('./panel-cli.js'));else{if(d===m(0x170)){const {ordenTelemetria:e}=await import('./telemetria-cli.js'),f=await e(process[m(0x174)][m(0x17e)](0x3));process['stdout'][m(0x175)](f['salida']),process['exitCode']=f['codigo'];}else process['stderr'][m(0x175)](d===m(0x16e)||d==='-h'?c:'arketum:\x20no\x20conozco\x20«'+d+'».\x0a'+c),process['exitCode']=d==='--help'||d==='-h'?0x0:0x2;}}
|
package/dist/mcp/ci-cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const ak=b;(function(o,p){const af=b,q=o();while(!![]){try{const r=parseInt(af(0x1b9))/0x1*(-parseInt(af(0x190))/0x2)+parseInt(af(0x1aa))/0x3*(-parseInt(af(0x1b0))/0x4)+-parseInt(af(0x163))/0x5*(parseInt(af(0x166))/0x6)+parseInt(af(0x19c))/0x7+-parseInt(af(0x167))/0x8*(parseInt(af(0x18a))/0x9)+-parseInt(af(0x159))/0xa*(parseInt(af(0x1d4))/0xb)+-parseInt(af(0x168))/0xc*(-parseInt(af(0x1c3))/0xd);if(r===p)break;else q['push'](q['shift']());}catch(s){q['push'](q['shift']());}}}(a,0x8e92f));import{ajustesSinComprobar,cargar,certificar,vistaDe}from'./comun-ZTEHRDHC.js';import{catalogosDe,comoSeConcedioEnLaEntrada,dictamen,diferenciasDePolitica,entradaDeLaConcesion,evidenciaQueSatisface,exigenciasDe,leerProyecto,levantamientoDeLaVista,listUnitIds,manifiestoDe,parseClosedChanges,parseLogbook,pasosElegidos,politicaEsperada,readClosedChangesSource,readUnitLogbookSource,rechazoPorFormato,resolverForma}from'./comun-ZEXDDERM.js';function a(){const as=['ls1TAw51Dg9Z','C2LUx2zVCM11BgfYAw8','B3v0Chv0','D3jPDgu','Bw90AxzV','u0Lhvevstq','WRSGzguG','u0Lhs0Lmta','Cg9YCxvL','C3bSAxq','BMfTzq','Dhj1C3q','ndi5ChbsAuXL','zxHPDenVzgu','lcbMB3j6ywrVicHGqvjlrvrvtv9hqvrfuZ1JAgf0ycK','zMLSDgvY','y2XVC2u','C2vUywXLCW','zMLSzxm','mtu4mJKWwKnJDhjK','C3rHDhvZ','WRSSihbVCIbSysbJB25JzxnPW7nUia','Cg9SAxrPy2fgAwPHzge','WRS6iga','icaTia','y29TBwfUza','y29UzgLJACoZBIaWlcbSysbWB2ZdRxrPy2e6igXHihvUAwrHzcbUBYb0AwvUzsbGCg9SAxrPy2eUEwfTBgaGkgvTCgv6W7mGyw50zxmGzguGCxvLiefYA2v0Dw0GBgeGzMLQyxjHksWGyxpdRsbXDwuGBM8GC2uGy29TCgfYyq','zgvZDhjVEq','ignVBIbLC2eGDMvYC2NdS24','ndbdALPyu2y','y2f0ywXVz29Z','Dw5PDa','ntmXndaYEuTIz2nA','mtiZntC2uhveDxn5','mtjJt3fnr3y','A2LSBa','WRSSia','BgvUz3rO','C29Tzq','C3rKzxjY','yc0TBwLUDxrVC2aGBMvJzxnPDgeGDw4GBSo6BwvYBYbTyxLVCIbXDwuGmcb5igrLignVBw8GBxvJAg8Gmtq0mcaODw4GzmoTysK','zwPLy3vJACoZBIbHBNrLCYbKzwWGy2fTyMLVigvUimkR','C2XPy2u','ChvZAa','icHJyw5HBca','zM9YBwe','zwWGy2fYCMLSimkR','y2XHC3m','DgLTzw91De1Z','DgLLBxbV','yxjJAgv0ExbLCW','ns4GDw5KzwnSyxjLzf9JAgfUz2u6igbJyw1IAw9ZlNLHBwXGig5VihnLihb1zwrLigXLzxiGka','y2HHDa','zxzLCNK','zMLUza','CMvXDwLYzw1LBNq','C291CMnL','C2LUihrLCM1PBMfY','BwLSzxn0B25L','DMLZDge','BM8GC2uGChvKBYbSyw56yxi6ia','zMfSBge','y2XLyxi','B3bJACoZBIbKzxnJB25Vy2LKytOG','y29UzgLJACoZBIa1oIbSysb1BMLKywqGBM8Gz3vHCMtdSYbGy2fTyMLVCY55yw1SycbHBcbJzxjYyxiGkhnLignLCNldSYbZAw4GzM90BYWGBYbHBNrLCYbKzsbXDwuGzxHPC3rPzxjHksWGyxpdRsbXDwuGBM8GC2uGy29TChj1zwjH','DMvYC2LVBG','CgLK','AwDUB3jL','mJm0BhnjsNLk','Dw5PzgfK','y29TChjVyMfJAw9U','y2HHBM5LBa','yMvMB3jL','Cg9SAxrPy2e','ndy2B3Hnte9v','WRS6ia','icbotYbdsuvsuKe6ia','CM9VDa','C3rHy2S','WRSGka','DMfSDwvZ','yxjJAgv0ExbL','C3rHy2TZ','CMvWB3j0','yxbWCM92ywXZ','zgvSzwDHy2LVBG','ntCYmtyZowXvuerqwG','AxngAw5PDgu','yxj0AwzHy3rZ','ywrK','CgLWzq','ywP1C3rLihbVCIbJB21WCM9Iyxi6igXHCYbJB25KAwnPB25LCYa5ihKGmtaGBgfZigP1EMDHihvUysbJB21WCM9IywnPW7nUigfNCNvWywrH','zgvJBgfYywnPW7nUigvUimkR','zxHPz2vUy2LHCW','zxHPDa','vw5PzgfKimkR','ywXNBYbUBYbZzsbYzxbYB2r1y2uGBYbUBYbJAwvYCMe','BgfUzxm','CMvWzxrPy2LVBMvZ','yxjJAgv0ExbLrxjYB3i','nteZm0HnEgHYzW','Cgf0Aa','Dw5PDhm','BwfW','D2HV','WRSVWQS','mJa0ng13Dw5lwG','Dg91y2HLCW','y2f0y2G','BgfUzq','yxjRzxr1Bs1JAtOG','zxHPC3rZ','C3rHCNrZv2L0Aa','lcbHC8oTihf1zsbUBYbZzsbYzxbPDgu','zw50B3jUBW','mtqZnKHNq01qyW','C3vIAMvJDa','oIbNyxrLimkR','C3rHDgvTzw50','zxjYB3i','cIaG','lcbJB24GzwWGzM9YBxvSyxjPBYbZAw4GCMvZChvLC3rH','BM9szxbLDgLIBgu','zgvSzxrL','icbZAw4GzwPLy3vJAw9UzxmGCxvLihjLCgv0Axi','mZuXmZKWntj2DursA0G','zM9YEMfKBW','BMvNyxrPDMe','Bg8GDgvYBwLUW7mGDw5HihnLW7fHBa','zgf0yq'];a=function(){return as;};return a();}import{spawn}from'node:child_process';import{resolve}from'node:path';var c=0xa*0x3c*0x3e8,d=new Set();function e(){const ag=b;for(const o of d){try{process[ag(0x169)](-o,ag(0x1cf));}catch{}}d[ag(0x184)]();}var f=(o,p,q)=>new Promise(r=>{const ai=b;let s=![];const t=y=>{const ah=b;if(s)return;s=!![],clearTimeout(x);if(u['pid']!==void 0x0)d[ah(0x1c1)](u['pid']);r(y);},u=spawn('sh',['-c',o],{'cwd':p,'stdio':[ai(0x189),ai(0x1a0),ai(0x1a0)],'detached':!![]});if(u['pid']!==void 0x0)d[ai(0x19f)](u['pid']);let v='';const w=y=>{if(v['length']<0x4e20)v+=y['toString']();};u['stdout']['on'](ai(0x1c7),w),u[ai(0x16d)]['on']('data',w);const x=setTimeout(()=>{const aj=ai;try{if(u[aj(0x188)]!==void 0x0)process['kill'](-u[aj(0x188)],aj(0x1cf));}catch{}u['stdout'][aj(0x161)](),u[aj(0x16d)]['destroy'](),t({'exitCode':null,'output':v,'motivo':aj(0x177)});},Math['min'](q,g));u['on'](ai(0x1a4),(y,z)=>{t(y===null?{'exitCode':null,'output':v,'motivo':z===null?'error':'señal'}:{'exitCode':y,'output':v});}),u['on'](ai(0x1bd),y=>t({'exitCode':null,'output':y['message'],'motivo':ai(0x1bd)}));}),g=0x7fffffff;function h(o,p,q){return evidenciaQueSatisface(o,p,q);}var i={'sin_formulario':'','formulario_sin_respuesta':ak(0x1bf),'forzado':ak(0x1d6)};async function j(o,p,q={}){const al=ak,t=q['ejecutar']??f,u=q[al(0x176)]??c,w=await rechazoPorFormato(o);if(w!==void 0x0)return{'ok':![],'unidades':[],'noRepetible':[],'error':w};const y=await leerProyecto(o);if(y===null)return{'ok':![],'unidades':[],'noRepetible':[],'error':'no\x20hay\x20`.arketum/proyecto.yaml`\x20en\x20la\x20raíz'};if(al(0x1c5)in y)return{'ok':![],'unidades':[],'noRepetible':[],'error':y['negativa']};const z=y['manifiesto'],A=await catalogosDe(o,z);if('negativa'in A)return{'ok':![],'unidades':[],'noRepetible':[],'error':A['negativa']};const B=A[al(0x1d7)](H=>H[al(0x1d3)]==='personal'&&!H['exists'])['map'](H=>H['root']),C=B['map'](H=>'catálogo\x20personal\x20que\x20aquí\x20no\x20existe:\x20'+H),D=(H,I)=>A[al(0x16c)](J=>J[al(0x1b5)]&&(J[H]??[])[al(0x16c)](K=>K['name']===I)),E=[];let F;for(const H of p){const I=await cargar(o,z,H);if('negativa'in I){E[al(0x171)]({'unit':H,'status':'?','repeticiones':[],'hallazgos':[],'noRepetible':[],'error':I[al(0x1c5)][al(0x1d1)]('\x0a')[0x0]});continue;}if(I['lane']===void 0x0){!D(al(0x1a7),I[al(0x165)][al(0x1b3)]['name'])?E[al(0x171)]({'unit':H,'status':I['unit'][al(0x15a)],'repeticiones':[],'hallazgos':[],'noRepetible':[al(0x174)+I[al(0x165)][al(0x1b3)]['name']+'»\x20no\x20está\x20en\x20ningún\x20catálogo\x20de\x20los\x20que\x20hay\x20aquí\x20(vendría\x20de\x20uno\x20personal):\x20nada\x20de\x20la\x20unidad\x20se\x20puede\x20repetir']}):E['push']({'unit':H,'status':I[al(0x165)][al(0x15a)],'repeticiones':[],'hallazgos':[],'noRepetible':[],'error':I['laneError']});continue;}const J=await vistaDe(o,z,{...I,'lane':I[al(0x1b3)]}),K=[],L=[];if(I['lane'][al(0x18c)]==='agrupada'&&I['unit'][al(0x15a)]==='cerrada'){F??=(await ajustesSinComprobar(o,z))['map'](O=>O[al(0x18b)]);const N=F['includes'](H);L[al(0x171)](N?al(0x1a1):'ajuste\x20comprobado\x20por\x20una\x20comprobación\x20agrupada\x20cerrada');}for(const O of I[al(0x19a)]['filter'](P=>P[al(0x18d)]==='delegado')){const P=O[al(0x19b)]===void 0x0?void 0x0:await n(o,O['delegacion']);L[al(0x171)]('aprobación\x20delegada:\x20gate\x20«'+O[al(0x1ba)]+al(0x15b)+(O['delegacion']??'(sin\x20huella)')+'\x20('+(P??'concesión\x20no\x20hallada\x20en\x20ninguna\x20bitácora')+')');}for(const Q of[void 0x0,'formulario_sin_respuesta',al(0x1c4)]){for(const R of I[al(0x19a)]['filter'](S=>S[al(0x18d)]===al(0x17a)&&S[al(0x1cc)]===Q)){L[al(0x171)]('aprobación\x20por\x20el\x20chat'+i[Q??al(0x1c9)]+al(0x1bb)+R['subject']+al(0x16a)+R['decision']);}}for(const S of pasosElegidos(I[al(0x1b3)],I['unit'])[al(0x1d7)](T=>T['kind']==='evidence'||T['kind']===al(0x180))){const T=exigenciasDe(S,J);if('falta'in T)continue;for(const U of T[al(0x1a3)]){const V=h(I['evidence'],S['id'],U);if(V===void 0x0)continue;if(V[al(0x175)]===al(0x199))L['push']('reporte\x20en\x20«'+S['id']+al(0x1af)+U['id']+al(0x191)+V[al(0x17e)]+'\x20'+V['reference']);else{if(V['class']===al(0x1bc))L[al(0x171)](al(0x1a2)+S['id']+'»/«'+U['id']+al(0x1ce)+V[al(0x1ae)]+al(0x172)+V['channel']+')');else{if(V['on']===al(0x18e))L[al(0x171)](al(0x16f)+S['id']+al(0x1af)+U['id']+al(0x15d)+V[al(0x15f)]+'`\x20(reconstruir\x20ese\x20estado\x20es\x20trabajo\x20del\x20CI)');else{if(V['on']===al(0x1b8))L['push']('ejecución\x20contra\x20el\x20entorno\x20en\x20«'+S['id']+al(0x1af)+U['id']+'»:\x20`'+V['command']+'`\x20(repetirla\x20exigiría\x20los\x20accesos\x20del\x20entorno)');else{const W=await t(V[al(0x15f)],o,u),X=W['exitCode']!==null?dictamen({...V,'exitCode':W[al(0x1d5)],'output':W['output']},U):{'ok':![],'porque':W['motivo']==='error'?al(0x182)+W[al(0x1ca)][al(0x1d1)]('\x0a')[0x0]:W[al(0x1cc)]==='señal'?al(0x1c6):'no\x20terminó\x20en\x20'+Math['round'](u/0x3e8)+'\x20s'};K[al(0x171)]({'step':S['id'],'requirement':U['id'],'command':V[al(0x15f)],'exitCode':W['exitCode'],...X['ok']?{}:{'falla':X[al(0x1d0)]}});}}}}}}const M=[];if(I['unit']['status']==='cerrada'){let Y,Z;try{const a7=await readClosedChangesSource(o,H);Z=a7===null?void 0x0:parseClosedChanges(a7),Y=Z?.['files'][al(0x1ad)](a8=>a8[al(0x1ab)]);}catch(a8){M['push'](al(0x179)+a8['message'][al(0x1d1)]('\x0a')[0x0]+')');}if(Y===void 0x0)L['push'](al(0x186));let a0={'sinFijar':!![]},a1=z;if(I[al(0x15c)]===void 0x0)L[al(0x171)](al(0x160));else{if(Z?.[al(0x18f)]===void 0x0)L[al(0x171)]('condición\x200,\x20la\x20política:\x20la\x20unidad\x20no\x20guardó\x20en\x20`cambios.yaml`\x20la\x20política\x20al\x20cerrar,\x20así\x20que\x20no\x20se\x20compara');else{const a9=Z['exenciones']??[],aa=politicaEsperada(I['politicaFijada'],a9,I['unit']['id'])['politica'];a0={'fijada':I[al(0x15c)],'esperada':aa,'vigente':Z['politica'],'aplicadas':a9,'diferencias':diferenciasDePolitica(aa,Z['politica'],I['unit'][al(0x1b1)])},a1=manifiestoDe(Z['politica'],z);}}const a2=a1===z?I[al(0x164)]:await catalogosDe(o,a1),a3=await certificar({'action':al(0x1d8),'root':o,'manifiesto':a1},{...I,'lane':I['lane'],'catalogos':'negativa'in a2?I['catalogos']:a2},H,Y??[],a0,Z?.['borrados']===void 0x0?void 0x0:{'declarados':Z['borrados'],'deVerdad':Z[al(0x158)][al(0x1d7)](ab=>ab['checksum']===null)[al(0x1ad)](ab=>ab[al(0x1ab)])}),a4=Object[al(0x196)](a3[al(0x181)]['artefactos'])['some'](ab=>ab['archetype']===void 0x0&&ab[al(0x1a9)]!==void 0x0)&&[...pasosElegidos(I['lane'],I[al(0x165)])[al(0x1d7)](ab=>ab['kind']==='artifact')[al(0x1ad)](ab=>['archetypes',ab['archetype'][al(0x1d2)]]),...I[al(0x165)][al(0x1b1)]['flatMap'](ab=>{const am=al,ac=a1[am(0x19e)][am(0x17c)](ad=>ad['id']===ab);if(ac===void 0x0)return[];if(ac[am(0x197)]===void 0x0)return[[am(0x198),ac[am(0x194)]?.['name']??''],['formas',a1['forma']?.['name']??'']];return[[am(0x178),ac['archetype']['name']]];})]['some'](([ab,ac])=>ac!==''&&!D(ab,ac)),a5=ab=>a4&&(ab[al(0x1b6)]('1.')||ab[al(0x1b6)]('3.'));L[al(0x171)](...a3['hallazgos'][al(0x1d7)](a5)[al(0x1ad)](ab=>ab+'\x20(algún\x20arquetipo\x20no\x20está\x20en\x20ningún\x20catálogo\x20de\x20los\x20que\x20hay\x20aquí:\x20vendría\x20de\x20uno\x20personal)')),M['push'](...a3['hallazgos'][al(0x1d7)](ab=>!a5(ab)));const a6=levantamientoDeLaVista(I)[al(0x1d9)];a6!==void 0x0&&al(0x1bd)in resolverForma(a6['forma'],A,a6[al(0x187)])&&L['push']('comprobación\x207\x20del\x20levantamiento:\x20la\x20forma\x20«'+a6[al(0x173)]+'»\x20'+(a6['version']??'')+'\x20no\x20está\x20en\x20los\x20catálogos\x20de\x20aquí'+(A['some'](ab=>ab[al(0x1b5)]&&ab['formas']['some'](ac=>ac['name']===a6['forma']))?al(0x162):'\x20(vendría\x20de\x20uno\x20personal)')+al(0x1b7));}E[al(0x171)]({'unit':H,'status':I['unit']['status'],'repeticiones':K,'hallazgos':M,'noRepetible':L});}const G=E['every'](ab=>ab['error']===void 0x0&&ab['hallazgos'][al(0x16b)]===0x0&&ab['repeticiones'][al(0x17b)](ac=>ac[al(0x183)]===void 0x0));return{'ok':G,'unidades':E,'noRepetible':C};}function k(o){const an=ak,p=['ARKETUM\x20CI:\x20'+(o['ok']?'todo\x20se\x20reproduce\x20y\x20cierra':an(0x1a6))];if(o[an(0x1bd)]!==void 0x0)return p[0x0]+an(0x1be)+o[an(0x1bd)];for(const q of o['unidades']){p[an(0x171)]('',an(0x1a5)+q['unit']+an(0x195)+q[an(0x15a)]+')');if(q['error']!==void 0x0){p[an(0x171)]('\x20\x20ERROR:\x20'+q[an(0x1bd)]);continue;}for(const s of q[an(0x1a8)]){p[an(0x171)]('\x20\x20'+(s['falla']===void 0x0?'REPRODUCIDA':'FALLA')+'\x20«'+s['step']+an(0x1af)+s[an(0x17d)]+'»:\x20`'+s[an(0x15f)]+'`\x20→\x20'+(s[an(0x1d5)]??an(0x17f))+(s[an(0x183)]===void 0x0?'':'\x20('+s[an(0x183)]+')'));}if(q['repeticiones'][an(0x16b)]===0x0)p[an(0x171)](an(0x1c2));for(const t of q['hallazgos'])p[an(0x171)](an(0x192)+t);if(q[an(0x1c0)][an(0x16b)]>0x0)p['push']('\x20\x20No\x20repetible:',...q[an(0x1c0)][an(0x1ad)](v=>'\x20\x20\x20\x20-\x20'+v));}if(o['noRepetible'][an(0x16b)]>0x0)p[an(0x171)]('','No\x20repetible\x20en\x20este\x20CI:',...o[an(0x1c0)]['map'](v=>an(0x15e)+v));return p['join']('\x0a');}function l(o){const ao=ak,p=[];let q=![],r=c;for(let u=0x0;u<o['length'];u+=0x1){const v=o[u];if(v==='--json')q=!![];else{if(v===ao(0x1c8)){const w=Number(o[u+0x1]);if(!Number[ao(0x19d)](w)||w<=0x0||w>0x18*0x3c)return{'error':ao(0x16e)};r=w*0x3c*0x3e8,u+=0x1;}else{if(v['startsWith']('-'))return{'error':ao(0x185)+v};else{if(!p['includes'](v))p[ao(0x171)](v);}}}}const [s,...t]=p;if(s===void 0x0||t[ao(0x16b)]===0x0)return{'error':'uso:\x20arketum-ci\x20<raíz>\x20<unidad>…\x20[--json]\x20[--minutos\x20N].\x20Las\x20unidades\x20son\x20obligatorias:\x20elígelas\x20con\x20tu\x20herramienta\x20de\x20control\x20de\x20versiones\x20(por\x20ejemplo,\x20las\x20que\x20cambian\x20en\x20el\x20PR).'};return{'root':resolve(s),'units':t,'json':q,'timeoutMs':r};}async function m(o,p=u=>process['stdout'][ak(0x1cb)](u),q=u=>process[ak(0x16d)][ak(0x1cb)](u)){const ap=ak,r=l(o);if(ap(0x1bd)in r)return q(r[ap(0x1bd)]+'\x0a'),0x2;const s=await j(r[ap(0x193)],r[ap(0x1ac)],{'timeoutMs':r['timeoutMs']});return p((r['json']?JSON['stringify'](s,null,0x2):k(s))+'\x0a'),s['ok']?0x0:0x1;}async function n(o,p){const aq=ak;for(const q of await listUnitIds(o)['catch'](()=>[])){let r=[];try{r=parseLogbook(await readUnitLogbookSource(o,q)[aq(0x1b2)](()=>null)??'');}catch{continue;}const s=entradaDeLaConcesion(p,r);if(s!==void 0x0)return comoSeConcedioEnLaEntrada(s)+',\x20en\x20«'+q+'»';}return void 0x0;}function b(c,d){c=c-0x158;const e=a();let f=e[c];if(b['vKvUSN']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['HuIIZC']=g,b['EegdWN']={},b['vKvUSN']=!![];}const h=e[0x0],i=c+h,j=b['EegdWN'][i];return!j?(f=b['HuIIZC'](f),b['EegdWN'][i]=f):f=j,f;}for(const ae of['SIGINT',ak(0x1cd)]){process['on'](ae,()=>{e(),process['exit'](ae==='SIGINT'?0x82:0x8f);});}m(process['argv'][ak(0x170)](0x2))['then'](o=>{process['exitCode']=o;},o=>{const ar=ak;process['stderr'][ar(0x1cb)](ar(0x1b4)+(o instanceof Error?o[ar(0x194)]??o['message']:String(o))+'\x0a'),process[ar(0x1d5)]=0x1;});
|
|
2
|
+
const al=b;(function(o,p){const af=b,q=o();while(!![]){try{const r=parseInt(af(0x133))/0x1+parseInt(af(0x151))/0x2*(parseInt(af(0x126))/0x3)+-parseInt(af(0x18a))/0x4*(parseInt(af(0x142))/0x5)+parseInt(af(0x156))/0x6*(-parseInt(af(0x190))/0x7)+parseInt(af(0x195))/0x8*(parseInt(af(0x131))/0x9)+parseInt(af(0x13b))/0xa*(parseInt(af(0x162))/0xb)+-parseInt(af(0x183))/0xc;if(r===p)break;else q['push'](q['shift']());}catch(s){q['push'](q['shift']());}}}(a,0x3e8e1));function b(c,d){c=c-0x120;const e=a();let f=e[c];if(b['QCHtuV']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=0x0,q,r,s=0x0;r=l['charAt'](s++);~r&&(q=p%0x4?q*0x40+r:r,p++%0x4)?n+=String['fromCharCode'](0xff&q>>(-0x2*p&0x6)):0x0){r=m['indexOf'](r);}for(let t=0x0,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(o);};b['HhOYTh']=g,b['wmjAbS']={},b['QCHtuV']=!![];}const h=e[0x0],i=c+h,j=b['wmjAbS'][i];return!j?(f=b['HhOYTh'](f),b['wmjAbS'][i]=f):f=j,f;}import{ajustesSinComprobar,cargar,certificar,vistaDe}from'./comun-KGK2IPVP.js';import{catalogosDe,comoSeConcedioEnLaEntrada,dictamen,diferenciasDePolitica,entradaDeLaConcesion,evidenciaQueSatisface,exigenciasDe,leerProyecto,levantamientoDeLaVista,listUnitIds,manifiestoDe,parseClosedChanges,parseLogbook,pasosElegidos,politicaEsperada,readClosedChangesSource,readUnitLogbookSource,rechazoPorFormato,resolverForma}from'./comun-UQEILMSB.js';import{spawn}from'node:child_process';function a(){const as=['ndH6z0Lkshq','lcbMB3j6ywrVicHGqvjlrvrvtv9hqvrfuZ1JAgf0ycK','icbotYbdsuvsuKe6ia','icHJyw5HBca','zM9YEMfKBW','WRS6iga','C3rHy2S','C3rKB3v0','Aw5JBhvKzxm','icH2zw5KCSoTysbKzsb1BM8GCgvYC29UywWP','icaGic0G','ndm3mtK2qMffqvzb','CMvWB3j0','CgvYC29UywW','y2vYCMfKyq','zMLUza','DgHLBG','Cg9YCxvL','ycaOCMvWzxrPCMXHigv4AwDPCSoTysbSB3mGywnJzxnVCYbKzwWGzw50B3jUBYK','y29TChjVyMfJACoZBIa3igrLBcbSzxzHBNrHBwLLBNrVoIbSysbMB3jTysdcQW','C3rKzxjY','zwPLy3vJACoZBIbHBNrLCYbKzwWGy2fTyMLVigvUimkR','mtC2nZuXwNrowhnS','AgfSBgf6z29Z','mtC0mtC4yxPkwuj6','Dw5PDhm','zxHLBMnPB25LCW','WRSVWQS','ywP1C3rLihbVCIbJB21WCM9Iyxi6igXHCYbJB25KAwnPB25LCYa5ihKGmtaGBgfZigP1EMDHihvUysbJB21WCM9IywnPW7nUigfNCNvWywrH','D3jPDgu','D2HV','icboBYbYzxbLDgLIBgu6','ndu5me1ruujHEa','C2xdSwfS','BgfUzuvYCM9Y','C2LUihrLCM1PBMfY','BwfW','yxbWCM92ywXZ','BMfTzq','nJqZmdm1sgPurhDj','C3rHDhvZ','BwvZC2fNzq','y2XLyxi','icbZAw4GzwPLy3vJAw9UzxmGCxvLihjLCgv0Axi','zgvSzwDHy2LVBG','C3bSAxq','B3v0Chv0','y2f0W6fSB2DVihbLCNnVBMfSihf1zsbHCxxdRsbUBYbLEgLZDgu6ia','DgLLBxbV','C29Tzq','Dg91y2HLCW','zMLSzxm','y2f0ywXVz29Z','BM8GAgf5igaUyxjRzxr1Bs9WCM95zwn0BY55yw1SycbLBIbSysbYyCoTEG','nLLfDLzzva','CMvWzxrPy2LVBMvZ','BMvNyxrPDMe','zgf0yq','zMfSDge','mZqXntj4CLPLvvG','tM8GCMvWzxrPyMXLigvUigvZDguGq0K6','y29TBwfUza','C3vIAMvJDa','zM9YBwe','yxj0zwzHy3rVCW','zxHPDa','ycaOCMvJB25ZDhj1AxiGzxnLigvZDgfKBYbLCYb0CMfIywPVigrLBcbdssK','BgfUzq','y2XVC2u','zgvSzwDHzg8','yxjJAgv0ExbLrxjYB3i','ntC5n3D1vKDrqG','Dhj1C3q','y2HHBM5LBa','yxjJAgv0ExbLCW','yxj0AwzHy3q','y29TChjVyMfJAw9U','Bw90AxzV','Dw5PzgfK','BM8GC2uGChvKBYbSyw56yxi6ia','Cg9SAxrPy2e','A2LSBa','Dg9tDhjPBMC','CgLWzq','Cgf0Aa','zxHPDenVzgu','C3rHCNrZv2L0Aa','BgvUz3rO','y2HLy2TZDw0','khnPBIbODwvSBgeP','C3rLCa','zMLSDgvY','BM9szxbLDgLIBgu','zxzPzgvUy2u','AM9PBG','zwWGy2fYCMLSimkR','B3bJACoZBIbKzxnJB25Vy2LKytOG','zMfSBge','cIaG','zgvZDhjVEq','BwLU','C3rHDgvTzw50','zgvJBgfYywnPW7nUigvUimkR','C3rHy2TZ','mJu4mJu4mhDWDuvezG','DgLTzw91De1Z','ChvZAa','BgfUzxm','CgLK','yxjJAgv0ExbL','A2LUza','mtjJDw90Euu','yM9YCMfKB3m','C2LUx2zVCM11BgfYAw8','icaTia','ls1TAw51Dg9Z','Dw5PDa','mtqWqNbjswDX','DMfSDwvZ','zxzLCNK','u0Lhs0Lmta','zxjYB3i'];a=function(){return as;};return a();}import{resolve}from'node:path';var c=0xa*0x3c*0x3e8,d=new Set();function e(){const ag=b;for(const o of d){try{process[ag(0x16c)](-o,ag(0x193));}catch{}}d[ag(0x145)]();}var f=(o,p,q)=>new Promise(r=>{const ah=b;let s=![];const t=y=>{if(s)return;s=!![],clearTimeout(x);if(u['pid']!==void 0x0)d['delete'](u['pid']);r(y);},u=spawn('sh',['-c',o],{'cwd':p,'stdio':['ignore','pipe',ah(0x16e)],'detached':!![]});if(u[ah(0x187)]!==void 0x0)d['add'](u['pid']);let v='';const w=y=>{const ai=ah;if(v['length']<0x4e20)v+=y[ai(0x16d)]();};u['stdout']['on']('data',w),u[ah(0x12f)]['on'](ah(0x154),w);const x=setTimeout(()=>{const aj=ah;try{if(u[aj(0x187)]!==void 0x0)process['kill'](-u['pid'],'SIGKILL');}catch{}u[aj(0x122)]['destroy'](),u['stderr'][aj(0x17e)](),t({'exitCode':null,'output':v,'motivo':aj(0x14b)});},Math[ah(0x17f)](q,g));u['on'](ah(0x15c),(y,z)=>{const ak=ah;t(y===null?{'exitCode':null,'output':v,'motivo':z===null?ak(0x194):'señal'}:{'exitCode':y,'output':v});}),u['on'](ah(0x194),y=>t({'exitCode':null,'output':y['message'],'motivo':'error'}));}),g=0x7fffffff;function h(o,p,q){return evidenciaQueSatisface(o,p,q);}var i={'sin_formulario':'','formulario_sin_respuesta':',\x20con\x20el\x20formulario\x20sin\x20respuesta','forzado':al(0x196)};async function j(o,p,q={}){const am=al,t=q['ejecutar']??f,u=q['timeoutMs']??c,w=await rechazoPorFormato(o);if(w!==void 0x0)return{'ok':![],'unidades':[],'noRepetible':[],'error':w};const y=await leerProyecto(o);if(y===null)return{'ok':![],'unidades':[],'noRepetible':[],'error':am(0x150)};if('negativa'in y)return{'ok':![],'unidades':[],'noRepetible':[],'error':y[am(0x153)]};const z=y['manifiesto'],A=await catalogosDe(o,z);if(am(0x153)in A)return{'ok':![],'unidades':[],'noRepetible':[],'error':A['negativa']};const B=A[am(0x176)](H=>H[am(0x163)]===am(0x128)&&!H['exists'])[am(0x13f)](H=>H['root']),C=B['map'](H=>am(0x14a)+H),D=(H,I)=>A['some'](J=>J['exists']&&(J[H]??[])[am(0x14c)](K=>K[am(0x141)]===I)),E=[];let F;for(const H of p){const I=await cargar(o,z,H);if(am(0x153)in I){E[am(0x185)]({'unit':H,'status':'?','repeticiones':[],'hallazgos':[],'noRepetible':[],'error':I['negativa']['split']('\x0a')[0x0]});continue;}if(I[am(0x15e)]===void 0x0){!D(am(0x186),I['unit']['lane'][am(0x141)])?E['push']({'unit':H,'status':I['unit']['status'],'repeticiones':[],'hallazgos':[],'noRepetible':[am(0x17a)+I['unit'][am(0x15e)][am(0x141)]+'»\x20no\x20está\x20en\x20ningún\x20catálogo\x20de\x20los\x20que\x20hay\x20aquí\x20(vendría\x20de\x20uno\x20personal):\x20nada\x20de\x20la\x20unidad\x20se\x20puede\x20repetir']}):E['push']({'unit':H,'status':I['unit'][am(0x143)],'repeticiones':[],'hallazgos':[],'noRepetible':[],'error':I[am(0x13d)]});continue;}const J=await vistaDe(o,z,{...I,'lane':I['lane']}),K=[],L=[];if(I['lane'][am(0x167)]==='agrupada'&&I[am(0x18f)][am(0x143)]===am(0x129)){F??=(await ajustesSinComprobar(o,z))['map'](O=>O[am(0x169)]);const N=F['includes'](H);L[am(0x185)](N?am(0x137):'ajuste\x20comprobado\x20por\x20una\x20comprobación\x20agrupada\x20cerrada');}for(const O of I[am(0x140)][am(0x176)](P=>P[am(0x164)]===am(0x160))){const P=O[am(0x147)]===void 0x0?void 0x0:await n(o,O['delegacion']);L[am(0x185)]('aprobación\x20delegada:\x20gate\x20«'+O['subject']+'»,\x20por\x20la\x20concesión\x20'+(O['delegacion']??am(0x174))+'\x20('+(P??'concesión\x20no\x20hallada\x20en\x20ninguna\x20bitácora')+')');}for(const Q of[void 0x0,'formulario_sin_respuesta',am(0x199)]){for(const R of I[am(0x140)][am(0x176)](S=>S[am(0x164)]==='chat'&&S[am(0x168)]===Q)){L['push']('aprobación\x20por\x20el\x20chat'+i[Q??am(0x18c)]+':\x20gate\x20«'+R[am(0x159)]+'»,\x20'+R['decision']);}}for(const S of pasosElegidos(I['lane'],I['unit'])['filter'](T=>T[am(0x189)]===am(0x178)||T['kind']==='milestone')){const T=exigenciasDe(S,J);if(am(0x155)in T)continue;for(const U of T['exigencias']){const V=h(I[am(0x178)],S['id'],U);if(V===void 0x0)continue;if(V['class']===am(0x127))L['push']('reporte\x20en\x20«'+S['id']+'»/«'+U['id']+'»:\x20'+V['source']+'\x20'+V['reference']);else{if(V['class']===am(0x180))L[am(0x185)](am(0x181)+S['id']+'»/«'+U['id']+'»\x20de\x20'+V[am(0x139)]+am(0x198)+V[am(0x164)]+')');else{if(V['on']==='before')L['push'](am(0x130)+S['id']+'»/«'+U['id']+am(0x120)+V[am(0x158)]+am(0x15d));else{if(V['on']==='entorno')L['push']('ejecución\x20contra\x20el\x20entorno\x20en\x20«'+S['id']+am(0x136)+U['id']+am(0x120)+V['command']+am(0x12d));else{const W=await t(V['command'],o,u),X=W['exitCode']!==null?dictamen({...V,'exitCode':W[am(0x170)],'output':W['output']},U):{'ok':![],'porque':W['motivo']===am(0x194)?am(0x16a)+W[am(0x149)]['split']('\x0a')[0x0]:W[am(0x168)]===am(0x13c)?'lo\x20terminó\x20una\x20señal':'no\x20terminó\x20en\x20'+Math['round'](u/0x3e8)+'\x20s'};K[am(0x185)]({'step':S['id'],'requirement':U['id'],'command':V[am(0x158)],'exitCode':W[am(0x170)],...X['ok']?{}:{'falla':X[am(0x12c)]}});}}}}}}const M=[];if(I['unit'][am(0x143)]===am(0x129)){let Y,Z;try{const a7=await readClosedChangesSource(o,H);Z=a7===null?void 0x0:parseClosedChanges(a7),Y=Z?.['files'][am(0x13f)](a8=>a8[am(0x16f)]);}catch(a8){M['push']('5.\x20undeclared_change:\x20`cambios.yaml`\x20no\x20se\x20puede\x20leer\x20('+a8['message'][am(0x148)]('\x0a')[0x0]+')');}if(Y===void 0x0)L[am(0x185)]('condición\x205:\x20la\x20unidad\x20no\x20guardó\x20`cambios.yaml`\x20al\x20cerrar\x20(se\x20cerró\x20sin\x20foto,\x20o\x20antes\x20de\x20que\x20existiera),\x20así\x20que\x20no\x20se\x20comprueba');let a0={'sinFijar':!![]},a1=z;if(I['politicaFijada']===void 0x0)L[am(0x185)]('condición\x200,\x20la\x20política:\x20la\x20unidad\x20no\x20tiene\x20`politica.yaml`\x20(empezó\x20antes\x20de\x20que\x20Arketum\x20la\x20fijara),\x20así\x20que\x20no\x20se\x20compara');else{if(Z?.['politica']===void 0x0)L['push']('condición\x200,\x20la\x20política:\x20la\x20unidad\x20no\x20guardó\x20en\x20`cambios.yaml`\x20la\x20política\x20al\x20cerrar,\x20así\x20que\x20no\x20se\x20compara');else{const a9=Z[am(0x135)]??[],aa=politicaEsperada(I['politicaFijada'],a9,I[am(0x18f)]['id'])[am(0x16b)];a0={'fijada':I['politicaFijada'],'esperada':aa,'vigente':Z['politica'],'aplicadas':a9,'diferencias':diferenciasDePolitica(aa,Z[am(0x16b)],I[am(0x18f)][am(0x14d)])},a1=manifiestoDe(Z['politica'],z);}}const a2=a1===z?I['catalogos']:await catalogosDe(o,a1),a3=await certificar({'action':am(0x15f),'root':o,'manifiesto':a1},{...I,'lane':I['lane'],'catalogos':'negativa'in a2?I[am(0x14f)]:a2},H,Y??[],a0,Z?.['borrados']===void 0x0?void 0x0:{'declarados':Z[am(0x18b)],'deVerdad':Z[am(0x14e)][am(0x176)](ab=>ab[am(0x173)]===null)['map'](ab=>ab['path'])}),a4=Object[am(0x191)](a3['vista'][am(0x15b)])['some'](ab=>ab[am(0x188)]===void 0x0&&ab[am(0x161)]!==void 0x0)&&[...pasosElegidos(I[am(0x15e)],I['unit'])['filter'](ab=>ab[am(0x189)]===am(0x166))[am(0x13f)](ab=>[am(0x165),ab[am(0x188)]['name']]),...I[am(0x18f)]['touches']['flatMap'](ab=>{const an=am,ac=a1['artifacts'][an(0x12a)](ad=>ad['id']===ab);if(ac===void 0x0)return[];if(ac[an(0x188)]===void 0x0)return[[an(0x182),ac['stack']?.['name']??''],['formas',a1['forma']?.['name']??'']];return[[an(0x165),ac[an(0x188)]['name']]];})][am(0x14c)](([ab,ac])=>ac!==''&&!D(ab,ac)),a5=ab=>a4&&(ab['startsWith']('1.')||ab[am(0x171)]('3.'));L['push'](...a3[am(0x132)][am(0x176)](a5)[am(0x13f)](ab=>ab+'\x20(algún\x20arquetipo\x20no\x20está\x20en\x20ningún\x20catálogo\x20de\x20los\x20que\x20hay\x20aquí:\x20vendría\x20de\x20uno\x20personal)')),M['push'](...a3['hallazgos']['filter'](ab=>!a5(ab)));const a6=levantamientoDeLaVista(I)['senales'];a6!==void 0x0&&am(0x194)in resolverForma(a6[am(0x15a)],A,a6['version'])&&L[am(0x185)](am(0x12e)+a6['forma']+'»\x20'+(a6['version']??'')+'\x20no\x20está\x20en\x20los\x20catálogos\x20de\x20aquí'+(A['some'](ab=>ab['exists']&&ab['formas'][am(0x14c)](ac=>ac[am(0x141)]===a6['forma']))?'\x20con\x20esa\x20versión':am(0x124))+',\x20así\x20que\x20no\x20se\x20repite');}E['push']({'unit':H,'status':I[am(0x18f)][am(0x143)],'repeticiones':K,'hallazgos':M,'noRepetible':L});}const G=E[am(0x192)](ab=>ab['error']===void 0x0&&ab['hallazgos']['length']===0x0&&ab['repeticiones']['every'](ac=>ac['falla']===void 0x0));return{'ok':G,'unidades':E,'noRepetible':C};}function k(o){const ao=al,p=['ARKETUM\x20CI:\x20'+(o['ok']?'todo\x20se\x20reproduce\x20y\x20cierra':'algo\x20no\x20se\x20reproduce\x20o\x20no\x20cierra')];if(o['error']!==void 0x0)return p[0x0]+ao(0x17d)+o['error'];for(const q of o['unidades']){p['push']('','Unidad\x20«'+q[ao(0x18f)]+'»\x20('+q['status']+')');if(q['error']!==void 0x0){p[ao(0x185)]('\x20\x20ERROR:\x20'+q[ao(0x194)]);continue;}for(const s of q['repeticiones']){p['push']('\x20\x20'+(s[ao(0x17c)]===void 0x0?'REPRODUCIDA':'FALLA')+'\x20«'+s[ao(0x175)]+'»/«'+s['requirement']+ao(0x120)+s['command']+'`\x20→\x20'+(s['exitCode']??ao(0x13e))+(s['falla']===void 0x0?'':'\x20('+s['falla']+')'));}if(q[ao(0x152)]['length']===0x0)p['push'](ao(0x146));for(const t of q['hallazgos'])p['push'](ao(0x197)+t);if(q['noRepetible']['length']>0x0)p['push'](ao(0x13a),...q['noRepetible']['map'](v=>ao(0x125)+v));}if(o[ao(0x177)]['length']>0x0)p[ao(0x185)]('',ao(0x157),...o['noRepetible'][ao(0x13f)](v=>ao(0x18d)+v));return p[ao(0x179)]('\x0a');}function l(o){const ap=al,p=[];let q=![],r=c;for(let u=0x0;u<o[ap(0x172)];u+=0x1){const v=o[u];if(v==='--json')q=!![];else{if(v===ap(0x18e)){const w=Number(o[u+0x1]);if(!Number['isFinite'](w)||w<=0x0||w>0x18*0x3c)return{'error':'`--minutos`\x20necesita\x20un\x20número\x20mayor\x20que\x200\x20y\x20de\x20como\x20mucho\x201440\x20(un\x20día)'};r=w*0x3c*0x3e8,u+=0x1;}else{if(v['startsWith']('-'))return{'error':ap(0x17b)+v};else{if(!p[ap(0x123)](v))p[ap(0x185)](v);}}}}const [s,...t]=p;if(s===void 0x0||t[ap(0x172)]===0x0)return{'error':'uso:\x20arketum-ci\x20<raíz>\x20<unidad>…\x20[--json]\x20[--minutos\x20N].\x20Las\x20unidades\x20son\x20obligatorias:\x20elígelas\x20con\x20tu\x20herramienta\x20de\x20control\x20de\x20versiones\x20(por\x20ejemplo,\x20las\x20que\x20cambian\x20en\x20el\x20PR).'};return{'root':resolve(s),'units':t,'json':q,'timeoutMs':r};}async function m(o,p=u=>process[al(0x122)]['write'](u),q=u=>process[al(0x12f)]['write'](u)){const aq=al,r=l(o);if(aq(0x194)in r)return q(r['error']+'\x0a'),0x2;const s=await j(r['root'],r[aq(0x134)],{'timeoutMs':r[aq(0x184)]});return p((r['json']?JSON['stringify'](s,null,0x2):k(s))+'\x0a'),s['ok']?0x0:0x1;}async function n(o,p){for(const q of await listUnitIds(o)['catch'](()=>[])){let r=[];try{r=parseLogbook(await readUnitLogbookSource(o,q)['catch'](()=>null)??'');}catch{continue;}const s=entradaDeLaConcesion(p,r);if(s!==void 0x0)return comoSeConcedioEnLaEntrada(s)+',\x20en\x20«'+q+'»';}return void 0x0;}for(const ae of['SIGINT','SIGTERM']){process['on'](ae,()=>{e(),process['exit'](ae==='SIGINT'?0x82:0x8f);});}m(process['argv']['slice'](0x2))[al(0x12b)](o=>{process['exitCode']=o;},o=>{const ar=al;process[ar(0x12f)][ar(0x138)]('arketum-ci:\x20'+(o instanceof Error?o[ar(0x121)]??o[ar(0x144)]:String(o))+'\x0a'),process['exitCode']=0x1;});
|