搜索插件、代码仓与 APP 分类

GitHub 代码仓IstiN/fa_hub_client

fa_hub_client

DAP/1 hub 客户端 for flutter_agent_harness:通过签名 WebSocket 的 MessagingRepository,FahPlugin 通过 Agent.externalSteeringSource 进行消息传递。

fa_hub_client 项目封面
星标
0
复刻
0
最近推送(UTC)
2026年9月27日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

fa_hub_client

CI Release License: MIT pub pub points

DAP/1 hub client for flutter_agent_harness: a MessagingRepository over a signed WebSocket, delivered into the agent loop via Agent.externalSteeringSource.

Install

dart pub add fa_hub_client

or in pubspec.yaml:

dependencies:
  fa_hub_client: ^0.2.0

Usage

import 'package:fa_hub_client/fa_hub_client.dart';

final plugin = HubPlugin();
plugin.register(context); // reads context.config['hub']
await plugin.start();     // loads identity, connects, starts inbox delivery
agent.externalSteeringSource = plugin.externalSteeringSource;

// later
await plugin.inviteTo('peer-name');            // dap_invite
await plugin.connectTo('hub.example.com');     // dap_connect
await plugin.status();                         // dap_status snapshot
await plugin.peers();                          // dap_peers list

Configuration

Zero-config by default; resolution order is environment > ~/.dap/config.json

built-in defaults (ws://127.0.0.1:8787/ws, identity ~/.dap/keys/fah/<name>.key, channels ~/.dap/channels.json).

Env var Purpose
DAP_HUB_URL Hub WebSocket URL
DAP_AGENT_NAME Display name / identity
DAP_KEY_PATH Signing key file
DAP_CHANNELS_FILE Channel store location
DAP_CONFIG_FILE Config file location (default ~/.dap/config.json)
DAP_MASTER_SECRET Hub master secret — first-connect enrollment
DAP_CLIENT_SECRET Hub-issued client secret (or enrolled once via master; also clientSecret in config)

First connect to a new hub needs DAP_MASTER_SECRET set (enrolls once, then the issued client secret is stored in ~/.dap/config.json).

Protocol

DAP protocol documentation lives in the dap repo.

Uladzimir Klyshevich GitHub avatar
GitHub 作者

Uladzimir Klyshevich ↗

语言DartShell

此仓库发布的插件

使用的依赖

依赖清单 3 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