搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.11

fa_hub_client

DAP/1 hub 客戶端 for flutter_agent_harness:透過簽署 WebSocket 的 MessagingRepository,FahPlugin 透過 Agent.externalSteeringSource 傳遞訊息。

AndroidiOSLinuxmacOSWindows
近 30 天下載
3.8萬
喜歡數
0
Pub 分數
140

安裝套件

flutter pub add fa_hub_client

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

fa_hub_client 套件讓 Flutter 應用程式能透過簽署的 WebSocket 與 DAP/1 中心通訊,並透過 MessagingRepository 實現安全訊息傳遞。它與 Agent.externalSteeringSource 整合,使用 FahPlugin 來實現代理驅動動作的無縫傳遞。專為 flutter_agent_harness 生態系統設計,支援在 Android、iOS、Linux、macOS 及 Windows 上進行跨平台開發。此套件簡化了 Flutter 應用與代理中心之間的即時、驗證通訊。

適用情境

  • 即時代理通訊
  • 透過 WebSocket 進行安全訊息傳遞
  • 跨平台代理整合
  • 透過外部來源自動轉向
  • 與 flutter_agent_harness 的整合

主要特色

  • 已簽署的 WebSocket 連接
  • MessagingRepository 接口
  • FahPlugin 用於轉向交付
  • 跨平台支援
  • 專為 DAP/1 hub 相容性設計

適合對象

  • 使用 flutter_agent_harness 的開發者
  • 需要基於代理的工作流的應用程式
  • 需要安全即時訊息傳遞的專案
  • 跨平台代理客戶端
  • DAP/1 hub連接的系統

使用建議

  • 需要 DAP/1 網關基礎設施
  • 依賴於 flutter_agent_harness
  • 限於代理驅動的互動模式
  • WebSocket 握手需要正確簽名
  • 不適用於一般用途的HTTP請求

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單