@nimbuslab/cli 0.13.5 → 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 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.5",
153
+ version: "0.13.6",
154
154
  description: "CLI para criar projetos nimbuslab",
155
155
  type: "module",
156
156
  bin: {
@@ -2599,7 +2599,13 @@ fi
2599
2599
  const claudeDir = join3(HOME, ".claude");
2600
2600
  if (!existsSync2(USER_MEMORY)) {
2601
2601
  console.log();
2602
- console.log(import_picocolors7.default.cyan(" Criando USER_MEMORY.md..."));
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];
2603
2609
  await Bun.$`mkdir -p ${claudeDir}`;
2604
2610
  const content = `# User Memory
2605
2611
 
@@ -2607,6 +2613,15 @@ Memoria persistente para sessoes Claude Code
2607
2613
 
2608
2614
  ---
2609
2615
 
2616
+ ## Dev
2617
+
2618
+ **Nome:** ${gitUser}
2619
+ **Email:** ${gitEmail}
2620
+ **Maquina:** ${hostname}
2621
+ **Instalacao:** ${today}
2622
+
2623
+ ---
2624
+
2610
2625
  ## Configuracoes da Lola
2611
2626
 
2612
2627
  \`\`\`
@@ -2622,7 +2637,7 @@ lola_profile: millennial
2622
2637
  ---
2623
2638
  `;
2624
2639
  await Bun.write(USER_MEMORY, content);
2625
- console.log(import_picocolors7.default.green(" USER_MEMORY.md criado!"));
2640
+ console.log(import_picocolors7.default.green(` USER_MEMORY.md criado para ${gitUser}!`));
2626
2641
  }
2627
2642
  console.log();
2628
2643
  console.log(import_picocolors7.default.green(" Instalacao concluida!"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbuslab/cli",
3
- "version": "0.13.5",
3
+ "version": "0.13.6",
4
4
  "description": "CLI para criar projetos nimbuslab",
5
5
  "type": "module",
6
6
  "bin": {
@@ -166,7 +166,16 @@ fi
166
166
  const claudeDir = join(HOME, ".claude")
167
167
  if (!existsSync(USER_MEMORY)) {
168
168
  console.log()
169
- console.log(pc.cyan(" Criando USER_MEMORY.md..."))
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]
170
179
 
171
180
  await Bun.$`mkdir -p ${claudeDir}`
172
181
 
@@ -176,6 +185,15 @@ Memoria persistente para sessoes Claude Code
176
185
 
177
186
  ---
178
187
 
188
+ ## Dev
189
+
190
+ **Nome:** ${gitUser}
191
+ **Email:** ${gitEmail}
192
+ **Maquina:** ${hostname}
193
+ **Instalacao:** ${today}
194
+
195
+ ---
196
+
179
197
  ## Configuracoes da Lola
180
198
 
181
199
  \`\`\`
@@ -191,7 +209,7 @@ lola_profile: millennial
191
209
  ---
192
210
  `
193
211
  await Bun.write(USER_MEMORY, content)
194
- console.log(pc.green(" USER_MEMORY.md criado!"))
212
+ console.log(pc.green(` USER_MEMORY.md criado para ${gitUser}!`))
195
213
  }
196
214
 
197
215
  console.log()