substrata-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.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/bin.js +15 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-5LCVXNHI.js +1279 -0
- package/dist/chunk-5LCVXNHI.js.map +1 -0
- package/dist/chunk-5V44C5UO.js +1589 -0
- package/dist/chunk-5V44C5UO.js.map +1 -0
- package/dist/dist-OCRLBALV.js +293 -0
- package/dist/dist-OCRLBALV.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/package.json +57 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Build the commander program. Exported for tests: callers can do
|
|
5
|
+
* `buildProgram().parseAsync(['node','substrata', ...])` and inject a cwd via the
|
|
6
|
+
* hidden global `--cwd` option.
|
|
7
|
+
*
|
|
8
|
+
* Exit codes: 0 success, 1 user/expected errors (friendly, no stack), 2 unexpected.
|
|
9
|
+
*/
|
|
10
|
+
declare function buildProgram(): Command;
|
|
11
|
+
/** Parse argv and run. Returns the process exit code (does not call exit). */
|
|
12
|
+
declare function runCli(argv: string[]): Promise<number>;
|
|
13
|
+
|
|
14
|
+
export { buildProgram, runCli };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "substrata-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Substrata CLI — shared project memory for AI engineering agents",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"substrata": "./dist/bin.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20.19.0"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/ykdhan/substrata.git",
|
|
27
|
+
"directory": "packages/cli"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"ai",
|
|
31
|
+
"agents",
|
|
32
|
+
"memory",
|
|
33
|
+
"cli",
|
|
34
|
+
"claude-code",
|
|
35
|
+
"mcp"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@clack/prompts": "^0.11.0",
|
|
39
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
40
|
+
"better-sqlite3": "^12.0.0",
|
|
41
|
+
"commander": "^14.0.0",
|
|
42
|
+
"picocolors": "^1.1.0",
|
|
43
|
+
"yaml": "^2.6.0",
|
|
44
|
+
"zod": "^3.24.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/node": "^22.0.0",
|
|
48
|
+
"@substrata/mcp-server": "0.1.0",
|
|
49
|
+
"@substrata/core": "0.1.0",
|
|
50
|
+
"@substrata/search": "0.1.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsup",
|
|
54
|
+
"test": "vitest run",
|
|
55
|
+
"typecheck": "tsc --noEmit"
|
|
56
|
+
}
|
|
57
|
+
}
|