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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@tanstack/react-virtual": "^3.13.12",
"@tauri-apps/api": "^2.8.0",
"@types/lodash": "^4.17.20",
"@walletconnect/modal-core": "^2.7.0",
"@walletconnect/types": "^2.23.0",
"axios": "^1.11.0",
"bignumber.js": "9.3.1",
Expand Down
310 changes: 92 additions & 218 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This application interacts with:
- Hedera Network
- OpenAI API
- Anthropic API (optional)
- Swarm Infrastructure (optional)

## Your Rights

Expand Down
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ This application interacts with:
- Hedera Network
- OpenAI API
- Anthropic API (optional)
- Swarm Infrastructure (optional)

## Your Rights

Expand Down
1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ once_cell = "1.19"
tokio = { version = "1.37", features = ["macros", "rt-multi-thread", "process", "io-util", "sync", "fs"] }
rmcp = { version = "0.7.0", features = ["client", "transport-child-process"] }
dotenvy = "0.15"
thiserror = "1.0"

[target.'cfg(target_os = "macos")'.dependencies]
block2 = "0.6"
Expand Down
14 changes: 14 additions & 0 deletions src-tauri/bridge/agent/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {
AttachmentProcessor,
BasePlugin,
ConversationalAgent,
SwarmConfig,
SwarmPlugin,
} from '@hashgraphonline/conversational-agent';
import type {
AttachmentData,
Expand Down Expand Up @@ -401,6 +404,16 @@ export class BridgeRuntime {
payload.openRouterBaseURL.trim().length > 0
? payload.openRouterBaseURL
: undefined;

const additionalPlugins: BasePlugin[] = [];
if (Array.isArray(payload.additionalPlugins)) {
for (const pluginConfig of payload.additionalPlugins) {
if (pluginConfig.pluginType === 'swarm') {
additionalPlugins.push(new SwarmPlugin(pluginConfig.config as unknown as SwarmConfig));
}
// Add other plugin types here
}
}

const options: ConversationalAgentOptions = {
accountId,
Expand All @@ -415,6 +428,7 @@ export class BridgeRuntime {
disableLogging,
openRouterApiKey,
openRouterBaseURL,
additionalPlugins,
};

const mcpServers = Array.isArray(payload.mcpServers)
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/bridge/agent/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {
BasePlugin,
ConversationalAgentOptions,
StartInscriptionResult,
WalletBridgeProvider,
Expand Down Expand Up @@ -43,6 +44,7 @@ export interface AgentInitializePayload {
readonly openRouterApiKey?: string;
readonly openRouterBaseURL?: string;
readonly disabledPlugins?: ReadonlyArray<string>;
readonly additionalPlugins?: Array<{ pluginType: string; config: Record<string, unknown>}>;
}

export interface AgentMessagePayload {
Expand Down
Loading