@nextclaw/app-sdk
v0.1.7
Published
Lightweight bridge client for NextClaw Apps.
Maintainers
Readme
NextClaw App SDK
@nextclaw/app-sdk 是给 NextClaw Apps 前端使用的轻量 bridge client。
它只做一件事:把 app UI 对宿主的调用收敛成稳定 API,而不是让每个 app 都自己拼 fetch("/__napp/...")。
安装
npm install @nextclaw/app-sdk用法
import { createNappClient } from "@nextclaw/app-sdk";
const client = createNappClient();
await client.health();
await client.getManifest();
await client.getPermissions();
await client.runAction("summarizeNotes");API
createNappClient(baseUrl?)health()getManifest()getPermissions()runAction(action?)
