@voxcode-dev/voxcode 0.1.1 → 0.1.2
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/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +1 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -3
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +4 -38
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/examples/rpc-extension-ui.ts +9 -1
- package/npm-shrinkwrap.json +4 -3
- package/package.json +5 -4
|
@@ -22,13 +22,11 @@ import { BUILT_IN_PROVIDER_DISPLAY_NAMES } from "../../core/provider-display-nam
|
|
|
22
22
|
import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
|
|
23
23
|
import { SessionManager } from "../../core/session-manager.js";
|
|
24
24
|
import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
|
|
25
|
-
import {
|
|
26
|
-
import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/changelog.js";
|
|
25
|
+
import { getChangelogPath, parseChangelog } from "../../utils/changelog.js";
|
|
27
26
|
import { copyToClipboard } from "../../utils/clipboard.js";
|
|
28
27
|
import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
|
|
29
28
|
import { parseGitUrl } from "../../utils/git.js";
|
|
30
29
|
import { getCwdRelativePath } from "../../utils/paths.js";
|
|
31
|
-
import { getVoxUserAgent } from "../../utils/pi-user-agent.js";
|
|
32
30
|
import { killTrackedDetachedChildren } from "../../utils/shell.js";
|
|
33
31
|
import { ensureTool } from "../../utils/tools-manager.js";
|
|
34
32
|
import { checkForNewPiVersion } from "../../utils/version-check.js";
|
|
@@ -624,47 +622,15 @@ export class InteractiveMode {
|
|
|
624
622
|
return undefined;
|
|
625
623
|
}
|
|
626
624
|
/**
|
|
627
|
-
*
|
|
628
|
-
*
|
|
625
|
+
* Returns changelog markdown for startup display.
|
|
626
|
+
* Now returns undefined to keep TUI clean — users can use /changelog.
|
|
629
627
|
*/
|
|
630
628
|
getChangelogForDisplay() {
|
|
631
|
-
|
|
632
|
-
if (this.session.state.messages.length > 0) {
|
|
633
|
-
return undefined;
|
|
634
|
-
}
|
|
635
|
-
const lastVersion = this.settingsManager.getLastChangelogVersion();
|
|
636
|
-
const changelogPath = getChangelogPath();
|
|
637
|
-
const entries = parseChangelog(changelogPath);
|
|
638
|
-
if (!lastVersion) {
|
|
639
|
-
// Fresh install - record the version, send telemetry, don't show changelog
|
|
629
|
+
if (this.session.state.messages.length === 0) {
|
|
640
630
|
this.settingsManager.setLastChangelogVersion(VERSION);
|
|
641
|
-
this.reportInstallTelemetry(VERSION);
|
|
642
|
-
return undefined;
|
|
643
|
-
}
|
|
644
|
-
const newEntries = getNewEntries(entries, lastVersion);
|
|
645
|
-
if (newEntries.length > 0) {
|
|
646
|
-
this.settingsManager.setLastChangelogVersion(VERSION);
|
|
647
|
-
this.reportInstallTelemetry(VERSION);
|
|
648
|
-
return newEntries.map((e) => e.content).join("\n\n");
|
|
649
631
|
}
|
|
650
632
|
return undefined;
|
|
651
633
|
}
|
|
652
|
-
reportInstallTelemetry(version) {
|
|
653
|
-
if (process.env.VOXCODE_OFFLINE) {
|
|
654
|
-
return;
|
|
655
|
-
}
|
|
656
|
-
if (!isInstallTelemetryEnabled(this.settingsManager)) {
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
void fetch(`https://voxcode.dev/api/report-install?version=${encodeURIComponent(version)}`, {
|
|
660
|
-
headers: {
|
|
661
|
-
"User-Agent": getVoxUserAgent(version),
|
|
662
|
-
},
|
|
663
|
-
signal: AbortSignal.timeout(5000),
|
|
664
|
-
})
|
|
665
|
-
.then(() => undefined)
|
|
666
|
-
.catch(() => undefined);
|
|
667
|
-
}
|
|
668
634
|
getMarkdownThemeWithSettings() {
|
|
669
635
|
return {
|
|
670
636
|
...getMarkdownTheme(),
|