@devness/useai 0.5.45 → 0.5.46
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 +15 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -684,7 +684,7 @@ var VERSION;
|
|
|
684
684
|
var init_version = __esm({
|
|
685
685
|
"../shared/dist/constants/version.js"() {
|
|
686
686
|
"use strict";
|
|
687
|
-
VERSION = "0.5.
|
|
687
|
+
VERSION = "0.5.46";
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
|
|
@@ -714,7 +714,7 @@ var init_defaults = __esm({
|
|
|
714
714
|
DEFAULT_CONFIG = {
|
|
715
715
|
milestone_tracking: true,
|
|
716
716
|
auto_sync: true,
|
|
717
|
-
evaluation_framework: "
|
|
717
|
+
evaluation_framework: "space"
|
|
718
718
|
};
|
|
719
719
|
DEFAULT_SYNC_INTERVAL_HOURS = 24;
|
|
720
720
|
GENESIS_HASH = "GENESIS";
|
|
@@ -6267,8 +6267,8 @@ var init_raw = __esm({
|
|
|
6267
6267
|
];
|
|
6268
6268
|
rawFramework = {
|
|
6269
6269
|
id: "raw",
|
|
6270
|
-
name: "
|
|
6271
|
-
description: "
|
|
6270
|
+
name: "Basic",
|
|
6271
|
+
description: "Simple equal-weight average, no detailed rubric. Good for getting started.",
|
|
6272
6272
|
version: "1.0.0",
|
|
6273
6273
|
rubrics,
|
|
6274
6274
|
computeSessionScore(evaluation) {
|
|
@@ -6344,7 +6344,7 @@ var init_space = __esm({
|
|
|
6344
6344
|
spaceFramework = {
|
|
6345
6345
|
id: "space",
|
|
6346
6346
|
name: "SPACE",
|
|
6347
|
-
description: "SPACE
|
|
6347
|
+
description: "Based on the SPACE developer productivity framework (GitHub/Microsoft Research). Weighted rubrics with explicit per-level criteria.",
|
|
6348
6348
|
version: "1.0.0",
|
|
6349
6349
|
rubrics: rubrics2,
|
|
6350
6350
|
computeSessionScore(evaluation) {
|
|
@@ -6372,7 +6372,7 @@ function getFramework(id) {
|
|
|
6372
6372
|
if (id && id in frameworks) {
|
|
6373
6373
|
return frameworks[id];
|
|
6374
6374
|
}
|
|
6375
|
-
return frameworks.
|
|
6375
|
+
return frameworks.space;
|
|
6376
6376
|
}
|
|
6377
6377
|
function getFrameworkIds() {
|
|
6378
6378
|
return Object.keys(frameworks);
|
|
@@ -6394,8 +6394,8 @@ var init_registry = __esm({
|
|
|
6394
6394
|
init_raw();
|
|
6395
6395
|
init_space();
|
|
6396
6396
|
frameworks = {
|
|
6397
|
-
|
|
6398
|
-
|
|
6397
|
+
space: spaceFramework,
|
|
6398
|
+
raw: rawFramework
|
|
6399
6399
|
};
|
|
6400
6400
|
}
|
|
6401
6401
|
});
|
|
@@ -15204,9 +15204,9 @@ async function selectFramework(autoYes) {
|
|
|
15204
15204
|
const config2 = readJson(CONFIG_FILE, {
|
|
15205
15205
|
milestone_tracking: true,
|
|
15206
15206
|
auto_sync: true,
|
|
15207
|
-
evaluation_framework: "
|
|
15207
|
+
evaluation_framework: "space"
|
|
15208
15208
|
});
|
|
15209
|
-
const currentId = config2.evaluation_framework ?? "
|
|
15209
|
+
const currentId = config2.evaluation_framework ?? "space";
|
|
15210
15210
|
if (autoYes) {
|
|
15211
15211
|
return currentId;
|
|
15212
15212
|
}
|
|
@@ -15214,10 +15214,13 @@ async function selectFramework(autoYes) {
|
|
|
15214
15214
|
const choices = frameworkIds.map((id) => {
|
|
15215
15215
|
const fw = getFramework(id);
|
|
15216
15216
|
const current = id === currentId ? " (current)" : "";
|
|
15217
|
-
|
|
15217
|
+
const recommended = id === "space" ? " (Recommended)" : "";
|
|
15218
|
+
return { name: `${fw.name}${recommended}${current}`, value: id, description: fw.description };
|
|
15218
15219
|
});
|
|
15219
15220
|
console.log(source_default.dim("\n Evaluation Framework"));
|
|
15220
|
-
console.log(source_default.dim(" Controls how AI models score your sessions
|
|
15221
|
+
console.log(source_default.dim(" Controls how AI models score your sessions."));
|
|
15222
|
+
console.log(source_default.dim(" SPACE is based on the developer productivity framework by GitHub/Microsoft Research."));
|
|
15223
|
+
console.log(source_default.dim(" Learn more: https://queue.acm.org/detail.cfm?id=3454124\n"));
|
|
15221
15224
|
const chosen = await singleSelect("Choose evaluation framework:", choices);
|
|
15222
15225
|
if (chosen !== currentId) {
|
|
15223
15226
|
writeJson(CONFIG_FILE, { ...config2, evaluation_framework: chosen });
|