@remnic/import-supermemory 0.1.1
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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +131 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Joshua Warren
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ImporterAdapter, ImportedMemory } from '@remnic/core';
|
|
2
|
+
|
|
3
|
+
interface SupermemoryRecord {
|
|
4
|
+
id?: string;
|
|
5
|
+
memory?: string;
|
|
6
|
+
content?: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
containerTags?: string[];
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
interface ParsedSupermemoryExport {
|
|
16
|
+
memories: SupermemoryRecord[];
|
|
17
|
+
importedFromPath?: string;
|
|
18
|
+
}
|
|
19
|
+
declare function parseSupermemoryExport(input: unknown, filePath?: string): ParsedSupermemoryExport;
|
|
20
|
+
|
|
21
|
+
declare const adapter: ImporterAdapter<ParsedSupermemoryExport>;
|
|
22
|
+
declare const supermemoryAdapter: ImporterAdapter<ParsedSupermemoryExport>;
|
|
23
|
+
|
|
24
|
+
declare function transformSupermemoryExport(parsed: ParsedSupermemoryExport): ImportedMemory[];
|
|
25
|
+
|
|
26
|
+
export { adapter, parseSupermemoryExport, supermemoryAdapter, transformSupermemoryExport };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// openclaw-engram: Local-first memory plugin
|
|
2
|
+
|
|
3
|
+
// src/adapter.ts
|
|
4
|
+
import { defaultWriteMemoriesToOrchestrator } from "@remnic/core";
|
|
5
|
+
|
|
6
|
+
// src/parser.ts
|
|
7
|
+
function parseSupermemoryExport(input, filePath) {
|
|
8
|
+
if (input == null) {
|
|
9
|
+
throw new Error("Supermemory import requires JSON input. Pass --file <supermemory-export.json>.");
|
|
10
|
+
}
|
|
11
|
+
const raw = coerceJson(input);
|
|
12
|
+
const memories = [];
|
|
13
|
+
if (Array.isArray(raw)) {
|
|
14
|
+
append(memories, raw);
|
|
15
|
+
return { memories, ...filePath ? { importedFromPath: filePath } : {} };
|
|
16
|
+
} else if (raw && typeof raw === "object") {
|
|
17
|
+
const obj = raw;
|
|
18
|
+
let sawKnownKey = false;
|
|
19
|
+
for (const key of ["memoryEntries", "memories", "results", "data"]) {
|
|
20
|
+
if (key in obj) {
|
|
21
|
+
sawKnownKey = true;
|
|
22
|
+
if (!Array.isArray(obj[key])) {
|
|
23
|
+
throw new Error(`Supermemory export key '${key}' must be an array.`);
|
|
24
|
+
}
|
|
25
|
+
append(memories, obj[key]);
|
|
26
|
+
return { memories, ...filePath ? { importedFromPath: filePath } : {} };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (!sawKnownKey) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
"Supermemory export object has no recognized memory key. Expected one of 'memoryEntries', 'memories', 'results', or 'data'."
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
throw new Error(`Supermemory export must be a JSON array or object; received ${describeType(raw)}.`);
|
|
36
|
+
}
|
|
37
|
+
function append(dest, src) {
|
|
38
|
+
for (const item of src) {
|
|
39
|
+
if (item && typeof item === "object") dest.push(item);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function coerceJson(input) {
|
|
43
|
+
if (typeof input !== "string") return input;
|
|
44
|
+
try {
|
|
45
|
+
return JSON.parse(input);
|
|
46
|
+
} catch (err) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
`Supermemory export is not valid JSON: ${err instanceof Error ? err.message : String(err)}`
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function describeType(value) {
|
|
53
|
+
if (value === null) return "null";
|
|
54
|
+
return typeof value;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// src/transform.ts
|
|
58
|
+
var SUPERMEMORY_SOURCE_LABEL = "supermemory";
|
|
59
|
+
function transformSupermemoryExport(parsed) {
|
|
60
|
+
const out = [];
|
|
61
|
+
for (const row of parsed.memories) {
|
|
62
|
+
const m = toImported(row, parsed.importedFromPath);
|
|
63
|
+
if (m) out.push(m);
|
|
64
|
+
}
|
|
65
|
+
return out;
|
|
66
|
+
}
|
|
67
|
+
function toImported(row, importedFromPath) {
|
|
68
|
+
const content = pickContent(row);
|
|
69
|
+
if (!content) return void 0;
|
|
70
|
+
const sourceId = pickSourceId(row.id) ?? content.slice(0, 64);
|
|
71
|
+
const sourceTimestamp = pickTimestamp(row);
|
|
72
|
+
return {
|
|
73
|
+
content,
|
|
74
|
+
sourceLabel: SUPERMEMORY_SOURCE_LABEL,
|
|
75
|
+
sourceId,
|
|
76
|
+
...sourceTimestamp ? { sourceTimestamp } : {},
|
|
77
|
+
...importedFromPath ? { importedFromPath } : {},
|
|
78
|
+
metadata: {
|
|
79
|
+
kind: "supermemory_memory",
|
|
80
|
+
...Array.isArray(row.containerTags) && row.containerTags.length > 0 ? { containerTags: [...row.containerTags] } : {},
|
|
81
|
+
...row.metadata && typeof row.metadata === "object" ? { sourceMetadata: row.metadata } : {}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function pickTimestamp(row) {
|
|
86
|
+
for (const timestamp of [row.updatedAt, row.createdAt]) {
|
|
87
|
+
if (typeof timestamp === "string" && timestamp.trim().length > 0) {
|
|
88
|
+
return timestamp.trim();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return void 0;
|
|
92
|
+
}
|
|
93
|
+
function pickSourceId(value) {
|
|
94
|
+
if (typeof value === "string") {
|
|
95
|
+
const trimmed = value.trim();
|
|
96
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
97
|
+
}
|
|
98
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
99
|
+
return String(value);
|
|
100
|
+
}
|
|
101
|
+
return void 0;
|
|
102
|
+
}
|
|
103
|
+
function pickContent(row) {
|
|
104
|
+
for (const c of [row.content, row.memory, row.summary, row.title]) {
|
|
105
|
+
if (typeof c === "string" && c.trim().length > 0) return c.trim();
|
|
106
|
+
}
|
|
107
|
+
return void 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// src/adapter.ts
|
|
111
|
+
var adapter = {
|
|
112
|
+
name: "supermemory",
|
|
113
|
+
sourceLabel: SUPERMEMORY_SOURCE_LABEL,
|
|
114
|
+
parse(input, options) {
|
|
115
|
+
return parseSupermemoryExport(input, options?.filePath);
|
|
116
|
+
},
|
|
117
|
+
transform(parsed) {
|
|
118
|
+
return transformSupermemoryExport(parsed);
|
|
119
|
+
},
|
|
120
|
+
writeTo(target, memories) {
|
|
121
|
+
return defaultWriteMemoriesToOrchestrator(target, memories);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var supermemoryAdapter = adapter;
|
|
125
|
+
export {
|
|
126
|
+
adapter,
|
|
127
|
+
parseSupermemoryExport,
|
|
128
|
+
supermemoryAdapter,
|
|
129
|
+
transformSupermemoryExport
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/adapter.ts","../src/parser.ts","../src/transform.ts"],"sourcesContent":["import type { ImporterAdapter } from \"@remnic/core\";\nimport { defaultWriteMemoriesToOrchestrator } from \"@remnic/core\";\n\nimport { parseSupermemoryExport, type ParsedSupermemoryExport } from \"./parser.js\";\nimport { SUPERMEMORY_SOURCE_LABEL, transformSupermemoryExport } from \"./transform.js\";\n\nexport const adapter: ImporterAdapter<ParsedSupermemoryExport> = {\n name: \"supermemory\",\n sourceLabel: SUPERMEMORY_SOURCE_LABEL,\n parse(input, options) {\n return parseSupermemoryExport(input, options?.filePath);\n },\n transform(parsed) {\n return transformSupermemoryExport(parsed);\n },\n writeTo(target, memories) {\n return defaultWriteMemoriesToOrchestrator(target, memories);\n },\n};\n\nexport const supermemoryAdapter = adapter;\n","export interface SupermemoryRecord {\n id?: string;\n memory?: string;\n content?: string;\n summary?: string;\n title?: string;\n createdAt?: string;\n updatedAt?: string;\n containerTags?: string[];\n metadata?: Record<string, unknown>;\n [key: string]: unknown;\n}\n\nexport interface ParsedSupermemoryExport {\n memories: SupermemoryRecord[];\n importedFromPath?: string;\n}\n\nexport function parseSupermemoryExport(input: unknown, filePath?: string): ParsedSupermemoryExport {\n if (input == null) {\n throw new Error(\"Supermemory import requires JSON input. Pass --file <supermemory-export.json>.\");\n }\n\n const raw = coerceJson(input);\n const memories: SupermemoryRecord[] = [];\n\n if (Array.isArray(raw)) {\n append(memories, raw);\n return { memories, ...(filePath ? { importedFromPath: filePath } : {}) };\n } else if (raw && typeof raw === \"object\") {\n const obj = raw as Record<string, unknown>;\n let sawKnownKey = false;\n for (const key of [\"memoryEntries\", \"memories\", \"results\", \"data\"] as const) {\n if (key in obj) {\n sawKnownKey = true;\n if (!Array.isArray(obj[key])) {\n throw new Error(`Supermemory export key '${key}' must be an array.`);\n }\n append(memories, obj[key] as unknown[]);\n return { memories, ...(filePath ? { importedFromPath: filePath } : {}) };\n }\n }\n if (!sawKnownKey) {\n throw new Error(\n \"Supermemory export object has no recognized memory key. Expected one of 'memoryEntries', 'memories', 'results', or 'data'.\",\n );\n }\n }\n\n throw new Error(`Supermemory export must be a JSON array or object; received ${describeType(raw)}.`);\n}\n\nfunction append(dest: SupermemoryRecord[], src: unknown[]): void {\n for (const item of src) {\n if (item && typeof item === \"object\") dest.push(item as SupermemoryRecord);\n }\n}\n\nfunction coerceJson(input: unknown): unknown {\n if (typeof input !== \"string\") return input;\n\n try {\n return JSON.parse(input);\n } catch (err) {\n throw new Error(\n `Supermemory export is not valid JSON: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n}\n\nfunction describeType(value: unknown): string {\n if (value === null) return \"null\";\n return typeof value;\n}\n","import type { ImportedMemory } from \"@remnic/core\";\nimport type { ParsedSupermemoryExport, SupermemoryRecord } from \"./parser.js\";\n\nexport const SUPERMEMORY_SOURCE_LABEL = \"supermemory\";\n\nexport function transformSupermemoryExport(parsed: ParsedSupermemoryExport): ImportedMemory[] {\n const out: ImportedMemory[] = [];\n for (const row of parsed.memories) {\n const m = toImported(row, parsed.importedFromPath);\n if (m) out.push(m);\n }\n return out;\n}\n\nfunction toImported(row: SupermemoryRecord, importedFromPath?: string): ImportedMemory | undefined {\n const content = pickContent(row);\n if (!content) return undefined;\n const sourceId = pickSourceId(row.id) ?? content.slice(0, 64);\n const sourceTimestamp = pickTimestamp(row);\n return {\n content,\n sourceLabel: SUPERMEMORY_SOURCE_LABEL,\n sourceId,\n ...(sourceTimestamp ? { sourceTimestamp } : {}),\n ...(importedFromPath ? { importedFromPath } : {}),\n metadata: {\n kind: \"supermemory_memory\",\n ...(Array.isArray(row.containerTags) && row.containerTags.length > 0\n ? { containerTags: [...row.containerTags] }\n : {}),\n ...(row.metadata && typeof row.metadata === \"object\" ? { sourceMetadata: row.metadata } : {}),\n },\n };\n}\n\nfunction pickTimestamp(row: SupermemoryRecord): string | undefined {\n for (const timestamp of [row.updatedAt, row.createdAt]) {\n if (typeof timestamp === \"string\" && timestamp.trim().length > 0) {\n return timestamp.trim();\n }\n }\n return undefined;\n}\n\nfunction pickSourceId(value: unknown): string | undefined {\n if (typeof value === \"string\") {\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (typeof value === \"number\" && Number.isFinite(value)) {\n return String(value);\n }\n return undefined;\n}\n\nfunction pickContent(row: SupermemoryRecord): string | undefined {\n for (const c of [row.content, row.memory, row.summary, row.title]) {\n if (typeof c === \"string\" && c.trim().length > 0) return c.trim();\n }\n return undefined;\n}\n"],"mappings":";;;AACA,SAAS,0CAA0C;;;ACiB5C,SAAS,uBAAuB,OAAgB,UAA4C;AACjG,MAAI,SAAS,MAAM;AACjB,UAAM,IAAI,MAAM,gFAAgF;AAAA,EAClG;AAEA,QAAM,MAAM,WAAW,KAAK;AAC5B,QAAM,WAAgC,CAAC;AAEvC,MAAI,MAAM,QAAQ,GAAG,GAAG;AACtB,WAAO,UAAU,GAAG;AACpB,WAAO,EAAE,UAAU,GAAI,WAAW,EAAE,kBAAkB,SAAS,IAAI,CAAC,EAAG;AAAA,EACzE,WAAW,OAAO,OAAO,QAAQ,UAAU;AACzC,UAAM,MAAM;AACZ,QAAI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FtDO,IAAM,UAAoD;AAAA,EAC/D,MAAM;AAAA,EACN,aAAa;AAAA,EACb,MAAM,OAAO,SAAS;AACpB,WAAO,uBAAuB,OAAO,SAAS,QAAQ;AAAA,EACxD;AAAA,EACA,UAAU,QAAQ;AAChB,WAAO,2BAA2B,MAAM;AAAA,EAC1C;AAAA,EACA,QAAQ,QAAQ,UAAU;AACxB,WAAO,mCAAmC,QAAQ,QAAQ;AAAA,EAC5D;AACF;AAEO,IAAM,qBAAqB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@remnic/import-supermemory",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Import Supermemory exports into Remnic",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"provenance": true
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@remnic/core": "^1.1.9"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"tsup": "^8.0.0",
|
|
26
|
+
"tsx": "^4.0.0",
|
|
27
|
+
"typescript": "^5.7.0",
|
|
28
|
+
"@remnic/core": "1.1.9"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/joshuaswarren/remnic.git",
|
|
34
|
+
"directory": "packages/import-supermemory"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"remnic",
|
|
38
|
+
"memory",
|
|
39
|
+
"supermemory",
|
|
40
|
+
"import"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
44
|
+
"check-types": "tsc --noEmit",
|
|
45
|
+
"test": "tsx --test src/parser.test.ts src/transform.test.ts src/adapter.test.ts"
|
|
46
|
+
}
|
|
47
|
+
}
|