@menteeai/menteeswe 0.1.2 → 0.1.4
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/cli.js +23 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ import fs from "fs";
|
|
|
14
14
|
import path from "path";
|
|
15
15
|
import os from "os";
|
|
16
16
|
function blankConfig() {
|
|
17
|
-
return { defaultProvider: "
|
|
17
|
+
return { defaultProvider: "zai-coding", keys: {}, models: {} };
|
|
18
18
|
}
|
|
19
19
|
function configDir() {
|
|
20
20
|
return path.join(os.homedir(), ".mentee");
|
|
@@ -973,6 +973,14 @@ var init_KeyDialog = __esm({
|
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
|
|
976
|
+
// package.json
|
|
977
|
+
var version;
|
|
978
|
+
var init_package = __esm({
|
|
979
|
+
"package.json"() {
|
|
980
|
+
version = "0.1.4";
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
|
|
976
984
|
// src/tui/App.tsx
|
|
977
985
|
var App_exports = {};
|
|
978
986
|
__export(App_exports, {
|
|
@@ -1074,7 +1082,7 @@ function App(props) {
|
|
|
1074
1082
|
}, [typing, finalPending, typedText]);
|
|
1075
1083
|
const updateConfig = (mutate) => {
|
|
1076
1084
|
const config = loadConfig() ?? {
|
|
1077
|
-
defaultProvider: "
|
|
1085
|
+
defaultProvider: "zai-coding",
|
|
1078
1086
|
keys: {},
|
|
1079
1087
|
models: {}
|
|
1080
1088
|
};
|
|
@@ -1117,7 +1125,7 @@ function App(props) {
|
|
|
1117
1125
|
}
|
|
1118
1126
|
const config = loadConfig();
|
|
1119
1127
|
const writable = config ?? {
|
|
1120
|
-
defaultProvider: "
|
|
1128
|
+
defaultProvider: "zai-coding",
|
|
1121
1129
|
keys: {},
|
|
1122
1130
|
models: {}
|
|
1123
1131
|
};
|
|
@@ -1277,7 +1285,9 @@ function App(props) {
|
|
|
1277
1285
|
const header = /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", marginBottom: 1, children: [
|
|
1278
1286
|
/* @__PURE__ */ jsx4(Text4, { color: "cyan", children: BANNER }),
|
|
1279
1287
|
/* @__PURE__ */ jsxs4(Text4, { dimColor: true, children: [
|
|
1280
|
-
"
|
|
1288
|
+
"v",
|
|
1289
|
+
version,
|
|
1290
|
+
" \xB7 ",
|
|
1281
1291
|
providerName,
|
|
1282
1292
|
modelLabel ? `:${modelLabel}` : "",
|
|
1283
1293
|
" \xB7 tools ",
|
|
@@ -1404,6 +1414,7 @@ var init_App = __esm({
|
|
|
1404
1414
|
init_Approval();
|
|
1405
1415
|
init_SelectDialog();
|
|
1406
1416
|
init_KeyDialog();
|
|
1417
|
+
init_package();
|
|
1407
1418
|
SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
1408
1419
|
PROVIDER_NAMES = ["kimi", "glm", "zai", "zai-coding", "mock"];
|
|
1409
1420
|
PROVIDER_DESCRIPTIONS = {
|
|
@@ -1413,8 +1424,11 @@ var init_App = __esm({
|
|
|
1413
1424
|
"zai-coding": "Z.ai GLM Coding Plan subscription \xB7 api.z.ai/api/coding",
|
|
1414
1425
|
mock: "offline testing \xB7 no network"
|
|
1415
1426
|
};
|
|
1416
|
-
BANNER =
|
|
1417
|
-
|
|
1427
|
+
BANNER = `|\\ /|
|
|
1428
|
+
| \\/ |
|
|
1429
|
+
| |
|
|
1430
|
+
| |
|
|
1431
|
+
\\__/
|
|
1418
1432
|
MenteE SWE \u2014 https://menteeai.org
|
|
1419
1433
|
Twitter: x.com/menteeaiorg`;
|
|
1420
1434
|
}
|
|
@@ -2605,8 +2619,8 @@ var inspectEnv = {
|
|
|
2605
2619
|
const results = await Promise.all(
|
|
2606
2620
|
probes.map(async ([label, probe]) => {
|
|
2607
2621
|
const outcome = await runShellCommand(probe, ctx.cwd, 8e3);
|
|
2608
|
-
const
|
|
2609
|
-
return `${label}: ${outcome.exitCode === 0 ?
|
|
2622
|
+
const version2 = `${outcome.stdout} ${outcome.stderr}`.trim().split("\n")[0] ?? "";
|
|
2623
|
+
return `${label}: ${outcome.exitCode === 0 ? version2 || "installed (version unknown)" : "not available"}`;
|
|
2610
2624
|
})
|
|
2611
2625
|
);
|
|
2612
2626
|
lines.push(...results);
|
|
@@ -3155,7 +3169,7 @@ program.command("config").description("Configure providers, API keys, and models
|
|
|
3155
3169
|
program.argument("[task...]", "the software task to perform (omit to type it interactively)").option("-p, --provider <name>", "model provider: kimi | glm | mock").option("-m, --model <id>", "model id override for the chosen provider").option("-y, --yes", "auto-approve restricted actions (installs, git history changes)").option("--no-tui", "run in plain text mode instead of the interactive UI").option("--max-iterations <n>", "maximum agent iterations", "40").action(async (taskParts, options) => {
|
|
3156
3170
|
const task = taskParts.join(" ").trim();
|
|
3157
3171
|
const config = loadConfig();
|
|
3158
|
-
const providerName = options.provider ?? config?.defaultProvider ?? "
|
|
3172
|
+
const providerName = options.provider ?? config?.defaultProvider ?? "zai-coding";
|
|
3159
3173
|
if (!["kimi", "glm", "zai", "zai-coding", "mock"].includes(providerName)) {
|
|
3160
3174
|
console.error(chalk4.red(`Unknown provider "${providerName}". Use kimi, glm, zai, zai-coding, or mock.`));
|
|
3161
3175
|
process.exit(1);
|
package/package.json
CHANGED