mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
feat: add OpenClaw adapter type
Introduce openclaw adapter package with server execution, CLI stream formatting, and UI config fields. Register the adapter across CLI, server, and UI registries. Add adapter label in all relevant pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
39d7f5d196
commit
b0f3f04ac6
26 changed files with 502 additions and 7 deletions
9
packages/adapters/openclaw/src/ui/build-config.ts
Normal file
9
packages/adapters/openclaw/src/ui/build-config.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import type { CreateConfigValues } from "@paperclip/adapter-utils";
|
||||
|
||||
export function buildOpenClawConfig(v: CreateConfigValues): Record<string, unknown> {
|
||||
const ac: Record<string, unknown> = {};
|
||||
if (v.url) ac.url = v.url;
|
||||
ac.method = "POST";
|
||||
ac.timeoutSec = 30;
|
||||
return ac;
|
||||
}
|
||||
2
packages/adapters/openclaw/src/ui/index.ts
Normal file
2
packages/adapters/openclaw/src/ui/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export { parseOpenClawStdoutLine } from "./parse-stdout.js";
|
||||
export { buildOpenClawConfig } from "./build-config.js";
|
||||
5
packages/adapters/openclaw/src/ui/parse-stdout.ts
Normal file
5
packages/adapters/openclaw/src/ui/parse-stdout.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import type { TranscriptEntry } from "@paperclip/adapter-utils";
|
||||
|
||||
export function parseOpenClawStdoutLine(line: string, ts: string): TranscriptEntry[] {
|
||||
return [{ kind: "stdout", ts, text: line }];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue