@remnic/import-okf 9.69.64
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 +20 -0
- package/dist/index.js +117 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -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,20 @@
|
|
|
1
|
+
import { ImporterAdapter } from '@remnic/core';
|
|
2
|
+
|
|
3
|
+
interface ParsedOkfDocument {
|
|
4
|
+
relPath: string;
|
|
5
|
+
category: string;
|
|
6
|
+
content: string;
|
|
7
|
+
sourceId?: string;
|
|
8
|
+
sourceTimestamp?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ParsedOkfBundle {
|
|
11
|
+
root: string;
|
|
12
|
+
documents: ParsedOkfDocument[];
|
|
13
|
+
}
|
|
14
|
+
declare function parseOkfBundle(input: unknown): ParsedOkfBundle;
|
|
15
|
+
|
|
16
|
+
declare const OKF_SOURCE_LABEL = "okf";
|
|
17
|
+
declare const adapter: ImporterAdapter<ParsedOkfBundle>;
|
|
18
|
+
declare const okfAdapter: ImporterAdapter<ParsedOkfBundle>;
|
|
19
|
+
|
|
20
|
+
export { OKF_SOURCE_LABEL, type ParsedOkfBundle, type ParsedOkfDocument, adapter, okfAdapter, parseOkfBundle };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// openclaw-engram: Local-first memory plugin
|
|
2
|
+
|
|
3
|
+
// src/adapter.ts
|
|
4
|
+
import { defaultWriteMemoriesToOrchestrator } from "@remnic/core";
|
|
5
|
+
|
|
6
|
+
// src/parser.ts
|
|
7
|
+
import { readdirSync, readFileSync, statSync } from "fs";
|
|
8
|
+
import path from "path";
|
|
9
|
+
var RESERVED = /* @__PURE__ */ new Set(["index.md", "log.md"]);
|
|
10
|
+
var CATEGORY_BY_TYPE = {
|
|
11
|
+
"Memory Fact": "fact",
|
|
12
|
+
Decision: "decision",
|
|
13
|
+
Preference: "preference",
|
|
14
|
+
Commitment: "commitment",
|
|
15
|
+
Relationship: "relationship",
|
|
16
|
+
Principle: "principle",
|
|
17
|
+
Moment: "moment",
|
|
18
|
+
Skill: "skill",
|
|
19
|
+
Correction: "correction",
|
|
20
|
+
Rule: "rule"
|
|
21
|
+
};
|
|
22
|
+
function parseOkfBundle(input) {
|
|
23
|
+
if (typeof input !== "string" || input.trim() === "") {
|
|
24
|
+
throw new Error("OKF import requires a directory path");
|
|
25
|
+
}
|
|
26
|
+
const root = path.resolve(input.trim());
|
|
27
|
+
if (/\.(zip|tgz|tar\.gz)$/i.test(root)) {
|
|
28
|
+
throw new Error(`unpack first: archive imports are not supported (${root})`);
|
|
29
|
+
}
|
|
30
|
+
let stat;
|
|
31
|
+
try {
|
|
32
|
+
stat = statSync(root);
|
|
33
|
+
} catch {
|
|
34
|
+
throw new Error(`OKF bundle not found: ${root}`);
|
|
35
|
+
}
|
|
36
|
+
if (!stat.isDirectory()) {
|
|
37
|
+
throw new Error(`OKF import requires a directory, got a file: ${root}`);
|
|
38
|
+
}
|
|
39
|
+
const documents = [];
|
|
40
|
+
walk(root, root, documents);
|
|
41
|
+
documents.sort((a, b) => a.relPath.localeCompare(b.relPath));
|
|
42
|
+
return { root, documents };
|
|
43
|
+
}
|
|
44
|
+
function walk(root, dir, out) {
|
|
45
|
+
const entries = readdirSync(dir, { withFileTypes: true }).sort(
|
|
46
|
+
(a, b) => a.name.localeCompare(b.name)
|
|
47
|
+
);
|
|
48
|
+
for (const entry of entries) {
|
|
49
|
+
const full = path.join(dir, entry.name);
|
|
50
|
+
if (entry.isDirectory()) {
|
|
51
|
+
walk(root, full, out);
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (!entry.isFile() || !entry.name.endsWith(".md")) continue;
|
|
55
|
+
if (RESERVED.has(entry.name)) continue;
|
|
56
|
+
out.push(parseDocument(root, full));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function parseDocument(root, filePath) {
|
|
60
|
+
const raw = readFileSync(filePath, "utf8");
|
|
61
|
+
const { fields, body } = splitFrontmatter(raw);
|
|
62
|
+
const type = fields.type ?? "";
|
|
63
|
+
return {
|
|
64
|
+
relPath: path.relative(root, filePath).split(path.sep).join("/"),
|
|
65
|
+
category: CATEGORY_BY_TYPE[type] ?? "fact",
|
|
66
|
+
content: body.trim(),
|
|
67
|
+
...fields.id ? { sourceId: fields.id } : {},
|
|
68
|
+
...fields.timestamp ?? fields.updated ?? fields.created ? { sourceTimestamp: fields.timestamp ?? fields.updated ?? fields.created } : {}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function splitFrontmatter(text) {
|
|
72
|
+
if (!text.startsWith("---\n") && !text.startsWith("---\r\n")) {
|
|
73
|
+
return { fields: {}, body: text };
|
|
74
|
+
}
|
|
75
|
+
const end = text.indexOf("\n---", 4);
|
|
76
|
+
if (end < 0) return { fields: {}, body: text };
|
|
77
|
+
const raw = text.slice(4, end);
|
|
78
|
+
const body = text.slice(end + 4).replace(/^\r?\n/, "");
|
|
79
|
+
const fields = {};
|
|
80
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
81
|
+
const match = line.match(/^([A-Za-z0-9_-]+):\s*(.*)$/);
|
|
82
|
+
if (!match) continue;
|
|
83
|
+
fields[match[1]] = match[2].replace(/^["']|["']$/g, "").trim();
|
|
84
|
+
}
|
|
85
|
+
return { fields, body };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// src/adapter.ts
|
|
89
|
+
var OKF_SOURCE_LABEL = "okf";
|
|
90
|
+
var adapter = {
|
|
91
|
+
name: "okf",
|
|
92
|
+
sourceLabel: OKF_SOURCE_LABEL,
|
|
93
|
+
parse(input, options) {
|
|
94
|
+
return parseOkfBundle(typeof input === "string" ? input : options?.filePath);
|
|
95
|
+
},
|
|
96
|
+
transform(parsed) {
|
|
97
|
+
return parsed.documents.filter((doc) => doc.content.length > 0).map((doc) => ({
|
|
98
|
+
content: doc.content,
|
|
99
|
+
sourceLabel: OKF_SOURCE_LABEL,
|
|
100
|
+
importedFromPath: `${parsed.root}/${doc.relPath}`,
|
|
101
|
+
metadata: { category: doc.category, relPath: doc.relPath },
|
|
102
|
+
...doc.sourceId ? { sourceId: doc.sourceId } : {},
|
|
103
|
+
...doc.sourceTimestamp ? { sourceTimestamp: doc.sourceTimestamp } : {}
|
|
104
|
+
}));
|
|
105
|
+
},
|
|
106
|
+
async writeTo(target, memories) {
|
|
107
|
+
return defaultWriteMemoriesToOrchestrator(target, memories);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
var okfAdapter = adapter;
|
|
111
|
+
export {
|
|
112
|
+
OKF_SOURCE_LABEL,
|
|
113
|
+
adapter,
|
|
114
|
+
okfAdapter,
|
|
115
|
+
parseOkfBundle
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/adapter.ts","../src/parser.ts"],"sourcesContent":["import type {\n ImportedMemory,\n ImporterAdapter,\n ImporterParseOptions,\n ImporterWriteResult,\n ImporterWriteTarget,\n} from \"@remnic/core\";\nimport { defaultWriteMemoriesToOrchestrator } from \"@remnic/core\";\n\nimport { parseOkfBundle, type ParsedOkfBundle } from \"./parser.js\";\n\nexport const OKF_SOURCE_LABEL = \"okf\";\n\nexport const adapter: ImporterAdapter<ParsedOkfBundle> = {\n name: \"okf\",\n sourceLabel: OKF_SOURCE_LABEL,\n\n parse(input: unknown, options?: ImporterParseOptions): ParsedOkfBundle {\n return parseOkfBundle(typeof input === \"string\" ? input : options?.filePath);\n },\n\n transform(parsed: ParsedOkfBundle): ImportedMemory[] {\n return parsed.documents\n .filter((doc) => doc.content.length > 0)\n .map((doc) => ({\n content: doc.content,\n sourceLabel: OKF_SOURCE_LABEL,\n importedFromPath: `${parsed.root}/${doc.relPath}`,\n metadata: { category: doc.category, relPath: doc.relPath },\n ...(doc.sourceId ? { sourceId: doc.sourceId } : {}),\n ...(doc.sourceTimestamp ? { sourceTimestamp: doc.sourceTimestamp } : {}),\n }));\n },\n\n async writeTo(\n target: ImporterWriteTarget,\n memories: ImportedMemory[],\n ): Promise<ImporterWriteResult> {\n return defaultWriteMemoriesToOrchestrator(target, memories);\n },\n};\n\nexport const okfAdapter = adapter;\n","import { readdirSync, readFileSync, statSync } from \"node:fs\";\nimport path from \"node:path\";\n\nconst RESERVED = new Set([\"index.md\", \"log.md\"]);\n\nconst CATEGORY_BY_TYPE: Record<string, string> = {\n \"Memory Fact\": \"fact\",\n Decision: \"decision\",\n Preference: \"preference\",\n Commitment: \"commitment\",\n Relationship: \"relationship\",\n Principle: \"principle\",\n Moment: \"moment\",\n Skill: \"skill\",\n Correction: \"correction\",\n Rule: \"rule\",\n};\n\nexport interface ParsedOkfDocument {\n relPath: string;\n category: string;\n content: string;\n sourceId?: string;\n sourceTimestamp?: string;\n}\n\nexport interface ParsedOkfBundle {\n root: string;\n documents: ParsedOkfDocument[];\n}\n\nexport function parseOkfBundle(input: unknown): ParsedOkfBundle {\n if (typeof input !== \"string\" || input.trim() === \"\") {\n throw new Error(\"OKF import requires a directory path\");\n }\n const root = path.resolve(input.trim());\n if (/\\.(zip|tgz|tar\\.gz)$/i.test(root)) {\n throw new Error(`unpack first: archive imports are not supported (${root})`);\n }\n let stat;\n try {\n stat = statSync(root);\n } catch {\n throw new Error(`OKF bundle not found: ${root}`);\n }\n if (!stat.isDirectory()) {\n throw new Error(`OKF import requires a directory, got a file: ${root}`);\n }\n const documents: ParsedOkfDocument[] = [];\n walk(root, root, documents);\n documents.sort((a, b) => a.relPath.localeCompare(b.relPath));\n return { root, documents };\n}\n\nfunction walk(root: string, dir: string, out: ParsedOkfDocument[]): void {\n const entries = readdirSync(dir, { withFileTypes: true }).sort((a, b) =>\n a.name.localeCompare(b.name),\n );\n for (const entry of entries) {\n const full = path.join(dir, entry.name);\n if (entry.isDirectory()) {\n walk(root, full, out);\n continue;\n }\n if (!entry.isFile() || !entry.name.endsWith(\".md\")) continue;\n if (RESERVED.has(entry.name)) continue;\n out.push(parseDocument(root, full));\n }\n}\n\nfunction parseDocument(root: string, filePath: string): ParsedOkfDocument {\n const raw = readFileSync(filePath, \"utf8\");\n const { fields, body } = splitFrontmatter(raw);\n const type = fields.type ?? \"\";\n return {\n relPath: path.relative(root, filePath).split(path.sep).join(\"/\"),\n category: CATEGORY_BY_TYPE[type] ?? \"fact\",\n content: body.trim(),\n ...(fields.id ? { sourceId: fields.id } : {}),\n ...(fields.timestamp ?? fields.updated ?? fields.created\n ? { sourceTimestamp: fields.timestamp ?? fields.updated ?? fields.created }\n : {}),\n };\n}\n\nfunction splitFrontmatter(text: string): { fields: Record<string, string>; body: string } {\n if (!text.startsWith(\"---\\n\") && !text.startsWith(\"---\\r\\n\")) {\n return { fields: {}, body: text };\n }\n const end = text.indexOf(\"\\n---\", 4);\n if (end < 0) return { fields: {}, body: text };\n const raw = text.slice(4, end);\n const body = text.slice(end + 4).replace(/^\\r?\\n/, \"\");\n const fields: Record<string, string> = {};\n for (const line of raw.split(/\\r?\\n/)) {\n const match = line.match(/^([A-Za-z0-9_-]+):\\s*(.*)$/);\n if (!match) continue;\n fields[match[1]] = match[2].replace(/^[\"']|[\"']$/g, \"\").trim();\n }\n return { fields, body };\n}\n"],"mappings":";;;AAOA,SAAS,0CAA0C;;;ACPnD,SAAS,aAAa,cAAc,gBAAgB;AACpD,OAAO,UAAU;AAEjB,IAAM,WAAW,oBAAI,IAAI,CAAC,YAAY,QAAQ,CAAC;AAE/C,IAAM,mBAA2C;AAAA,EAC/C,eAAe;AAAA,EACf,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACR;AAeO,SAAS,eAAe,OAAiC;AAC9D,MAAI,OAAO,UAAU,YAAY,MAAM,KAAK,MAAM,IAAI;AACpD,UAAM,IAAI,MAAM,sCAAsC;AAAA,EACxD;AACA,QAAM,OAAO,KAAK,QAAQ,MAAM,KAAK,CAAC;AACtC,MAAI,wBAAwB,KAAK,IAAI,GAAG;AACtC,UAAM,IAAI,MAAM,oDAAoD,IAAI,GAAG;AAAA,EAC7E;AACA,MAAI;AACJ,MAAI;AACF,WAAO,SAAS,IAAI;AAAA,EACtB,QAAQ;AACN,UAAM,IAAI,MAAM,yBAAyB,IAAI,EAAE;AAAA,EACjD;AACA,MAAI,CAAC,KAA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E,iBAAiB,IAAI,gBAAgB,IAAI,CAAC;AAAA,IACxE,EAAE;AAAA,EACN;AAAA,EAEA,MAAM,QACJ,QACA,UAC8B;AAC9B,WAAO,mCAAmC,QAAQ,QAAQ;AAAA,EAC5D;AACF;AAEO,IAAM,aAAa;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@remnic/import-okf",
|
|
3
|
+
"version": "9.69.64",
|
|
4
|
+
"description": "Import an OKF v0.1 knowledge bundle into Remnic memories",
|
|
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": "^9.69.64"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"tsup": "^8.0.0",
|
|
26
|
+
"tsx": "^4.0.0",
|
|
27
|
+
"typescript": "^5.7.0",
|
|
28
|
+
"@remnic/core": "9.69.64"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/joshuaswarren/remnic.git",
|
|
34
|
+
"directory": "packages/import-okf"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"remnic",
|
|
38
|
+
"memory",
|
|
39
|
+
"okf",
|
|
40
|
+
"import"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
44
|
+
"precheck-types": "node ../../scripts/ensure-bench-build-deps.mjs",
|
|
45
|
+
"check-types": "tsc --noEmit",
|
|
46
|
+
"test": "NODE_OPTIONS=\"${NODE_OPTIONS:+$NODE_OPTIONS }--conditions=remnic-source\" tsx --test src/adapter.test.ts src/parser.test.ts"
|
|
47
|
+
}
|
|
48
|
+
}
|