shiva-code 0.8.13 → 0.8.15
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/{analytics-6WNUPA56.js → analytics-7GPP4MT4.js} +1 -1
- package/dist/{chunk-5RLMQDLT.js → chunk-IKIAW3IT.js} +10 -4
- package/dist/{chunk-KB6M24M3.js → chunk-KZ6JAZDU.js} +8 -0
- package/dist/{chunk-FAMO57BL.js → chunk-VY7OQVQD.js} +1 -1
- package/dist/chunk-X47NNH6S.js +8312 -0
- package/dist/{client-H3JXPT5B.js → client-CFOXLEE7.js} +1 -1
- package/dist/index.js +2217 -1646
- package/dist/{logger-G6MRCCCU.js → logger-G2GKR3YK.js} +1 -1
- package/dist/{login-KKEDZS7J.js → login-KQJG3YQT.js} +3 -3
- package/dist/{settings-sync-WVIRHPCR.js → settings-sync-KO4KWXUA.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-VVP3NTOY.js +0 -3437
|
@@ -31,11 +31,17 @@ var log = {
|
|
|
31
31
|
bold: (message) => console.log(chalk.bold(message)),
|
|
32
32
|
// Newline
|
|
33
33
|
newline: () => console.log(),
|
|
34
|
-
// SHIVA-branded header
|
|
35
|
-
header: (title) => {
|
|
34
|
+
// SHIVA-branded header with box style (matching main menu)
|
|
35
|
+
header: (title, width = 40) => {
|
|
36
|
+
const innerWidth = width - 2;
|
|
37
|
+
const visibleLen = title.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, "").length;
|
|
38
|
+
const paddingLeft = Math.floor((innerWidth - visibleLen) / 2);
|
|
39
|
+
const paddingRight = innerWidth - visibleLen - paddingLeft;
|
|
40
|
+
console.log();
|
|
41
|
+
console.log(shivaPrimary(" \u256D" + "\u2500".repeat(innerWidth) + "\u256E"));
|
|
42
|
+
console.log(shivaPrimary(" \u2502") + " ".repeat(paddingLeft) + chalk.bold(title) + " ".repeat(paddingRight) + shivaPrimary("\u2502"));
|
|
43
|
+
console.log(shivaPrimary(" \u2570" + "\u2500".repeat(innerWidth) + "\u256F"));
|
|
36
44
|
console.log();
|
|
37
|
-
console.log(shivaPrimary.bold(title));
|
|
38
|
-
console.log(shivaPrimary("\u2500".repeat(title.length)));
|
|
39
45
|
},
|
|
40
46
|
// Section header with icon
|
|
41
47
|
section: (title, icon = "\u25C6") => {
|
|
@@ -119,6 +119,14 @@ var ApiClient = class {
|
|
|
119
119
|
method: "DELETE"
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Delete a memory by its ID directly (works for both global and project memories)
|
|
124
|
+
*/
|
|
125
|
+
async deleteMemoryById(memoryId) {
|
|
126
|
+
return this.request(`/memories/${memoryId}`, {
|
|
127
|
+
method: "DELETE"
|
|
128
|
+
});
|
|
129
|
+
}
|
|
122
130
|
async connectProjects(projectA, projectB, connectionType) {
|
|
123
131
|
return this.request("/projects/connect", {
|
|
124
132
|
method: "POST",
|