@ainative/cody-cli 0.4.2 → 0.5.1
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 +14 -8
- 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) {
|
|
@@ -193650,7 +193650,7 @@ var OFFICIAL_MARKETPLACE_SOURCE, OFFICIAL_MARKETPLACE_NAME = "claude-plugins-off
|
|
|
193650
193650
|
var init_officialMarketplace = __esm(() => {
|
|
193651
193651
|
OFFICIAL_MARKETPLACE_SOURCE = {
|
|
193652
193652
|
source: "github",
|
|
193653
|
-
repo: "
|
|
193653
|
+
repo: "AINative-Studio/cody-plugins-official"
|
|
193654
193654
|
};
|
|
193655
193655
|
});
|
|
193656
193656
|
|
|
@@ -343826,7 +343826,7 @@ function formatModelUsage() {
|
|
|
343826
343826
|
return result;
|
|
343827
343827
|
}
|
|
343828
343828
|
function formatTotalCost() {
|
|
343829
|
-
const costDisplay = formatCost(getTotalCostUSD()) + (hasUnknownModelCost() ? " (costs
|
|
343829
|
+
const costDisplay = formatCost(getTotalCostUSD()) + (hasUnknownModelCost() ? " (estimated costs based on AINative API pricing)" : "");
|
|
343830
343830
|
const modelUsageDisplay = formatModelUsage();
|
|
343831
343831
|
return source_default.dim(`Total cost: ${costDisplay}
|
|
343832
343832
|
` + `Total duration (API): ${formatDuration(getTotalAPIDuration())}
|
|
@@ -434205,7 +434205,7 @@ function formatInstallCount(count4) {
|
|
|
434205
434205
|
const formatted = m5.toFixed(1);
|
|
434206
434206
|
return formatted.endsWith(".0") ? `${formatted.slice(0, -2)}M` : `${formatted}M`;
|
|
434207
434207
|
}
|
|
434208
|
-
var INSTALL_COUNTS_CACHE_VERSION = 1, INSTALL_COUNTS_CACHE_FILENAME = "install-counts-cache.json", INSTALL_COUNTS_URL = "https://raw.githubusercontent.com/
|
|
434208
|
+
var INSTALL_COUNTS_CACHE_VERSION = 1, INSTALL_COUNTS_CACHE_FILENAME = "install-counts-cache.json", INSTALL_COUNTS_URL = "https://raw.githubusercontent.com/AINative-Studio/cody-plugins-official/refs/heads/stats/stats/plugin-installs.json", CACHE_TTL_MS4;
|
|
434209
434209
|
var init_installCounts = __esm(() => {
|
|
434210
434210
|
init_axios2();
|
|
434211
434211
|
init_debug();
|
|
@@ -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();
|
|
@@ -465763,7 +465763,7 @@ async function call40(onDone) {
|
|
|
465763
465763
|
onDone
|
|
465764
465764
|
}, undefined, false, undefined, this);
|
|
465765
465765
|
}
|
|
465766
|
-
var import_compiler_runtime229, import_react166, jsx_dev_runtime291, OFFICIAL_MARKETPLACE_REPO = "
|
|
465766
|
+
var import_compiler_runtime229, import_react166, jsx_dev_runtime291, OFFICIAL_MARKETPLACE_REPO = "AINative-Studio/cody-plugins-official", SKILL_NAME = "thinkback", EDIT_PROMPT = 'Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Cody year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.', FIX_PROMPT = 'Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Cody year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.', REGENERATE_PROMPT = 'Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Cody year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';
|
|
465767
465767
|
var init_thinkback = __esm(() => {
|
|
465768
465768
|
init_execa();
|
|
465769
465769
|
init_select();
|
|
@@ -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.1",
|
|
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": {
|