Skip to content

Commit

Permalink
feat: first version
Browse files Browse the repository at this point in the history
  • Loading branch information
bucurdavid committed Feb 14, 2025
1 parent 63a7874 commit 000eace
Show file tree
Hide file tree
Showing 14 changed files with 1,813 additions and 82 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '23.3.0'
registry-url: https://registry.npmjs.org/

# Install dependencies with pnpm
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_TAG=v$(node -p "require('./package.json').version")
gh release create $RELEASE_TAG --target=$GITHUB_SHA --title="$RELEASE_TAG" --generate-notes
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: pnpm publish --access=public --no-git-checks
14 changes: 7 additions & 7 deletions .turbo/turbo-build.log
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

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

> @elizaos/plugin-aithra-toolkit@1.0.0 build /Users/bucurdavid/dev/itheum/eliza/packages/plugin-aithra-toolkit
> tsup --format esm --dts

Debugger listening on ws://127.0.0.1:62834/059aa426-9874-4dca-8ed1-529cdb12accb
Debugger listening on ws://127.0.0.1:61750/2a90e4f8-f351-4ee9-905f-558922d4a11e
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
CLI Building entry: src/index.ts
Expand All @@ -16,11 +16,11 @@ Debugger attached.
CLI Target: esnext
CLI Cleaning output folder
ESM Build start
ESM dist/index.js 4.33 KB
ESM dist/index.js.map 9.85 KB
ESM ⚡️ Build success in 15ms
ESM dist/index.js 30.67 KB
ESM dist/index.js.map 60.50 KB
ESM ⚡️ Build success in 18ms
DTS Build start
DTS ⚡️ Build success in 1874ms
DTS dist/index.d.ts 1.92 KB
DTS ⚡️ Build success in 1152ms
DTS dist/index.d.ts 2.08 KB
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
9 changes: 5 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Plugin, Service, ServiceType, IAgentRuntime } from '@elizaos/core';
import { BuildMusicNFTResult } from '@aithranetwork/sdk-aithra-toolkit';
export * from '@aithranetwork/sdk-aithra-toolkit';

declare const aithraToolkitPlugin: Plugin;
Expand All @@ -16,6 +17,7 @@ declare class AithraService extends Service {
private writeTrackInfo;
private createTempFolderStructure;
static get serviceType(): ServiceType;
getTotalCost(numberOfSongs: number, numberOfMints: number): Promise<number>;
initialize(runtime: IAgentRuntime, basePath?: string): Promise<void>;
buildUploadMintMusicNFTs(params: {
playlist: {
Expand All @@ -33,10 +35,8 @@ declare class AithraService extends Service {
animation: {
animationFile: string;
};
}): Promise<{
success: boolean;
signatures: string[];
}>;
creator?: string;
}): Promise<BuildMusicNFTResult>;
private storeBufferToFile;
private saveTrackData;
storeTrackToFolder(params: {
Expand All @@ -49,6 +49,7 @@ declare class AithraService extends Service {
category: string;
};
image: Buffer;
imageExtension?: string;
};
}): void;
storeTracksToFolder(params: {
Expand Down
Loading

0 comments on commit 000eace

Please sign in to comment.