@inkeep/agents-cli 0.0.0-dev-20251113211352 → 0.0.0-dev-20251114042318
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/dist/index.js +21 -5
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -240489,15 +240489,26 @@ async function validateTempDirectory(originalProjectRoot, tempDirName, remotePro
|
|
|
240489
240489
|
console.log(chalk11.green(` [Y] Yes - Replace files and clean up temp directory`));
|
|
240490
240490
|
console.log(chalk11.red(` [N] No - Keep temp directory for manual review`));
|
|
240491
240491
|
return new Promise((resolve6) => {
|
|
240492
|
+
if (isWaitingForInput && currentKeypressHandler) {
|
|
240493
|
+
process.stdin.removeListener("data", currentKeypressHandler);
|
|
240494
|
+
}
|
|
240492
240495
|
process.stdin.removeAllListeners("data");
|
|
240493
|
-
process.stdin.
|
|
240494
|
-
|
|
240495
|
-
|
|
240496
|
+
if (!process.stdin.isRaw) {
|
|
240497
|
+
process.stdin.setRawMode(true);
|
|
240498
|
+
}
|
|
240499
|
+
if (process.stdin.isPaused()) {
|
|
240500
|
+
process.stdin.resume();
|
|
240501
|
+
}
|
|
240496
240502
|
process.stdin.setEncoding("utf8");
|
|
240497
240503
|
const onKeypress = (key) => {
|
|
240504
|
+
if (!isWaitingForInput) {
|
|
240505
|
+
return;
|
|
240506
|
+
}
|
|
240507
|
+
isWaitingForInput = false;
|
|
240508
|
+
currentKeypressHandler = null;
|
|
240509
|
+
process.stdin.removeAllListeners("data");
|
|
240498
240510
|
process.stdin.setRawMode(false);
|
|
240499
240511
|
process.stdin.pause();
|
|
240500
|
-
process.stdin.removeAllListeners("data");
|
|
240501
240512
|
const normalizedKey = key.toLowerCase();
|
|
240502
240513
|
if (normalizedKey === "y") {
|
|
240503
240514
|
console.log(chalk11.green(`
|
|
@@ -240527,7 +240538,9 @@ async function validateTempDirectory(originalProjectRoot, tempDirName, remotePro
|
|
|
240527
240538
|
process.exit(0);
|
|
240528
240539
|
}
|
|
240529
240540
|
};
|
|
240530
|
-
|
|
240541
|
+
currentKeypressHandler = onKeypress;
|
|
240542
|
+
isWaitingForInput = true;
|
|
240543
|
+
process.stdin.once("data", onKeypress);
|
|
240531
240544
|
process.stdout.write(chalk11.cyan("\nPress [Y] for Yes or [N] for No: "));
|
|
240532
240545
|
});
|
|
240533
240546
|
} else {
|
|
@@ -240595,6 +240608,7 @@ function overwriteProjectFiles(originalProjectRoot, tempDirName, tempDir) {
|
|
|
240595
240608
|
console.log(chalk11.yellow(` Generated files remain in: ${tempDirName} for manual review`));
|
|
240596
240609
|
}
|
|
240597
240610
|
}
|
|
240611
|
+
var isWaitingForInput, currentKeypressHandler;
|
|
240598
240612
|
var init_project_validator = __esm({
|
|
240599
240613
|
"src/commands/pull-v3/project-validator.ts"() {
|
|
240600
240614
|
"use strict";
|
|
@@ -240602,6 +240616,8 @@ var init_project_validator = __esm({
|
|
|
240602
240616
|
init_pull_v3();
|
|
240603
240617
|
init_project_comparator();
|
|
240604
240618
|
init_component_registry();
|
|
240619
|
+
isWaitingForInput = false;
|
|
240620
|
+
currentKeypressHandler = null;
|
|
240605
240621
|
}
|
|
240606
240622
|
});
|
|
240607
240623
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-cli",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251114042318",
|
|
4
4
|
"description": "Inkeep CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"ts-morph": "^26.0.0",
|
|
50
50
|
"tsx": "^4.20.5",
|
|
51
51
|
"open": "^10.2.0",
|
|
52
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
53
|
-
"@inkeep/agents-sdk": "^0.0.0-dev-
|
|
52
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251114042318",
|
|
53
|
+
"@inkeep/agents-sdk": "^0.0.0-dev-20251114042318"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/degit": "^2.8.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vitest": "^3.2.4"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@inkeep/agents-manage-ui": "0.0.0-dev-
|
|
66
|
+
"@inkeep/agents-manage-ui": "0.0.0-dev-20251114042318",
|
|
67
67
|
"zod": "^4.1.11"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|