mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 22:02:38 +00:00
Document npm run dev for watch mode development
This commit is contained in:
parent
bc670bc63c
commit
bc01ed5eb6
3 changed files with 14 additions and 6 deletions
11
README.md
11
README.md
|
|
@ -27,15 +27,20 @@ npm run build # Build all packages
|
||||||
npm run check # Lint, format, and type check
|
npm run check # Lint, format, and type check
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running Without Building
|
### Running During Development
|
||||||
|
|
||||||
Use `tsx` to run TypeScript source directly during development:
|
|
||||||
|
|
||||||
|
**Option 1: Run source directly with tsx (no build required)**
|
||||||
```bash
|
```bash
|
||||||
cd packages/coding-agent && npx tsx src/cli.ts
|
cd packages/coding-agent && npx tsx src/cli.ts
|
||||||
cd packages/pods && npx tsx src/cli.ts
|
cd packages/pods && npx tsx src/cli.ts
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Option 2: Watch mode + tsx (for multi-package development)**
|
||||||
|
```bash
|
||||||
|
npm run dev # Terminal 1: Start watch builds for all packages
|
||||||
|
npx tsx ... # Terminal 2: Run with tsx (picks up built files)
|
||||||
|
```
|
||||||
|
|
||||||
### Versioning (Lockstep)
|
### Versioning (Lockstep)
|
||||||
|
|
||||||
**All packages MUST always have the same version number.** Use these commands to bump versions:
|
**All packages MUST always have the same version number.** Use these commands to bump versions:
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ function getShellConfig(): { shell: string; args: string[] } {
|
||||||
|
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Git Bash not found. Please install Git for Windows from https://git-scm.com/download/win\n` +
|
`Git Bash not found. Please install Git for Windows from https://git-scm.com/download/win\n` +
|
||||||
`Searched in:\n${paths.map((p) => ` ${p}`).join("\n")}`,
|
`Searched in:\n${paths.map((p) => ` ${p}`).join("\n")}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return { shell: "sh", args: ["-c"] };
|
return { shell: "sh", args: ["-c"] };
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,9 @@ import {
|
||||||
TUI,
|
TUI,
|
||||||
} from "@mariozechner/pi-tui";
|
} from "@mariozechner/pi-tui";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import { getChangelogPath, getNewEntries, parseChangelog } from "../changelog.js";
|
import { getChangelogPath, parseChangelog } from "../changelog.js";
|
||||||
import { exportSessionToHtml } from "../export-html.js";
|
import { exportSessionToHtml } from "../export-html.js";
|
||||||
import type { SessionManager } from "../session-manager.js";
|
import type { SessionManager } from "../session-manager.js";
|
||||||
import { SettingsManager } from "../settings-manager.js";
|
|
||||||
import { AssistantMessageComponent } from "./assistant-message.js";
|
import { AssistantMessageComponent } from "./assistant-message.js";
|
||||||
import { CustomEditor } from "./custom-editor.js";
|
import { CustomEditor } from "./custom-editor.js";
|
||||||
import { DynamicBorder } from "./dynamic-border.js";
|
import { DynamicBorder } from "./dynamic-border.js";
|
||||||
|
|
@ -677,7 +676,11 @@ export class TuiRenderer {
|
||||||
|
|
||||||
// Display in chat
|
// Display in chat
|
||||||
this.chatContainer.addChild(new Spacer(1));
|
this.chatContainer.addChild(new Spacer(1));
|
||||||
|
this.chatContainer.addChild(new DynamicBorder(chalk.cyan));
|
||||||
|
this.ui.addChild(new Text(chalk.bold.cyan("What's New"), 1, 0));
|
||||||
|
this.ui.addChild(new Spacer(1));
|
||||||
this.chatContainer.addChild(new Markdown(changelogMarkdown));
|
this.chatContainer.addChild(new Markdown(changelogMarkdown));
|
||||||
|
this.chatContainer.addChild(new DynamicBorder(chalk.cyan));
|
||||||
this.ui.requestRender();
|
this.ui.requestRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue