Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bino-dev' into bino
Browse files Browse the repository at this point in the history
  • Loading branch information
nicky-ru committed Jan 16, 2025
2 parents f4fe3d7 + 6c97e2c commit e9bea75
Show file tree
Hide file tree
Showing 1,052 changed files with 23,513 additions and 109,122 deletions.
420 changes: 317 additions & 103 deletions .env.example

Large diffs are not rendered by default.

77 changes: 33 additions & 44 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,36 @@
{
"plugins": [
"@stylistic"
],
"extends": [
"next/core-web-vitals",
"plugin:@stylistic/recommended-extends"
],
"rules": {
"@stylistic/indent": [
"error",
4,
{
"SwitchCase": 1
}
"plugins": ["@stylistic"],
"extends": [
"next/core-web-vitals",
"plugin:@stylistic/recommended-extends"
],
"@stylistic/no-tabs": "error",
"@stylistic/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@stylistic/eol-last": [
"error",
"always"
],
"@stylistic/multiline-ternary": "off",
"@stylistic/semi": [
"error",
"always"
],
"@stylistic/quotes": "off",
"@stylistic/comma-dangle": "off",
"@stylistic/brace-style": [
"error",
"1tbs"
]
}
"rules": {
"@stylistic/indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"@stylistic/no-tabs": "error",
"@stylistic/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@stylistic/eol-last": ["error", "always"],
"@stylistic/multiline-ternary": "off",
"@stylistic/semi": ["error", "always"],
"@stylistic/quotes": "off",
"@stylistic/comma-dangle": "off",
"@stylistic/brace-style": ["error", "1tbs"]
}
}
100 changes: 50 additions & 50 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '29 8 * * 6'
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "29 8 * * 6"

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
19 changes: 8 additions & 11 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- "*"
pull_request_target:
pull_request:
branches:
- "*"

Expand All @@ -17,11 +17,11 @@ jobs:

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
version: 9.15.0

- uses: actions/setup-node@v4
with:
node-version: "23"
node-version: "23.3.0"
cache: "pnpm"

- name: Clean up
Expand All @@ -33,12 +33,9 @@ jobs:
- name: Build packages
run: pnpm build

- name: Check for API key
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Error: OPENAI_API_KEY is not set."
exit 1
fi
- name: Run integration tests
run: pnpm run integrationTests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }}
run: |
pnpm run integrationTests
41 changes: 41 additions & 0 deletions .github/workflows/pnpm-lockfile-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pnpm Lockfile Check

on:
pull_request:
branches: [main]

jobs:
check-lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 23.3.0

- uses: pnpm/action-setup@v3
with:
version: 9.15.0

- name: Check if lockfile is up-to-date
id: lockfile-check
run: |
# Try to install with frozen lockfile
if ! pnpm install --frozen-lockfile; then
echo "::error::Lockfile is out of date. Please run 'pnpm install --no-frozen-lockfile' and commit the updated pnpm-lock.yaml"
echo "failed=true" >> $GITHUB_OUTPUT
exit 1
fi
- name: Comment on PR
if: failure() && steps.lockfile-check.outputs.failed == 'true'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ The pnpm-lockfile is out of date. Please run `pnpm install --no-frozen-lockfile` and commit the updated pnpm-lock.yaml file.'
})
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: sudo apt-get install -y protobuf-compiler

- name: Install dependencies
run: pnpm install
run: pnpm install -r --no-frozen-lockfile

- name: Build packages
run: pnpm run build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
version: 9.15.0

- uses: actions/setup-node@v4
with:
node-version: "23"
node-version: "23.3.0"
cache: "pnpm"

- name: Run smoke tests
Expand Down
53 changes: 26 additions & 27 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: '25 18 * * *'
schedule:
- cron: "25 18 * * *"

jobs:
stale:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
env:
DAYS_BEFORE_STALE: 30 # Define the days-before-stale value
DAYS_BEFORE_CLOSE: 7 # Define the days-before-close value

env:
DAYS_BEFORE_STALE: 30 # Define the days-before-stale value
DAYS_BEFORE_CLOSE: 7 # Define the days-before-close value

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
This issue has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this issue is still relevant.
stale-pr-message: |
This pull request has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this pull request is still relevant.
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
This issue has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this issue is still relevant.
stale-pr-message: |
This pull request has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this pull request is still relevant.
stale-issue-label: "no-issue-activity"
stale-pr-label: "no-pr-activity"
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ packages/plugin-buttplug/intiface-engine
dist/
# Allow models directory but ignore model files
models/*.gguf
pgLite/

cookies.json

Expand Down Expand Up @@ -50,8 +51,13 @@ tsup.config.bundled_*.mjs

.turbo
.cursorrules
.pnpm-store

coverage
.eslintcache

agent/content

eliza.manifest
eliza.manifest.sgx
eliza.sig
Loading

0 comments on commit e9bea75

Please sign in to comment.