Skip to content

Commit

Permalink
run prettier on changed file
Browse files Browse the repository at this point in the history
  • Loading branch information
plxity committed Dec 9, 2024
1 parent 70fba4b commit 633f47f
Show file tree
Hide file tree
Showing 43 changed files with 3,653 additions and 3,145 deletions.
2 changes: 1 addition & 1 deletion js/src/cli/triggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class TriggerAdd {
}
}

const triggerSetupData = await composioClient.triggers.setup({
const triggerSetupData = await composioClient.triggers.setup({
connectedAccountId: connection.id,
triggerName,
config: configValue,
Expand Down
10 changes: 5 additions & 5 deletions js/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const ACTIONS = {
// actions list end here
};

const COMPOSIO_VERSION = `0.3.0`
const COMPOSIO_VERSION = `0.3.0`;

module.exports = {
APPS,
ACTIONS,
COMPOSIO_VERSION
}
APPS,
ACTIONS,
COMPOSIO_VERSION,
};
7 changes: 5 additions & 2 deletions js/src/frameworks/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ export class CloudflareToolSet extends BaseComposioToolSet {
return JSON.stringify(
await this.executeAction({
action: tool.name,
params: typeof tool.arguments === "string" ? JSON.parse(tool.arguments) : tool.arguments,
entityId: entityId || this.entityId
params:
typeof tool.arguments === "string"
? JSON.parse(tool.arguments)
: tool.arguments,
entityId: entityId || this.entityId,
})
);
}
Expand Down
2 changes: 1 addition & 1 deletion js/src/frameworks/langchain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("Apps class tests", () => {
repo: "achievementsof.life",
},
entityId: "default",
connectedAccountId: "db3c8d95-73e9-474e-8ae8-edfbdaab98b1"
connectedAccountId: "db3c8d95-73e9-474e-8ae8-edfbdaab98b1",
});

expect(actionOuput).toHaveProperty("successfull", true);
Expand Down
16 changes: 9 additions & 7 deletions js/src/frameworks/langchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ export class LangchainToolSet extends BaseComposioToolSet {
const action = schema["name"];
const description = schema["description"];

const func = async (...kwargs: any[]): Promise<any> => {
return JSON.stringify(await this.executeAction({
action,
params: kwargs[0],
entityId: entityId || this.entityId
}));
};
const func = async (...kwargs: any[]): Promise<any> => {
return JSON.stringify(
await this.executeAction({
action,
params: kwargs[0],
entityId: entityId || this.entityId,
})
);
};

const parameters = jsonSchemaToModel(schema["parameters"]);

Expand Down
Loading

0 comments on commit 633f47f

Please sign in to comment.