@binaryworks1024/ai-task-hub-connector-runtime
v0.1.7
Published
Shared continuity runtime, transport adapters, and bridge context store for the AI Task Hub connector.
Maintainers
Readme
@binaryworks1024/ai-task-hub-connector-runtime
Shared runtime primitives for AI Task Hub connector integrations.
This package provides:
- bridge context storage
- public bridge transport helpers
- connector runtime orchestration
- attachment upload helpers
runCapability now resolves deliveryMode with this precedence:
- explicit
deliveryModepassed by the caller delivery_modeexposed by${baseUrl}/skills/manifest.json- local runtime fallback mapping for the small built-in short-wait set
- default
long_running
Manifest-derived delivery modes are cached in-process with a short TTL and automatically fall back to the local map when the manifest is unavailable.
For capability execution, the runtime now prefers the gateway-published /skills/manifest.json capability delivery_mode metadata and keeps a short in-process TTL cache for it.
If the manifest is unavailable, the runtime falls back to a small local delivery-mode map so offline and development flows continue to work.
Non-goals:
- The fallback map is only a small resilience shim, not a second long-term source of truth.
- This runtime does not turn every capability into the same short-wait path.
asset_deliveryandlong_runningstill preserve explicit follow-up or presentation surfaces when those are the formal result path.- This runtime should not grow a second host-specific orchestration model beside the existing connector/runtime and gateway contracts.
Install
npm install @binaryworks1024/ai-task-hub-connector-runtimeImport
import { createConnectorRuntime } from '@binaryworks1024/ai-task-hub-connector-runtime';Current built-in public entry hosts include:
openclawmobileclawcodexclaude
Future public hosts should reuse the same connector/runtime continuity contract instead of defining a separate identity flow.
The runtime accepts the current built-in hosts and any lowercase future host slug that follows the same entry_host contract.
Homepage:
- https://gateway.binaryworks.app
Repository:
- https://github.com/chinasilva/skill_hub_gateway_mvp
