nexrall-code 0.5.20 → 0.5.22

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/dist/index.js +12 -0
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -23939,7 +23939,18 @@ function setAutoApprove(category) {
23939
23939
  function isAutoApproved(category) {
23940
23940
  return autoApproved.has("all") || autoApproved.has(category);
23941
23941
  }
23942
+ var _replInterface = null;
23943
+ function setReadlineInterface(rl) {
23944
+ _replInterface = rl;
23945
+ }
23942
23946
  function askUser(question) {
23947
+ if (_replInterface) {
23948
+ const rl = _replInterface;
23949
+ process.stderr.write(question);
23950
+ return new Promise((resolve3) => {
23951
+ rl.question("", (answer) => resolve3(answer.trim()));
23952
+ });
23953
+ }
23943
23954
  return new Promise((resolve3) => {
23944
23955
  const rl = readline2.createInterface({
23945
23956
  input: process.stdin,
@@ -24913,6 +24924,7 @@ ${text}` : "");
24913
24924
  terminal: true,
24914
24925
  prompt: colors.primary.bold("> ")
24915
24926
  });
24927
+ setReadlineInterface(rl);
24916
24928
  rl.prompt();
24917
24929
  let inputBuffer = "";
24918
24930
  rl.on("line", async (rawLine) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.20",
3
+ "version": "0.5.22",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",
@@ -30,20 +30,14 @@
30
30
  "engines": {
31
31
  "node": ">=18"
32
32
  },
33
- "scripts": {
34
- "build": "node build.js",
35
- "dev": "tsx src/index.ts",
36
- "start": "node dist/index.js",
37
- "release": "node build.js && node scripts/upload-release.js"
38
- },
39
33
  "dependencies": {
40
- "@nexrall/code-core": "workspace:*",
41
34
  "chalk": "^5.3.0",
42
35
  "commander": "^12.0.0",
43
36
  "diff": "^5.2.0",
44
37
  "ora": "^8.0.1",
45
38
  "prompts": "^2.4.2",
46
- "readline": "^1.3.0"
39
+ "readline": "^1.3.0",
40
+ "@nexrall/code-core": "1.4.18"
47
41
  },
48
42
  "devDependencies": {
49
43
  "@aws-sdk/client-s3": "^3.600.0",
@@ -53,5 +47,11 @@
53
47
  "esbuild": "^0.20.0",
54
48
  "tsx": "^4.7.0",
55
49
  "typescript": "^6.0.3"
50
+ },
51
+ "scripts": {
52
+ "build": "node build.js",
53
+ "dev": "tsx src/index.ts",
54
+ "start": "node dist/index.js",
55
+ "release": "node build.js && node scripts/upload-release.js"
56
56
  }
57
- }
57
+ }