@selesai/code 0.5.0 → 0.5.3
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/core/settings-manager-auto-handoff.test.d.ts.map +1 -1
- package/dist/core/settings-manager-auto-handoff.test.js +16 -2
- package/dist/core/settings-manager-auto-handoff.test.js.map +1 -1
- package/dist/core/settings-manager.d.ts +2 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +23 -3
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/defaults/settings.json +4 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +4 -12
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +10 -0
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/utils/version-check.d.ts +3 -1
- package/dist/utils/version-check.d.ts.map +1 -1
- package/dist/utils/version-check.js +6 -4
- package/dist/utils/version-check.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ import * as fs from "node:fs";
|
|
|
6
6
|
import * as os from "node:os";
|
|
7
7
|
import * as path from "node:path";
|
|
8
8
|
import { getProviders, } from "@earendil-works/pi-ai/compat";
|
|
9
|
-
import { CombinedAutocompleteProvider, Container, fuzzyFilter,
|
|
9
|
+
import { CombinedAutocompleteProvider, Container, fuzzyFilter, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "@earendil-works/pi-tui";
|
|
10
10
|
import chalk from "chalk";
|
|
11
11
|
import { spawn, spawnSync } from "child_process";
|
|
12
|
-
import { APP_NAME, APP_TITLE, CONFIG_DIR_NAME, getAgentDir, getAuthPath, getDebugLogPath, getDocsPath, getShareViewerUrl, VERSION, } from "../../config.js";
|
|
12
|
+
import { APP_NAME, APP_TITLE, CONFIG_DIR_NAME, getAgentDir, getAuthPath, getDebugLogPath, getDocsPath, getShareViewerUrl, getUpdateInstruction, PACKAGE_NAME, VERSION, } from "../../config.js";
|
|
13
13
|
import { parseSkillBlock } from "../../core/agent-session.js";
|
|
14
14
|
import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
|
|
15
15
|
import { CACHE_TTL_MS, collectCacheMisses, computeCacheWaste, detectCacheMiss, } from "../../core/cache-stats.js";
|
|
@@ -605,7 +605,7 @@ export class InteractiveMode {
|
|
|
605
605
|
async run() {
|
|
606
606
|
await this.init();
|
|
607
607
|
// Start version check asynchronously
|
|
608
|
-
checkForNewPiVersion(this.version).then((newRelease) => {
|
|
608
|
+
checkForNewPiVersion(this.version, PACKAGE_NAME).then((newRelease) => {
|
|
609
609
|
if (newRelease) {
|
|
610
610
|
this.showNewVersionNotification(newRelease);
|
|
611
611
|
}
|
|
@@ -3231,13 +3231,7 @@ export class InteractiveMode {
|
|
|
3231
3231
|
this.ui.requestRender();
|
|
3232
3232
|
}
|
|
3233
3233
|
showNewVersionNotification(release) {
|
|
3234
|
-
const
|
|
3235
|
-
const updateInstruction = theme.fg("muted", `New version ${release.version} is available. Run `) + action;
|
|
3236
|
-
const changelogUrl = "https://pi.dev/changelog";
|
|
3237
|
-
const changelogLink = getCapabilities().hyperlinks
|
|
3238
|
-
? hyperlink(theme.fg("accent", changelogUrl), changelogUrl)
|
|
3239
|
-
: theme.fg("accent", changelogUrl);
|
|
3240
|
-
const changelogLine = theme.fg("muted", "Changelog: ") + changelogLink;
|
|
3234
|
+
const updateInstruction = `New version ${release.version} is available. ${getUpdateInstruction(PACKAGE_NAME)}`;
|
|
3241
3235
|
const note = release.note?.trim();
|
|
3242
3236
|
this.chatContainer.addChild(new Spacer(1));
|
|
3243
3237
|
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
|
@@ -3249,8 +3243,6 @@ export class InteractiveMode {
|
|
|
3249
3243
|
}));
|
|
3250
3244
|
this.chatContainer.addChild(new Spacer(1));
|
|
3251
3245
|
}
|
|
3252
|
-
this.chatContainer.addChild(new Text(changelogLine, 1, 0));
|
|
3253
|
-
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
|
3254
3246
|
this.ui.requestRender();
|
|
3255
3247
|
}
|
|
3256
3248
|
showPackageUpdateNotification(packages) {
|