mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-25 18:55:19 +02:00
commit
d6fd472985
2 changed files with 23 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@rowboatlabs/rowboatx",
|
||||
"version": "0.6.0",
|
||||
"version": "0.7.0",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue