@tekmemo/cli 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,26 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_chunk = require('../chunk-C0xms8kb.cjs');
3
+ let node_fs_promises = require("node:fs/promises");
4
+ node_fs_promises = require_chunk.__toESM(node_fs_promises, 1);
5
+ let node_path = require("node:path");
6
+ node_path = require_chunk.__toESM(node_path, 1);
7
+ let node_os = require("node:os");
8
+ node_os = require_chunk.__toESM(node_os, 1);
9
+
10
+ //#region src/testing/temp-dir.ts
11
+ async function createTempTekMemoDir() {
12
+ const rootDir = await node_fs_promises.default.mkdtemp(node_path.default.join(node_os.default.tmpdir(), "tekmemo-cli-"));
13
+ return {
14
+ rootDir,
15
+ async cleanup() {
16
+ await node_fs_promises.default.rm(rootDir, {
17
+ recursive: true,
18
+ force: true
19
+ });
20
+ }
21
+ };
22
+ }
23
+
24
+ //#endregion
25
+ exports.createTempTekMemoDir = createTempTekMemoDir;
26
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["fs","path","os"],"sources":["../../src/testing/temp-dir.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\nimport os from \"node:os\";\nimport path from \"node:path\";\n\nexport async function createTempTekMemoDir(): Promise<{\n\trootDir: string;\n\tcleanup: () => Promise<void>;\n}> {\n\tconst rootDir = await fs.mkdtemp(path.join(os.tmpdir(), \"tekmemo-cli-\"));\n\n\treturn {\n\t\trootDir,\n\t\tasync cleanup() {\n\t\t\tawait fs.rm(rootDir, { recursive: true, force: true });\n\t\t},\n\t};\n}\n"],"mappings":";;;;;;;;;;AAIA,eAAsB,uBAGnB;CACF,MAAM,UAAU,MAAMA,yBAAG,QAAQC,kBAAK,KAAKC,gBAAG,QAAQ,EAAE,eAAe,CAAC;AAExE,QAAO;EACN;EACA,MAAM,UAAU;AACf,SAAMF,yBAAG,GAAG,SAAS;IAAE,WAAW;IAAM,OAAO;IAAM,CAAC;;EAEvD"}
@@ -0,0 +1,8 @@
1
+ //#region src/testing/temp-dir.d.ts
2
+ declare function createTempTekMemoDir(): Promise<{
3
+ rootDir: string;
4
+ cleanup: () => Promise<void>;
5
+ }>;
6
+ //#endregion
7
+ export { createTempTekMemoDir };
8
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/testing/temp-dir.ts"],"mappings":";iBAIsB,oBAAA,CAAA,GAAwB,OAAA;EAC7C,OAAA;EACA,OAAA,QAAe,OAAA;AAAA"}
@@ -0,0 +1,8 @@
1
+ //#region src/testing/temp-dir.d.ts
2
+ declare function createTempTekMemoDir(): Promise<{
3
+ rootDir: string;
4
+ cleanup: () => Promise<void>;
5
+ }>;
6
+ //#endregion
7
+ export { createTempTekMemoDir };
8
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/testing/temp-dir.ts"],"mappings":";iBAIsB,oBAAA,CAAA,GAAwB,OAAA;EAC7C,OAAA;EACA,OAAA,QAAe,OAAA;AAAA"}
@@ -0,0 +1,21 @@
1
+ import fs from "node:fs/promises";
2
+ import path from "node:path";
3
+ import os from "node:os";
4
+
5
+ //#region src/testing/temp-dir.ts
6
+ async function createTempTekMemoDir() {
7
+ const rootDir = await fs.mkdtemp(path.join(os.tmpdir(), "tekmemo-cli-"));
8
+ return {
9
+ rootDir,
10
+ async cleanup() {
11
+ await fs.rm(rootDir, {
12
+ recursive: true,
13
+ force: true
14
+ });
15
+ }
16
+ };
17
+ }
18
+
19
+ //#endregion
20
+ export { createTempTekMemoDir };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/testing/temp-dir.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\nimport os from \"node:os\";\nimport path from \"node:path\";\n\nexport async function createTempTekMemoDir(): Promise<{\n\trootDir: string;\n\tcleanup: () => Promise<void>;\n}> {\n\tconst rootDir = await fs.mkdtemp(path.join(os.tmpdir(), \"tekmemo-cli-\"));\n\n\treturn {\n\t\trootDir,\n\t\tasync cleanup() {\n\t\t\tawait fs.rm(rootDir, { recursive: true, force: true });\n\t\t},\n\t};\n}\n"],"mappings":";;;;;AAIA,eAAsB,uBAGnB;CACF,MAAM,UAAU,MAAM,GAAG,QAAQ,KAAK,KAAK,GAAG,QAAQ,EAAE,eAAe,CAAC;AAExE,QAAO;EACN;EACA,MAAM,UAAU;AACf,SAAM,GAAG,GAAG,SAAS;IAAE,WAAW;IAAM,OAAO;IAAM,CAAC;;EAEvD"}
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@tekmemo/cli",
3
+ "version": "0.1.0",
4
+ "description": "Production-grade CLI for TekMemo local memory, cloud memory, protocol validation, snapshots, context packing, and agent-tool integration.",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "bin": {
8
+ "tekmemo": "./dist/bin/tekmemo.mjs"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.mts",
14
+ "default": "./dist/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "./testing": {
22
+ "import": {
23
+ "types": "./dist/testing/index.d.mts",
24
+ "default": "./dist/testing/index.mjs"
25
+ },
26
+ "require": {
27
+ "types": "./dist/testing/index.d.cts",
28
+ "default": "./dist/testing/index.cjs"
29
+ }
30
+ }
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "README.md"
35
+ ],
36
+ "devDependencies": {
37
+ "@repo/test-utils": "0.0.0",
38
+ "@repo/tsdown-config": "0.0.0",
39
+ "@repo/utils": "0.0.0",
40
+ "@repo/typescript-config": "0.0.0"
41
+ },
42
+ "dependencies": {
43
+ "commander": "^14.0.3",
44
+ "zod": "^4.4.2",
45
+ "@tekmemo/agentfs": "^0.2.0",
46
+ "@tekmemo/cloud-client": "^0.1.0",
47
+ "@tekmemo/fs": "^0.2.0",
48
+ "tekmemo": "^0.2.0"
49
+ },
50
+ "license": "MIT",
51
+ "keywords": [
52
+ "agents",
53
+ "ai",
54
+ "cli",
55
+ "developer-tools",
56
+ "mcp",
57
+ "memory",
58
+ "rag",
59
+ "tekmemo",
60
+ "typescript"
61
+ ],
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "git+https://github.com/tekbreed/tekmemo.git",
65
+ "directory": "packages/cli"
66
+ },
67
+ "bugs": {
68
+ "url": "https://github.com/tekbreed/tekmemo/issues"
69
+ },
70
+ "homepage": "https://docs.tekmemo.dev/packages/cli",
71
+ "publishConfig": {
72
+ "access": "public",
73
+ "registry": "https://registry.npmjs.org/"
74
+ },
75
+ "private": false,
76
+ "engines": {
77
+ "node": ">=22"
78
+ },
79
+ "main": "./dist/index.cjs",
80
+ "module": "./dist/index.mjs",
81
+ "types": "./dist/index.d.mts",
82
+ "funding": {
83
+ "type": "github",
84
+ "url": "https://github.com/sponsors/christophersesugh"
85
+ },
86
+ "scripts": {
87
+ "build": "tsdown",
88
+ "build:watch": "tsdown --watch",
89
+ "typecheck": "tsc --noEmit",
90
+ "test": "vitest",
91
+ "test:run": "vitest run",
92
+ "test:watch": "vitest",
93
+ "lint:package": "publint",
94
+ "clean": "rm -rf dist coverage",
95
+ "test:coverage": "vitest run --coverage",
96
+ "pack:dry-run": "pnpm build && npm pack --dry-run",
97
+ "release:check": "pnpm build && pnpm typecheck && pnpm test:run && pnpm lint:package && npm pack --dry-run"
98
+ }
99
+ }