shiva-code 0.8.3 → 0.8.5

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -143,6 +143,7 @@ import {
143
143
  // src/index.ts
144
144
  import { Command as Command44 } from "commander";
145
145
  import * as readline from "readline";
146
+ import * as os8 from "os";
146
147
 
147
148
  // src/services/onboarding/welcome.ts
148
149
  import { existsSync } from "fs";
@@ -334,9 +335,9 @@ async function promptLogin() {
334
335
  async function installHooksSilently() {
335
336
  try {
336
337
  const { existsSync: existsSync27, readFileSync: readFileSync15, writeFileSync: writeFileSync13, mkdirSync: mkdirSync7 } = await import("fs");
337
- const { homedir: homedir11 } = await import("os");
338
+ const { homedir: homedir12 } = await import("os");
338
339
  const { join: join17 } = await import("path");
339
- const CLAUDE_SETTINGS_PATH3 = join17(homedir11(), ".claude", "settings.json");
340
+ const CLAUDE_SETTINGS_PATH3 = join17(homedir12(), ".claude", "settings.json");
340
341
  let settings = {};
341
342
  if (existsSync27(CLAUDE_SETTINGS_PATH3)) {
342
343
  try {
@@ -367,7 +368,7 @@ async function installHooksSilently() {
367
368
  hooks: [{ type: "command", command: "shiva sync --push --quiet", timeout: 30 }]
368
369
  });
369
370
  }
370
- const dir = join17(homedir11(), ".claude");
371
+ const dir = join17(homedir12(), ".claude");
371
372
  if (!existsSync27(dir)) {
372
373
  mkdirSync7(dir, { recursive: true });
373
374
  }
@@ -4185,7 +4186,7 @@ function buildClaudeArgs(project) {
4185
4186
  return args2;
4186
4187
  }
4187
4188
  function sanitizeProjectName(name) {
4188
- return name.replace(/[^a-zA-Z0-9_.-]/g, "-").substring(0, 50);
4189
+ return name.replace(/[^a-zA-Z0-9_-]/g, "-").substring(0, 50);
4189
4190
  }
4190
4191
  async function spawnInTmux(projects, sessionName) {
4191
4192
  const tmuxSession = sessionName || `shiva-${Date.now()}`;
@@ -13362,9 +13363,9 @@ complete -F _shiva_completions shiva
13362
13363
  }
13363
13364
  async function installBashCompletion() {
13364
13365
  const fs15 = await import("fs");
13365
- const os8 = await import("os");
13366
+ const os9 = await import("os");
13366
13367
  const path15 = await import("path");
13367
- const bashrcPath = path15.join(os8.homedir(), ".bashrc");
13368
+ const bashrcPath = path15.join(os9.homedir(), ".bashrc");
13368
13369
  const completionScript = generateBashCompletion();
13369
13370
  const marker = "# SHIVA Code Bash Completion";
13370
13371
  try {
@@ -13505,9 +13506,9 @@ compdef _shiva shiva
13505
13506
  }
13506
13507
  async function installZshCompletion() {
13507
13508
  const fs15 = await import("fs");
13508
- const os8 = await import("os");
13509
+ const os9 = await import("os");
13509
13510
  const path15 = await import("path");
13510
- const zshrcPath = path15.join(os8.homedir(), ".zshrc");
13511
+ const zshrcPath = path15.join(os9.homedir(), ".zshrc");
13511
13512
  const completionScript = generateZshCompletion();
13512
13513
  const marker = "# SHIVA Code Zsh Completion";
13513
13514
  try {
@@ -13610,9 +13611,9 @@ complete -c shiva -n "__fish_seen_subcommand_from stats" -l json -d "JSON Output
13610
13611
  }
13611
13612
  async function installFishCompletion() {
13612
13613
  const fs15 = await import("fs");
13613
- const os8 = await import("os");
13614
+ const os9 = await import("os");
13614
13615
  const path15 = await import("path");
13615
- const fishCompletionsDir = path15.join(os8.homedir(), ".config", "fish", "completions");
13616
+ const fishCompletionsDir = path15.join(os9.homedir(), ".config", "fish", "completions");
13616
13617
  const fishCompletionPath = path15.join(fishCompletionsDir, "shiva.fish");
13617
13618
  const completionScript = generateFishCompletion();
13618
13619
  try {
@@ -16203,7 +16204,7 @@ hookCommand.command("scan-session").description("Session nach sensiblen Tokens s
16203
16204
  const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
16204
16205
  const { existsSync: existsSync27, readFileSync: readFileSync15, writeFileSync: writeFileSync13, readdirSync: readdirSync6, statSync: statSync7 } = await import("fs");
16205
16206
  const { join: join17 } = await import("path");
16206
- const { homedir: homedir11 } = await import("os");
16207
+ const { homedir: homedir12 } = await import("os");
16207
16208
  const quiet = options.quiet;
16208
16209
  try {
16209
16210
  let autoRedact = options.redact || false;
@@ -16218,7 +16219,7 @@ hookCommand.command("scan-session").description("Session nach sensiblen Tokens s
16218
16219
  } catch {
16219
16220
  }
16220
16221
  }
16221
- const claudeProjectsPath = join17(homedir11(), ".claude", "projects");
16222
+ const claudeProjectsPath = join17(homedir12(), ".claude", "projects");
16222
16223
  let sessionFiles = [];
16223
16224
  if (options.path) {
16224
16225
  sessionFiles = [options.path];
@@ -17221,8 +17222,10 @@ async function showDashboard() {
17221
17222
  }
17222
17223
  const projects = await getAllClaudeProjects();
17223
17224
  const packages = getAllPackages();
17225
+ const homeDir = os8.homedir();
17224
17226
  const recentProjects = projects.filter((p) => {
17225
17227
  if (p.sessions.length === 0) return false;
17228
+ if (p.absolutePath === homeDir) return false;
17226
17229
  if (p.latestSession && isSessionCorrupted(p.latestSession)) return false;
17227
17230
  return true;
17228
17231
  }).slice(0, 5);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiva-code",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Makes Claude Code Persistent - Cross-Project Memory CLI",
5
5
  "author": "SHIVA AI",
6
6
  "license": "MIT",