shiva-code 0.2.1 → 0.3.0

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,26 @@
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
+ export {
16
+ addProjectToPackage,
17
+ createPackage,
18
+ deletePackage,
19
+ findPackagesWithProject,
20
+ getAllPackages,
21
+ getPackage,
22
+ getPackageLaunchConfig,
23
+ getPackageStats,
24
+ removeProjectFromPackage,
25
+ updatePackage
26
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ addToGitignore,
3
+ cacheGitHubContext,
4
+ clearContextCache,
5
+ getAllBranchSessions,
6
+ getCachedGitHubContext,
7
+ getContextCacheAge,
8
+ getProjectConfig,
9
+ getSessionForBranch,
10
+ getShivaDir,
11
+ hasShivaDir,
12
+ initShivaDir,
13
+ mapBranchToSession,
14
+ removeBranchSession,
15
+ removeFromGitignore,
16
+ removeShivaDir,
17
+ saveProjectConfig,
18
+ updateBranchSession,
19
+ updateProjectConfig
20
+ } from "./chunk-KXYP4OCK.js";
21
+ export {
22
+ addToGitignore,
23
+ cacheGitHubContext,
24
+ clearContextCache,
25
+ getAllBranchSessions,
26
+ getCachedGitHubContext,
27
+ getContextCacheAge,
28
+ getProjectConfig,
29
+ getSessionForBranch,
30
+ getShivaDir,
31
+ hasShivaDir,
32
+ initShivaDir,
33
+ mapBranchToSession,
34
+ removeBranchSession,
35
+ removeFromGitignore,
36
+ removeShivaDir,
37
+ saveProjectConfig,
38
+ updateBranchSession,
39
+ updateProjectConfig
40
+ };
@@ -0,0 +1,45 @@
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
+ export {
25
+ decodeProjectPath,
26
+ encodeProjectPath,
27
+ findProject,
28
+ findProjectForCurrentDir,
29
+ findSessionByBranch,
30
+ formatDate,
31
+ formatRecoveredContextAsMarkdown,
32
+ formatRelativeTime,
33
+ getAllClaudeProjects,
34
+ getClaudeProjectsPath,
35
+ getProjectName,
36
+ getRecoveredContext,
37
+ getSessionFilePath,
38
+ getSessionIndex,
39
+ getSessionStats,
40
+ invalidateSessionsCache,
41
+ isSessionActive,
42
+ isSessionCorrupted,
43
+ parseSessionFile,
44
+ saveRecoveredContext
45
+ };
@@ -0,0 +1,28 @@
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
+ export {
16
+ addTagToSession,
17
+ deleteTag,
18
+ getAllTags,
19
+ getSessionTags,
20
+ getSessionsByTag,
21
+ getTagCounts,
22
+ getTagMeta,
23
+ removeTagFromSession,
24
+ renameTag,
25
+ sessionHasAllTags,
26
+ sessionHasAnyTag,
27
+ setTagMeta
28
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiva-code",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
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": {
@@ -28,8 +31,10 @@
28
31
  },
29
32
  "devDependencies": {
30
33
  "@types/node": "^22.10.0",
34
+ "@vitest/coverage-v8": "^3.0.0",
31
35
  "tsup": "^8.3.5",
32
- "typescript": "^5.7.2"
36
+ "typescript": "^5.7.2",
37
+ "vitest": "^3.0.0"
33
38
  },
34
39
  "engines": {
35
40
  "node": ">=18"