@ainative/cody-cli 0.4.1 → 0.5.0
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 +24 -18
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -107420,12 +107420,12 @@ function getDisabledReasonMessage(disabledReason, authType) {
|
|
|
107420
107420
|
case "network_error":
|
|
107421
107421
|
return "Fast mode unavailable due to network connectivity issues";
|
|
107422
107422
|
case "unknown":
|
|
107423
|
-
return "Fast mode
|
|
107423
|
+
return "Fast mode: switches to qwen-coder-7b";
|
|
107424
107424
|
}
|
|
107425
107425
|
}
|
|
107426
107426
|
function getFastModeUnavailableReason() {
|
|
107427
107427
|
if (!isFastModeEnabled()) {
|
|
107428
|
-
return "Fast mode
|
|
107428
|
+
return "Fast mode: switches to qwen-coder-7b";
|
|
107429
107429
|
}
|
|
107430
107430
|
const statigReason = getFeatureValue_CACHED_MAY_BE_STALE("tengu_penguins_off", null);
|
|
107431
107431
|
if (statigReason !== null) {
|
|
@@ -159842,7 +159842,7 @@ var CHALK_BOOSTED_FOR_XTERMJS, CHALK_CLAMPED_FOR_TMUX, RGB_REGEX, ANSI_REGEX, co
|
|
|
159842
159842
|
case "red":
|
|
159843
159843
|
return type === "foreground" ? source_default.red(str) : source_default.bgRed(str);
|
|
159844
159844
|
case "green":
|
|
159845
|
-
return type === "foreground" ? source_default.
|
|
159845
|
+
return type === "foreground" ? source_default.magenta(str) : source_default.bgGreen(str);
|
|
159846
159846
|
case "yellow":
|
|
159847
159847
|
return type === "foreground" ? source_default.yellow(str) : source_default.bgYellow(str);
|
|
159848
159848
|
case "blue":
|
|
@@ -180389,16 +180389,16 @@ var init_theme = __esm(() => {
|
|
|
180389
180389
|
suggestion: "rgb(87,105,247)",
|
|
180390
180390
|
remember: "rgb(0,0,255)",
|
|
180391
180391
|
background: "rgb(0,153,153)",
|
|
180392
|
-
success: "rgb(
|
|
180392
|
+
success: "rgb(88,72,211)",
|
|
180393
180393
|
error: "rgb(171,43,63)",
|
|
180394
180394
|
warning: "rgb(150,108,30)",
|
|
180395
180395
|
merged: "rgb(135,0,255)",
|
|
180396
180396
|
warningShimmer: "rgb(200,158,80)",
|
|
180397
|
-
diffAdded: "rgb(105,219
|
|
180397
|
+
diffAdded: "rgb(105,210,219)",
|
|
180398
180398
|
diffRemoved: "rgb(255,168,180)",
|
|
180399
|
-
diffAddedDimmed: "rgb(199,225
|
|
180399
|
+
diffAddedDimmed: "rgb(199,220,225)",
|
|
180400
180400
|
diffRemovedDimmed: "rgb(253,210,216)",
|
|
180401
|
-
diffAddedWord: "rgb(
|
|
180401
|
+
diffAddedWord: "rgb(0,180,181)",
|
|
180402
180402
|
diffRemovedWord: "rgb(209,69,75)",
|
|
180403
180403
|
red_FOR_SUBAGENTS_ONLY: "rgb(220,38,38)",
|
|
180404
180404
|
blue_FOR_SUBAGENTS_ONLY: "rgb(37,99,235)",
|
|
@@ -180673,16 +180673,16 @@ var init_theme = __esm(() => {
|
|
|
180673
180673
|
suggestion: "rgb(177,185,249)",
|
|
180674
180674
|
remember: "rgb(177,185,249)",
|
|
180675
180675
|
background: "rgb(0,204,204)",
|
|
180676
|
-
success: "rgb(
|
|
180676
|
+
success: "rgb(108,92,231)",
|
|
180677
180677
|
error: "rgb(255,107,128)",
|
|
180678
180678
|
warning: "rgb(255,193,7)",
|
|
180679
180679
|
merged: "rgb(175,135,255)",
|
|
180680
180680
|
warningShimmer: "rgb(255,223,57)",
|
|
180681
|
-
diffAdded: "rgb(
|
|
180681
|
+
diffAdded: "rgb(0,150,151)",
|
|
180682
180682
|
diffRemoved: "rgb(122,41,54)",
|
|
180683
|
-
diffAddedDimmed: "rgb(71,88,
|
|
180683
|
+
diffAddedDimmed: "rgb(71,88,100)",
|
|
180684
180684
|
diffRemovedDimmed: "rgb(105,72,77)",
|
|
180685
|
-
diffAddedWord: "rgb(
|
|
180685
|
+
diffAddedWord: "rgb(0,210,211)",
|
|
180686
180686
|
diffRemovedWord: "rgb(179,89,107)",
|
|
180687
180687
|
red_FOR_SUBAGENTS_ONLY: "rgb(220,38,38)",
|
|
180688
180688
|
blue_FOR_SUBAGENTS_ONLY: "rgb(37,99,235)",
|
|
@@ -448761,7 +448761,7 @@ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.1.0") {
|
|
|
448761
448761
|
releaseNotes
|
|
448762
448762
|
};
|
|
448763
448763
|
}
|
|
448764
|
-
var import_semver10, MAX_RELEASE_NOTES_SHOWN = 5, CHANGELOG_URL = "https://github.com/
|
|
448764
|
+
var import_semver10, MAX_RELEASE_NOTES_SHOWN = 5, CHANGELOG_URL = "https://github.com/AINative-Studio/cody-cli/blob/main/CHANGELOG.md", RAW_CHANGELOG_URL = "https://raw.githubusercontent.com/AINative-Studio/cody-cli/refs/heads/main/CHANGELOG.md", changelogMemoryCache = null;
|
|
448765
448765
|
var init_releaseNotes = __esm(() => {
|
|
448766
448766
|
init_axios2();
|
|
448767
448767
|
init_state();
|
|
@@ -468835,7 +468835,7 @@ function FastModePicker(t0) {
|
|
|
468835
468835
|
if ($3[26] !== handleCancel || $3[27] !== t10 || $3[28] !== t9) {
|
|
468836
468836
|
t12 = /* @__PURE__ */ jsx_dev_runtime302.jsxDEV(Dialog, {
|
|
468837
468837
|
title,
|
|
468838
|
-
subtitle: `
|
|
468838
|
+
subtitle: `Fast mode — switch to qwen-coder-7b for quick iterations. Same pricing, 3x faster. ${FAST_MODE_MODEL_DISPLAY}. `,
|
|
468839
468839
|
onCancel: handleCancel,
|
|
468840
468840
|
color: "fastMode",
|
|
468841
468841
|
inputGuide: t9,
|
|
@@ -498754,6 +498754,12 @@ function splitSysPromptPrefix(systemPrompt, options) {
|
|
|
498754
498754
|
result.push({ text: restJoined, cacheScope: "org" });
|
|
498755
498755
|
return result;
|
|
498756
498756
|
}
|
|
498757
|
+
|
|
498758
|
+
// Frustration detection (Refs cody-cli#35)
|
|
498759
|
+
var _frustrationPatterns = /\b(fuck|shit|damn|wtf|broken|useless|stupid|hate|terrible|awful|crap|sucks|garbage|trash|ridiculous|worst|ugh|ffs|dammit)\b/i;
|
|
498760
|
+
var _isFrustrated = false;
|
|
498761
|
+
function _checkFrustration(msg) { _isFrustrated = _frustrationPatterns.test(typeof msg === 'string' ? msg : ''); return _isFrustrated; }
|
|
498762
|
+
|
|
498757
498763
|
function appendSystemContext(systemPrompt, context7) {
|
|
498758
498764
|
return [
|
|
498759
498765
|
...systemPrompt,
|
|
@@ -558257,7 +558263,7 @@ async function setup(cwd2, permissionMode, allowDangerouslySkipPermissions, work
|
|
|
558257
558263
|
if (tmuxEnabled && tmuxSessionName) {
|
|
558258
558264
|
const tmuxResult = await createTmuxSessionForWorktree(tmuxSessionName, worktreeSession.worktreePath);
|
|
558259
558265
|
if (tmuxResult.created) {
|
|
558260
|
-
console.log(source_default.
|
|
558266
|
+
console.log(source_default.magenta(`Created tmux session: ${source_default.bold(tmuxSessionName)}
|
|
558261
558267
|
To attach: ${source_default.bold(`tmux attach -t ${tmuxSessionName}`)}`));
|
|
558262
558268
|
} else {
|
|
558263
558269
|
console.error(source_default.yellow(`Warning: Failed to create tmux session: ${tmuxResult.error}`));
|
|
@@ -569689,10 +569695,10 @@ async function update() {
|
|
|
569689
569695
|
await gracefulShutdown(1);
|
|
569690
569696
|
}
|
|
569691
569697
|
if (result.latestVersion === "0.1.0") {
|
|
569692
|
-
writeToStdout(source_default.
|
|
569698
|
+
writeToStdout(source_default.magenta(`Cody CLI is up to date (${"0.1.0"})`) + `
|
|
569693
569699
|
`);
|
|
569694
569700
|
} else {
|
|
569695
|
-
writeToStdout(source_default.
|
|
569701
|
+
writeToStdout(source_default.magenta(`Successfully updated from ${"0.1.0"} to version ${result.latestVersion}`) + `
|
|
569696
569702
|
`);
|
|
569697
569703
|
await regenerateCompletionCache();
|
|
569698
569704
|
}
|
|
@@ -569753,7 +569759,7 @@ async function update() {
|
|
|
569753
569759
|
await gracefulShutdown(1);
|
|
569754
569760
|
}
|
|
569755
569761
|
if (latestVersion === "0.1.0") {
|
|
569756
|
-
writeToStdout(source_default.
|
|
569762
|
+
writeToStdout(source_default.magenta(`Cody CLI is up to date (${"0.1.0"})`) + `
|
|
569757
569763
|
`);
|
|
569758
569764
|
await gracefulShutdown(0);
|
|
569759
569765
|
}
|
|
@@ -569802,7 +569808,7 @@ async function update() {
|
|
|
569802
569808
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
569803
569809
|
switch (status2) {
|
|
569804
569810
|
case "success":
|
|
569805
|
-
writeToStdout(source_default.
|
|
569811
|
+
writeToStdout(source_default.magenta(`Successfully updated from ${"0.1.0"} to version ${latestVersion}`) + `
|
|
569806
569812
|
`);
|
|
569807
569813
|
await regenerateCompletionCache();
|
|
569808
569814
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|