@gamaze/hicortex 0.3.4 → 0.3.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.
@@ -84,7 +84,7 @@ function createMcpServer() {
84
84
  // -- hicortex_search --
85
85
  server.tool("hicortex_search", "Search long-term memory using semantic similarity. Returns the most relevant memories from past sessions.", {
86
86
  query: zod_1.z.string().describe("Search query text"),
87
- limit: zod_1.z.number().optional().describe("Max results (default 5)"),
87
+ limit: zod_1.z.coerce.number().optional().describe("Max results (default 5)"),
88
88
  project: zod_1.z.string().optional().describe("Filter by project name"),
89
89
  }, async ({ query, limit, project }) => {
90
90
  if (!db)
@@ -100,7 +100,7 @@ function createMcpServer() {
100
100
  // -- hicortex_context --
101
101
  server.tool("hicortex_context", "Get recent context memories, optionally filtered by project. Useful to recall what happened recently.", {
102
102
  project: zod_1.z.string().optional().describe("Filter by project name"),
103
- limit: zod_1.z.number().optional().describe("Max results (default 10)"),
103
+ limit: zod_1.z.coerce.number().optional().describe("Max results (default 10)"),
104
104
  }, async ({ project, limit }) => {
105
105
  if (!db)
106
106
  return { content: [{ type: "text", text: "Hicortex not initialized" }], isError: true };
@@ -148,7 +148,7 @@ function createMcpServer() {
148
148
  });
149
149
  // -- hicortex_lessons --
150
150
  server.tool("hicortex_lessons", "Get actionable lessons learned from past sessions. Auto-generated insights about mistakes to avoid.", {
151
- days: zod_1.z.number().optional().describe("Look back N days (default 7)"),
151
+ days: zod_1.z.coerce.number().optional().describe("Look back N days (default 7)"),
152
152
  project: zod_1.z.string().optional().describe("Filter by project name"),
153
153
  }, async ({ days, project }) => {
154
154
  if (!db)
@@ -2,7 +2,7 @@
2
2
  "id": "hicortex",
3
3
  "name": "Hicortex — Long-term Memory That Learns",
4
4
  "description": "Your agents remember past decisions, avoid repeated mistakes, and get smarter every day. Nightly reflection generates actionable lessons that automatically update agent behavior.",
5
- "version": "0.3.4",
5
+ "version": "0.3.5",
6
6
  "kind": "lifecycle",
7
7
  "skills": ["./skills/hicortex-memory", "./skills/hicortex-learn", "./skills/hicortex-activate"],
8
8
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamaze/hicortex",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Human-like memory for self-improving AI agents. Automatic capturing, nightly reflection, and cross-agent learning. Works with Claude Code and OpenClaw.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {