openace 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.
Files changed (2) hide show
  1. package/bin/cli.mjs +31 -0
  2. package/package.json +26 -0
package/bin/cli.mjs ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from "node:child_process";
4
+
5
+ // Pass all arguments through to `uvx openace`
6
+ const args = process.argv.slice(2);
7
+
8
+ // If no subcommand given, default to "serve ."
9
+ if (args.length === 0 || (args.length === 1 && !["index", "search", "serve", "--help", "--version"].includes(args[0]))) {
10
+ args.unshift("serve");
11
+ }
12
+
13
+ const child = spawn("uvx", ["openace", ...args], {
14
+ stdio: "inherit",
15
+ env: { ...process.env },
16
+ });
17
+
18
+ child.on("error", (err) => {
19
+ if (err.code === "ENOENT") {
20
+ process.stderr.write(
21
+ "Error: 'uvx' not found. Install it with: pip install uv\n" +
22
+ "Or install openace directly: pip install openace\n"
23
+ );
24
+ process.exit(1);
25
+ }
26
+ throw err;
27
+ });
28
+
29
+ child.on("exit", (code) => {
30
+ process.exit(code ?? 1);
31
+ });
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "openace",
3
+ "version": "0.1.0",
4
+ "description": "AI-native Contextual Code Engine — semantic code search via MCP",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Kosthi/OpenACE"
9
+ },
10
+ "keywords": [
11
+ "mcp",
12
+ "code-search",
13
+ "code-intelligence",
14
+ "tree-sitter",
15
+ "claude-code"
16
+ ],
17
+ "bin": {
18
+ "openace": "./bin/cli.mjs"
19
+ },
20
+ "files": [
21
+ "bin/"
22
+ ],
23
+ "engines": {
24
+ "node": ">=18"
25
+ }
26
+ }