@voodocs/cli 0.3.0 → 0.3.1
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/CHANGELOG.md +11 -0
- package/cli.py +1 -1
- package/lib/darkarts/context/commands.py +13 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [0.3.1] - 2025-12-20
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- Improved AI selection prompt handling in `voodocs context init`
|
|
5
|
+
- Changed prompt text from '[6 for all]' to '[default: 6]' for clarity
|
|
6
|
+
- Added EOFError and KeyboardInterrupt handling for graceful abort
|
|
7
|
+
- Added sys.stdout.flush() to ensure prompt displays immediately
|
|
8
|
+
- Better error messages for invalid input
|
|
9
|
+
|
|
10
|
+
This patch fixes the hanging issue some users experienced at the AI selection prompt.
|
|
11
|
+
|
|
1
12
|
## [0.3.0] - 2025-12-20
|
|
2
13
|
|
|
3
14
|
### Added
|
package/cli.py
CHANGED
|
@@ -137,7 +137,7 @@ Documentation: https://github.com/3vilEnterprises/vooodooo-magic/tree/main/packa
|
|
|
137
137
|
parser.add_argument(
|
|
138
138
|
"--version",
|
|
139
139
|
action="version",
|
|
140
|
-
version="VooDocs 0.3.
|
|
140
|
+
version="VooDocs 0.3.1"
|
|
141
141
|
)
|
|
142
142
|
|
|
143
143
|
subparsers = parser.add_subparsers(dest="command", help="Available commands")
|
|
@@ -285,14 +285,15 @@ def cmd_context_init(force: bool = False) -> int:
|
|
|
285
285
|
print(f" [{marker}] {i}. {desc}")
|
|
286
286
|
|
|
287
287
|
print()
|
|
288
|
+
sys.stdout.flush() # Ensure prompt is displayed
|
|
288
289
|
|
|
289
290
|
# Get user choice
|
|
290
291
|
while True:
|
|
291
|
-
choice_input = input("Enter number (1-7) [6 for all]: ").strip()
|
|
292
|
-
if not choice_input:
|
|
293
|
-
choice_input = "6" # Default to "all"
|
|
294
|
-
|
|
295
292
|
try:
|
|
293
|
+
choice_input = input("Enter number (1-7) [default: 6]: ").strip()
|
|
294
|
+
if not choice_input:
|
|
295
|
+
choice_input = "6" # Default to "all"
|
|
296
|
+
|
|
296
297
|
choice_num = int(choice_input)
|
|
297
298
|
if 1 <= choice_num <= len(choices):
|
|
298
299
|
ai_type = choices[choice_num - 1][0]
|
|
@@ -301,6 +302,14 @@ def cmd_context_init(force: bool = False) -> int:
|
|
|
301
302
|
print(f"Please enter a number between 1 and {len(choices)}")
|
|
302
303
|
except ValueError:
|
|
303
304
|
print("Please enter a valid number")
|
|
305
|
+
except EOFError:
|
|
306
|
+
# Handle Ctrl+D or EOF
|
|
307
|
+
print("\nAborted.")
|
|
308
|
+
return 1
|
|
309
|
+
except KeyboardInterrupt:
|
|
310
|
+
# Handle Ctrl+C
|
|
311
|
+
print("\nAborted.")
|
|
312
|
+
return 1
|
|
304
313
|
|
|
305
314
|
if ai_type != "none":
|
|
306
315
|
try:
|
package/package.json
CHANGED