@kolisachint/hoocode-agent 0.1.0 → 0.1.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.
@@ -40,7 +40,6 @@ import { CustomEditor } from "./components/custom-editor.js";
40
40
  import { CustomMessageComponent } from "./components/custom-message.js";
41
41
  import { DaxnutsComponent } from "./components/daxnuts.js";
42
42
  import { DynamicBorder } from "./components/dynamic-border.js";
43
- import { EarendilAnnouncementComponent } from "./components/earendil-announcement.js";
44
43
  import { ExtensionEditorComponent } from "./components/extension-editor.js";
45
44
  import { ExtensionInputComponent } from "./components/extension-input.js";
46
45
  import { ExtensionSelectorComponent } from "./components/extension-selector.js";
@@ -423,7 +422,7 @@ export class InteractiveMode {
423
422
  hint("app.tools.expand", "more"),
424
423
  ].join(theme.fg("muted", " · "));
425
424
  const compactOnboarding = theme.fg("dim", `Press ${keyText("app.tools.expand")} to show full startup help and loaded resources.`);
426
- const onboarding = theme.fg("dim", `Pi can explain its own features and look up its docs. Ask it how to use or extend Pi.`);
425
+ const onboarding = theme.fg("dim", `${APP_NAME} can explain its own features and look up its docs. Ask it how to use or extend ${APP_NAME}.`);
427
426
  this.builtInHeader = new ExpandableText(() => `${logo}\n${compactInstructions}\n${compactOnboarding}\n\n${onboarding}`, () => `${logo}\n${expandedInstructions}\n\n${onboarding}`, this.getStartupExpansionState(), 1, 0);
428
427
  // Setup UI layout
429
428
  this.headerContainer.addChild(new Spacer(1));
@@ -603,7 +602,7 @@ export class InteractiveMode {
603
602
  return "tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.";
604
603
  }
605
604
  if (extendedKeysFormat === "xterm") {
606
- return "tmux extended-keys-format is xterm. Pi works best with csi-u. Add `set -g extended-keys-format csi-u` to ~/.tmux.conf and restart tmux.";
605
+ return `tmux extended-keys-format is xterm. ${APP_NAME} works best with csi-u. Add \`set -g extended-keys-format csi-u\` to ~/.tmux.conf and restart tmux.`;
607
606
  }
608
607
  return undefined;
609
608
  }
@@ -1911,7 +1910,7 @@ export class InteractiveMode {
1911
1910
  // Write to temp file
1912
1911
  const tmpDir = os.tmpdir();
1913
1912
  const ext = extensionForImageMimeType(image.mimeType) ?? "png";
1914
- const fileName = `pi-clipboard-${crypto.randomUUID()}.${ext}`;
1913
+ const fileName = `${APP_NAME}-clipboard-${crypto.randomUUID()}.${ext}`;
1915
1914
  const filePath = path.join(tmpDir, fileName);
1916
1915
  fs.writeFileSync(filePath, Buffer.from(image.bytes));
1917
1916
  // Insert file path directly
@@ -2035,11 +2034,6 @@ export class InteractiveMode {
2035
2034
  this.editor.setText("");
2036
2035
  return;
2037
2036
  }
2038
- if (text === "/dementedelves") {
2039
- this.handleDementedDelves();
2040
- this.editor.setText("");
2041
- return;
2042
- }
2043
2037
  if (text === "/resume") {
2044
2038
  this.showSessionSelector();
2045
2039
  this.editor.setText("");
@@ -2820,7 +2814,7 @@ export class InteractiveMode {
2820
2814
  return;
2821
2815
  }
2822
2816
  const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
2823
- const tmpFile = path.join(os.tmpdir(), `pi-editor-${Date.now()}.pi.md`);
2817
+ const tmpFile = path.join(os.tmpdir(), `${APP_NAME}-editor-${Date.now()}.${APP_NAME}.md`);
2824
2818
  try {
2825
2819
  // Write current content to temp file
2826
2820
  fs.writeFileSync(tmpFile, currentText, "utf-8");
@@ -4435,11 +4429,6 @@ export class InteractiveMode {
4435
4429
  this.chatContainer.addChild(new ArminComponent(this.ui));
4436
4430
  this.ui.requestRender();
4437
4431
  }
4438
- handleDementedDelves() {
4439
- this.chatContainer.addChild(new Spacer(1));
4440
- this.chatContainer.addChild(new EarendilAnnouncementComponent());
4441
- this.ui.requestRender();
4442
- }
4443
4432
  handleDaxnuts() {
4444
4433
  this.chatContainer.addChild(new Spacer(1));
4445
4434
  this.chatContainer.addChild(new DaxnutsComponent(this.ui));