@cortexmemory/cli 0.23.0 → 0.26.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.
- package/README.md +1 -1
- package/dist/commands/conversations.d.ts.map +1 -1
- package/dist/commands/conversations.js +9 -3
- package/dist/commands/conversations.js.map +1 -1
- package/dist/commands/convex.d.ts.map +1 -1
- package/dist/commands/convex.js +58 -269
- package/dist/commands/convex.js.map +1 -1
- package/dist/commands/db.d.ts.map +1 -1
- package/dist/commands/db.js +14 -6
- package/dist/commands/db.js.map +1 -1
- package/dist/commands/deploy.d.ts +14 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +330 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +66 -18
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/facts.d.ts.map +1 -1
- package/dist/commands/facts.js +13 -4
- package/dist/commands/facts.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +73 -15
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +15 -5
- package/dist/commands/memory.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +26 -11
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/spaces.d.ts.map +1 -1
- package/dist/commands/spaces.js +15 -5
- package/dist/commands/spaces.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +38 -15
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/users.d.ts.map +1 -1
- package/dist/commands/users.js +9 -3
- package/dist/commands/users.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/__tests__/env-file.test.js +24 -4
- package/dist/utils/__tests__/env-file.test.js.map +1 -1
- package/dist/utils/__tests__/shell.test.js +1 -1
- package/dist/utils/__tests__/shell.test.js.map +1 -1
- package/dist/utils/deployment-selector.d.ts.map +1 -1
- package/dist/utils/deployment-selector.js.map +1 -1
- package/dist/utils/init/convex-setup.d.ts.map +1 -1
- package/dist/utils/init/convex-setup.js.map +1 -1
- package/dist/utils/init/env-generator.d.ts +1 -1
- package/dist/utils/init/env-generator.d.ts.map +1 -1
- package/dist/utils/init/env-generator.js +18 -6
- package/dist/utils/init/env-generator.js.map +1 -1
- package/dist/utils/init/file-operations.d.ts.map +1 -1
- package/dist/utils/init/file-operations.js.map +1 -1
- package/dist/utils/init/graph-setup.d.ts.map +1 -1
- package/dist/utils/init/graph-setup.js +75 -7
- package/dist/utils/init/graph-setup.js.map +1 -1
- package/dist/utils/init/types.d.ts +1 -0
- package/dist/utils/init/types.d.ts.map +1 -1
- package/dist/utils/schema-sync.d.ts +10 -0
- package/dist/utils/schema-sync.d.ts.map +1 -1
- package/dist/utils/schema-sync.js +47 -4
- package/dist/utils/schema-sync.js.map +1 -1
- package/dist/utils/shell-utils.d.ts +23 -0
- package/dist/utils/shell-utils.d.ts.map +1 -0
- package/dist/utils/shell-utils.js +48 -0
- package/dist/utils/shell-utils.js.map +1 -0
- package/dist/utils/shell.d.ts +7 -12
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +18 -44
- package/dist/utils/shell.js.map +1 -1
- package/package.json +13 -13
- package/templates/basic/README.md +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shell Utilities - Pure Functions
|
|
3
|
+
*
|
|
4
|
+
* Pure utility functions that don't require ESM-specific features.
|
|
5
|
+
* Separated for testability with Jest.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Allowlist of safe commands that can be executed
|
|
9
|
+
*/
|
|
10
|
+
export declare const ALLOWED_COMMANDS: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Validate project name
|
|
13
|
+
*/
|
|
14
|
+
export declare function isValidProjectName(name: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Check if directory is empty
|
|
17
|
+
*/
|
|
18
|
+
export declare function isDirectoryEmpty(dirPath: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Parse Convex URL to determine if it's local or cloud
|
|
21
|
+
*/
|
|
22
|
+
export declare function isLocalConvexUrl(url: string): boolean;
|
|
23
|
+
//# sourceMappingURL=shell-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-utils.d.ts","sourceRoot":"","sources":["../../src/utils/shell-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAc5B,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAMzD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAErD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shell Utilities - Pure Functions
|
|
3
|
+
*
|
|
4
|
+
* Pure utility functions that don't require ESM-specific features.
|
|
5
|
+
* Separated for testability with Jest.
|
|
6
|
+
*/
|
|
7
|
+
import { existsSync, readdirSync } from "fs";
|
|
8
|
+
/**
|
|
9
|
+
* Allowlist of safe commands that can be executed
|
|
10
|
+
*/
|
|
11
|
+
export const ALLOWED_COMMANDS = [
|
|
12
|
+
"npx",
|
|
13
|
+
"convex",
|
|
14
|
+
"npm",
|
|
15
|
+
"pnpm",
|
|
16
|
+
"yarn",
|
|
17
|
+
"bun",
|
|
18
|
+
"git",
|
|
19
|
+
"node",
|
|
20
|
+
"docker",
|
|
21
|
+
// Process inspection commands (for kill menu)
|
|
22
|
+
"lsof",
|
|
23
|
+
"pgrep",
|
|
24
|
+
"ps",
|
|
25
|
+
];
|
|
26
|
+
/**
|
|
27
|
+
* Validate project name
|
|
28
|
+
*/
|
|
29
|
+
export function isValidProjectName(name) {
|
|
30
|
+
return /^[a-z0-9-_]+$/.test(name);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if directory is empty
|
|
34
|
+
*/
|
|
35
|
+
export function isDirectoryEmpty(dirPath) {
|
|
36
|
+
if (!existsSync(dirPath)) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
const files = readdirSync(dirPath);
|
|
40
|
+
return files.length === 0 || (files.length === 1 && files[0] === ".git");
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Parse Convex URL to determine if it's local or cloud
|
|
44
|
+
*/
|
|
45
|
+
export function isLocalConvexUrl(url) {
|
|
46
|
+
return url.includes("localhost") || url.includes("127.0.0.1");
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=shell-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-utils.js","sourceRoot":"","sources":["../../src/utils/shell-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,QAAQ;IACR,8CAA8C;IAC9C,MAAM;IACN,OAAO;IACP,IAAI;CACL,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACnC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,OAAO,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAChE,CAAC"}
|
package/dist/utils/shell.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Shared utilities for executing shell commands safely.
|
|
5
5
|
* Used by init wizard and other CLI commands.
|
|
6
6
|
*/
|
|
7
|
+
export { isValidProjectName, isLocalConvexUrl, isDirectoryEmpty, ALLOWED_COMMANDS, } from "./shell-utils.js";
|
|
7
8
|
/**
|
|
8
9
|
* Check if a command exists in the system
|
|
9
10
|
*/
|
|
@@ -33,23 +34,17 @@ export declare function execCommandLive(command: string, args: string[], options
|
|
|
33
34
|
cwd?: string;
|
|
34
35
|
env?: Record<string, string | undefined>;
|
|
35
36
|
}): Promise<number>;
|
|
36
|
-
/**
|
|
37
|
-
* Validate project name
|
|
38
|
-
*/
|
|
39
|
-
export declare function isValidProjectName(name: string): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Check if directory is empty
|
|
42
|
-
*/
|
|
43
|
-
export declare function isDirectoryEmpty(dirPath: string): boolean;
|
|
44
37
|
/**
|
|
45
38
|
* Get the path to the installed SDK package
|
|
39
|
+
*
|
|
40
|
+
* Order of precedence:
|
|
41
|
+
* 1. CORTEX_SDK_DEV_PATH environment variable (for CLI development)
|
|
42
|
+
* 2. Project's node_modules/@cortexmemory/sdk
|
|
43
|
+
* 3. Fallback to require.resolve
|
|
44
|
+
*
|
|
46
45
|
* @param projectPath - Optional project path to look in (defaults to current directory)
|
|
47
46
|
*/
|
|
48
47
|
export declare function getSDKPath(projectPath?: string): string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Parse Convex URL to determine if it's local or cloud
|
|
51
|
-
*/
|
|
52
|
-
export declare function isLocalConvexUrl(url: string): boolean;
|
|
53
48
|
/**
|
|
54
49
|
* Fetch the latest SDK package.json from npm registry
|
|
55
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/utils/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/utils/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAO1B;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOrE;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE;IACP,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAC;CACZ,GACL,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAyC3D;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CAAO,GACvE,OAAO,CAAC,MAAM,CAAC,CAuBjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2B9D;AAED;;GAEG;AACH,wBAAsB,sBAAsB,IAAI,OAAO,CAAC;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAyCD"}
|
package/dist/utils/shell.js
CHANGED
|
@@ -5,29 +5,14 @@
|
|
|
5
5
|
* Used by init wizard and other CLI commands.
|
|
6
6
|
*/
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
|
-
import { existsSync
|
|
8
|
+
import { existsSync } from "fs";
|
|
9
9
|
import path from "path";
|
|
10
10
|
import { createRequire } from "module";
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const ALLOWED_COMMANDS = [
|
|
17
|
-
"npx",
|
|
18
|
-
"convex",
|
|
19
|
-
"npm",
|
|
20
|
-
"pnpm",
|
|
21
|
-
"yarn",
|
|
22
|
-
"bun",
|
|
23
|
-
"git",
|
|
24
|
-
"node",
|
|
25
|
-
"docker",
|
|
26
|
-
// Process inspection commands (for kill menu)
|
|
27
|
-
"lsof",
|
|
28
|
-
"pgrep",
|
|
29
|
-
"ps",
|
|
30
|
-
];
|
|
11
|
+
// Re-export pure functions from shell-utils (for backwards compatibility)
|
|
12
|
+
export { isValidProjectName, isLocalConvexUrl, isDirectoryEmpty, ALLOWED_COMMANDS, } from "./shell-utils.js";
|
|
13
|
+
import { ALLOWED_COMMANDS } from "./shell-utils.js";
|
|
14
|
+
// Create require function for ES modules (named to avoid conflict with Jest's require)
|
|
15
|
+
const esmRequire = createRequire(import.meta.url);
|
|
31
16
|
/**
|
|
32
17
|
* Check if a command exists in the system
|
|
33
18
|
*/
|
|
@@ -104,28 +89,23 @@ export async function execCommandLive(command, args, options = {}) {
|
|
|
104
89
|
});
|
|
105
90
|
});
|
|
106
91
|
}
|
|
107
|
-
/**
|
|
108
|
-
* Validate project name
|
|
109
|
-
*/
|
|
110
|
-
export function isValidProjectName(name) {
|
|
111
|
-
return /^[a-z0-9-_]+$/.test(name);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Check if directory is empty
|
|
115
|
-
*/
|
|
116
|
-
export function isDirectoryEmpty(dirPath) {
|
|
117
|
-
if (!existsSync(dirPath)) {
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
const files = readdirSync(dirPath);
|
|
121
|
-
return files.length === 0 || (files.length === 1 && files[0] === ".git");
|
|
122
|
-
}
|
|
123
92
|
/**
|
|
124
93
|
* Get the path to the installed SDK package
|
|
94
|
+
*
|
|
95
|
+
* Order of precedence:
|
|
96
|
+
* 1. CORTEX_SDK_DEV_PATH environment variable (for CLI development)
|
|
97
|
+
* 2. Project's node_modules/@cortexmemory/sdk
|
|
98
|
+
* 3. Fallback to require.resolve
|
|
99
|
+
*
|
|
125
100
|
* @param projectPath - Optional project path to look in (defaults to current directory)
|
|
126
101
|
*/
|
|
127
102
|
export function getSDKPath(projectPath) {
|
|
128
103
|
try {
|
|
104
|
+
// Check for development override first
|
|
105
|
+
const devPath = process.env.CORTEX_SDK_DEV_PATH;
|
|
106
|
+
if (devPath && existsSync(devPath)) {
|
|
107
|
+
return devPath;
|
|
108
|
+
}
|
|
129
109
|
// If projectPath provided, look in that project's node_modules
|
|
130
110
|
if (projectPath) {
|
|
131
111
|
const sdkPath = path.join(projectPath, "node_modules", "@cortexmemory", "sdk");
|
|
@@ -134,19 +114,13 @@ export function getSDKPath(projectPath) {
|
|
|
134
114
|
}
|
|
135
115
|
}
|
|
136
116
|
// Fallback: use require.resolve from current location
|
|
137
|
-
const sdkPackageJson =
|
|
117
|
+
const sdkPackageJson = esmRequire.resolve("@cortexmemory/sdk/package.json");
|
|
138
118
|
return path.dirname(sdkPackageJson);
|
|
139
119
|
}
|
|
140
120
|
catch {
|
|
141
121
|
return null;
|
|
142
122
|
}
|
|
143
123
|
}
|
|
144
|
-
/**
|
|
145
|
-
* Parse Convex URL to determine if it's local or cloud
|
|
146
|
-
*/
|
|
147
|
-
export function isLocalConvexUrl(url) {
|
|
148
|
-
return url.includes("localhost") || url.includes("127.0.0.1");
|
|
149
|
-
}
|
|
150
124
|
/**
|
|
151
125
|
* Fetch the latest SDK package.json from npm registry
|
|
152
126
|
*/
|
package/dist/utils/shell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.js","sourceRoot":"","sources":["../../src/utils/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"shell.js","sourceRoot":"","sources":["../../src/utils/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,0EAA0E;AAC1E,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,uFAAuF;AACvF,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAe;IACjD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,oEAAoE;QACpE,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAA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AAI,KAAK,CAAC,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,oBAAoB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEvC,IAAI,aAAqB,CAAC;QAC1B,IAAI,UAAkB,CAAC;QAEvB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;aAAM,CAAC;YACN,aAAa,GAAG,IAAI,CAAC,yBAAyB,CAAC,IAAI,SAAS,CAAC;YAC7D,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC;QAC3C,CAAC;QAED,OAAO;YACL,aAAa;YACb,UAAU;SACX,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,OAAO;YACL,aAAa,EAAE,SAAS;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexmemory/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "CLI tool for managing Cortex Memory deployments, performing administrative tasks, and streamlining development workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"build": "tsc && chmod +x dist/index.js",
|
|
18
18
|
"dev": "tsc --watch",
|
|
19
19
|
"lint": "eslint . --report-unused-disable-directives",
|
|
20
|
-
"test": "node --experimental-vm-modules
|
|
21
|
-
"test:watch": "node --experimental-vm-modules
|
|
22
|
-
"test:coverage": "node --experimental-vm-modules
|
|
23
|
-
"test:unit": "node --experimental-vm-modules
|
|
24
|
-
"test:commands": "node --experimental-vm-modules
|
|
25
|
-
"test:e2e": "node --experimental-vm-modules
|
|
26
|
-
"test:integration": "node --experimental-vm-modules
|
|
27
|
-
"test:fast": "node --experimental-vm-modules
|
|
20
|
+
"test": "node --experimental-vm-modules $(npm root)/.bin/jest",
|
|
21
|
+
"test:watch": "node --experimental-vm-modules $(npm root)/.bin/jest --watch",
|
|
22
|
+
"test:coverage": "node --experimental-vm-modules $(npm root)/.bin/jest --coverage",
|
|
23
|
+
"test:unit": "node --experimental-vm-modules $(npm root)/.bin/jest --selectProjects unit",
|
|
24
|
+
"test:commands": "node --experimental-vm-modules $(npm root)/.bin/jest --selectProjects commands",
|
|
25
|
+
"test:e2e": "node --experimental-vm-modules $(npm root)/.bin/jest --selectProjects e2e",
|
|
26
|
+
"test:integration": "node --experimental-vm-modules $(npm root)/.bin/jest --selectProjects e2e",
|
|
27
|
+
"test:fast": "node --experimental-vm-modules $(npm root)/.bin/jest --selectProjects unit commands",
|
|
28
28
|
"typecheck": "tsc --noEmit",
|
|
29
29
|
"prepublishOnly": "npm run lint && npm run build && npm run test:unit"
|
|
30
30
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"management"
|
|
40
40
|
],
|
|
41
41
|
"author": "Saint Nick LLC",
|
|
42
|
-
"license": "Apache-2.0",
|
|
42
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
45
|
"url": "git+https://github.com/SaintNick1214/Project-Cortex.git",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"node": ">=20"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@cortexmemory/sdk": "
|
|
57
|
+
"@cortexmemory/sdk": "*",
|
|
58
58
|
"cli-table3": "^0.6.5",
|
|
59
59
|
"commander": "^14.0.2",
|
|
60
60
|
"convex": "^1.31.2",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@types/jest": "^30.0.0",
|
|
73
73
|
"@types/node": "^25.0.3",
|
|
74
74
|
"@types/prompts": "^2.4.9",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^8.50.
|
|
76
|
-
"@typescript-eslint/parser": "^8.50.
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
76
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
77
77
|
"eslint": "^9.39.2",
|
|
78
78
|
"globals": "^16.5.0",
|
|
79
79
|
"jest": "^30.2.0",
|