@nimbuslab/cli 0.13.4 → 0.13.6
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 +23 -3
- package/package.json +1 -1
- package/src/commands/lola.ts +25 -2
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
150
150
|
var require_package = __commonJS((exports, module) => {
|
|
151
151
|
module.exports = {
|
|
152
152
|
name: "@nimbuslab/cli",
|
|
153
|
-
version: "0.13.
|
|
153
|
+
version: "0.13.6",
|
|
154
154
|
description: "CLI para criar projetos nimbuslab",
|
|
155
155
|
type: "module",
|
|
156
156
|
bin: {
|
|
@@ -2549,6 +2549,11 @@ function lola {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
if (addedToAny) {
|
|
2551
2551
|
console.log(import_picocolors7.default.yellow(" Reinicie o PowerShell para usar o comando 'lola'"));
|
|
2552
|
+
console.log();
|
|
2553
|
+
console.log(import_picocolors7.default.yellow(" IMPORTANTE (Windows):"));
|
|
2554
|
+
console.log(import_picocolors7.default.dim(" Se o comando 'lola' nao funcionar, execute primeiro:"));
|
|
2555
|
+
console.log(import_picocolors7.default.cyan(" Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"));
|
|
2556
|
+
console.log(import_picocolors7.default.dim(" Isso habilita execucao de scripts no PowerShell."));
|
|
2552
2557
|
} else {
|
|
2553
2558
|
console.log(import_picocolors7.default.green(" Funcao lola ja existe nos profiles do PowerShell"));
|
|
2554
2559
|
}
|
|
@@ -2594,7 +2599,13 @@ fi
|
|
|
2594
2599
|
const claudeDir = join3(HOME, ".claude");
|
|
2595
2600
|
if (!existsSync2(USER_MEMORY)) {
|
|
2596
2601
|
console.log();
|
|
2597
|
-
console.log(import_picocolors7.default.cyan("
|
|
2602
|
+
console.log(import_picocolors7.default.cyan(" Configurando USER_MEMORY.md..."));
|
|
2603
|
+
const gitUserResult = Bun.spawnSync(["git", "config", "user.name"], { stdout: "pipe" });
|
|
2604
|
+
const gitEmailResult = Bun.spawnSync(["git", "config", "user.email"], { stdout: "pipe" });
|
|
2605
|
+
const gitUser = gitUserResult.stdout.toString().trim() || "Dev";
|
|
2606
|
+
const gitEmail = gitEmailResult.stdout.toString().trim() || "";
|
|
2607
|
+
const hostname = process.env.HOSTNAME || process.env.COMPUTERNAME || "local";
|
|
2608
|
+
const today = new Date().toISOString().split("T")[0];
|
|
2598
2609
|
await Bun.$`mkdir -p ${claudeDir}`;
|
|
2599
2610
|
const content = `# User Memory
|
|
2600
2611
|
|
|
@@ -2602,6 +2613,15 @@ Memoria persistente para sessoes Claude Code
|
|
|
2602
2613
|
|
|
2603
2614
|
---
|
|
2604
2615
|
|
|
2616
|
+
## Dev
|
|
2617
|
+
|
|
2618
|
+
**Nome:** ${gitUser}
|
|
2619
|
+
**Email:** ${gitEmail}
|
|
2620
|
+
**Maquina:** ${hostname}
|
|
2621
|
+
**Instalacao:** ${today}
|
|
2622
|
+
|
|
2623
|
+
---
|
|
2624
|
+
|
|
2605
2625
|
## Configuracoes da Lola
|
|
2606
2626
|
|
|
2607
2627
|
\`\`\`
|
|
@@ -2617,7 +2637,7 @@ lola_profile: millennial
|
|
|
2617
2637
|
---
|
|
2618
2638
|
`;
|
|
2619
2639
|
await Bun.write(USER_MEMORY, content);
|
|
2620
|
-
console.log(import_picocolors7.default.green(
|
|
2640
|
+
console.log(import_picocolors7.default.green(` USER_MEMORY.md criado para ${gitUser}!`));
|
|
2621
2641
|
}
|
|
2622
2642
|
console.log();
|
|
2623
2643
|
console.log(import_picocolors7.default.green(" Instalacao concluida!"));
|
package/package.json
CHANGED
package/src/commands/lola.ts
CHANGED
|
@@ -108,6 +108,11 @@ function lola {
|
|
|
108
108
|
|
|
109
109
|
if (addedToAny) {
|
|
110
110
|
console.log(pc.yellow(" Reinicie o PowerShell para usar o comando 'lola'"))
|
|
111
|
+
console.log()
|
|
112
|
+
console.log(pc.yellow(" IMPORTANTE (Windows):"))
|
|
113
|
+
console.log(pc.dim(" Se o comando 'lola' nao funcionar, execute primeiro:"))
|
|
114
|
+
console.log(pc.cyan(" Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"))
|
|
115
|
+
console.log(pc.dim(" Isso habilita execucao de scripts no PowerShell."))
|
|
111
116
|
} else {
|
|
112
117
|
console.log(pc.green(" Funcao lola ja existe nos profiles do PowerShell"))
|
|
113
118
|
}
|
|
@@ -161,7 +166,16 @@ fi
|
|
|
161
166
|
const claudeDir = join(HOME, ".claude")
|
|
162
167
|
if (!existsSync(USER_MEMORY)) {
|
|
163
168
|
console.log()
|
|
164
|
-
console.log(pc.cyan("
|
|
169
|
+
console.log(pc.cyan(" Configurando USER_MEMORY.md..."))
|
|
170
|
+
|
|
171
|
+
// Pegar info do git automaticamente
|
|
172
|
+
const gitUserResult = Bun.spawnSync(["git", "config", "user.name"], { stdout: "pipe" })
|
|
173
|
+
const gitEmailResult = Bun.spawnSync(["git", "config", "user.email"], { stdout: "pipe" })
|
|
174
|
+
|
|
175
|
+
const gitUser = gitUserResult.stdout.toString().trim() || "Dev"
|
|
176
|
+
const gitEmail = gitEmailResult.stdout.toString().trim() || ""
|
|
177
|
+
const hostname = process.env.HOSTNAME || process.env.COMPUTERNAME || "local"
|
|
178
|
+
const today = new Date().toISOString().split("T")[0]
|
|
165
179
|
|
|
166
180
|
await Bun.$`mkdir -p ${claudeDir}`
|
|
167
181
|
|
|
@@ -171,6 +185,15 @@ Memoria persistente para sessoes Claude Code
|
|
|
171
185
|
|
|
172
186
|
---
|
|
173
187
|
|
|
188
|
+
## Dev
|
|
189
|
+
|
|
190
|
+
**Nome:** ${gitUser}
|
|
191
|
+
**Email:** ${gitEmail}
|
|
192
|
+
**Maquina:** ${hostname}
|
|
193
|
+
**Instalacao:** ${today}
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
174
197
|
## Configuracoes da Lola
|
|
175
198
|
|
|
176
199
|
\`\`\`
|
|
@@ -186,7 +209,7 @@ lola_profile: millennial
|
|
|
186
209
|
---
|
|
187
210
|
`
|
|
188
211
|
await Bun.write(USER_MEMORY, content)
|
|
189
|
-
console.log(pc.green(
|
|
212
|
+
console.log(pc.green(` USER_MEMORY.md criado para ${gitUser}!`))
|
|
190
213
|
}
|
|
191
214
|
|
|
192
215
|
console.log()
|