mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 18:01:22 +00:00
feat(coding-agent): add daxnuts easter egg
This commit is contained in:
parent
355bc5adc3
commit
0e2f90b734
3 changed files with 180 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ import { BranchSummaryMessageComponent } from "./components/branch-summary-messa
|
|||
import { CompactionSummaryMessageComponent } from "./components/compaction-summary-message.js";
|
||||
import { CustomEditor } from "./components/custom-editor.js";
|
||||
import { CustomMessageComponent } from "./components/custom-message.js";
|
||||
import { DaxnutsComponent } from "./components/daxnuts.js";
|
||||
import { DynamicBorder } from "./components/dynamic-border.js";
|
||||
import { ExtensionEditorComponent } from "./components/extension-editor.js";
|
||||
import { ExtensionInputComponent } from "./components/extension-input.js";
|
||||
|
|
@ -3098,6 +3099,7 @@ export class InteractiveMode {
|
|||
this.footer.invalidate();
|
||||
this.updateEditorBorderColor();
|
||||
this.showStatus(`Model: ${model.id}`);
|
||||
this.checkDaxnutsEasterEgg(model);
|
||||
} catch (error) {
|
||||
this.showError(error instanceof Error ? error.message : String(error));
|
||||
}
|
||||
|
|
@ -3169,6 +3171,7 @@ export class InteractiveMode {
|
|||
this.updateEditorBorderColor();
|
||||
done();
|
||||
this.showStatus(`Model: ${model.id}`);
|
||||
this.checkDaxnutsEasterEgg(model);
|
||||
} catch (error) {
|
||||
done();
|
||||
this.showError(error instanceof Error ? error.message : String(error));
|
||||
|
|
@ -4119,6 +4122,18 @@ export class InteractiveMode {
|
|||
this.ui.requestRender();
|
||||
}
|
||||
|
||||
private handleDaxnuts(): void {
|
||||
this.chatContainer.addChild(new Spacer(1));
|
||||
this.chatContainer.addChild(new DaxnutsComponent(this.ui));
|
||||
this.ui.requestRender();
|
||||
}
|
||||
|
||||
private checkDaxnutsEasterEgg(model: { provider: string; id: string }): void {
|
||||
if (model.provider === "opencode" && model.id.toLowerCase().includes("kimi-k2.5")) {
|
||||
this.handleDaxnuts();
|
||||
}
|
||||
}
|
||||
|
||||
private async handleBashCommand(command: string, excludeFromContext = false): Promise<void> {
|
||||
const extensionRunner = this.session.extensionRunner;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue