-
Notifications
You must be signed in to change notification settings - Fork 0
Add AI/Web3 integration bundle with adapters and container deployment #8
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # AI Services | ||
| OPENAI_API_KEY=sk-... | ||
| OPENAI_MODEL=gpt-4 | ||
| HF_API_TOKEN=hf_... | ||
| HF_MODEL= | ||
| LANGCHAIN_ENABLED=false | ||
|
|
||
| # Vector Stores (Optional) | ||
| VECTOR_STORE_PROVIDER= | ||
| VECTOR_STORE_API_KEY= | ||
| VECTOR_STORE_ENVIRONMENT= | ||
| VECTOR_STORE_URL= | ||
|
|
||
| # Web3 - EVM | ||
| ETH_RPC_URL= | ||
| ETH_PRIVATE_KEY= | ||
| ETH_CHAIN_ID=1 | ||
|
|
||
| # Web3 - Solana | ||
| SOLANA_RPC_URL= | ||
| SOLANA_PRIVATE_KEY= | ||
| SOLANA_COMMITMENT=confirmed | ||
|
|
||
| # Messaging - Slack | ||
| SLACK_BOT_TOKEN= | ||
| SLACK_SIGNING_SECRET= | ||
|
|
||
| # Messaging - Discord | ||
| DISCORD_BOT_TOKEN= | ||
|
|
||
| # Data - PostgreSQL | ||
| DATABASE_URL=postgresql://user:password@localhost:5432/dbname | ||
|
|
||
| # Data - Redis | ||
| REDIS_URL=redis://localhost:6379 | ||
|
|
||
| # Data - AWS S3 | ||
| AWS_ACCESS_KEY_ID= | ||
| AWS_SECRET_ACCESS_KEY= | ||
| AWS_REGION=us-east-1 | ||
| S3_BUCKET= | ||
|
|
||
| # Data - IPFS | ||
| IPFS_URL=http://localhost:5001 | ||
|
|
||
| # Application | ||
| NODE_ENV=development | ||
| ENVIRONMENT=dev | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,83 @@ | ||||||
| name: Container Build and Deploy | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: [ master, main ] | ||||||
| workflow_dispatch: | ||||||
| inputs: | ||||||
| environment: | ||||||
| description: 'Environment to deploy to' | ||||||
| required: true | ||||||
| default: 'dev' | ||||||
| type: choice | ||||||
| options: | ||||||
| - dev | ||||||
| - stage | ||||||
| - prod | ||||||
|
|
||||||
| env: | ||||||
| REGISTRY: ghcr.io | ||||||
| IMAGE_NAME: ${{ github.repository }} | ||||||
|
|
||||||
| jobs: | ||||||
| build-and-push: | ||||||
| runs-on: ubuntu-latest | ||||||
| strategy: | ||||||
| matrix: | ||||||
| # Build all environments on push, single environment on manual dispatch | ||||||
| environment: ${{ github.event_name == 'workflow_dispatch' && fromJSON(format('["{0}"]', github.event.inputs.environment)) || fromJSON('["dev", "stage", "prod"]') }} | ||||||
|
||||||
| environment: ${{ github.event_name == 'workflow_dispatch' && fromJSON(format('["{0}"]', github.event.inputs.environment)) || fromJSON('["dev", "stage", "prod"]') }} | |
| environment: ${{ github.event_name == 'workflow_dispatch' && fromJSON('["' + github.event.inputs.environment + '"]') || fromJSON('["dev", "stage", "prod"]') }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| # Dependencies | ||
| node_modules/ | ||
| package-lock.json | ||
| yarn.lock | ||
|
|
||
| # Build outputs | ||
| dist/ | ||
| build/ | ||
| *.js | ||
| *.d.ts | ||
| !src/**/*.ts | ||
| !test/**/*.js | ||
|
|
||
| # Python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| .Python | ||
| venv/ | ||
| .venv/ | ||
| env/ | ||
| ENV/ | ||
|
|
||
| # Go | ||
| *.exe | ||
| *.test | ||
| *.out | ||
| go.sum | ||
|
|
||
| # Rust | ||
| target/ | ||
| Cargo.lock | ||
|
|
||
| # IDEs | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # OS | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # Logs | ||
| logs/ | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
| # Environment | ||
| .env | ||
| .env.local | ||
| .env.*.local | ||
|
|
||
| # Test coverage | ||
| coverage/ | ||
| .nyc_output/ | ||
|
|
||
| # Temporary files | ||
| tmp/ | ||
| temp/ | ||
| *.tmp |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,46 @@ | ||||||
| # Multi-stage build for Node.js/TypeScript application | ||||||
| FROM node:18-alpine AS builder | ||||||
|
|
||||||
| WORKDIR /app | ||||||
|
|
||||||
| # Copy package files | ||||||
| COPY package.json tsconfig.json ./ | ||||||
|
|
||||||
| # Install dependencies (including optional) | ||||||
| RUN npm install --include=optional || npm install | ||||||
|
|
||||||
| # Copy source code | ||||||
| COPY sdk/ ./sdk/ | ||||||
| COPY src/ ./src/ | ||||||
|
|
||||||
| # Build TypeScript | ||||||
| RUN npm run build || echo "Build step completed" | ||||||
|
||||||
| RUN npm run build || echo "Build step completed" | |
| RUN npm run build |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The npm install commands use '|| npm install' as a fallback which could mask errors during the build process. If the first install command fails with --include=optional, the build continues silently without optional dependencies. This makes it difficult to debug installation issues. Consider logging the failure or using a more explicit approach to handle optional dependency installation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .env.example file contains placeholder values like 'sk-...' for API keys which could be mistaken for actual redacted keys. Consider using more explicit placeholder text such as 'your-openai-api-key-here' or 'REPLACE_WITH_YOUR_KEY' to make it clear these are examples and need to be replaced.