File tree 8 files changed +31
-31
lines changed
packages/plugin-beatsfoundation/src
8 files changed +31
-31
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ import {
10
10
type Action ,
11
11
} from "@elizaos/core" ;
12
12
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 " ;
21
21
22
22
export default {
23
23
name : "CREATE_SONG" ,
@@ -112,4 +112,4 @@ export default {
112
112
}
113
113
} ,
114
114
examples : createSongExamples ,
115
- } as Action ;
115
+ } satisfies Action ;
Original file line number Diff line number Diff line change 1
1
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 ' ;
4
4
5
5
export function createSongService ( apiKey : string ) {
6
6
// Create axios instance with retry configuration
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ import {
9
9
State ,
10
10
type Action ,
11
11
} 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 " ;
19
19
20
20
export default {
21
21
name : "GET_SONG_BY_ID" ,
@@ -85,4 +85,4 @@ export default {
85
85
}
86
86
} ,
87
87
examples : getSongByIdExamples ,
88
- } as Action ;
88
+ } satisfies Action ;
Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
- import { Song } from '../../types' ;
2
+ import { Song } from '../../types.js ' ;
3
3
4
4
export function createSongService ( apiKey : string ) {
5
5
return {
@@ -23,4 +23,4 @@ export function createSongService(apiKey: string) {
23
23
}
24
24
}
25
25
} ;
26
- }
26
+ }
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import {
9
9
State ,
10
10
type Action ,
11
11
} 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 " ;
18
18
19
19
export default {
20
20
name : "GET_SONGS" ,
@@ -98,4 +98,4 @@ export default {
98
98
}
99
99
} ,
100
100
examples : getSongsExamples ,
101
- } as Action ;
101
+ } satisfies Action ;
Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
- import { PaginatedSongsResponse } from '../../types' ;
2
+ import { PaginatedSongsResponse } from '../../types.js ' ;
3
3
4
4
export function createSongsService ( apiKey : string ) {
5
5
return {
Original file line number Diff line number Diff line change 1
- import { CreateSongContent } from "../actions/CreateSong/types" ;
1
+ import { CreateSongContent } from "../actions/CreateSong/types.js " ;
2
2
3
3
const MAX_PROMPT_LENGTH = 1000 ;
4
4
const MAX_LYRICS_LENGTH = 5000 ;
Original file line number Diff line number Diff line change 1
- import { Song } from '../types' ;
1
+ import { Song } from '../types.js ' ;
2
2
3
3
/**
4
4
* Fields considered sensitive in song creation requests:
You can’t perform that action at this time.
0 commit comments