hive-memory 1.0.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,73 @@
1
+ export interface ProjectEntry {
2
+ id: string;
3
+ name: string;
4
+ path: string;
5
+ description: string;
6
+ tags: string[];
7
+ lastActive: string;
8
+ status: "active" | "paused" | "archived";
9
+ groupIds?: string[];
10
+ }
11
+ export interface ProjectIndex {
12
+ projects: ProjectEntry[];
13
+ }
14
+ export interface SessionSummary {
15
+ date: string;
16
+ summary: string;
17
+ nextTasks: string[];
18
+ decisions: string[];
19
+ learnings: string[];
20
+ }
21
+ export interface ProjectSummary {
22
+ id: string;
23
+ oneLiner: string;
24
+ techStack: string[];
25
+ modules: string[];
26
+ currentFocus: string;
27
+ lastSession: {
28
+ date: string;
29
+ summary: string;
30
+ nextTasks: string[];
31
+ } | null;
32
+ stats: Record<string, unknown>;
33
+ }
34
+ export type MemoryCategory = "decision" | "learning" | "status" | "note";
35
+ export interface MemoryEntry {
36
+ id: string;
37
+ project: string;
38
+ category: MemoryCategory;
39
+ content: string;
40
+ tags: string[];
41
+ createdAt: string;
42
+ }
43
+ export interface GroupEntry {
44
+ id: string;
45
+ name: string;
46
+ description: string;
47
+ tags: string[];
48
+ projectIds: string[];
49
+ createdAt: string;
50
+ lastActive: string;
51
+ }
52
+ export interface GroupIndex {
53
+ groups: GroupEntry[];
54
+ }
55
+ export interface OnboardCandidate {
56
+ path: string;
57
+ suggestedId: string;
58
+ suggestedName: string;
59
+ description: string;
60
+ techStack: string[];
61
+ modules: string[];
62
+ tags: string[];
63
+ alreadyRegistered: boolean;
64
+ }
65
+ export interface LocalContextConfig {
66
+ /** Filename written into each project directory */
67
+ filename: ".cortex.md";
68
+ }
69
+ export interface CortexConfig {
70
+ dataDir: string;
71
+ localContext: LocalContextConfig;
72
+ }
73
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":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I,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,kBAAkB,CAAC;CAClC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "hive-memory",
3
+ "version": "1.0.0",
4
+ "description": "Cross-project memory layer for AI coding agents — MCP server that maintains context, decisions, and knowledge across workspaces",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "hive-memory": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc",
17
+ "build:native": "cd native && npm install && npm run build",
18
+ "build:all": "npm run build:native && npm run build",
19
+ "dev": "tsx watch src/index.ts",
20
+ "start": "node dist/index.js",
21
+ "test": "vitest",
22
+ "lint": "eslint src/",
23
+ "typecheck": "tsc --noEmit",
24
+ "prepublishOnly": "npm run build"
25
+ },
26
+ "keywords": [
27
+ "mcp",
28
+ "memory",
29
+ "ai-agent",
30
+ "claude-code",
31
+ "claude",
32
+ "codex",
33
+ "knowledge-management",
34
+ "cross-project",
35
+ "context",
36
+ "model-context-protocol"
37
+ ],
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/moonx010/hive-memory.git"
41
+ },
42
+ "homepage": "https://github.com/moonx010/hive-memory#readme",
43
+ "bugs": {
44
+ "url": "https://github.com/moonx010/hive-memory/issues"
45
+ },
46
+ "engines": {
47
+ "node": ">=18.0.0"
48
+ },
49
+ "license": "MIT",
50
+ "dependencies": {
51
+ "@modelcontextprotocol/sdk": "^1.12.0"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^22.0.0",
55
+ "tsx": "^4.19.0",
56
+ "typescript": "^5.7.0",
57
+ "vitest": "^3.0.0"
58
+ }
59
+ }