Merge pull request #290 from rowboatlabs/dev

Dev
This commit is contained in:
Ramnique Singh 2025-11-18 23:04:57 +05:30 committed by GitHub
commit d6fd472985
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@rowboatlabs/rowboatx",
"version": "0.6.0",
"version": "0.7.0",
"main": "index.js",
"type": "module",
"scripts": {

View file

@ -30,6 +30,24 @@ export async function updateState(agent: string, runId: string) {
}
}
function renderGreeting() {
const logo = `
$$\\ $$\\
$$ | $$ |
$$$$$$\\ $$$$$$\\ $$\\ $$\\ $$\\ $$$$$$$\\ $$$$$$\\ $$$$$$\\ $$$$$$\\ $$\\ $$\\
$$ __$$\\ $$ __$$\\ $$ | $$ | $$ |$$ __$$\\ $$ __$$\\ \\____$$\\_$$ _| \\$$\\ $$ |
$$ | \\__|$$ / $$ |$$ | $$ | $$ |$$ | $$ |$$ / $$ | $$$$$$$ | $$ | \\$$$$ /
$$ | $$ | $$ |$$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ __$$ | $$ |$$\\ $$ $$<
$$ | \\$$$$$$ |\\$$$$$\\$$$$ |$$$$$$$ |\\$$$$$$ |\\$$$$$$$ | \\$$$$ |$$ /\\$$\\
\\__| \\______/ \\_____\\____/ \\_______/ \\______/ \\_______| \\____/ \\__/ \\__|
`;
console.log(logo);
console.log("\nHow can i help you today?");
}
export async function app(opts: {
agent: string;
runId?: string;
@ -39,6 +57,10 @@ export async function app(opts: {
const renderer = new StreamRenderer();
const state = new AgentState(opts.agent, opts.runId);
if (opts.agent === "copilot" && !opts.runId) {
renderGreeting();
}
// load existing and assemble state if required
let runId = opts.runId;
if (runId) {