Skip to content

Commit 000eace

Browse files
committed
feat: first version
1 parent 63a7874 commit 000eace

File tree

14 files changed

+1813
-82
lines changed

14 files changed

+1813
-82
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
publish-npm:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: '23.3.0'
20+
registry-url: https://registry.npmjs.org/
21+
22+
# Install dependencies with pnpm
23+
- uses: pnpm/action-setup@v2
24+
with:
25+
version: latest
26+
27+
- name: Create release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: |
31+
RELEASE_TAG=v$(node -p "require('./package.json').version")
32+
gh release create $RELEASE_TAG --target=$GITHUB_SHA --title="$RELEASE_TAG" --generate-notes
33+
34+
- name: Publish to npm
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
run: pnpm publish --access=public --no-git-checks

.turbo/turbo-build.log

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

2-
Debugger listening on ws://127.0.0.1:62821/1ca12630-8f79-4bf2-8adf-39253ba17cfb
2+
Debugger listening on ws://127.0.0.1:61748/b8eb016e-a07c-41bc-9dfd-d82591ba936d
33
For help, see: https://nodejs.org/en/docs/inspector
44
Debugger attached.
55

66
> @elizaos/[email protected] build /Users/bucurdavid/dev/itheum/eliza/packages/plugin-aithra-toolkit
77
> tsup --format esm --dts
88

9-
Debugger listening on ws://127.0.0.1:62834/059aa426-9874-4dca-8ed1-529cdb12accb
9+
Debugger listening on ws://127.0.0.1:61750/2a90e4f8-f351-4ee9-905f-558922d4a11e
1010
For help, see: https://nodejs.org/en/docs/inspector
1111
Debugger attached.
1212
CLI Building entry: src/index.ts
@@ -16,11 +16,11 @@ Debugger attached.
1616
CLI Target: esnext
1717
CLI Cleaning output folder
1818
ESM Build start
19-
ESM dist/index.js 4.33 KB
20-
ESM dist/index.js.map 9.85 KB
21-
ESM ⚡️ Build success in 15ms
19+
ESM dist/index.js 30.67 KB
20+
ESM dist/index.js.map 60.50 KB
21+
ESM ⚡️ Build success in 18ms
2222
DTS Build start
23-
DTS ⚡️ Build success in 1874ms
24-
DTS dist/index.d.ts 1.92 KB
23+
DTS ⚡️ Build success in 1152ms
24+
DTS dist/index.d.ts 2.08 KB
2525
Waiting for the debugger to disconnect...
2626
Waiting for the debugger to disconnect...

dist/index.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Plugin, Service, ServiceType, IAgentRuntime } from '@elizaos/core';
2+
import { BuildMusicNFTResult } from '@aithranetwork/sdk-aithra-toolkit';
23
export * from '@aithranetwork/sdk-aithra-toolkit';
34

45
declare const aithraToolkitPlugin: Plugin;
@@ -16,6 +17,7 @@ declare class AithraService extends Service {
1617
private writeTrackInfo;
1718
private createTempFolderStructure;
1819
static get serviceType(): ServiceType;
20+
getTotalCost(numberOfSongs: number, numberOfMints: number): Promise<number>;
1921
initialize(runtime: IAgentRuntime, basePath?: string): Promise<void>;
2022
buildUploadMintMusicNFTs(params: {
2123
playlist: {
@@ -33,10 +35,8 @@ declare class AithraService extends Service {
3335
animation: {
3436
animationFile: string;
3537
};
36-
}): Promise<{
37-
success: boolean;
38-
signatures: string[];
39-
}>;
38+
creator?: string;
39+
}): Promise<BuildMusicNFTResult>;
4040
private storeBufferToFile;
4141
private saveTrackData;
4242
storeTrackToFolder(params: {
@@ -49,6 +49,7 @@ declare class AithraService extends Service {
4949
category: string;
5050
};
5151
image: Buffer;
52+
imageExtension?: string;
5253
};
5354
}): void;
5455
storeTracksToFolder(params: {

0 commit comments

Comments
 (0)