smolerclaw 1.3.3 → 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/README.md +4 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ Conclusoes: ${$.findings.length}`);for(let Q of $.findings)Y.push(` ${y6(Q.seve
|
|
|
19
19
|
Resumo: ${$.summary}`);if($.recommendations)Y.push(`Recomendacoes: ${$.recommendations}`);return Y.join(`
|
|
20
20
|
`)}function SK($){let Z=new Date($.timestamp).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"});return[`--- Evidencia {${$.id}} ---`,`Label: ${$.label}`,`Fonte: ${$.source}${$.path?` (${$.path})`:""}`,`Coletada: ${Z}`,"",$.content.length>3000?$.content.slice(0,3000)+`
|
|
21
21
|
... (truncado)`:$.content].join(`
|
|
22
|
-
`)}function P1($){let Z=$.toLowerCase().trim(),J=X$.find((Q)=>Q.id===Z);if(J)return J;return X$.filter((Q)=>Q.title.toLowerCase().includes(Z)).sort((Q,X)=>new Date(X.updated).getTime()-new Date(Q.updated).getTime())[0]||null}function b6($){switch($){case"aberta":return"\u25CB";case"em_andamento":return"\u25C9";case"concluida":return"\u25CF";case"arquivada":return"\u25CC"}}function y6($){switch($){case"critical":return"[CRITICO]";case"high":return"[ALTO]";case"medium":return"[MEDIO]";case"low":return"[BAIXO]";case"info":return"[INFO]"}}function G9(){return IK().slice(0,8)}var w6="",X$,k6=()=>AK(w6,"investigations.json"),x6=50000;var A1=r4(()=>{r();X$=[]});import{readFileSync as VQ}from"fs";import{join as GQ,dirname as HQ}from"path";function RZ($){let Z={help:!1,version:!1,noTools:!1,print:!1},J=[],Y=0;while(Y<$.length){let Q=$[Y];switch(Q){case"-h":case"--help":Z.help=!0;break;case"-v":case"--version":Z.version=!0;break;case"-m":case"--model":if(Z.model=$[++Y],!Z.model)l1("--model requires a value");break;case"-s":case"--session":if(Z.session=$[++Y],!Z.session)l1("--session requires a value");break;case"--max-tokens":let X=Number($[++Y]);if(!X||X<=0)l1("--max-tokens requires a positive number");Z.maxTokens=X;break;case"--no-tools":Z.noTools=!0;break;case"-p":case"--print":Z.print=!0;break;default:if(Q.startsWith("-"))l1(`Unknown option: ${Q}. Try --help`);J.push(Q)}Y++}if(J.length>0)Z.prompt=J.join(" ");return Z}function o1(){return"1.3.
|
|
22
|
+
`)}function P1($){let Z=$.toLowerCase().trim(),J=X$.find((Q)=>Q.id===Z);if(J)return J;return X$.filter((Q)=>Q.title.toLowerCase().includes(Z)).sort((Q,X)=>new Date(X.updated).getTime()-new Date(Q.updated).getTime())[0]||null}function b6($){switch($){case"aberta":return"\u25CB";case"em_andamento":return"\u25C9";case"concluida":return"\u25CF";case"arquivada":return"\u25CC"}}function y6($){switch($){case"critical":return"[CRITICO]";case"high":return"[ALTO]";case"medium":return"[MEDIO]";case"low":return"[BAIXO]";case"info":return"[INFO]"}}function G9(){return IK().slice(0,8)}var w6="",X$,k6=()=>AK(w6,"investigations.json"),x6=50000;var A1=r4(()=>{r();X$=[]});import{readFileSync as VQ}from"fs";import{join as GQ,dirname as HQ}from"path";function RZ($){let Z={help:!1,version:!1,noTools:!1,print:!1},J=[],Y=0;while(Y<$.length){let Q=$[Y];switch(Q){case"-h":case"--help":Z.help=!0;break;case"-v":case"--version":Z.version=!0;break;case"-m":case"--model":if(Z.model=$[++Y],!Z.model)l1("--model requires a value");break;case"-s":case"--session":if(Z.session=$[++Y],!Z.session)l1("--session requires a value");break;case"--max-tokens":let X=Number($[++Y]);if(!X||X<=0)l1("--max-tokens requires a positive number");Z.maxTokens=X;break;case"--no-tools":Z.noTools=!0;break;case"-p":case"--print":Z.print=!0;break;default:if(Q.startsWith("-"))l1(`Unknown option: ${Q}. Try --help`);J.push(Q)}Y++}if(J.length>0)Z.prompt=J.join(" ");return Z}function o1(){return"1.3.4"}function EZ(){let $=o1();console.log(`smolerclaw v${$} \u2014 the micro AI assistant
|
|
23
23
|
|
|
24
24
|
Usage:
|
|
25
25
|
smolerclaw [options] [prompt]
|