@hasna/mementos 0.14.43 → 0.14.45

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,7 @@
1
+ import { type ProjectPanel } from "@hasna/contracts";
2
+ export interface MementosProjectPanelOptions {
3
+ limit?: number;
4
+ }
5
+ export declare function createMementosProjectPanel(projectRef: string, options?: MementosProjectPanelOptions): ProjectPanel;
6
+ export declare function formatMementosProjectPanel(panel: ProjectPanel): string;
7
+ //# sourceMappingURL=project-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-panel.d.ts","sourceRoot":"","sources":["../../src/lib/project-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAwGD,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,2BAAgC,GAAG,YAAY,CAkGtH;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAgBtE"}
package/dist/mcp/index.js CHANGED
@@ -26276,7 +26276,7 @@ class JSONSchemaGenerator {
26276
26276
  if (val === undefined) {
26277
26277
  if (this.unrepresentable === "throw") {
26278
26278
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
26279
- } else {}
26279
+ }
26280
26280
  } else if (typeof val === "bigint") {
26281
26281
  if (this.unrepresentable === "throw") {
26282
26282
  throw new Error("BigInt literals cannot be represented in JSON Schema");
@@ -46527,7 +46527,7 @@ var require_tracestate_impl = __commonJS((exports) => {
46527
46527
  const value = listMember.slice(i + 1, part.length);
46528
46528
  if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
46529
46529
  agg.set(key, value);
46530
- } else {}
46530
+ }
46531
46531
  }
46532
46532
  return agg;
46533
46533
  }, new Map);
@@ -22976,7 +22976,7 @@ class JSONSchemaGenerator {
22976
22976
  if (val === undefined) {
22977
22977
  if (this.unrepresentable === "throw") {
22978
22978
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
22979
- } else {}
22979
+ }
22980
22980
  } else if (typeof val === "bigint") {
22981
22981
  if (this.unrepresentable === "throw") {
22982
22982
  throw new Error("BigInt literals cannot be represented in JSON Schema");
@@ -43227,7 +43227,7 @@ var require_tracestate_impl = __commonJS((exports) => {
43227
43227
  const value = listMember.slice(i + 1, part.length);
43228
43228
  if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
43229
43229
  agg.set(key, value);
43230
- } else {}
43230
+ }
43231
43231
  }
43232
43232
  return agg;
43233
43233
  }, new Map);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mementos",
3
- "version": "0.14.43",
3
+ "version": "0.14.45",
4
4
  "description": "Universal memory system for AI agents - CLI + MCP server + library API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,6 +34,7 @@
34
34
  "clean": "rm -rf dist",
35
35
  "build": "bun run clean && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun && bun build src/index.ts src/storage.ts --outdir dist --target bun && bun build src/sdk/index.ts --outdir dist/sdk --target bun && tsc --emitDeclarationOnly --outDir dist",
36
36
  "prepare": "bun run build",
37
+ "prepublishOnly": "bun run typecheck && bun run test",
37
38
  "typecheck": "tsc --noEmit",
38
39
  "test": "bun test --isolate --timeout=10000",
39
40
  "dev:cli": "bun run src/cli/index.tsx",
@@ -74,6 +75,7 @@
74
75
  "@ai-sdk/anthropic": "^3.0.82",
75
76
  "@ai-sdk/openai": "^3.0.69",
76
77
  "@ai-sdk/openai-compatible": "^2.0.48",
78
+ "@hasna/contracts": "^0.2.2",
77
79
  "@hasna/events": "^0.1.6",
78
80
  "@modelcontextprotocol/sdk": "^1.12.1",
79
81
  "ai": "^6.0.199",