@ainative/cody-cli 0.4.2 → 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 +10 -4
- 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) {
|
|
@@ -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,
|
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": {
|