shiva-code 0.6.1 → 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.
- package/dist/index.js +26 -23
- 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,
|
|
@@ -1516,6 +1516,7 @@ var initCommand = new Command3("init").description("Projekt f\xFCr SHIVA Code in
|
|
|
1516
1516
|
}
|
|
1517
1517
|
});
|
|
1518
1518
|
project = await api.getProject(result.projectId);
|
|
1519
|
+
updateProjectConfig(projectDir, { projectId: result.projectId });
|
|
1519
1520
|
syncSpinner.succeed(`Projekt ${result.action === "created" ? "erstellt" : "aktualisiert"}`);
|
|
1520
1521
|
} catch (error) {
|
|
1521
1522
|
syncSpinner.warn("Cloud-Sync fehlgeschlagen (offline?)");
|
|
@@ -1878,6 +1879,7 @@ var syncCommand = new Command5("sync").description("Projekt mit Cloud synchronis
|
|
|
1878
1879
|
return;
|
|
1879
1880
|
}
|
|
1880
1881
|
}
|
|
1882
|
+
updateProjectConfig(projectDir, { projectId: project.id });
|
|
1881
1883
|
let memories = [];
|
|
1882
1884
|
if (scanned.claudeMdContent) {
|
|
1883
1885
|
const parsed = parseClaudeMd(scanned.claudeMdContent);
|
|
@@ -1970,6 +1972,7 @@ async function syncAllProjects(options) {
|
|
|
1970
1972
|
});
|
|
1971
1973
|
cloudProject = await api.getProject(result.projectId);
|
|
1972
1974
|
}
|
|
1975
|
+
updateProjectConfig(projectDir, { projectId: cloudProject.id });
|
|
1973
1976
|
let memories = [];
|
|
1974
1977
|
if (scanned.claudeMdContent) {
|
|
1975
1978
|
const parsed = parseClaudeMd(scanned.claudeMdContent);
|