Problem
After fresh initialization of the agent, in light of #131 , it seems that running bun dev, fails with an error.
Reproduction Steps
Run bunx init @tribes-protocol/AyaOS to initialize project
Follow prompts to create a new project
Project fails to finish initialization process due to Bug: Failed to create agent on bunx @tribesxyz/ayaos init due to create-agent.ts module not found #131
Project is created.
Try to run bun dev
Error results:
$ tsx src/index.ts
[2025-04-12 00:15:18] INFO: Loading embedding settings:
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
hello, agent!
[2025-04-12 00:15:18] INFO: Loading character settings:
ARGV: [
"/Users/robert/.n/bin/node",
"/Users/robert/src/Socrates/src/index.ts"
]
CWD: "/Users/robert/src/Socrates"
[2025-04-12 00:15:18] INFO: Parsed settings:
USE_OPENAI_EMBEDDING_TYPE: "undefined"
USE_OLLAMA_EMBEDDING_TYPE: "undefined"
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
[2025-04-12 00:15:19] INFO: Starting agent...
[2025-04-12 00:15:19] INFO: Checking if agent coin is provisioned...
[2025-04-12 00:15:19] INFO: Provisioning agent...
sdk error TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async AgentcoinAPI.createCliAuthRequest (file:///Users/robert/src/Socrates/node_modules/@tribesxyz/ayaos/dist/index.js:676:22)
at async AgentcoinService.createCliAuthAndWaitForToken (file:///Users/robert/src/Socrates/node_modules/@tribesxyz/ayaos/dist/index.js:919:16)
at async AgentcoinService.provisionPureAgent (file:///Users/robert/src/Socrates/node_modules/@tribesxyz/ayaos/dist/index.js:883:15)
at async AgentcoinService.provisionIfNeeded (file:///Users/robert/src/Socrates/node_modules/@tribesxyz/ayaos/dist/index.js:852:23)
at async Agent3.start (file:///Users/robert/src/Socrates/node_modules/@tribesxyz/ayaos/dist/index.js:8691:7)
at main (/Users/robert/src/Socrates/src/index.ts:21:5) {
cause: Error: connect EBADF 107.22.208.42:443
at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:671:12)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
errno: -9,
code: 'EBADF',
syscall: 'connect',
address: '107.22.208.42',
port: 443
}
}
[2025-04-12 00:15:19] ERROR: Error creating agent:
error: script "dev" exited with code 1
Expected Behaviour
Running bun dev would start the agent server.
Problem
After fresh initialization of the agent, in light of #131, it seems that running
bun dev, fails with an error.Reproduction Steps
bunx init @tribes-protocol/AyaOSto initialize projectbunx @tribesxyz/ayaos initdue tocreate-agent.tsmodule not found #131bun devError results:
Expected Behaviour
Running
bun devwould start the agent server.