smolerclaw 1.2.0 → 1.2.1
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/index.js +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ Conclusoes: ${$.findings.length}`);for(let Q of $.findings)J.push(` ${o9(Q.seve
|
|
|
14
14
|
Resumo: ${$.summary}`);if($.recommendations)J.push(`Recomendacoes: ${$.recommendations}`);return J.join(`
|
|
15
15
|
`)}function BJ($){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)+`
|
|
16
16
|
... (truncado)`:$.content].join(`
|
|
17
|
-
`)}function u4($){let Z=$.toLowerCase().trim(),Y=t.find((Q)=>Q.id===Z);if(Y)return Y;return t.filter((Q)=>Q.title.toLowerCase().includes(Z)).sort((Q,X)=>new Date(X.updated).getTime()-new Date(Q.updated).getTime())[0]||null}function i9($){switch($){case"aberta":return"\u25CB";case"em_andamento":return"\u25C9";case"concluida":return"\u25CF";case"arquivada":return"\u25CC"}}function o9($){switch($){case"critical":return"[CRITICO]";case"high":return"[ALTO]";case"medium":return"[MEDIO]";case"low":return"[BAIXO]";case"info":return"[INFO]"}}function Q7(){return qJ().slice(0,8)}var l9="",t,n9=()=>HJ(l9,"investigations.json"),u9=50000;var p4=l7(()=>{r();t=[]});import{readFileSync as J3}from"fs";import{join as Q3,dirname as X3}from"path";function n7($){let Z={help:!1,version:!1,noTools:!1,print:!1},Y=[],J=0;while(J<$.length){let Q=$[J];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=$[++J],!Z.model)e4("--model requires a value");break;case"-s":case"--session":if(Z.session=$[++J],!Z.session)e4("--session requires a value");break;case"--max-tokens":let X=Number($[++J]);if(!X||X<=0)e4("--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("-"))e4(`Unknown option: ${Q}. Try --help`);Y.push(Q)}J++}if(Y.length>0)Z.prompt=Y.join(" ");return Z}function $8(){return"1.
|
|
17
|
+
`)}function u4($){let Z=$.toLowerCase().trim(),Y=t.find((Q)=>Q.id===Z);if(Y)return Y;return t.filter((Q)=>Q.title.toLowerCase().includes(Z)).sort((Q,X)=>new Date(X.updated).getTime()-new Date(Q.updated).getTime())[0]||null}function i9($){switch($){case"aberta":return"\u25CB";case"em_andamento":return"\u25C9";case"concluida":return"\u25CF";case"arquivada":return"\u25CC"}}function o9($){switch($){case"critical":return"[CRITICO]";case"high":return"[ALTO]";case"medium":return"[MEDIO]";case"low":return"[BAIXO]";case"info":return"[INFO]"}}function Q7(){return qJ().slice(0,8)}var l9="",t,n9=()=>HJ(l9,"investigations.json"),u9=50000;var p4=l7(()=>{r();t=[]});import{readFileSync as J3}from"fs";import{join as Q3,dirname as X3}from"path";function n7($){let Z={help:!1,version:!1,noTools:!1,print:!1},Y=[],J=0;while(J<$.length){let Q=$[J];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=$[++J],!Z.model)e4("--model requires a value");break;case"-s":case"--session":if(Z.session=$[++J],!Z.session)e4("--session requires a value");break;case"--max-tokens":let X=Number($[++J]);if(!X||X<=0)e4("--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("-"))e4(`Unknown option: ${Q}. Try --help`);Y.push(Q)}J++}if(Y.length>0)Z.prompt=Y.join(" ");return Z}function $8(){return"1.2.0"}function i7(){let $=$8();console.log(`smolerclaw v${$} \u2014 the micro AI assistant
|
|
18
18
|
|
|
19
19
|
Usage:
|
|
20
20
|
smolerclaw [options] [prompt]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smolerclaw",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Micro AI assistant for tiny machines. Inspired by OpenClaw.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "bun run src/index.ts",
|
|
11
11
|
"dev": "bun --watch src/index.ts",
|
|
12
|
-
"build": "
|
|
13
|
-
"compile": "
|
|
12
|
+
"build": "node scripts/build.mjs",
|
|
13
|
+
"compile": "node scripts/compile.mjs",
|
|
14
14
|
"typecheck": "tsc --noEmit",
|
|
15
15
|
"test": "bun test"
|
|
16
16
|
},
|