Skip to content

Commit 7dc5cb5

Browse files
fix: update imports to use .js extensions consistently
Co-Authored-By: Sayo <hi@sayo.wtf>
1 parent d60b76f commit 7dc5cb5

File tree

8 files changed

+31
-31
lines changed

8 files changed

+31
-31
lines changed

packages/plugin-beatsfoundation/src/actions/CreateSong/index.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import {
1010
type Action,
1111
} from "@elizaos/core";
1212
import axios from 'axios';
13-
import { validateBeatsFoundationConfig } from "../../environment";
14-
import { sanitizeCreateSongContent } from "../../utils/content-sanitizer";
15-
import { createSafeResponse } from "../../utils/response-sanitizer";
16-
import { createSongExamples } from "./examples";
17-
import { createSongService } from "./service";
18-
import { createSongTemplate } from "./template";
19-
import { CreateSongContent } from "./types";
20-
import { isCreateSongContent } from "./validation";
13+
import { validateBeatsFoundationConfig } from "../../environment.js";
14+
import { sanitizeCreateSongContent } from "../../utils/content-sanitizer.js";
15+
import { createSafeResponse } from "../../utils/response-sanitizer.js";
16+
import { createSongExamples } from "./examples.js";
17+
import { createSongService } from "./service.js";
18+
import { createSongTemplate } from "./template.js";
19+
import { CreateSongContent } from "./types.js";
20+
import { isCreateSongContent } from "./validation.js";
2121

2222
export default {
2323
name: "CREATE_SONG",
@@ -112,4 +112,4 @@ export default {
112112
}
113113
},
114114
examples: createSongExamples,
115-
} as Action;
115+
} satisfies Action;

packages/plugin-beatsfoundation/src/actions/CreateSong/service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios, { CancelToken } from 'axios';
2-
import { Song } from '../../types';
3-
import { CreateSongContent, CreateSongOptions } from './types';
2+
import { Song } from '../../types.js';
3+
import { CreateSongContent, CreateSongOptions } from './types.js';
44

55
export function createSongService(apiKey: string) {
66
// Create axios instance with retry configuration

packages/plugin-beatsfoundation/src/actions/GetSongById/index.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import {
99
State,
1010
type Action,
1111
} from "@elizaos/core";
12-
import { validateBeatsFoundationConfig } from "../../environment";
13-
import { handleBeatsFoundationError } from "../../utils/error-handlers";
14-
import { getSongByIdExamples } from "./examples";
15-
import { createSongService } from "./service";
16-
import { getSongByIdTemplate } from "./template";
17-
import { GetSongByIdContent } from "./types";
18-
import { isGetSongByIdContent } from "./validation";
12+
import { validateBeatsFoundationConfig } from "../../environment.js";
13+
import { handleBeatsFoundationError } from "../../utils/error-handlers.js";
14+
import { getSongByIdExamples } from "./examples.js";
15+
import { createSongService } from "./service.js";
16+
import { getSongByIdTemplate } from "./template.js";
17+
import { GetSongByIdContent } from "./types.js";
18+
import { isGetSongByIdContent } from "./validation.js";
1919

2020
export default {
2121
name: "GET_SONG_BY_ID",
@@ -85,4 +85,4 @@ export default {
8585
}
8686
},
8787
examples: getSongByIdExamples,
88-
} as Action;
88+
} satisfies Action;

packages/plugin-beatsfoundation/src/actions/GetSongById/service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import axios from 'axios';
2-
import { Song } from '../../types';
2+
import { Song } from '../../types.js';
33

44
export function createSongService(apiKey: string) {
55
return {
@@ -23,4 +23,4 @@ export function createSongService(apiKey: string) {
2323
}
2424
}
2525
};
26-
}
26+
}

packages/plugin-beatsfoundation/src/actions/GetSongs/index.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import {
99
State,
1010
type Action,
1111
} from "@elizaos/core";
12-
import { validateBeatsFoundationConfig } from "../../environment";
13-
import { getSongsExamples } from "./examples";
14-
import { createSongsService } from "./service";
15-
import { getSongsTemplate } from "./template";
16-
import { GetSongsContent } from "./types";
17-
import { isGetSongsContent } from "./validation";
12+
import { validateBeatsFoundationConfig } from "../../environment.js";
13+
import { getSongsExamples } from "./examples.js";
14+
import { createSongsService } from "./service.js";
15+
import { getSongsTemplate } from "./template.js";
16+
import { GetSongsContent } from "./types.js";
17+
import { isGetSongsContent } from "./validation.js";
1818

1919
export default {
2020
name: "GET_SONGS",
@@ -98,4 +98,4 @@ export default {
9898
}
9999
},
100100
examples: getSongsExamples,
101-
} as Action;
101+
} satisfies Action;

packages/plugin-beatsfoundation/src/actions/GetSongs/service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import axios from 'axios';
2-
import { PaginatedSongsResponse } from '../../types';
2+
import { PaginatedSongsResponse } from '../../types.js';
33

44
export function createSongsService(apiKey: string) {
55
return {

packages/plugin-beatsfoundation/src/utils/content-sanitizer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CreateSongContent } from "../actions/CreateSong/types";
1+
import { CreateSongContent } from "../actions/CreateSong/types.js";
22

33
const MAX_PROMPT_LENGTH = 1000;
44
const MAX_LYRICS_LENGTH = 5000;

packages/plugin-beatsfoundation/src/utils/response-sanitizer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Song } from '../types';
1+
import { Song } from '../types.js';
22

33
/**
44
* Fields considered sensitive in song creation requests:

0 commit comments

Comments
 (0)