Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- refactor: move tools engine to deno #55

Merged
merged 62 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
07600a9
- refactor: tools bundler to use deno bundle in place of esbuild
agallardol Oct 29, 2024
3a1bd64
- refactor: tools builder to contains simple and declarative types
agallardol Oct 29, 2024
0be1a6a
- refactor: shinkai-tool-echo to be deno compatible
agallardol Oct 29, 2024
905d311
- refactor: shinkai-tool-download-pages to be deno compatible
agallardol Oct 29, 2024
de2bd5a
- fix: added deno files
agallardol Oct 29, 2024
13d67a5
- fix: added file to gitignore
agallardol Oct 29, 2024
f992fed
- refactor: shinkai-tool-playwright-example
agallardol Oct 29, 2024
489b84b
- refactor: tools bundler to be compatible with shinkai viem
agallardol Oct 30, 2024
c6b1308
- refactor: shinkai-tool-aave-state
agallardol Oct 30, 2024
7faa144
- refactor: shinkai-tool-coinbase-call-faucet
agallardol Oct 30, 2024
bad14c5
- refactor: shinkai-tool-coinbase-create-wallet
agallardol Oct 30, 2024
9cf7f59
- refactor: shinkai-tool-coinbase-get-balance
agallardol Oct 30, 2024
8bfb41d
- refactor: shinkai-tool-coinbase-get-my-address
agallardol Oct 30, 2024
2eb7637
- refactor: shinkai-tool-coinbase-get-transactions
agallardol Oct 30, 2024
bfe80d0
- refactor: shinkai-tool-coinbase-send-tx
agallardol Oct 30, 2024
79ceffe
- refactor: shinkai-tool-defillama-tvl-rankings
agallardol Oct 30, 2024
8ba0c10
- refactor: shinkai-tool-download-pages
agallardol Oct 30, 2024
9438527
- refactor: shinkai-tool-duckduckgo-search
agallardol Oct 30, 2024
8193d8a
- refactor: shinkai-tool-echo
agallardol Oct 30, 2024
f7208a3
- refactor: shinkai-tool-ethplorer-tokens
agallardol Oct 30, 2024
f73f836
- refactor: shinkai-tool-foobar
agallardol Oct 30, 2024
8d7de54
- refactor: shinkai-tool-json-to-md
agallardol Oct 30, 2024
028012e
- refactor: shinkai-tool-leiden
agallardol Oct 30, 2024
dcfd33d
- refactor: shinkai-tool-math-exp
agallardol Oct 30, 2024
e685445
- refactor: shinkai-tool-perplexity
agallardol Oct 30, 2024
0bff7e0
- refactor: shinkai-tool-perplexity-api
agallardol Oct 30, 2024
ad0c7cb
- refactor: shinkai-tool-playwright-example
agallardol Oct 30, 2024
de5f1ce
- refactor: shinkai-tool-token-price
agallardol Oct 30, 2024
7c51ca6
- refactor: shinkai-tool-weather-by-city
agallardol Oct 30, 2024
e6a7a8c
- refactor: shinkai-tool-web3-eth-balance
agallardol Oct 30, 2024
03a7c70
- refactor: shinkai-tool-web3-eth-uniswap
agallardol Oct 30, 2024
9ebfbf1
- refactor: shinkai-tool-youtube-summary
agallardol Oct 30, 2024
892fec7
- refactor: shinkai-tools-builder
agallardol Oct 30, 2024
7dd3ec3
- remove: shinkai-tools-bundler project
agallardol Oct 30, 2024
55e134a
- fix: removed unused tsconfig
agallardol Oct 30, 2024
39e9935
WIP: execute tools from rust side
agallardol Nov 5, 2024
68bd5e2
- refactor: rust library to execute deno code
agallardol Nov 5, 2024
5808b6a
- fix: deno integration into rust library
agallardol Nov 5, 2024
7fadc6a
- fix: tests
agallardol Nov 5, 2024
7cd22c2
- fix: tests
agallardol Nov 5, 2024
e441789
Merge branch 'main' into agallardol/refactor-deno
agallardol Nov 6, 2024
7630495
- fix: youtube video tool
agallardol Nov 6, 2024
28bf8cb
- fix: tests
agallardol Nov 6, 2024
9ec0cc1
- fix: defillama test
agallardol Nov 6, 2024
4edae0f
- improve: add logs to tests
agallardol Nov 6, 2024
69f5484
- fix: json from rust to ts
agallardol Nov 6, 2024
69d0060
- fix: disabled failing tests on aave-loan-requester tool
agallardol Nov 6, 2024
633a225
- fix: added deno to the CI
agallardol Nov 6, 2024
88c2470
- fix: tests
agallardol Nov 6, 2024
0061ae6
- fix: parallel tests
agallardol Nov 6, 2024
7fd3030
- fix: missing output folder
agallardol Nov 6, 2024
c168492
- fix: ci install deno deps
agallardol Nov 6, 2024
59a12e5
- fix: echo tool test
agallardol Nov 7, 2024
39e93d3
- fix: tests
agallardol Nov 7, 2024
7e5c3c7
- fix: add lang to youtue transcript
agallardol Nov 7, 2024
ee9953b
- fix: add lang to transcription
agallardol Nov 7, 2024
4569c36
- fix: perplexity test
agallardol Nov 7, 2024
a1d89fd
- ci: bump version
agallardol Nov 7, 2024
8c1fd96
- fix: skip failing tests in CI
agallardol Nov 7, 2024
542a2f0
- improve: added non json test
agallardol Nov 7, 2024
39d4041
- fix: docs generator
agallardol Nov 7, 2024
004ad51
- fix: improve readme
agallardol Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

