UpstreetAI / monorepo

Upstreet AI Monorepo
https://upstreet.ai
0 stars 0 forks source link

[SDK] Latest Dev throwing error on usdk chat #528

Open AbdurrehmanSubhani opened 1 day ago

AbdurrehmanSubhani commented 1 day ago

Steps for reproduction:

Complete error logs:

(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro monorepo % usdk chat '/Users/abdurrehmansubhani/
Desktop/agents/agent3' -g
Error: ENOENT: no such file or directory, open './wrangler.toml'
    at async open (node:internal/fs/promises:638:25)
    at async Object.readFile (node:internal/fs/promises:1238:14)
    at async getEnv (/Users/abdurrehmansubhani/Desktop/agents/agent3/packages/upstreet-agent/packages/react-agents-node/entry.mjs:20:30)
    at async main (/Users/abdurrehmansubhani/Desktop/agents/agent3/packages/upstreet-agent/packages/react-agents-node/entry.mjs:62:15)
    at async runAgent (file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/worker.mjs:64:21)
    at async Command.<anonymous> (file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/worker.mjs:116:9)
    at async Command.parseAsync (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/node_modules/commander/lib/command.js:1092:5)
    at async main (file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/worker.mjs:123:3) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './wrangler.toml'
}
Error: kill ESRCH
    at process.kill (node:internal/process/per_thread:224:13)
    at process.<anonymous> (file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/watcher.mjs:15:15)
    at process.emit (node:events:519:28)
    at process._fatalException (node:internal/process/execution:198:19)
file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/watcher.mjs:70
        if (live) {
        ^

ReferenceError: Cannot access 'live' before initialization
    at ChildProcess.exit (file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/watcher.mjs:70:9)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:293:12)

Node.js v22.9.0
node runtime watcher exit 1
Error: kill ESRCH
    at process.kill (node:internal/process/per_thread:224:13)
    at process.<anonymous> (file:///Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents-node/node-runtime.mjs:15:15)
    at process.emit (node:events:519:28)
    at process.emit (node:domain:488:12)
AbdurrehmanSubhani commented 1 day ago

A fix made in PR: https://github.com/UpstreetAI/monorepo/pull/529