shiva-code 0.6.0 → 0.6.2

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 +47 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35,29 +35,6 @@ import {
35
35
  colors,
36
36
  log
37
37
  } from "./chunk-Z6NXFC4Q.js";
38
- import {
39
- encodeProjectPath,
40
- findProject,
41
- findProjectForCurrentDir,
42
- findProjectFromArray,
43
- findSessionByBranch,
44
- formatDate,
45
- formatRelativeTime,
46
- getAllClaudeProjects,
47
- getClaudeProjectsPath,
48
- getProjectName,
49
- getRecoveredContext,
50
- getSessionStats,
51
- invalidateSessionsCache,
52
- isSessionActive,
53
- isSessionCorrupted,
54
- isSessionCorruptedQuick,
55
- isValidProjectPath,
56
- isValidSessionId,
57
- maskSecret,
58
- sanitizeForLog,
59
- saveRecoveredContext
60
- } from "./chunk-H5OFO4VS.js";
61
38
  import {
62
39
  SECURITY_PRESETS,
63
40
  addDockerMount,
@@ -85,6 +62,29 @@ import {
85
62
  updateSessionLimits,
86
63
  updateTimeControl
87
64
  } from "./chunk-PMA6MGQW.js";
65
+ import {
66
+ encodeProjectPath,
67
+ findProject,
68
+ findProjectForCurrentDir,
69
+ findProjectFromArray,
70
+ findSessionByBranch,
71
+ formatDate,
72
+ formatRelativeTime,
73
+ getAllClaudeProjects,
74
+ getClaudeProjectsPath,
75
+ getProjectName,
76
+ getRecoveredContext,
77
+ getSessionStats,
78
+ invalidateSessionsCache,
79
+ isSessionActive,
80
+ isSessionCorrupted,
81
+ isSessionCorruptedQuick,
82
+ isValidProjectPath,
83
+ isValidSessionId,
84
+ maskSecret,
85
+ sanitizeForLog,
86
+ saveRecoveredContext
87
+ } from "./chunk-H5OFO4VS.js";
88
88
  import {
89
89
  formatContextAsMarkdown,
90
90
  generateGitHubContext,
@@ -1141,6 +1141,27 @@ function generateClaudeMd(scanned, project) {
1141
1141
  lines.push("- **Last Sync**: Never");
1142
1142
  }
1143
1143
  lines.push("");
1144
+ lines.push("### SHIVA Instructions");
1145
+ lines.push("");
1146
+ lines.push("IMPORTANT: Du MUSST diese Befehle nutzen um Informationen \xFCber Sessions hinweg zu speichern!");
1147
+ lines.push("");
1148
+ lines.push("**Memory speichern** - Wenn der User dich bittet etwas zu merken oder wichtige Infos auftauchen:");
1149
+ lines.push("```bash");
1150
+ lines.push('shiva remember "Die wichtige Information die gemerkt werden soll"');
1151
+ lines.push("```");
1152
+ lines.push("");
1153
+ lines.push("**Memories durchsuchen** - Um gespeicherte Informationen zu finden:");
1154
+ lines.push("```bash");
1155
+ lines.push('shiva search "suchbegriff"');
1156
+ lines.push("```");
1157
+ lines.push("");
1158
+ lines.push("**Wann Memories speichern:**");
1159
+ lines.push('- User sagt "merk dir...", "speicher...", "erinner dich..."');
1160
+ lines.push("- Wichtige Projektentscheidungen");
1161
+ lines.push("- API Keys, Secrets, Konfigurationen (nutze `shiva secrets add`)");
1162
+ lines.push("- Wichtige Code-Patterns oder Konventionen");
1163
+ lines.push("- Alles was in zuk\xFCnftigen Sessions relevant sein k\xF6nnte");
1164
+ lines.push("");
1144
1165
  lines.push("## Memories");
1145
1166
  lines.push("");
1146
1167
  if (project?.memories && project.memories.length > 0) {
@@ -1495,6 +1516,7 @@ var initCommand = new Command3("init").description("Projekt f\xFCr SHIVA Code in
1495
1516
  }
1496
1517
  });
1497
1518
  project = await api.getProject(result.projectId);
1519
+ updateProjectConfig(projectDir, { projectId: result.projectId });
1498
1520
  syncSpinner.succeed(`Projekt ${result.action === "created" ? "erstellt" : "aktualisiert"}`);
1499
1521
  } catch (error) {
1500
1522
  syncSpinner.warn("Cloud-Sync fehlgeschlagen (offline?)");
@@ -1857,6 +1879,7 @@ var syncCommand = new Command5("sync").description("Projekt mit Cloud synchronis
1857
1879
  return;
1858
1880
  }
1859
1881
  }
1882
+ updateProjectConfig(projectDir, { projectId: project.id });
1860
1883
  let memories = [];
1861
1884
  if (scanned.claudeMdContent) {
1862
1885
  const parsed = parseClaudeMd(scanned.claudeMdContent);
@@ -1949,6 +1972,7 @@ async function syncAllProjects(options) {
1949
1972
  });
1950
1973
  cloudProject = await api.getProject(result.projectId);
1951
1974
  }
1975
+ updateProjectConfig(projectDir, { projectId: cloudProject.id });
1952
1976
  let memories = [];
1953
1977
  if (scanned.claudeMdContent) {
1954
1978
  const parsed = parseClaudeMd(scanned.claudeMdContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiva-code",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Makes Claude Code Persistent - Cross-Project Memory CLI",
5
5
  "author": "SHIVA AI",
6
6
  "license": "MIT",