mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 05:00:16 +00:00
feat(coding-agent): export VERSION and update custom-header example (#798)
Co-authored-by: Jian Zhang <jzhang@yanhuangdata.com>
This commit is contained in:
parent
58eec55154
commit
fc538f6ca1
2 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
import type { ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
||||||
|
import { VERSION } from "@mariozechner/pi-coding-agent";
|
||||||
|
|
||||||
// --- PI MASCOT ---
|
// --- PI MASCOT ---
|
||||||
// Based on pi_mascot.ts - the pi agent character
|
// Based on pi_mascot.ts - the pi agent character
|
||||||
|
|
@ -52,7 +53,7 @@ export default function (pi: ExtensionAPI) {
|
||||||
render(_width: number): string[] {
|
render(_width: number): string[] {
|
||||||
const mascotLines = getPiMascot(theme);
|
const mascotLines = getPiMascot(theme);
|
||||||
// Add a subtitle with hint
|
// Add a subtitle with hint
|
||||||
const subtitle = theme.fg("muted", " shitty coding agent");
|
const subtitle = `${theme.fg("muted", " shitty coding agent")}${theme.fg("dim", ` v${VERSION}`)}`;
|
||||||
return [...mascotLines, subtitle];
|
return [...mascotLines, subtitle];
|
||||||
},
|
},
|
||||||
invalidate() {},
|
invalidate() {},
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// Core session management
|
// Core session management
|
||||||
|
|
||||||
// Config paths
|
// Config paths
|
||||||
export { getAgentDir } from "./config.js";
|
export { getAgentDir, VERSION } from "./config.js";
|
||||||
export {
|
export {
|
||||||
AgentSession,
|
AgentSession,
|
||||||
type AgentSessionConfig,
|
type AgentSessionConfig,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue