@devness/useai-cli 0.5.46 → 0.5.47
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 +42 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var SYSTEMD_SERVICE_PATH = join(homedir(), ".config", "systemd", "user", "useai-
|
|
|
30
30
|
var WINDOWS_STARTUP_SCRIPT_PATH = join(process.env["APPDATA"] ?? join(homedir(), "AppData", "Roaming"), "Microsoft", "Windows", "Start Menu", "Programs", "Startup", "useai-daemon.vbs");
|
|
31
31
|
|
|
32
32
|
// ../shared/dist/constants/version.js
|
|
33
|
-
var VERSION = "0.5.
|
|
33
|
+
var VERSION = "0.5.47";
|
|
34
34
|
|
|
35
35
|
// ../shared/dist/constants/defaults.js
|
|
36
36
|
var DEFAULT_CONFIG = {
|
|
@@ -4481,7 +4481,10 @@ var coerce = {
|
|
|
4481
4481
|
var NEVER = INVALID;
|
|
4482
4482
|
|
|
4483
4483
|
// ../shared/dist/validation/schemas.js
|
|
4484
|
-
|
|
4484
|
+
function enumWithAliases(values, aliases) {
|
|
4485
|
+
return external_exports.preprocess((val) => typeof val === "string" ? aliases[val] ?? val : val, external_exports.enum(values));
|
|
4486
|
+
}
|
|
4487
|
+
var taskTypeSchema = enumWithAliases([
|
|
4485
4488
|
"coding",
|
|
4486
4489
|
"debugging",
|
|
4487
4490
|
"testing",
|
|
@@ -4497,7 +4500,7 @@ var taskTypeSchema = external_exports.enum([
|
|
|
4497
4500
|
"data",
|
|
4498
4501
|
"security",
|
|
4499
4502
|
"configuration",
|
|
4500
|
-
// aliases
|
|
4503
|
+
// aliases accepted directly in enum (visible in JSON Schema)
|
|
4501
4504
|
"code_review",
|
|
4502
4505
|
"code-review",
|
|
4503
4506
|
"investigation",
|
|
@@ -4507,8 +4510,23 @@ var taskTypeSchema = external_exports.enum([
|
|
|
4507
4510
|
"setup",
|
|
4508
4511
|
"refactoring",
|
|
4509
4512
|
"other"
|
|
4510
|
-
]
|
|
4511
|
-
|
|
4513
|
+
], {
|
|
4514
|
+
// verb/truncated forms → canonical gerund/noun
|
|
4515
|
+
review: "reviewing",
|
|
4516
|
+
document: "documenting",
|
|
4517
|
+
debug: "debugging",
|
|
4518
|
+
test: "testing",
|
|
4519
|
+
code: "coding",
|
|
4520
|
+
learn: "learning",
|
|
4521
|
+
deploy: "deployment",
|
|
4522
|
+
plan: "planning",
|
|
4523
|
+
migrate: "migration",
|
|
4524
|
+
refactor: "refactoring",
|
|
4525
|
+
investigate: "investigation",
|
|
4526
|
+
configure: "configuration",
|
|
4527
|
+
designing: "design"
|
|
4528
|
+
});
|
|
4529
|
+
var milestoneCategorySchema = enumWithAliases([
|
|
4512
4530
|
"feature",
|
|
4513
4531
|
"bugfix",
|
|
4514
4532
|
"refactor",
|
|
@@ -4516,7 +4534,7 @@ var milestoneCategorySchema = external_exports.enum([
|
|
|
4516
4534
|
"docs",
|
|
4517
4535
|
"setup",
|
|
4518
4536
|
"deployment",
|
|
4519
|
-
// aliases
|
|
4537
|
+
// aliases accepted directly in enum (visible in JSON Schema)
|
|
4520
4538
|
"fix",
|
|
4521
4539
|
"bug_fix",
|
|
4522
4540
|
"testing",
|
|
@@ -4534,12 +4552,22 @@ var milestoneCategorySchema = external_exports.enum([
|
|
|
4534
4552
|
"design",
|
|
4535
4553
|
"devops",
|
|
4536
4554
|
"other"
|
|
4537
|
-
]
|
|
4538
|
-
|
|
4555
|
+
], {
|
|
4556
|
+
// common model shorthand → canonical
|
|
4557
|
+
bug: "bugfix",
|
|
4558
|
+
"bug-fix": "bugfix",
|
|
4559
|
+
doc: "docs",
|
|
4560
|
+
document: "docs",
|
|
4561
|
+
documenting: "docs",
|
|
4562
|
+
feat: "feature",
|
|
4563
|
+
perf: "performance",
|
|
4564
|
+
refactoring: "refactor"
|
|
4565
|
+
});
|
|
4566
|
+
var complexitySchema = enumWithAliases([
|
|
4539
4567
|
"simple",
|
|
4540
4568
|
"medium",
|
|
4541
4569
|
"complex",
|
|
4542
|
-
// aliases
|
|
4570
|
+
// aliases accepted directly in enum (visible in JSON Schema)
|
|
4543
4571
|
"low",
|
|
4544
4572
|
"high",
|
|
4545
4573
|
"trivial",
|
|
@@ -4547,7 +4575,11 @@ var complexitySchema = external_exports.enum([
|
|
|
4547
4575
|
"moderate",
|
|
4548
4576
|
"hard",
|
|
4549
4577
|
"difficult"
|
|
4550
|
-
]
|
|
4578
|
+
], {
|
|
4579
|
+
basic: "simple",
|
|
4580
|
+
intermediate: "medium",
|
|
4581
|
+
advanced: "complex"
|
|
4582
|
+
});
|
|
4551
4583
|
var milestoneInputSchema = external_exports.object({
|
|
4552
4584
|
title: external_exports.string().min(1).max(500),
|
|
4553
4585
|
category: milestoneCategorySchema,
|