repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 |
| import { buildPerpsFrontendStatus } from "./frontend.js"; |
| #2 | import { ClawdPerpsRuntime } from "./marketMaker.js"; |
| #3 | import { handleTelegramPerpsCommand } from "./telegram.js"; |
| #4 |
| #5 | export async function getPerpsStatusApi(runtime: ClawdPerpsRuntime) { |
| #6 | const status = await buildPerpsFrontendStatus(runtime); |
| #7 | return { |
| #8 | ok: true, |
| #9 | surface: "perps-status", |
| #10 | status, |
| #11 | }; |
| #12 | } |
| #13 |
| #14 | export async function postTelegramPerpsApi(runtime: ClawdPerpsRuntime, text: string) { |
| #15 | const response = await handleTelegramPerpsCommand(runtime, text); |
| #16 | return { |
| #17 | ok: response.ok, |
| #18 | surface: "telegram-perps", |
| #19 | response, |
| #20 | }; |
| #21 | } |
| #22 |