memdex 0.1.3 → 0.1.4
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 +2 -5
- package/bin/memdex.js +2 -21
- package/dist/cli.js +1975 -0
- package/package.json +12 -6
- package/scripts/memdex.py +0 -2517
package/README.md
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
CLI package for `memdex`.
|
|
4
4
|
|
|
5
|
-
It
|
|
6
|
-
`memdex`.
|
|
5
|
+
It is implemented in TypeScript, uses Commander for the command surface, and is
|
|
6
|
+
bundled with Bun into an npm `bin` entry named `memdex`.
|
|
7
7
|
|
|
8
8
|
## Requirements
|
|
9
9
|
|
|
10
|
-
- Python 3.10+
|
|
11
10
|
- `git`
|
|
12
11
|
- `rg`
|
|
13
12
|
- `repomix` or `npx repomix`
|
|
@@ -28,7 +27,5 @@ bun run memdex -- --help
|
|
|
28
27
|
bun run memdex -- ask --repo /path/to/repo "Where is retry/backfill documented?"
|
|
29
28
|
```
|
|
30
29
|
|
|
31
|
-
Set `PYTHON` to choose a specific Python executable.
|
|
32
|
-
|
|
33
30
|
Release and CI details live in the repository-level
|
|
34
31
|
[release process](https://github.com/yoyooyooo/memdex/blob/main/docs/release.md).
|
package/bin/memdex.js
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { dirname, resolve } from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { main } from "../dist/cli.js";
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
const scriptPath = resolve(packageRoot, "scripts", "memdex.py");
|
|
8
|
-
const python = process.env.PYTHON || "python3";
|
|
9
|
-
|
|
10
|
-
const result = spawnSync(python, [scriptPath, ...process.argv.slice(2)], {
|
|
11
|
-
stdio: "inherit",
|
|
12
|
-
env: {
|
|
13
|
-
...process.env,
|
|
14
|
-
MEMDEX_CMD: process.env.MEMDEX_CMD || process.env.CODEBASE_RETRIEVE_CMD || "memdex"
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
if (result.error) {
|
|
19
|
-
console.error(result.error.message);
|
|
20
|
-
process.exit(1);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
process.exit(result.status ?? 1);
|
|
4
|
+
await main();
|