89 changes: 0 additions & 89 deletions .eslintrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
cache: 'npm'
cache-dependency-path: package-lock.json

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Cache cargo assets
id: cache
uses: actions/cache@v4
Expand All @@ -43,6 +47,7 @@ jobs:
run: |
npm cache verify
npm ci --no-audit --prefer-offline
deno install

- name: Setup Chrome
id: setup-chrome
Expand Down
64 changes: 2 additions & 62 deletions .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,68 +30,8 @@ jobs:
script: |
core.setFailed('Version mismatch')

release-shinkai-tools-backend:
needs: prebuild
name: Release Shinkai Tools Backend
environment: production
strategy:
matrix:
include:
- arch: x86_64-unknown-linux-gnu
os: ubuntu-22.04
- arch: aarch64-apple-darwin
os: macos-14
- arch: x86_64-pc-windows-msvc
os: windows-2022

runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node version
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
check-latest: false
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: |
npm cache verify
npm ci --no-audit --prefer-offline

- name: Run NX build
run: npx nx build @shinkai_protocol/shinkai-tools-backend --skip-nx-cache --verbose

- name: Prepare folder to upload
env:
BINARY_NAME: shinkai-tools-backend${{ matrix.arch == 'x86_64-pc-windows-msvc' && '.exe' || '' }}
run: |
mkdir files-to-r2
cp ./dist/apps/shinkai-tools-backend/${{ env.BINARY_NAME }} ./files-to-r2/${{ env.BINARY_NAME }}

- name: Compress files
run: |
cd ./files-to-r2
ls
7z a -tzip ${{ needs.prebuild.outputs.version }}.zip . -sdel

- name: Upload updates.json to R2
uses: shallwefootball/s3-upload-action@master
with:
endpoint: https://54bf1bf573b3e6471e574cc4d318db64.r2.cloudflarestorage.com
aws_key_id: ${{ secrets.R2_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
aws_bucket: shinkai-download
source_dir: ./files-to-r2/
destination_dir: ./shinkai-tools-backend/binaries/production/${{ matrix.arch }}/

publish-libraries:
needs: [prebuild, release-shinkai-tools-backend]
needs: [prebuild]
runs-on: ubuntu-22.04
environment: production
steps:
Expand Down Expand Up @@ -134,4 +74,4 @@ jobs:
run: npx nx run-many -t publish --verbose
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
EMBEDDING_API_URL : ${{ vars.EMBEDDING_API_URL }}
EMBEDDING_API_URL: ${{ vars.EMBEDDING_API_URL }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ libs/shinkai-tools-runner/tools
libs/shinkai-tools-runner/shinkai-tools-runner-resources
apps/shinkai-tool-aave-load-requester/src/bundled-resources
launch.json
.DS_Store
Loading