Skip to content

Bug: Failed to create agent on bunx @tribesxyz/ayaos init due to create-agent.ts module not found #131

@aquaflamingo

Description

@aquaflamingo

Problem

Upon attempting to setup an initial agent, using bunx it seems that the create-agent.ts script fails, causing the process for Aya OS SDK to abort and fail.

Reproduction Steps

  1. Install Bunx
  2. Run bunx @tribesxyz/ayaos init
What do you want to name the project? Socrates
Where do you want the data directory to be? (Please provide full path) ~/src/datadir
What is your agent's name? socrates
What is your agent's purpose? To teach
Cloning into 'Socrates'...
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 78 (delta 37), reused 46 (delta 17), pack-reused 0 (from 0)
Receiving objects: 100% (78/78), 464.89 KiB | 6.74 MiB/s, done.
Resolving deltas: 100% (37/37), done.
[0.36ms] ".env"
bun install v1.2.9 (9a329c04)

+ @changesets/cli@2.28.1
+ @types/elliptic@6.4.18
+ @types/express@5.0.0
+ @types/node@22.13.4
+ @types/pdf-parse@1.1.4
+ dotenv-cli@7.4.1
+ eslint@8.57.1
+ eslint-config-next@15.1.4
+ eslint-config-prettier@9.1.0
+ eslint-config-standard@17.1.0
+ eslint-plugin-import@2.31.0
+ eslint-plugin-jasmine@4.2.2
+ eslint-plugin-n@17.14.0
+ eslint-plugin-prettier@5.2.1
+ eslint-plugin-promise@7.1.0
+ prettier@3.3.3
+ ts-node@10.9.2
+ tsup@8.4.0
+ tsx@4.19.2
+ typescript@5.6.3
+ @elizaos/core@0.1.9
+ @tribesxyz/ayaos@0.0.36 (v0.0.51 available)

1270 packages installed [13.53s]

Blocked 3 postinstalls. Run `bun pm untrusted` for details.
error: Module not found "/private/tmp/bunx-501-@tribesxyz/ayaos@latest/node_modules/scripts/create-agent.ts"
Failed to create agent

Expected Behaviour

The init script would setup the agent as needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions