forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into ELIZAAI-18-cross…
…-chain-swaps # Conflicts: # packages/plugin-cosmos/src/actions/ibc-transfer/index.ts # packages/plugin-cosmos/src/actions/ibc-transfer/schema.ts # packages/plugin-cosmos/src/actions/ibc-transfer/services/bridge-denom-provider.ts # packages/plugin-cosmos/src/actions/ibc-transfer/services/ibc-transfer-action-service.ts # packages/plugin-cosmos/src/index.ts # packages/plugin-cosmos/src/shared/entities/cosmos-wallet-chains-data.ts # packages/plugin-cosmos/src/shared/interfaces.ts # packages/plugin-cosmos/src/shared/services/skip-api/assets-from-source-fetcher/skip-api-assets-from-source-fetcher.ts # packages/plugin-cosmos/src/templates/index.ts # packages/plugin-cosmos/src/tests/cosmos-ibc-transfer-action-service.test.ts # pnpm-lock.yaml
- Loading branch information
Showing
1,251 changed files
with
77,476 additions
and
5,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Ignore node_modules from the build context | ||
node_modules | ||
|
||
# Ignore logs and temporary files | ||
*.log | ||
*.tmp | ||
.DS_Store | ||
|
||
# Ignore Git files and metadata | ||
.gitignore | ||
|
||
# Ignore IDE and editor config files | ||
.vscode | ||
.idea | ||
*.swp | ||
|
||
# Ignore build artifacts from the host | ||
dist | ||
build |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Block Minified JavaScript/TypeScript | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "develop", "*"] | ||
push: | ||
branches: ["main", "develop", "*"] | ||
|
||
jobs: | ||
block-minified-code: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Detect potential minified code | ||
shell: bash | ||
run: | | ||
echo "Scanning for potential minified JS/TS code..." | ||
# We'll look in .ts, .tsx, .js, .jsx files, skipping common build dirs. | ||
FILES=$(find . \ | ||
\( -name 'node_modules' -prune \) -o \ | ||
\( -name 'dist' -prune \) -o \ | ||
\( -name 'build' -prune \) -o \ | ||
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.js' -o -name '*.jsx' \) \ | ||
-print) | ||
if [ -z "$FILES" ]; then | ||
echo "No relevant JS/TS files found." | ||
exit 0 | ||
fi | ||
THRESHOLD=1000 | ||
VIOLATIONS=0 | ||
for file in $FILES; do | ||
# Use grep -En to capture line number and text | ||
# If any line is ≥ THRESHOLD chars, we store those lines in RESULTS | ||
RESULTS=$(grep -En ".{${THRESHOLD},}" "$file" || true) | ||
if [ -n "$RESULTS" ]; then | ||
# We have potential minified lines | ||
while IFS= read -r match; do | ||
# 'match' will be something like "1234:the entire matched line" | ||
LINENUM=$(echo "$match" | cut -d: -f1) | ||
# If you want the text, you can do: | ||
# MATCHED_LINE=$(echo "$match" | cut -d: -f2-) | ||
echo "::error file=$file,line=$LINENUM::Detected potential minified code (≥ $THRESHOLD chars)." | ||
done <<< "$RESULTS" | ||
VIOLATIONS=1 | ||
fi | ||
done | ||
if [ "$VIOLATIONS" -eq 1 ]; then | ||
echo "ERROR: Minified code detected. Please remove or exclude it." | ||
exit 1 | ||
else | ||
echo "No minified code detected." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,62 @@ | ||
# Use a specific Node.js version for better reproducibility | ||
FROM node:23.3.0-slim AS builder | ||
|
||
# Install pnpm globally and install necessary build tools | ||
# Install pnpm globally and necessary build tools | ||
RUN npm install -g [email protected] && \ | ||
apt-get update && \ | ||
apt-get install -y git python3 make g++ && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y \ | ||
git \ | ||
python3 \ | ||
python3-pip \ | ||
curl \ | ||
node-gyp \ | ||
ffmpeg \ | ||
libtool-bin \ | ||
autoconf \ | ||
automake \ | ||
libopus-dev \ | ||
make \ | ||
g++ \ | ||
build-essential \ | ||
libcairo2-dev \ | ||
libjpeg-dev \ | ||
libpango1.0-dev \ | ||
libgif-dev \ | ||
openssl \ | ||
libssl-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Set Python 3 as the default python | ||
RUN ln -s /usr/bin/python3 /usr/bin/python | ||
RUN ln -sf /usr/bin/python3 /usr/bin/python | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy package.json and other configuration files | ||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./ | ||
# Copy application code | ||
COPY . . | ||
|
||
# Copy the rest of the application code | ||
COPY agent ./agent | ||
COPY packages ./packages | ||
COPY scripts ./scripts | ||
COPY characters ./characters | ||
# Install dependencies | ||
RUN pnpm install --no-frozen-lockfile | ||
|
||
# Install dependencies and build the project | ||
RUN pnpm install \ | ||
&& pnpm build-docker \ | ||
&& pnpm prune --prod | ||
# Build the project | ||
RUN pnpm run build && pnpm prune --prod | ||
|
||
# Create a new stage for the final image | ||
# Final runtime image | ||
FROM node:23.3.0-slim | ||
|
||
# Install runtime dependencies if needed | ||
# Install runtime dependencies | ||
RUN npm install -g [email protected] && \ | ||
apt-get update && \ | ||
apt-get install -y git python3 && \ | ||
apt-get install -y \ | ||
git \ | ||
python3 \ | ||
ffmpeg && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy built artifacts and production dependencies from the builder stage | ||
|
@@ -47,9 +66,14 @@ COPY --from=builder /app/.npmrc ./ | |
COPY --from=builder /app/turbo.json ./ | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/agent ./agent | ||
COPY --from=builder /app/client ./client | ||
COPY --from=builder /app/lerna.json ./ | ||
COPY --from=builder /app/packages ./packages | ||
COPY --from=builder /app/scripts ./scripts | ||
COPY --from=builder /app/characters ./characters | ||
|
||
# Set the command to run the application | ||
CMD ["pnpm", "start"] | ||
# Expose necessary ports | ||
EXPOSE 3000 5173 | ||
|
||
# Command to start the application | ||
CMD ["sh", "-c", "pnpm start & pnpm start:client"] |
Oops, something went wrong.