shiva-code 0.6.3 → 0.6.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.
|
@@ -272,13 +272,24 @@ var ApiClient = class {
|
|
|
272
272
|
* Get all memories across projects
|
|
273
273
|
*/
|
|
274
274
|
async getAllMemories() {
|
|
275
|
-
|
|
275
|
+
const result = await this.request("/memories");
|
|
276
|
+
return result.memories || [];
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Create a new memory (uses /api/memories endpoint)
|
|
280
|
+
*/
|
|
281
|
+
async createMemory(data) {
|
|
282
|
+
return this.request("/memories", {
|
|
283
|
+
method: "POST",
|
|
284
|
+
body: JSON.stringify(data)
|
|
285
|
+
});
|
|
276
286
|
}
|
|
277
287
|
/**
|
|
278
288
|
* Search memories
|
|
279
289
|
*/
|
|
280
290
|
async searchMemories(query) {
|
|
281
|
-
|
|
291
|
+
const result = await this.request(`/memories/search?q=${encodeURIComponent(query)}`);
|
|
292
|
+
return result.memories || [];
|
|
282
293
|
}
|
|
283
294
|
// ============================================
|
|
284
295
|
// Hooks Endpoints (Cloud-managed hooks)
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-LBTCSQAX.js";
|
|
12
12
|
import {
|
|
13
13
|
api
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QQZRCJZK.js";
|
|
15
15
|
import {
|
|
16
16
|
CONFIG_PATH,
|
|
17
17
|
clearAuth,
|
|
@@ -6935,7 +6935,7 @@ async function checkProjectExists(path15) {
|
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
6937
|
sessionsCommand.command("push").description("Sessions in Cloud sichern").option("-p, --project <pfad>", "Nur Sessions eines Projekts").action(async (options) => {
|
|
6938
|
-
const { api: api2 } = await import("./client-
|
|
6938
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
6939
6939
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
6940
6940
|
const { getProjectConfig: getProjectConfig2 } = await import("./config-D6M6LI6U.js");
|
|
6941
6941
|
if (!isAuthenticated2()) {
|
|
@@ -6995,7 +6995,7 @@ sessionsCommand.command("push").description("Sessions in Cloud sichern").option(
|
|
|
6995
6995
|
}
|
|
6996
6996
|
});
|
|
6997
6997
|
sessionsCommand.command("pull").description("Sessions aus Cloud laden").option("--json", "JSON Output").action(async (options) => {
|
|
6998
|
-
const { api: api2 } = await import("./client-
|
|
6998
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
6999
6999
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7000
7000
|
if (!isAuthenticated2()) {
|
|
7001
7001
|
log.error("Nicht angemeldet");
|
|
@@ -7042,7 +7042,7 @@ sessionsCommand.command("pull").description("Sessions aus Cloud laden").option("
|
|
|
7042
7042
|
}
|
|
7043
7043
|
});
|
|
7044
7044
|
sessionsCommand.command("sync").description("Sessions mit Cloud synchronisieren").option("-p, --project <pfad>", "Nur Sessions eines Projekts").action(async (options) => {
|
|
7045
|
-
const { api: api2 } = await import("./client-
|
|
7045
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7046
7046
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7047
7047
|
const { getProjectConfig: getProjectConfig2 } = await import("./config-D6M6LI6U.js");
|
|
7048
7048
|
if (!isAuthenticated2()) {
|
|
@@ -7095,7 +7095,7 @@ sessionsCommand.command("sync").description("Sessions mit Cloud synchronisieren"
|
|
|
7095
7095
|
log.dim("Sessions werden automatisch mit lokalen Claude Sessions verkn\xFCpft");
|
|
7096
7096
|
});
|
|
7097
7097
|
sessionsCommand.command("delete <sessionId>").description("Session aus Cloud l\xF6schen").action(async (sessionId) => {
|
|
7098
|
-
const { api: api2 } = await import("./client-
|
|
7098
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7099
7099
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7100
7100
|
if (!isAuthenticated2()) {
|
|
7101
7101
|
log.error("Nicht angemeldet");
|
|
@@ -7114,7 +7114,7 @@ sessionsCommand.command("delete <sessionId>").description("Session aus Cloud l\x
|
|
|
7114
7114
|
}
|
|
7115
7115
|
});
|
|
7116
7116
|
sessionsCommand.command("active").description("Aktive Cloud-Sessions anzeigen").option("--json", "JSON Output").action(async (options) => {
|
|
7117
|
-
const { api: api2 } = await import("./client-
|
|
7117
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7118
7118
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7119
7119
|
if (!isAuthenticated2()) {
|
|
7120
7120
|
log.error("Nicht angemeldet");
|
|
@@ -7151,7 +7151,7 @@ sessionsCommand.command("active").description("Aktive Cloud-Sessions anzeigen").
|
|
|
7151
7151
|
}
|
|
7152
7152
|
});
|
|
7153
7153
|
sessionsCommand.command("stats").description("Cloud-Session-Statistiken anzeigen").option("--json", "JSON Output").action(async (options) => {
|
|
7154
|
-
const { api: api2 } = await import("./client-
|
|
7154
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7155
7155
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7156
7156
|
if (!isAuthenticated2()) {
|
|
7157
7157
|
log.error("Nicht angemeldet");
|
|
@@ -7183,7 +7183,7 @@ sessionsCommand.command("stats").description("Cloud-Session-Statistiken anzeigen
|
|
|
7183
7183
|
}
|
|
7184
7184
|
});
|
|
7185
7185
|
sessionsCommand.command("resume <sessionId>").description("Cloud-Session fortsetzen").action(async (sessionId) => {
|
|
7186
|
-
const { api: api2 } = await import("./client-
|
|
7186
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7187
7187
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7188
7188
|
if (!isAuthenticated2()) {
|
|
7189
7189
|
log.error("Nicht angemeldet");
|
|
@@ -7207,7 +7207,7 @@ sessionsCommand.command("resume <sessionId>").description("Cloud-Session fortset
|
|
|
7207
7207
|
}
|
|
7208
7208
|
});
|
|
7209
7209
|
sessionsCommand.command("export <sessionId>").description("Cloud-Session exportieren").option("-o, --output <file>", "Ausgabedatei").action(async (sessionId, options) => {
|
|
7210
|
-
const { api: api2 } = await import("./client-
|
|
7210
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7211
7211
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7212
7212
|
const { writeFileSync: writeFileSync11 } = await import("fs");
|
|
7213
7213
|
if (!isAuthenticated2()) {
|
|
@@ -7231,7 +7231,7 @@ sessionsCommand.command("export <sessionId>").description("Cloud-Session exporti
|
|
|
7231
7231
|
}
|
|
7232
7232
|
});
|
|
7233
7233
|
sessionsCommand.command("update <sessionId>").description("Cloud-Session aktualisieren").option("--summary <text>", "Session-Zusammenfassung").option("--branch <name>", "Git Branch").action(async (sessionId, options) => {
|
|
7234
|
-
const { api: api2 } = await import("./client-
|
|
7234
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
7235
7235
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
7236
7236
|
if (!isAuthenticated2()) {
|
|
7237
7237
|
log.error("Nicht angemeldet");
|
|
@@ -11143,24 +11143,22 @@ async function getCloudMemories() {
|
|
|
11143
11143
|
}
|
|
11144
11144
|
const memories = [];
|
|
11145
11145
|
try {
|
|
11146
|
-
const
|
|
11147
|
-
for (const
|
|
11148
|
-
|
|
11149
|
-
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
}
|
|
11163
|
-
}
|
|
11146
|
+
const cloudMemories = await api.getAllMemories();
|
|
11147
|
+
for (const memory of cloudMemories) {
|
|
11148
|
+
memories.push({
|
|
11149
|
+
key: memory.title,
|
|
11150
|
+
// Map title -> key for compatibility
|
|
11151
|
+
value: memory.content,
|
|
11152
|
+
// Map content -> value for compatibility
|
|
11153
|
+
category: memory.tags?.join(", ") || "general",
|
|
11154
|
+
// Map tags -> category
|
|
11155
|
+
source: "cloud",
|
|
11156
|
+
projectName: memory.projectName || "Global",
|
|
11157
|
+
projectPath: "",
|
|
11158
|
+
// Not available from this endpoint
|
|
11159
|
+
projectId: memory.projectId || void 0,
|
|
11160
|
+
memoryId: memory.id
|
|
11161
|
+
});
|
|
11164
11162
|
}
|
|
11165
11163
|
} catch {
|
|
11166
11164
|
}
|
|
@@ -11198,14 +11196,17 @@ async function searchMemories(query, options = {}) {
|
|
|
11198
11196
|
try {
|
|
11199
11197
|
const cloudResults = await api.searchMemories(query);
|
|
11200
11198
|
const cloudMemories = cloudResults.map((m) => ({
|
|
11201
|
-
key: m.
|
|
11202
|
-
|
|
11203
|
-
|
|
11199
|
+
key: m.title,
|
|
11200
|
+
// Map title -> key for compatibility
|
|
11201
|
+
value: m.content,
|
|
11202
|
+
// Map content -> value for compatibility
|
|
11203
|
+
category: m.tags?.join(", ") || "general",
|
|
11204
|
+
// Map tags -> category
|
|
11204
11205
|
source: "cloud",
|
|
11205
|
-
projectName: m.projectName,
|
|
11206
|
+
projectName: m.projectName || "Global",
|
|
11206
11207
|
projectPath: "",
|
|
11207
11208
|
// Not returned by search API
|
|
11208
|
-
projectId: m.projectId,
|
|
11209
|
+
projectId: m.projectId || void 0,
|
|
11209
11210
|
memoryId: m.id
|
|
11210
11211
|
}));
|
|
11211
11212
|
allMemories.push(...cloudMemories);
|
|
@@ -12077,7 +12078,7 @@ async function resolveSessionId(input) {
|
|
|
12077
12078
|
return null;
|
|
12078
12079
|
}
|
|
12079
12080
|
tagsCommand.command("cloud").description("Memory-Tags aus Cloud laden").option("--json", "JSON Output").action(async (options) => {
|
|
12080
|
-
const { api: api2 } = await import("./client-
|
|
12081
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
12081
12082
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
12082
12083
|
if (!isAuthenticated2()) {
|
|
12083
12084
|
log.error("Nicht angemeldet");
|
|
@@ -12587,7 +12588,7 @@ async function handlePreview(filepath) {
|
|
|
12587
12588
|
|
|
12588
12589
|
// src/commands/memory/remember.ts
|
|
12589
12590
|
import { Command as Command27 } from "commander";
|
|
12590
|
-
var rememberCommand = new Command27("remember").description("Memory in der Cloud speichern").argument("<text>", "Der Text der gespeichert werden soll").option("-
|
|
12591
|
+
var rememberCommand = new Command27("remember").description("Memory in der Cloud speichern").argument("<text>", "Der Text der gespeichert werden soll").option("-t, --title <title>", "Titel f\xFCr die Memory").option("-g, --global", "Global speichern (nicht projektgebunden)").option("--tags <tags>", "Komma-separierte Tags").action(async (text, options) => {
|
|
12591
12592
|
if (!isAuthenticated()) {
|
|
12592
12593
|
log.error("Nicht angemeldet");
|
|
12593
12594
|
log.info("Anmelden mit: shiva login");
|
|
@@ -12595,21 +12596,27 @@ var rememberCommand = new Command27("remember").description("Memory in der Cloud
|
|
|
12595
12596
|
}
|
|
12596
12597
|
const projectPath = process.cwd();
|
|
12597
12598
|
const config = getProjectConfig(projectPath);
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
return;
|
|
12599
|
+
let projectId = null;
|
|
12600
|
+
if (!options.global && config.projectId) {
|
|
12601
|
+
projectId = config.projectId;
|
|
12602
12602
|
}
|
|
12603
|
-
const
|
|
12603
|
+
const title = options.title || text.substring(0, 100);
|
|
12604
|
+
const tags = options.tags ? options.tags.split(",").map((t) => t.trim()).filter(Boolean) : [];
|
|
12604
12605
|
try {
|
|
12605
|
-
const result = await api.
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12606
|
+
const result = await api.createMemory({
|
|
12607
|
+
title,
|
|
12608
|
+
content: text,
|
|
12609
|
+
projectId,
|
|
12610
|
+
tags
|
|
12609
12611
|
});
|
|
12610
12612
|
if (result.success) {
|
|
12611
12613
|
log.success("Memory gespeichert!");
|
|
12612
12614
|
log.dim(`ID: ${result.memoryId}`);
|
|
12615
|
+
if (projectId) {
|
|
12616
|
+
log.dim(`Projekt: ${config.projectName || projectId}`);
|
|
12617
|
+
} else {
|
|
12618
|
+
log.dim("Scope: Global");
|
|
12619
|
+
}
|
|
12613
12620
|
} else {
|
|
12614
12621
|
log.error(result.message || "Fehler beim Speichern");
|
|
12615
12622
|
}
|
|
@@ -13780,7 +13787,7 @@ function formatNumber(n) {
|
|
|
13780
13787
|
return String(n);
|
|
13781
13788
|
}
|
|
13782
13789
|
statsCommand.command("sessions").description("Session Analytics (Pro Feature)").option("--json", "JSON Output").action(async (options) => {
|
|
13783
|
-
const { api: api2 } = await import("./client-
|
|
13790
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
13784
13791
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
13785
13792
|
if (!isAuthenticated2()) {
|
|
13786
13793
|
log.error("Nicht angemeldet");
|
|
@@ -13832,7 +13839,7 @@ statsCommand.command("sessions").description("Session Analytics (Pro Feature)").
|
|
|
13832
13839
|
}
|
|
13833
13840
|
});
|
|
13834
13841
|
statsCommand.command("tokens").description("Token Usage Analytics (Pro Feature)").option("--json", "JSON Output").action(async (options) => {
|
|
13835
|
-
const { api: api2 } = await import("./client-
|
|
13842
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
13836
13843
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
13837
13844
|
if (!isAuthenticated2()) {
|
|
13838
13845
|
log.error("Nicht angemeldet");
|
|
@@ -13880,7 +13887,7 @@ statsCommand.command("tokens").description("Token Usage Analytics (Pro Feature)"
|
|
|
13880
13887
|
}
|
|
13881
13888
|
});
|
|
13882
13889
|
statsCommand.command("tools").description("Tool Usage Analytics (Pro Feature)").option("--json", "JSON Output").action(async (options) => {
|
|
13883
|
-
const { api: api2 } = await import("./client-
|
|
13890
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
13884
13891
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
13885
13892
|
if (!isAuthenticated2()) {
|
|
13886
13893
|
log.error("Nicht angemeldet");
|
|
@@ -13924,7 +13931,7 @@ statsCommand.command("tools").description("Tool Usage Analytics (Pro Feature)").
|
|
|
13924
13931
|
}
|
|
13925
13932
|
});
|
|
13926
13933
|
statsCommand.command("export").description("Analytics-Daten exportieren (Pro Feature)").option("--start <date>", "Start-Datum (YYYY-MM-DD)").option("--end <date>", "End-Datum (YYYY-MM-DD)").option("--format <format>", "Format: json, csv", "json").option("-o, --output <file>", "Ausgabedatei").action(async (options) => {
|
|
13927
|
-
const { api: api2 } = await import("./client-
|
|
13934
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
13928
13935
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
13929
13936
|
const { writeFileSync: writeFileSync11 } = await import("fs");
|
|
13930
13937
|
if (!isAuthenticated2()) {
|
|
@@ -13959,7 +13966,7 @@ statsCommand.command("export").description("Analytics-Daten exportieren (Pro Fea
|
|
|
13959
13966
|
}
|
|
13960
13967
|
});
|
|
13961
13968
|
statsCommand.command("track").description("Analytics Event tracken").argument("<type>", "Event-Typ").argument("[data]", "Event-Daten als JSON").action(async (type2, data) => {
|
|
13962
|
-
const { api: api2 } = await import("./client-
|
|
13969
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
13963
13970
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
13964
13971
|
if (!isAuthenticated2()) {
|
|
13965
13972
|
log.error("Nicht angemeldet");
|
|
@@ -15077,12 +15084,12 @@ hookCommand.command("branch-switch").description("Branch-Wechsel behandeln (f\xF
|
|
|
15077
15084
|
return;
|
|
15078
15085
|
}
|
|
15079
15086
|
const { getCurrentBranch: getCurrentBranch2 } = await import("./api-OEHQTBH7.js");
|
|
15080
|
-
const { getSessionForBranch: getSessionForBranch2, hasShivaDir:
|
|
15087
|
+
const { getSessionForBranch: getSessionForBranch2, hasShivaDir: hasShivaDir3 } = await import("./config-D6M6LI6U.js");
|
|
15081
15088
|
const { findProject: findProject3, findSessionByBranch: findSessionByBranch2, formatRelativeTime: formatRelativeTime3 } = await import("./manager-ZPQWG7E6.js");
|
|
15082
15089
|
const projectPath = process.cwd();
|
|
15083
15090
|
const newBranch = getCurrentBranch2(projectPath);
|
|
15084
15091
|
let sessionInfo = null;
|
|
15085
|
-
if (
|
|
15092
|
+
if (hasShivaDir3(projectPath)) {
|
|
15086
15093
|
const mappedSession = getSessionForBranch2(projectPath, newBranch);
|
|
15087
15094
|
if (mappedSession) {
|
|
15088
15095
|
sessionInfo = {
|
|
@@ -15118,13 +15125,20 @@ hookCommand.command("branch-switch").description("Branch-Wechsel behandeln (f\xF
|
|
|
15118
15125
|
`);
|
|
15119
15126
|
}
|
|
15120
15127
|
});
|
|
15121
|
-
hookCommand.command("scan-command").description("Scanne Bash-Befehle auf Package-Installationen (f\xFCr Hook)").argument("<
|
|
15128
|
+
hookCommand.command("scan-command").description("Scanne Bash-Befehle auf Package-Installationen (f\xFCr Hook)").argument("<tool-input>", "JSON Tool Input von Claude Code").action(async (toolInput) => {
|
|
15122
15129
|
const config = packageScanner.getConfig();
|
|
15123
15130
|
if (!config.enabled) {
|
|
15124
15131
|
console.log(JSON.stringify({ hookSpecificOutput: null }));
|
|
15125
15132
|
return;
|
|
15126
15133
|
}
|
|
15127
15134
|
try {
|
|
15135
|
+
let command;
|
|
15136
|
+
try {
|
|
15137
|
+
const parsed = JSON.parse(toolInput);
|
|
15138
|
+
command = parsed.command || toolInput;
|
|
15139
|
+
} catch {
|
|
15140
|
+
command = toolInput;
|
|
15141
|
+
}
|
|
15128
15142
|
if (!packageScanner.isInstallCommand(command)) {
|
|
15129
15143
|
console.log(JSON.stringify({ hookSpecificOutput: null }));
|
|
15130
15144
|
return;
|
|
@@ -15141,7 +15155,7 @@ hookCommand.command("scan-command").description("Scanne Bash-Befehle auf Package
|
|
|
15141
15155
|
}
|
|
15142
15156
|
});
|
|
15143
15157
|
hookCommand.command("push").description("Hooks in Cloud sichern").action(async () => {
|
|
15144
|
-
const { api: api2 } = await import("./client-
|
|
15158
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15145
15159
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15146
15160
|
if (!isAuthenticated2()) {
|
|
15147
15161
|
log.error("Nicht angemeldet");
|
|
@@ -15161,7 +15175,7 @@ hookCommand.command("push").description("Hooks in Cloud sichern").action(async (
|
|
|
15161
15175
|
}
|
|
15162
15176
|
});
|
|
15163
15177
|
hookCommand.command("pull").description("Hooks aus Cloud laden").option("-f, --force", "Lokale Hooks \xFCberschreiben").action(async (options) => {
|
|
15164
|
-
const { api: api2 } = await import("./client-
|
|
15178
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15165
15179
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15166
15180
|
if (!isAuthenticated2()) {
|
|
15167
15181
|
log.error("Nicht angemeldet");
|
|
@@ -15193,7 +15207,7 @@ hookCommand.command("pull").description("Hooks aus Cloud laden").option("-f, --f
|
|
|
15193
15207
|
}
|
|
15194
15208
|
});
|
|
15195
15209
|
hookCommand.command("sync").description("Hooks mit Cloud synchronisieren").action(async () => {
|
|
15196
|
-
const { api: api2 } = await import("./client-
|
|
15210
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15197
15211
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15198
15212
|
if (!isAuthenticated2()) {
|
|
15199
15213
|
log.error("Nicht angemeldet");
|
|
@@ -15220,7 +15234,7 @@ hookCommand.command("sync").description("Hooks mit Cloud synchronisieren").actio
|
|
|
15220
15234
|
}
|
|
15221
15235
|
});
|
|
15222
15236
|
hookCommand.command("cloud-list").description("Cloud-Hooks auflisten").option("--event <type>", "Nach Event-Typ filtern").option("--json", "JSON Output").action(async (options) => {
|
|
15223
|
-
const { api: api2 } = await import("./client-
|
|
15237
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15224
15238
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15225
15239
|
const { colors: colors3 } = await import("./logger-E7SC5KUO.js");
|
|
15226
15240
|
if (!isAuthenticated2()) {
|
|
@@ -15269,7 +15283,7 @@ hookCommand.command("cloud-list").description("Cloud-Hooks auflisten").option("-
|
|
|
15269
15283
|
}
|
|
15270
15284
|
});
|
|
15271
15285
|
hookCommand.command("cloud-create").description("Neuen Cloud-Hook erstellen").requiredOption("--event <event>", "Event-Typ (PreToolUse, PostToolUse, etc.)").requiredOption("--command <cmd>", "Auszuf\xFChrender Befehl").option("--matcher <pattern>", "Tool-Matcher Pattern").option("--type <type>", "Hook-Typ (command, script)", "command").option("--timeout <ms>", "Timeout in Millisekunden").action(async (options) => {
|
|
15272
|
-
const { api: api2 } = await import("./client-
|
|
15286
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15273
15287
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15274
15288
|
if (!isAuthenticated2()) {
|
|
15275
15289
|
log.error("Nicht angemeldet");
|
|
@@ -15297,7 +15311,7 @@ hookCommand.command("cloud-create").description("Neuen Cloud-Hook erstellen").re
|
|
|
15297
15311
|
}
|
|
15298
15312
|
});
|
|
15299
15313
|
hookCommand.command("cloud-test").description("Cloud-Hook testen").argument("<hook-id>", "Hook ID").action(async (hookId) => {
|
|
15300
|
-
const { api: api2 } = await import("./client-
|
|
15314
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15301
15315
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15302
15316
|
const { colors: colors3 } = await import("./logger-E7SC5KUO.js");
|
|
15303
15317
|
if (!isAuthenticated2()) {
|
|
@@ -15332,7 +15346,7 @@ hookCommand.command("cloud-test").description("Cloud-Hook testen").argument("<ho
|
|
|
15332
15346
|
}
|
|
15333
15347
|
});
|
|
15334
15348
|
hookCommand.command("cloud-delete").description("Cloud-Hook l\xF6schen").argument("<hook-id>", "Hook ID").option("-y, --yes", "Ohne Best\xE4tigung").action(async (hookId, options) => {
|
|
15335
|
-
const { api: api2 } = await import("./client-
|
|
15349
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15336
15350
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15337
15351
|
if (!isAuthenticated2()) {
|
|
15338
15352
|
log.error("Nicht angemeldet");
|
|
@@ -15367,7 +15381,7 @@ hookCommand.command("cloud-delete").description("Cloud-Hook l\xF6schen").argumen
|
|
|
15367
15381
|
}
|
|
15368
15382
|
});
|
|
15369
15383
|
hookCommand.command("cloud-toggle").description("Cloud-Hook aktivieren/deaktivieren").argument("<hook-id>", "Hook ID").option("--enable", "Hook aktivieren").option("--disable", "Hook deaktivieren").action(async (hookId, options) => {
|
|
15370
|
-
const { api: api2 } = await import("./client-
|
|
15384
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15371
15385
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15372
15386
|
if (!isAuthenticated2()) {
|
|
15373
15387
|
log.error("Nicht angemeldet");
|
|
@@ -15544,7 +15558,7 @@ packageCommand.command("start <name>").description("Alle Projekte eines Packages
|
|
|
15544
15558
|
}
|
|
15545
15559
|
});
|
|
15546
15560
|
packageCommand.command("push").description("Packages in Cloud sichern").option("-n, --name <name>", "Nur ein bestimmtes Package").action(async (options) => {
|
|
15547
|
-
const { api: api2 } = await import("./client-
|
|
15561
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15548
15562
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15549
15563
|
if (!isAuthenticated2()) {
|
|
15550
15564
|
log.error("Nicht angemeldet");
|
|
@@ -15590,7 +15604,7 @@ packageCommand.command("push").description("Packages in Cloud sichern").option("
|
|
|
15590
15604
|
}
|
|
15591
15605
|
});
|
|
15592
15606
|
packageCommand.command("pull").description("Packages aus Cloud laden").option("-f, --force", "Lokale Packages \xFCberschreiben").option("--json", "JSON Output").action(async (options) => {
|
|
15593
|
-
const { api: api2 } = await import("./client-
|
|
15607
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15594
15608
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15595
15609
|
if (!isAuthenticated2()) {
|
|
15596
15610
|
log.error("Nicht angemeldet");
|
|
@@ -15652,7 +15666,7 @@ packageCommand.command("pull").description("Packages aus Cloud laden").option("-
|
|
|
15652
15666
|
}
|
|
15653
15667
|
});
|
|
15654
15668
|
packageCommand.command("sync").description("Packages mit Cloud synchronisieren").action(async () => {
|
|
15655
|
-
const { api: api2 } = await import("./client-
|
|
15669
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15656
15670
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15657
15671
|
if (!isAuthenticated2()) {
|
|
15658
15672
|
log.error("Nicht angemeldet");
|
|
@@ -15705,7 +15719,7 @@ packageCommand.command("sync").description("Packages mit Cloud synchronisieren")
|
|
|
15705
15719
|
log.tree.item(`${localPackages.length + pulledCount} Packages total`);
|
|
15706
15720
|
});
|
|
15707
15721
|
packageCommand.command("cloud-delete <name>").description("Package aus Cloud l\xF6schen").action(async (name) => {
|
|
15708
|
-
const { api: api2 } = await import("./client-
|
|
15722
|
+
const { api: api2 } = await import("./client-GIGZFXT5.js");
|
|
15709
15723
|
const { isAuthenticated: isAuthenticated2 } = await import("./config-FGMZONWV.js");
|
|
15710
15724
|
if (!isAuthenticated2()) {
|
|
15711
15725
|
log.error("Nicht angemeldet");
|
|
@@ -16116,7 +16130,7 @@ sandboxCommand.command("delete <id>").description("Sandbox l\xF6schen").option("
|
|
|
16116
16130
|
|
|
16117
16131
|
// src/index.ts
|
|
16118
16132
|
var program = new Command39();
|
|
16119
|
-
program.name("shiva").description("SHIVA Code - Control Station for Claude Code").version("0.6.
|
|
16133
|
+
program.name("shiva").description("SHIVA Code - Control Station for Claude Code").version("0.6.5");
|
|
16120
16134
|
program.addCommand(loginCommand);
|
|
16121
16135
|
program.addCommand(logoutCommand);
|
|
16122
16136
|
program.addCommand(sessionsCommand);
|