@hippocampusllms/cli 0.0.0-stage → 0.1.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,212 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "format": "uuid",
8
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9
+ },
10
+ "schemaVersion": { "type": "number", "const": 1 },
11
+ "revision": {
12
+ "type": "integer",
13
+ "exclusiveMinimum": 0,
14
+ "maximum": 9007199254740991
15
+ },
16
+ "projectId": {
17
+ "type": "string",
18
+ "format": "uuid",
19
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
20
+ },
21
+ "workspaceId": { "type": "string", "maxLength": 200 },
22
+ "scope": {
23
+ "type": "object",
24
+ "properties": {
25
+ "level": { "type": "string", "enum": ["project", "component"] },
26
+ "component": { "type": "string", "maxLength": 200 }
27
+ },
28
+ "required": ["level"],
29
+ "additionalProperties": false
30
+ },
31
+ "applicability": {
32
+ "type": "object",
33
+ "properties": {
34
+ "environments": {
35
+ "maxItems": 20,
36
+ "type": "array",
37
+ "items": { "type": "string", "maxLength": 200 }
38
+ },
39
+ "workspaces": {
40
+ "maxItems": 20,
41
+ "type": "array",
42
+ "items": { "type": "string", "maxLength": 200 }
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "kind": {
48
+ "type": "string",
49
+ "enum": [
50
+ "decision",
51
+ "constraint",
52
+ "episode",
53
+ "procedure",
54
+ "correction",
55
+ "task"
56
+ ]
57
+ },
58
+ "content": { "type": "string", "minLength": 8, "maxLength": 8000 },
59
+ "rationale": { "type": "string", "maxLength": 4000 },
60
+ "cues": {
61
+ "maxItems": 30,
62
+ "type": "array",
63
+ "items": { "type": "string", "maxLength": 200 }
64
+ },
65
+ "entities": {
66
+ "maxItems": 30,
67
+ "type": "array",
68
+ "items": { "type": "string", "maxLength": 200 }
69
+ },
70
+ "evidence": {
71
+ "maxItems": 30,
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "type": {
77
+ "type": "string",
78
+ "enum": ["commit", "path", "test", "issue", "user", "other"]
79
+ },
80
+ "reference": { "type": "string", "minLength": 1, "maxLength": 2000 },
81
+ "observedAt": {
82
+ "type": "string",
83
+ "format": "date-time",
84
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
85
+ },
86
+ "contentHash": { "type": "string", "maxLength": 128 }
87
+ },
88
+ "required": ["type", "reference"],
89
+ "additionalProperties": false
90
+ }
91
+ },
92
+ "verification": {
93
+ "type": "string",
94
+ "enum": ["hypothesis", "observed", "confirmed"]
95
+ },
96
+ "status": {
97
+ "type": "string",
98
+ "enum": ["active", "superseded", "archived", "expired"]
99
+ },
100
+ "createdAt": {
101
+ "type": "string",
102
+ "format": "date-time",
103
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
104
+ },
105
+ "updatedAt": {
106
+ "type": "string",
107
+ "format": "date-time",
108
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
109
+ },
110
+ "validFrom": {
111
+ "type": "string",
112
+ "format": "date-time",
113
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
114
+ },
115
+ "validUntil": {
116
+ "type": "string",
117
+ "format": "date-time",
118
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
119
+ },
120
+ "lastVerifiedAt": {
121
+ "type": "string",
122
+ "format": "date-time",
123
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
124
+ },
125
+ "createdBy": {
126
+ "type": "object",
127
+ "properties": {
128
+ "client": { "type": "string", "maxLength": 100 },
129
+ "agentId": { "type": "string", "maxLength": 100 },
130
+ "sessionId": { "type": "string", "maxLength": 100 }
131
+ },
132
+ "required": ["client"],
133
+ "additionalProperties": false
134
+ },
135
+ "pinned": { "type": "boolean" },
136
+ "expiresAt": {
137
+ "type": "string",
138
+ "format": "date-time",
139
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
140
+ },
141
+ "lastRecalledAt": {
142
+ "type": "string",
143
+ "format": "date-time",
144
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
145
+ },
146
+ "recallCount": {
147
+ "type": "integer",
148
+ "minimum": 0,
149
+ "maximum": 9007199254740991
150
+ },
151
+ "relations": {
152
+ "maxItems": 30,
153
+ "type": "array",
154
+ "items": {
155
+ "type": "object",
156
+ "properties": {
157
+ "type": {
158
+ "type": "string",
159
+ "enum": ["supports", "supersedes", "contradicts", "derived_from"]
160
+ },
161
+ "targetId": {
162
+ "type": "string",
163
+ "format": "uuid",
164
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
165
+ }
166
+ },
167
+ "required": ["type", "targetId"],
168
+ "additionalProperties": false
169
+ }
170
+ },
171
+ "idempotencyKey": { "type": "string", "maxLength": 200 },
172
+ "utilityFeedback": {
173
+ "maxItems": 100,
174
+ "type": "array",
175
+ "items": {
176
+ "type": "object",
177
+ "properties": {
178
+ "useful": { "type": "boolean" },
179
+ "observedAt": {
180
+ "type": "string",
181
+ "format": "date-time",
182
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
183
+ }
184
+ },
185
+ "required": ["useful", "observedAt"],
186
+ "additionalProperties": false
187
+ }
188
+ }
189
+ },
190
+ "required": [
191
+ "id",
192
+ "schemaVersion",
193
+ "revision",
194
+ "projectId",
195
+ "scope",
196
+ "applicability",
197
+ "kind",
198
+ "content",
199
+ "cues",
200
+ "entities",
201
+ "evidence",
202
+ "verification",
203
+ "status",
204
+ "createdAt",
205
+ "updatedAt",
206
+ "createdBy",
207
+ "pinned",
208
+ "recallCount",
209
+ "relations"
210
+ ],
211
+ "additionalProperties": false
212
+ }
package/package.json CHANGED
@@ -1,6 +1,21 @@
1
1
  {
2
2
  "name": "@hippocampusllms/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Local project memory for coding agents",
6
+ "license": "MIT",
7
+ "engines": {
8
+ "node": ">=24"
9
+ },
10
+ "bin": {
11
+ "hippocampus": "dist/index.js"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "README.md"
16
+ ],
17
+ "dependencies": {
18
+ "@modelcontextprotocol/sdk": "1.32.2",
19
+ "zod": "4.6.7"
20
+ }
21
+ }