@devness/useai-cli 0.5.45 → 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 +50 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,13 +30,13 @@ 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 = {
|
|
37
37
|
milestone_tracking: true,
|
|
38
38
|
auto_sync: true,
|
|
39
|
-
evaluation_framework: "
|
|
39
|
+
evaluation_framework: "space"
|
|
40
40
|
};
|
|
41
41
|
var DEFAULT_SYNC_INTERVAL_HOURS = 24;
|
|
42
42
|
|
|
@@ -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,
|
|
@@ -5284,8 +5316,8 @@ var rubrics = [
|
|
|
5284
5316
|
];
|
|
5285
5317
|
var rawFramework = {
|
|
5286
5318
|
id: "raw",
|
|
5287
|
-
name: "
|
|
5288
|
-
description: "
|
|
5319
|
+
name: "Basic",
|
|
5320
|
+
description: "Simple equal-weight average, no detailed rubric. Good for getting started.",
|
|
5289
5321
|
version: "1.0.0",
|
|
5290
5322
|
rubrics,
|
|
5291
5323
|
computeSessionScore(evaluation) {
|
|
@@ -5355,7 +5387,7 @@ var rubrics2 = [
|
|
|
5355
5387
|
var spaceFramework = {
|
|
5356
5388
|
id: "space",
|
|
5357
5389
|
name: "SPACE",
|
|
5358
|
-
description: "SPACE
|
|
5390
|
+
description: "Based on the SPACE developer productivity framework (GitHub/Microsoft Research). Weighted rubrics with explicit per-level criteria.",
|
|
5359
5391
|
version: "1.0.0",
|
|
5360
5392
|
rubrics: rubrics2,
|
|
5361
5393
|
computeSessionScore(evaluation) {
|
|
@@ -5378,14 +5410,14 @@ var spaceFramework = {
|
|
|
5378
5410
|
|
|
5379
5411
|
// ../shared/dist/frameworks/registry.js
|
|
5380
5412
|
var frameworks = {
|
|
5381
|
-
|
|
5382
|
-
|
|
5413
|
+
space: spaceFramework,
|
|
5414
|
+
raw: rawFramework
|
|
5383
5415
|
};
|
|
5384
5416
|
function getFramework(id) {
|
|
5385
5417
|
if (id && id in frameworks) {
|
|
5386
5418
|
return frameworks[id];
|
|
5387
5419
|
}
|
|
5388
|
-
return frameworks.
|
|
5420
|
+
return frameworks.space;
|
|
5389
5421
|
}
|
|
5390
5422
|
function getFrameworkIds() {
|
|
5391
5423
|
return Object.keys(frameworks);
|
|
@@ -6043,7 +6075,7 @@ function reinjectInstructions(frameworkId) {
|
|
|
6043
6075
|
}
|
|
6044
6076
|
|
|
6045
6077
|
// src/commands/config.ts
|
|
6046
|
-
var configCommand = new Command4("config").description("View or update settings").option("--sync", "Enable auto-sync").option("--no-sync", "Disable auto-sync").option("--milestones", "Enable milestone tracking").option("--no-milestones", "Disable milestone tracking").option("--framework <name>", "Set evaluation framework (
|
|
6078
|
+
var configCommand = new Command4("config").description("View or update settings").option("--sync", "Enable auto-sync").option("--no-sync", "Disable auto-sync").option("--milestones", "Enable milestone tracking").option("--no-milestones", "Disable milestone tracking").option("--framework <name>", "Set evaluation framework: space (recommended), raw (basic)").action((opts) => {
|
|
6047
6079
|
let changed = false;
|
|
6048
6080
|
if (process.argv.includes("--no-sync")) {
|
|
6049
6081
|
updateConfig({ auto_sync: false });
|