@privateclaw/privateclaw 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/bridges/openclaw-agent-bridge.d.ts +3 -1
- package/dist/bridges/openclaw-agent-bridge.js +80 -11
- package/dist/bridges/openclaw-agent-bridge.js.map +1 -1
- package/dist/cli.js +54 -3
- package/dist/cli.js.map +1 -1
- package/dist/openclaw-plugin.js +40 -2
- package/dist/openclaw-plugin.js.map +1 -1
- package/dist/pair-daemon.d.ts +4 -0
- package/dist/pair-daemon.js +29 -2
- package/dist/pair-daemon.js.map +1 -1
- package/dist/provider.d.ts +6 -0
- package/dist/provider.js +256 -20
- package/dist/provider.js.map +1 -1
- package/dist/session-control.d.ts +18 -0
- package/dist/session-control.js +37 -0
- package/dist/session-control.js.map +1 -1
- package/dist/text.d.ts +1 -0
- package/dist/text.js +1 -0
- package/dist/text.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
- package/src/bridges/openclaw-agent-bridge.test.ts +56 -0
- package/src/bridges/openclaw-agent-bridge.ts +116 -12
- package/src/cli.ts +91 -1
- package/src/openclaw-plugin.ts +69 -0
- package/src/pair-daemon.test.ts +48 -0
- package/src/pair-daemon.ts +37 -2
- package/src/provider.test.ts +293 -5
- package/src/provider.ts +382 -25
- package/src/session-control.test.ts +187 -85
- package/src/session-control.ts +63 -0
- package/src/text.ts +5 -0
- package/src/types.ts +10 -0
|
@@ -19,10 +19,13 @@ import { resolvePrivateClawMediaDir } from "./invite-qr-files.js";
|
|
|
19
19
|
import { DEFAULT_SESSION_TTL_MS, PrivateClawProvider } from "./provider.js";
|
|
20
20
|
import {
|
|
21
21
|
buildManagedSessionQrLegacyLines,
|
|
22
|
+
closeManagedSessionsFromStateDir,
|
|
22
23
|
closeManagedSessionFromStateDir,
|
|
23
24
|
getManagedSessionQrBundleFromStateDir,
|
|
24
25
|
isManagedSessionQrLegacyResult,
|
|
26
|
+
listManagedSessionsFromStateDir,
|
|
25
27
|
PrivateClawSessionControlServer,
|
|
28
|
+
type PrivateClawControlHostKind,
|
|
26
29
|
resolvePrivateClawControlDir,
|
|
27
30
|
} from "./session-control.js";
|
|
28
31
|
|
|
@@ -81,6 +84,107 @@ function waitForClose(socket: WebSocket): Promise<void> {
|
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
86
|
|
|
87
|
+
async function spawnLegacyManagedSessionHost(params: {
|
|
88
|
+
stateDir: string;
|
|
89
|
+
sessionId: string;
|
|
90
|
+
kind?: PrivateClawControlHostKind;
|
|
91
|
+
closeStatusCode?: number;
|
|
92
|
+
}) {
|
|
93
|
+
const child = spawn(
|
|
94
|
+
process.execPath,
|
|
95
|
+
[
|
|
96
|
+
"-e",
|
|
97
|
+
`
|
|
98
|
+
const { createServer } = require('node:http');
|
|
99
|
+
const { mkdirSync, writeFileSync } = require('node:fs');
|
|
100
|
+
const path = require('node:path');
|
|
101
|
+
const stateDir = process.env.STATE_DIR;
|
|
102
|
+
const sessionId = process.env.SESSION_ID;
|
|
103
|
+
const token = process.env.CONTROL_TOKEN;
|
|
104
|
+
const controlId = process.env.CONTROL_ID;
|
|
105
|
+
const hostKind = process.env.HOST_KIND;
|
|
106
|
+
const closeStatusCode = Number.parseInt(process.env.CLOSE_STATUS_CODE || '404', 10);
|
|
107
|
+
const startedAt = new Date().toISOString();
|
|
108
|
+
const controlDir = path.join(stateDir, 'privateclaw', 'control');
|
|
109
|
+
const server = createServer((request, response) => {
|
|
110
|
+
if (request.headers.authorization !== \`Bearer \${token}\`) {
|
|
111
|
+
response.statusCode = 401;
|
|
112
|
+
response.end(JSON.stringify({ error: 'unauthorized' }));
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const url = new URL(request.url || '/', 'http://127.0.0.1');
|
|
116
|
+
if (request.method === 'GET' && url.pathname === '/sessions') {
|
|
117
|
+
response.statusCode = 200;
|
|
118
|
+
response.setHeader('content-type', 'application/json; charset=utf-8');
|
|
119
|
+
response.end(JSON.stringify({
|
|
120
|
+
host: {
|
|
121
|
+
controlId,
|
|
122
|
+
kind: hostKind,
|
|
123
|
+
pid: process.pid,
|
|
124
|
+
startedAt,
|
|
125
|
+
},
|
|
126
|
+
sessions: [{
|
|
127
|
+
sessionId,
|
|
128
|
+
expiresAt: new Date(Date.now() + 60_000).toISOString(),
|
|
129
|
+
groupMode: false,
|
|
130
|
+
participantCount: 0,
|
|
131
|
+
participants: [],
|
|
132
|
+
state: 'awaiting_hello',
|
|
133
|
+
}],
|
|
134
|
+
}));
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (request.method === 'POST' && url.pathname === \`/sessions/\${encodeURIComponent(sessionId)}/close\`) {
|
|
138
|
+
response.statusCode = closeStatusCode;
|
|
139
|
+
response.end(JSON.stringify({ error: closeStatusCode === 200 ? undefined : 'not found' }));
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
response.statusCode = 404;
|
|
143
|
+
response.end(JSON.stringify({ error: 'missing' }));
|
|
144
|
+
});
|
|
145
|
+
server.listen(0, '127.0.0.1', () => {
|
|
146
|
+
const address = server.address();
|
|
147
|
+
mkdirSync(controlDir, { recursive: true, mode: 0o700 });
|
|
148
|
+
writeFileSync(path.join(controlDir, \`\${hostKind}-\${process.pid}-\${controlId}.json\`), JSON.stringify({
|
|
149
|
+
version: 1,
|
|
150
|
+
controlId,
|
|
151
|
+
kind: hostKind,
|
|
152
|
+
pid: process.pid,
|
|
153
|
+
host: '127.0.0.1',
|
|
154
|
+
port: address.port,
|
|
155
|
+
token,
|
|
156
|
+
startedAt,
|
|
157
|
+
}, null, 2), 'utf8');
|
|
158
|
+
process.stdout.write('ready\\n');
|
|
159
|
+
});
|
|
160
|
+
process.on('SIGTERM', () => {
|
|
161
|
+
server.close(() => process.exit(0));
|
|
162
|
+
});
|
|
163
|
+
setInterval(() => {}, 1000);
|
|
164
|
+
`,
|
|
165
|
+
],
|
|
166
|
+
{
|
|
167
|
+
env: {
|
|
168
|
+
...process.env,
|
|
169
|
+
STATE_DIR: params.stateDir,
|
|
170
|
+
SESSION_ID: params.sessionId,
|
|
171
|
+
HOST_KIND: params.kind ?? "pair-daemon",
|
|
172
|
+
CONTROL_ID: `${params.kind ?? "pair-daemon"}-${params.sessionId}-control`,
|
|
173
|
+
CONTROL_TOKEN: `${params.sessionId}-token`,
|
|
174
|
+
CLOSE_STATUS_CODE: String(params.closeStatusCode ?? 404),
|
|
175
|
+
},
|
|
176
|
+
stdio: ["ignore", "pipe", "inherit"],
|
|
177
|
+
},
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
await new Promise<void>((resolve, reject) => {
|
|
181
|
+
child.once("error", reject);
|
|
182
|
+
child.stdout?.once("data", () => resolve());
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
return child;
|
|
186
|
+
}
|
|
187
|
+
|
|
84
188
|
function decryptRelayPayload(
|
|
85
189
|
frame: Record<string, unknown>,
|
|
86
190
|
params: { sessionId: string; sessionKey: string },
|
|
@@ -284,97 +388,16 @@ test("session control can terminate a legacy daemon host when close endpoint is
|
|
|
284
388
|
});
|
|
285
389
|
|
|
286
390
|
const sessionId = "legacy-close-session";
|
|
287
|
-
const child =
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
`
|
|
292
|
-
const { createServer } = require('node:http');
|
|
293
|
-
const { mkdirSync, writeFileSync } = require('node:fs');
|
|
294
|
-
const path = require('node:path');
|
|
295
|
-
const stateDir = process.env.STATE_DIR;
|
|
296
|
-
const sessionId = process.env.SESSION_ID;
|
|
297
|
-
const token = 'legacy-close-token';
|
|
298
|
-
const controlId = 'legacy-close-control';
|
|
299
|
-
const startedAt = new Date().toISOString();
|
|
300
|
-
const controlDir = path.join(stateDir, 'privateclaw', 'control');
|
|
301
|
-
const server = createServer((request, response) => {
|
|
302
|
-
if (request.headers.authorization !== \`Bearer \${token}\`) {
|
|
303
|
-
response.statusCode = 401;
|
|
304
|
-
response.end(JSON.stringify({ error: 'unauthorized' }));
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
const url = new URL(request.url || '/', 'http://127.0.0.1');
|
|
308
|
-
if (request.method === 'GET' && url.pathname === '/sessions') {
|
|
309
|
-
response.statusCode = 200;
|
|
310
|
-
response.setHeader('content-type', 'application/json; charset=utf-8');
|
|
311
|
-
response.end(JSON.stringify({
|
|
312
|
-
host: {
|
|
313
|
-
controlId,
|
|
314
|
-
kind: 'pair-daemon',
|
|
315
|
-
pid: process.pid,
|
|
316
|
-
startedAt,
|
|
317
|
-
},
|
|
318
|
-
sessions: [{
|
|
319
|
-
sessionId,
|
|
320
|
-
expiresAt: new Date(Date.now() + 60_000).toISOString(),
|
|
321
|
-
groupMode: false,
|
|
322
|
-
participantCount: 0,
|
|
323
|
-
participants: [],
|
|
324
|
-
state: 'awaiting_hello',
|
|
325
|
-
}],
|
|
326
|
-
}));
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
if (request.method === 'POST' && url.pathname === \`/sessions/\${encodeURIComponent(sessionId)}/close\`) {
|
|
330
|
-
response.statusCode = 404;
|
|
331
|
-
response.end(JSON.stringify({ error: 'not found' }));
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
response.statusCode = 404;
|
|
335
|
-
response.end(JSON.stringify({ error: 'missing' }));
|
|
336
|
-
});
|
|
337
|
-
server.listen(0, '127.0.0.1', () => {
|
|
338
|
-
const address = server.address();
|
|
339
|
-
mkdirSync(controlDir, { recursive: true, mode: 0o700 });
|
|
340
|
-
writeFileSync(path.join(controlDir, \`\${controlId}.json\`), JSON.stringify({
|
|
341
|
-
version: 1,
|
|
342
|
-
controlId,
|
|
343
|
-
kind: 'pair-daemon',
|
|
344
|
-
pid: process.pid,
|
|
345
|
-
host: '127.0.0.1',
|
|
346
|
-
port: address.port,
|
|
347
|
-
token,
|
|
348
|
-
startedAt,
|
|
349
|
-
}, null, 2), 'utf8');
|
|
350
|
-
process.stdout.write('ready\\n');
|
|
351
|
-
});
|
|
352
|
-
process.on('SIGTERM', () => {
|
|
353
|
-
server.close(() => process.exit(0));
|
|
354
|
-
});
|
|
355
|
-
setInterval(() => {}, 1000);
|
|
356
|
-
`,
|
|
357
|
-
],
|
|
358
|
-
{
|
|
359
|
-
env: {
|
|
360
|
-
...process.env,
|
|
361
|
-
STATE_DIR: stateDir,
|
|
362
|
-
SESSION_ID: sessionId,
|
|
363
|
-
},
|
|
364
|
-
stdio: ["ignore", "pipe", "inherit"],
|
|
365
|
-
},
|
|
366
|
-
);
|
|
391
|
+
const child = await spawnLegacyManagedSessionHost({
|
|
392
|
+
stateDir,
|
|
393
|
+
sessionId,
|
|
394
|
+
});
|
|
367
395
|
t.after(async () => {
|
|
368
396
|
if (!child.killed && child.exitCode == null) {
|
|
369
397
|
child.kill("SIGTERM");
|
|
370
398
|
}
|
|
371
399
|
});
|
|
372
400
|
|
|
373
|
-
await new Promise<void>((resolve, reject) => {
|
|
374
|
-
child.once("error", reject);
|
|
375
|
-
child.stdout?.once("data", () => resolve());
|
|
376
|
-
});
|
|
377
|
-
|
|
378
401
|
const result = await closeManagedSessionFromStateDir({
|
|
379
402
|
stateDir,
|
|
380
403
|
sessionId,
|
|
@@ -390,6 +413,85 @@ setInterval(() => {}, 1000);
|
|
|
390
413
|
}
|
|
391
414
|
});
|
|
392
415
|
|
|
416
|
+
test("session control killall only terminates background daemon sessions", async (t) => {
|
|
417
|
+
const relay = createRelayServer({
|
|
418
|
+
host: "127.0.0.1",
|
|
419
|
+
port: 0,
|
|
420
|
+
sessionTtlMs: 60_000,
|
|
421
|
+
frameCacheSize: 8,
|
|
422
|
+
});
|
|
423
|
+
const { port } = await relay.start();
|
|
424
|
+
t.after(async () => {
|
|
425
|
+
await relay.stop();
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
const stateDir = await mkdtemp(path.join(os.tmpdir(), "privateclaw-session-control-killall-"));
|
|
429
|
+
t.after(async () => {
|
|
430
|
+
await rm(stateDir, { recursive: true, force: true });
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
const provider = new PrivateClawProvider({
|
|
434
|
+
providerWsUrl: `ws://127.0.0.1:${port}/ws/provider`,
|
|
435
|
+
appWsUrl: `ws://127.0.0.1:${port}/ws/app`,
|
|
436
|
+
bridge: new EchoBridge("OpenClaw bridge"),
|
|
437
|
+
defaultTtlMs: DEFAULT_SESSION_TTL_MS,
|
|
438
|
+
});
|
|
439
|
+
await provider.connect();
|
|
440
|
+
t.after(async () => {
|
|
441
|
+
await provider.dispose();
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
const controlServer = new PrivateClawSessionControlServer({
|
|
445
|
+
provider,
|
|
446
|
+
stateDir,
|
|
447
|
+
kind: "pair-foreground",
|
|
448
|
+
});
|
|
449
|
+
await controlServer.start();
|
|
450
|
+
t.after(async () => {
|
|
451
|
+
await controlServer.stop();
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
const foregroundInviteBundle = await provider.createInviteBundle();
|
|
455
|
+
const foregroundInvite = decodeInviteString(foregroundInviteBundle.inviteUri);
|
|
456
|
+
const daemonSessionId = "legacy-daemon-session";
|
|
457
|
+
const child = await spawnLegacyManagedSessionHost({
|
|
458
|
+
stateDir,
|
|
459
|
+
sessionId: daemonSessionId,
|
|
460
|
+
});
|
|
461
|
+
t.after(async () => {
|
|
462
|
+
if (!child.killed && child.exitCode == null) {
|
|
463
|
+
child.kill("SIGTERM");
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
const result = await closeManagedSessionsFromStateDir({
|
|
468
|
+
stateDir,
|
|
469
|
+
hostKinds: ["pair-daemon"],
|
|
470
|
+
reason: "operator_terminated_all",
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
assert.deepEqual(result.failed, []);
|
|
474
|
+
assert.equal(result.closed.length, 1);
|
|
475
|
+
assert.equal(result.closed[0]?.session.sessionId, daemonSessionId);
|
|
476
|
+
assert.equal(result.closed[0]?.host.kind, "pair-daemon");
|
|
477
|
+
assert.equal(result.closed[0]?.terminatedHost, true);
|
|
478
|
+
assert.equal(provider.listManagedSessions().length, 1);
|
|
479
|
+
|
|
480
|
+
const remainingListings = await listManagedSessionsFromStateDir(stateDir);
|
|
481
|
+
assert.deepEqual(
|
|
482
|
+
remainingListings.flatMap((listing) =>
|
|
483
|
+
listing.sessions.map((session) => session.sessionId),
|
|
484
|
+
),
|
|
485
|
+
[foregroundInvite.sessionId],
|
|
486
|
+
);
|
|
487
|
+
|
|
488
|
+
if (child.exitCode == null) {
|
|
489
|
+
await new Promise<void>((resolve) => {
|
|
490
|
+
child.once("exit", () => resolve());
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
|
|
393
495
|
test("session control falls back to the saved QR PNG when an older host lacks the qr endpoint", async (t) => {
|
|
394
496
|
const stateDir = await mkdtemp(path.join(os.tmpdir(), "privateclaw-session-control-legacy-"));
|
|
395
497
|
t.after(async () => {
|
package/src/session-control.ts
CHANGED
|
@@ -711,6 +711,69 @@ export async function closeManagedSessionFromStateDir(params: {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
+
export interface PrivateClawBulkClosedManagedSession {
|
|
715
|
+
host: PrivateClawDiscoveredSessionHost;
|
|
716
|
+
session: PrivateClawManagedSession;
|
|
717
|
+
terminatedHost: boolean;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export interface PrivateClawBulkCloseManagedSessionFailure {
|
|
721
|
+
host: PrivateClawDiscoveredSessionHost;
|
|
722
|
+
session: PrivateClawManagedSession;
|
|
723
|
+
error: string;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export async function closeManagedSessionsFromStateDir(params: {
|
|
727
|
+
stateDir: string;
|
|
728
|
+
hostKinds: PrivateClawControlHostKind[];
|
|
729
|
+
reason?: string;
|
|
730
|
+
}): Promise<{
|
|
731
|
+
closed: PrivateClawBulkClosedManagedSession[];
|
|
732
|
+
failed: PrivateClawBulkCloseManagedSessionFailure[];
|
|
733
|
+
}> {
|
|
734
|
+
const targetedHostKinds = new Set(params.hostKinds);
|
|
735
|
+
const skippedSessionIds = new Set<string>();
|
|
736
|
+
const closed: PrivateClawBulkClosedManagedSession[] = [];
|
|
737
|
+
const failed: PrivateClawBulkCloseManagedSessionFailure[] = [];
|
|
738
|
+
|
|
739
|
+
for (;;) {
|
|
740
|
+
const listings = await listManagedSessionsFromStateDir(params.stateDir);
|
|
741
|
+
const candidate = listings
|
|
742
|
+
.filter((listing) => targetedHostKinds.has(listing.host.kind))
|
|
743
|
+
.flatMap((listing) =>
|
|
744
|
+
listing.sessions.map((session) => ({
|
|
745
|
+
host: listing.host,
|
|
746
|
+
session,
|
|
747
|
+
})),
|
|
748
|
+
)
|
|
749
|
+
.find((entry) => !skippedSessionIds.has(entry.session.sessionId));
|
|
750
|
+
|
|
751
|
+
if (!candidate) {
|
|
752
|
+
return {
|
|
753
|
+
closed,
|
|
754
|
+
failed,
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
try {
|
|
759
|
+
closed.push(
|
|
760
|
+
await closeManagedSessionFromStateDir({
|
|
761
|
+
stateDir: params.stateDir,
|
|
762
|
+
sessionId: candidate.session.sessionId,
|
|
763
|
+
...(params.reason ? { reason: params.reason } : {}),
|
|
764
|
+
}),
|
|
765
|
+
);
|
|
766
|
+
} catch (error) {
|
|
767
|
+
failed.push({
|
|
768
|
+
host: candidate.host,
|
|
769
|
+
session: candidate.session,
|
|
770
|
+
error: error instanceof Error ? error.message : String(error),
|
|
771
|
+
});
|
|
772
|
+
skippedSessionIds.add(candidate.session.sessionId);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
714
777
|
export async function getManagedSessionQrBundleFromStateDir(params: {
|
|
715
778
|
stateDir: string;
|
|
716
779
|
sessionId: string;
|
package/src/text.ts
CHANGED
|
@@ -62,6 +62,11 @@ export const PRIVATECLAW_CLI_SESSIONS_KILL_DESCRIPTION = formatBilingualInline(
|
|
|
62
62
|
"Terminate a selected active session; for older background daemons, this falls back to terminating the whole daemon host.",
|
|
63
63
|
);
|
|
64
64
|
|
|
65
|
+
export const PRIVATECLAW_CLI_SESSIONS_KILLALL_DESCRIPTION = formatBilingualInline(
|
|
66
|
+
"终止全部由后台 daemon 托管的活动会话;不会影响前台 host 或 plugin-service 会话。",
|
|
67
|
+
"Terminate every active session managed by background daemons without affecting foreground hosts or plugin-service sessions.",
|
|
68
|
+
);
|
|
69
|
+
|
|
65
70
|
export const PRIVATECLAW_CLI_KICK_DESCRIPTION = formatBilingualInline(
|
|
66
71
|
"从群聊会话中移除指定参与者。",
|
|
67
72
|
"Remove a participant from a group session.",
|
package/src/types.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface PrivateClawConversationTurn {
|
|
|
10
10
|
role: "user" | "assistant" | "system";
|
|
11
11
|
text: string;
|
|
12
12
|
sentAt: string;
|
|
13
|
+
bridgeText?: string;
|
|
13
14
|
appId?: string;
|
|
14
15
|
participantLabel?: string;
|
|
15
16
|
replyTo?: string;
|
|
@@ -31,6 +32,12 @@ export interface BridgeResponseEnvelope {
|
|
|
31
32
|
|
|
32
33
|
export type BridgeResponse = string | BridgeResponseEnvelope;
|
|
33
34
|
|
|
35
|
+
export interface PrivateClawAudioTranscriptionRequest {
|
|
36
|
+
sessionId: string;
|
|
37
|
+
requestId: string;
|
|
38
|
+
attachments: ReadonlyArray<PrivateClawAttachment>;
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
export interface PrivateClawAgentBridge {
|
|
35
42
|
handleUserMessage(params: {
|
|
36
43
|
sessionId: string;
|
|
@@ -39,6 +46,9 @@ export interface PrivateClawAgentBridge {
|
|
|
39
46
|
attachments?: ReadonlyArray<PrivateClawAttachment>;
|
|
40
47
|
history: ReadonlyArray<PrivateClawConversationTurn>;
|
|
41
48
|
}): Promise<BridgeResponse>;
|
|
49
|
+
transcribeAudioAttachments?(
|
|
50
|
+
params: PrivateClawAudioTranscriptionRequest,
|
|
51
|
+
): Promise<string>;
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
export interface PrivateClawProviderOptions {
|