Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
141 changes: 27 additions & 114 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tweets/
*.wav
*.mp3

logs/*
logs/

test-report.json
content_cache/
Expand Down Expand Up @@ -65,6 +65,8 @@ wallet_data.txt

coverage
.eslintcache
tree.txt
data_files.txtbk.txt

agent/content

Expand All @@ -89,26 +91,6 @@ scripts/bug_hunt/reports/*.md

lit-config.json

# Rust specific ignores
Cargo.lock

# Ignore specific directories used in Rust development
rustfmt.toml
clippy.toml

# Ignore build and test artifacts
*.rs.bk
*~

# Ignore IDE configuration files for Rust projects
.idea/
.vscode/

# Ignore temporary files created by editors
*.swp
*.swo
*.bak

# Configuration to exclude the extra and local_docs directories
extra
**/dist/**
Expand All @@ -121,103 +103,34 @@ ton_nft_images/*
# packages/plugin-filecoin/ref-fvm
packages/plugin-filecoin/filecoin-rs/target/debug/.*

node_modules
/out

.env
.env.production
.env.local
.env_main
concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine

node-compile-cache

.idea
.vscode
.zed
.DS_Store

dist/
# Allow models directory but ignore model files
models/*.gguf
pgLite/

cookies.json

db.sqlite
searches/
tweets/

*.gguf
*.onnx
*.wav
*.mp3

logs/

test-report.json
content_cache/
test_data/
tokencache/
tweetcache/
twitter_cookies.json
timeline_cache.json

*.sqlite

# Character configurations
characters/**/secrets.json
characters/**/*.env
characters/**/*.key
characters/**/private/

