shiva-code 0.2.2 → 0.4.1

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.
@@ -0,0 +1,27 @@
1
+ import {
2
+ addProjectToPackage,
3
+ createPackage,
4
+ deletePackage,
5
+ findPackagesWithProject,
6
+ getAllPackages,
7
+ getPackage,
8
+ getPackageLaunchConfig,
9
+ getPackageStats,
10
+ removeProjectFromPackage,
11
+ updatePackage
12
+ } from "./chunk-GHAT2D55.js";
13
+ import "./chunk-MDMZWOX7.js";
14
+ import "./chunk-G2G6UUWM.js";
15
+ import "./chunk-3RG5ZIWI.js";
16
+ export {
17
+ addProjectToPackage,
18
+ createPackage,
19
+ deletePackage,
20
+ findPackagesWithProject,
21
+ getAllPackages,
22
+ getPackage,
23
+ getPackageLaunchConfig,
24
+ getPackageStats,
25
+ removeProjectFromPackage,
26
+ updatePackage
27
+ };
@@ -0,0 +1,83 @@
1
+ import {
2
+ addDockerMount,
3
+ addToGitignore,
4
+ cacheGitHubContext,
5
+ clearContextCache,
6
+ getAllBranchSessions,
7
+ getAnalyticsConfig,
8
+ getAnalyticsFilePath,
9
+ getAnalyticsSummaryPath,
10
+ getCachedGitHubContext,
11
+ getContextCacheAge,
12
+ getProjectConfig,
13
+ getProjectConfigV2,
14
+ getProjectDockerConfig,
15
+ getSecurityConfig,
16
+ getSessionConfig,
17
+ getSessionForBranch,
18
+ getShivaDir,
19
+ hasShivaDir,
20
+ initShivaDir,
21
+ isV2Config,
22
+ mapBranchToSession,
23
+ removeBranchSession,
24
+ removeDockerMount,
25
+ removeFromGitignore,
26
+ removeShivaDir,
27
+ resetSessionBudget,
28
+ saveProjectConfig,
29
+ saveProjectConfigV2,
30
+ updateAnalyticsConfig,
31
+ updateApproval,
32
+ updateBranchSession,
33
+ updatePermissions,
34
+ updateProjectConfig,
35
+ updateProjectConfigV2,
36
+ updateProjectDockerConfig,
37
+ updateSecurityConfig,
38
+ updateSessionBudget,
39
+ updateSessionLimits,
40
+ updateTimeControl
41
+ } from "./chunk-ZWOPK4GS.js";
42
+ import "./chunk-3RG5ZIWI.js";
43
+ export {
44
+ addDockerMount,
45
+ addToGitignore,
46
+ cacheGitHubContext,
47
+ clearContextCache,
48
+ getAllBranchSessions,
49
+ getAnalyticsConfig,
50
+ getAnalyticsFilePath,
51
+ getAnalyticsSummaryPath,
52
+ getCachedGitHubContext,
53
+ getContextCacheAge,
54
+ getProjectConfig,
55
+ getProjectConfigV2,
56
+ getProjectDockerConfig,
57
+ getSecurityConfig,
58
+ getSessionConfig,
59
+ getSessionForBranch,
60
+ getShivaDir,
61
+ hasShivaDir,
62
+ initShivaDir,
63
+ isV2Config,
64
+ mapBranchToSession,
65
+ removeBranchSession,
66
+ removeDockerMount,
67
+ removeFromGitignore,
68
+ removeShivaDir,
69
+ resetSessionBudget,
70
+ saveProjectConfig,
71
+ saveProjectConfigV2,
72
+ updateAnalyticsConfig,
73
+ updateApproval,
74
+ updateBranchSession,
75
+ updatePermissions,
76
+ updateProjectConfig,
77
+ updateProjectConfigV2,
78
+ updateProjectDockerConfig,
79
+ updateSecurityConfig,
80
+ updateSessionBudget,
81
+ updateSessionLimits,
82
+ updateTimeControl
83
+ };
@@ -0,0 +1,46 @@
1
+ import {
2
+ decodeProjectPath,
3
+ encodeProjectPath,
4
+ findProject,
5
+ findProjectForCurrentDir,
6
+ findSessionByBranch,
7
+ formatDate,
8
+ formatRecoveredContextAsMarkdown,
9
+ formatRelativeTime,
10
+ getAllClaudeProjects,
11
+ getClaudeProjectsPath,
12
+ getProjectName,
13
+ getRecoveredContext,
14
+ getSessionFilePath,
15
+ getSessionIndex,
16
+ getSessionStats,
17
+ invalidateSessionsCache,
18
+ isSessionActive,
19
+ isSessionCorrupted,
20
+ parseSessionFile,
21
+ saveRecoveredContext
22
+ } from "./chunk-MDMZWOX7.js";
23
+ import "./chunk-G2G6UUWM.js";
24
+ import "./chunk-3RG5ZIWI.js";
25
+ export {
26
+ decodeProjectPath,
27
+ encodeProjectPath,
28
+ findProject,
29
+ findProjectForCurrentDir,
30
+ findSessionByBranch,
31
+ formatDate,
32
+ formatRecoveredContextAsMarkdown,
33
+ formatRelativeTime,
34
+ getAllClaudeProjects,
35
+ getClaudeProjectsPath,
36
+ getProjectName,
37
+ getRecoveredContext,
38
+ getSessionFilePath,
39
+ getSessionIndex,
40
+ getSessionStats,
41
+ invalidateSessionsCache,
42
+ isSessionActive,
43
+ isSessionCorrupted,
44
+ parseSessionFile,
45
+ saveRecoveredContext
46
+ };
@@ -0,0 +1,29 @@
1
+ import {
2
+ addTagToSession,
3
+ deleteTag,
4
+ getAllTags,
5
+ getSessionTags,
6
+ getSessionsByTag,
7
+ getTagCounts,
8
+ getTagMeta,
9
+ removeTagFromSession,
10
+ renameTag,
11
+ sessionHasAllTags,
12
+ sessionHasAnyTag,
13
+ setTagMeta
14
+ } from "./chunk-4GL27U2Z.js";
15
+ import "./chunk-3RG5ZIWI.js";
16
+ export {
17
+ addTagToSession,
18
+ deleteTag,
19
+ getAllTags,
20
+ getSessionTags,
21
+ getSessionsByTag,
22
+ getTagCounts,
23
+ getTagMeta,
24
+ removeTagFromSession,
25
+ renameTag,
26
+ sessionHasAllTags,
27
+ sessionHasAnyTag,
28
+ setTagMeta
29
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiva-code",
3
- "version": "0.2.2",
3
+ "version": "0.4.1",
4
4
  "description": "Makes Claude Code Persistent - Cross-Project Memory CLI",
5
5
  "author": "SHIVA AI",
6
6
  "license": "MIT",
@@ -16,6 +16,9 @@
16
16
  "dev": "tsup src/index.ts --format esm --watch",
17
17
  "start": "node dist/index.js",
18
18
  "typecheck": "tsc --noEmit",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest",
21
+ "test:coverage": "vitest run --coverage",
19
22
  "prepublishOnly": "npm run build"
20
23
  },
21
24
  "dependencies": {
@@ -23,13 +26,16 @@
23
26
  "commander": "^12.1.0",
24
27
  "conf": "^13.0.1",
25
28
  "inquirer": "^12.3.0",
29
+ "minimatch": "^10.0.1",
26
30
  "open": "^10.1.0",
27
31
  "ora": "^8.1.1"
28
32
  },
29
33
  "devDependencies": {
30
34
  "@types/node": "^22.10.0",
35
+ "@vitest/coverage-v8": "^3.0.0",
31
36
  "tsup": "^8.3.5",
32
- "typescript": "^5.7.2"
37
+ "typescript": "^5.7.2",
38
+ "vitest": "^3.0.0"
33
39
  },
34
40
  "engines": {
35
41
  "node": ">=18"