Skip to content

Commit 46d77df

Browse files
authored
chore: lint and fix pass on develop (elizaOS#2180)
* typo fix: close object * update lockfile * lint fixes * processAtions can't be awaited in non-async function * revert GoPlusType so it can work with switch statement * lint fixes * processAtions can't be awaited in non-async function * revert GoPlusType so it can work with switch statement * bump lock * merge, fix conflicts * convert imageDescriptionsArray from let to const per lint * remove duplicate TOGETHER in case, lint/unused var * bump eslint so it doesn't crash * comment out unused AkashMessage interface * clean up unused var in catch * bump
1 parent fdc024e commit 46d77df

File tree

6 files changed

+810
-333
lines changed

6 files changed

+810
-333
lines changed

packages/client-twitter/src/interactions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export class TwitterInteractionClient {
348348

349349
elizaLogger.debug("formattedConversation: ", formattedConversation);
350350

351-
let imageDescriptionsArray = [];
351+
const imageDescriptionsArray = [];
352352
try{
353353
elizaLogger.debug('Getting images');
354354
for (const photo of tweet.photos) {

packages/core/src/generation.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ export async function generateText({
413413
case ModelProviderName.HYPERBOLIC:
414414
case ModelProviderName.TOGETHER:
415415
case ModelProviderName.NINETEEN_AI:
416-
case ModelProviderName.TOGETHER:
417416
case ModelProviderName.AKASH_CHAT_API: {
418417
elizaLogger.debug("Initializing OpenAI model with Cloudflare check");
419418
const baseURL = getCloudflareGatewayBaseURL(runtime, 'openai') || endpoint;
@@ -1947,7 +1946,7 @@ async function handleOpenAI({
19471946
schemaDescription,
19481947
mode = "json",
19491948
modelOptions,
1950-
provider,
1949+
provider: _provider,
19511950
runtime,
19521951
}: ProviderOptions): Promise<GenerateObjectResult<unknown>> {
19531952
const baseURL = getCloudflareGatewayBaseURL(runtime, 'openai') || models.openai.endpoint;

packages/plugin-akash/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"@cosmjs/proto-signing": "^0.31.3",
2323
"@cosmjs/stargate": "0.31.3",
2424
"@elizaos/core": "workspace:*",
25+
"@types/js-yaml": "^4.0.9",
2526
"axios": "^1.7.9",
2627
"dotenv": "^16.4.1",
2728
"jsrsasign": "^11.1.0",
2829
"node-fetch": "^2.7.0",
29-
"zod": "^3.22.4",
30-
"@types/js-yaml": "^4.0.9"
30+
"zod": "^3.22.4"
3131
},
3232
"devDependencies": {
3333
"@types/dotenv": "^8.2.0",
@@ -38,7 +38,7 @@
3838
"@typescript-eslint/parser": "^6.15.0",
3939
"@vitest/coverage-v8": "^0.34.6",
4040
"@vitest/ui": "^0.34.6",
41-
"eslint": "^8.56.0",
41+
"eslint": "^9.16.0",
4242
"tsup": "^8.0.1",
4343
"typescript": "^5.3.3",
4444
"vite": "^5.0.10",

packages/plugin-akash/src/actions/estimateGas.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { validateAkashConfig } from "../environment";
88
import { AkashError, AkashErrorCode } from "../error/error";
99
import { encodingForModel } from "js-tiktoken";
1010

11+
/*
1112
interface AkashMessage {
1213
typeUrl: string;
1314
value: {
@@ -18,6 +19,7 @@ interface AkashMessage {
1819
[key: string]: unknown;
1920
};
2021
}
22+
*/
2123

2224
interface EstimateGasContent extends Content {
2325
text: string;

packages/plugin-massa/src/utils/address.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Address } from "@massalabs/massa-web3";
33
export const validateAddress = (address: string): Address | undefined => {
44
try {
55
return Address.fromString(address);
6-
} catch (_e) {
6+
} catch {
77
return undefined;
88
}
99
};

0 commit comments

Comments
 (0)