Skip to content

Commit

Permalink
remove the package from injecting into package.json of agent
Browse files Browse the repository at this point in the history
  • Loading branch information
HashWarlock committed Feb 12, 2025
1 parent 88dcefd commit e773f44
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/cli/src/utils/install-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,10 @@ export async function installPlugin(
if (pkg.name) {
pkgName = pkg.name;
logger.info(`Found package.json name: ${pkgName}`);
logger.info(`Add ${pkgName} to your character's plugins config (packages/agent/defaultCharacter.ts)`);
}
} catch (err: any) {
logger.warn(`Could not read package.json from ${pkgPath}: ${err.message}`);
}

logger.info(`Adding ${pkgName} to workspace's agent package (packages/agent/package.json)...`);
await runBunCommand(
["add", `${pkgName}@workspace:*`, "--filter", "./packages/agent"],
cwd
);
logger.success(`Successfully added ${pkgName} to agent workspace.`);
}
}

0 comments on commit e773f44

Please sign in to comment.