packages/core/src/providers/cache
packages/core/src/providers/cache/*
cache/*
packages/plugin-coinbase/src/plugins/transactions.csv

tsup.config.bundled_*.mjs

.turbo
.cursorrules
.pnpm-store
instructions.md
wallet_data.txt

coverage
.eslintcache

agent/content

eliza.manifest
eliza.manifest.sgx
eliza.sig
Cargo.lock

packages/plugin-nvidia-nim/extra
packages/plugin-nvidia-nim/old_code
packages/plugin-nvidia-nim/docs
# Ignore build and test artifacts
*.rs.bk
*~

# Edriziai specific ignores
characters/edriziai-info/secrets.json
# Ignore IDE configuration files for Rust projects
.idea/
.vscode/

# Bug Hunter logs and checkpoints
scripts/bug_hunt/logs/
scripts/bug_hunt/logs/*.log
scripts/bug_hunt/checkpoints/
scripts/bug_hunt/checkpoints/*.json
scripts/bug_hunt/reports/
scripts/bug_hunt/reports/*.md
# Ignore temporary files created by editors
*.swp
*.swo
*.bak

lit-config.json
# Common files that should be ignored in all projects

# Configuration to exclude the extra and local_docs directories
extra
**/dist/**
# Logs
*.log
# Temporary files
*.tmp
*~

ton_nft_metadata/
ton_nft_metadata/*
*.bak
# Environment files (containing secrets, API keys, credentials)
.env
*.env
.env.*

ton_nft_images/
ton_nft_images/*
# Local configuration that shouldn't be shared
*.local
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "eliza",
"name": "eliza-with-filecoin-ai",
"description": "",
"version": "0.0.1",
"private": true,
"scripts": {
"format": "biome format --write .",
"lint": "biome lint .",
Expand All @@ -21,6 +24,7 @@
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEFAULT_LOG_LEVEL=debug DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
"dev": "bash ./scripts/dev.sh",
"setup:start":"bash ./scripts/start.sh",
"setup:start:ui":"bash ./scripts/start.sh && cd packages/plugin-filecoin/ pnpm run tauri run",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Fix Command Chaining in the UI Setup Script

The newly added script "setup:start:ui" currently reads as:

"setup:start:ui":"bash ./scripts/start.sh && cd packages/plugin-filecoin/ pnpm run tauri run"

This command is missing an && between the directory change (cd packages/plugin-filecoin/) and the execution of pnpm run tauri run. Without the additional &&, the shell will interpret pnpm as an argument to the cd command, which results in a syntax error.

Please update it as follows:

-"setup:start:ui":"bash ./scripts/start.sh && cd packages/plugin-filecoin/ pnpm run tauri run",
+"setup:start:ui":"bash ./scripts/start.sh && cd packages/plugin-filecoin/ && pnpm run tauri run",

"extract-tweets": "bash ./scripts/extracttweets.js",
"release": "pnpm build && pnpm format && npx lerna publish --no-private --force-publish",
"clean": "bash ./scripts/clean.sh",
Expand Down
55 changes: 54 additions & 1 deletion packages/plugin-filecoin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,57 @@ dist
*.wasm
*.wasm.map
*.wasm.d.ts
*.wasm.d.ts.map
*.wasm.d.ts.map

packages/plugin-filecoin/filecoin-rs/target

# Ignore Cargo.lock and target directories for Rust projects
Cargo.lock
target

# Ignore IntelliJ IDEA Rust plugin files
.idea/rust/

# Ignore VSCode Rust extension settings
.vscode/settings.json

# Ignore Rust-generated files
*.rs.bk
*.rs.old
*.rs.swp
node_modules
dist
*.log
*.swp
.vscode/
.idea/

Comment on lines +30 to +36

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate ignore entries detected.

The rules for node_modules, dist, *.log, *.swp, .vscode/, and .idea/ are repeated from the top section (lines 1–7). To improve maintainability and clarity, please remove these redundant entries.

# Ignore build artifacts
*.wasm
*.wasm.map
*.wasm.d.ts
*.wasm.d.ts.map

Comment on lines +37 to +42

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate build artifact ignore rules for WebAssembly files.

The build artifact entries (*.wasm, *.wasm.map, *.wasm.d.ts, *.wasm.d.ts.map) are already defined earlier in the file (lines 8–13). Removing these duplicates will streamline the file.

packages/plugin-filecoin/filecoin-rs/target

Comment on lines +43 to +44

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate target directory ignore for filecoin-rs.

The entry for packages/plugin-filecoin/filecoin-rs/target appears again here. Please remove the duplicate to avoid confusion.

# Ignore Cargo.lock and target directories for Rust projects
Cargo.lock
target

Comment on lines +45 to +48

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate Cargo.lock and target ignores for Rust projects.

These rules, which ignore Cargo.lock and target, have already been specified in lines 16–19. Removing the duplicated block is advised.

# Ignore IntelliJ IDEA Rust plugin files
.idea/rust/

Comment on lines +49 to +51

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate IntelliJ IDEA Rust plugin ignore entry.

The .idea/rust/ rule is duplicated here. Please consolidate with the earlier occurrence to maintain a clean .gitignore.

# Ignore VSCode Rust extension settings
.vscode/settings.json

Comment on lines +52 to +54

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate VSCode Rust extension settings ignore entry.

The entry .vscode/settings.json is repeated. Consider removing this duplicate to keep the file organized.

# Ignore Rust-generated files
*.rs.bk
*.rs.old
*.rs.swp

Comment on lines +55 to +59

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate Rust-generated files ignore rules.

The backup and temporary file rules (*.rs.bk, *.rs.old, *.rs.swp) are repeated in this section. Removing the duplicate block will improve clarity.




# Include node and python
node_modules
venv
Binary file added packages/plugin-filecoin/Images/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/plugin-filecoin/Images/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions packages/plugin-filecoin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,3 @@ Extra Elements That Impress Judges
Visual Presentation: A polished slide deck that communicates your vision, technical implementation, and potential impact.
Interactive Demo: A live version judges can try themselves, making your project memorable.
Technical Documentation: Showing the depth of your thinking and attention to detail.





50 changes: 39 additions & 11 deletions packages/plugin-filecoin/filecoin-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "filecoin-rs"
version = "0.1.0"
edition = "2021"
authors = ["Joshua Head <support@jeldonmusic.com>"]
description = "Filecoin integrations"
description = "Filecoin integrations with Tauri UI"
repository = "https://github.com/jhead12"
license = "MIT"

Expand All @@ -16,30 +16,55 @@ name = "filecoin-rs"
path = "src/main.rs"
required-features = ["native"]

[build-dependencies]
# Include build dependencies if necessary

[dependencies]
cid = "0.11.1"
multihash-codetable = { version = "0.1.4", features = ["sha2"] }
anyhow = "1.0"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4" # Added for async support
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen-futures = "0.4" # For async support
getrandom = { version = "0.3.2", features = ["wasm_js"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
fvm_ipld_blockstore = { version = "0.3.1", optional = true }
console_log = "1.0" # Added for console logging
log = "0.4" # Added for log::Level
opentelemetry-datadog = "0.17.0"

console_log = "1.0" # For console logging
log = "0.4" # For log::Level

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# Tauri dependencies (all optional)
tauri = { version = "2.3.1", optional = true }
tauri-plugin-window-state = { version = "2.0.0", optional = true }
tauri-plugin-upload = { version = "2.0.0", optional = true }
tauri-plugin-shell = { version = "2.0.0", optional = true }
tauri-plugin-opener = { version = "2.0.0", optional = true }
tauri-plugin-log = { version = "2.0.0", optional = true }
# Filecoin dependencies (optional for native builds)
fvm_ipld_blockstore = { version = "0.3.1", optional = true }
fvm = { version = "4.6.0", optional = true }
fvm_shared = { version = "4.6.0", optional = true }
fvm_ipld_encoding = { version = "0.5.2", optional = true }
positioned-io = { version = "0.3", optional = true }
rig-core = { version = "0.2.1", optional = true }

[features]
# Default feature is empty for WASM compatibility
default = []
native = ["fvm_ipld_blockstore", "fvm", "fvm_shared", "fvm_ipld_encoding", "positioned-io"]
fvm_ipld_blockstore = ["dep:fvm_ipld_blockstore"]
# Native feature enables Tauri and Filecoin dependencies
native = [
"tauri",
"tauri-plugin-window-state",
"tauri-plugin-upload",
"tauri-plugin-shell",
"tauri-plugin-opener",
"tauri-plugin-log",
"fvm_ipld_blockstore",
"fvm",
"fvm_shared",
"fvm_ipld_encoding",
"positioned-io",
"rig-core",
]

[profile.dev]
opt-level = 0
Expand All @@ -54,5 +79,8 @@ incremental = true
codegen-units = 256
rpath = false

[target.wasm32-unknown-unknown]
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']

[profile.release]
opt-level = 3
opt-level = 3
25 changes: 24 additions & 1 deletion packages/plugin-filecoin/filecoin-rs/data_miner/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
# Dependency directories
node_modules/

# Build output directories
dist
dist-ssr
build

# Local environment files
*.local
.env
.env.local
.env.*.local

# Editor directories and files
.vscode/*
Expand All @@ -22,3 +31,17 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# OpenTelemetry/tracing specific
*.trace
*.jaeger
otel-collector-config.yaml

# TypeScript/JavaScript specific
*.tsbuildinfo
*.js.map
*.ts.map

# Testing
coverage/
*.lcov
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,4 @@ tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri-plugin-log = "2"
tauri-plugin-shell = "2"
tauri-plugin-upload = "2"

[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-window-state = "2"

Loading