Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/api/plugins/[pluginId]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const POST = withUnkey(
repo: assistantDefinition.repo || null,
verified: false,
chainIds:
assistantDefinition.chainIds?.map((cid) => cid.toString()) || [],
assistantDefinition.chainIds?.map((cid) => cid.toString().toLowerCase()) || [],
tools: pluginTools.map((t) => t.id),
primitives:
assistantDefinition.tools
Expand Down Expand Up @@ -335,7 +335,7 @@ export const PUT = withUnkey(
assistantDefinition.instructions || plugin.info.description || "",
image: assistantDefinition.image || null,
chainIds:
assistantDefinition.chainIds?.map((cid) => cid.toString()) || [],
assistantDefinition.chainIds?.map((cid) => cid.toString().toLowerCase()) || [],
tools: pluginTools.map((t) => t.id),
primitives:
assistantDefinition.tools
Expand Down
1 change: 1 addition & 0 deletions app/primitives/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum BittePrimitiveName {
GET_TOKEN_METADATA = 'getTokenMetadata',
GENERATE_EVM_TX = 'generate-evm-tx',
GENERATE_SUI_TX = 'generate-sui-tx',
GENERATE_SOL_TX = 'generate-sol-tx',
RENDER_CHART = 'render-chart',
SIGN_MESSAGE = 'sign-message',
GET_PORTFOLIO = 'get-portfolio',
Expand Down
1 change: 1 addition & 0 deletions lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const COLLECTIONS = {
export const BittePrimitiveNames = [
"create-drop",
"generate-evm-tx",
"generate-sol-tx",
"generate-image",
"generate-transaction",
"getSwapTransactions",
Expand Down
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export type BitteAgentBase = {
instructions: string;
tools?: BitteToolSpec[];
image?: string;
chainIds?: number[];
chainIds?: string[];
categories?: string[];
repo?: string;
};
Expand Down