@teamlearners/clawops 0.32.1 → 0.34.0
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 +192 -0
- package/dist/agent/index.cjs +16 -10
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +8 -2
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/livekit/index.d.cts +1 -1
- package/dist/agent/livekit/index.d.ts +1 -1
- package/dist/{base-B6S9WQRN.d.cts → base-C3yzF1e0.d.cts} +6 -1
- package/dist/{base-B6S9WQRN.d.ts → base-C3yzF1e0.d.ts} +6 -1
- package/dist/chunk-2IHVQDIP.cjs +20 -0
- package/dist/chunk-2IHVQDIP.cjs.map +1 -0
- package/dist/{chunk-ESYMNP2G.js → chunk-36JABW7P.js} +9 -13
- package/dist/chunk-36JABW7P.js.map +1 -0
- package/dist/chunk-QNWXGJTJ.js +13 -0
- package/dist/chunk-QNWXGJTJ.js.map +1 -0
- package/dist/{chunk-6ABL54D2.cjs → chunk-TVDUOKJD.cjs} +9 -18
- package/dist/chunk-TVDUOKJD.cjs.map +1 -0
- package/dist/client-CKaAfPlF.d.cts +1460 -0
- package/dist/client-CKaAfPlF.d.ts +1460 -0
- package/dist/index.cjs +44 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1444
- package/dist/index.d.ts +2 -1444
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/solapi/index.cjs +662 -0
- package/dist/solapi/index.cjs.map +1 -0
- package/dist/solapi/index.d.cts +269 -0
- package/dist/solapi/index.d.ts +269 -0
- package/dist/solapi/index.js +651 -0
- package/dist/solapi/index.js.map +1 -0
- package/package.json +12 -2
- package/dist/chunk-6ABL54D2.cjs.map +0 -1
- package/dist/chunk-ESYMNP2G.js.map +0 -1
package/dist/agent/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FunctionTool, S as Session, B as BuiltinTool, C as CallSession, a as STT, L as LLM, T as TTS, b as ToolRegistry, c as SessionTelemetry, d as SpeechEvent, e as ConversationMessage, f as LLMChunk } from '../base-
|
|
2
|
-
export { g as CallDirection, h as CallStatus, O as OpenAIToolDefinition, i as ToolCallRequest, j as functionTool, z as zodToToolParams } from '../base-
|
|
1
|
+
import { F as FunctionTool, S as Session, B as BuiltinTool, C as CallSession, a as STT, L as LLM, T as TTS, b as ToolRegistry, c as SessionTelemetry, d as SpeechEvent, e as ConversationMessage, f as LLMChunk } from '../base-C3yzF1e0.cjs';
|
|
2
|
+
export { g as CallDirection, h as CallStatus, O as OpenAIToolDefinition, i as ToolCallRequest, j as functionTool, z as zodToToolParams } from '../base-C3yzF1e0.cjs';
|
|
3
3
|
import { Logger } from 'pino';
|
|
4
4
|
export { Logger } from 'pino';
|
|
5
5
|
import 'zod';
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FunctionTool, S as Session, B as BuiltinTool, C as CallSession, a as STT, L as LLM, T as TTS, b as ToolRegistry, c as SessionTelemetry, d as SpeechEvent, e as ConversationMessage, f as LLMChunk } from '../base-
|
|
2
|
-
export { g as CallDirection, h as CallStatus, O as OpenAIToolDefinition, i as ToolCallRequest, j as functionTool, z as zodToToolParams } from '../base-
|
|
1
|
+
import { F as FunctionTool, S as Session, B as BuiltinTool, C as CallSession, a as STT, L as LLM, T as TTS, b as ToolRegistry, c as SessionTelemetry, d as SpeechEvent, e as ConversationMessage, f as LLMChunk } from '../base-C3yzF1e0.js';
|
|
2
|
+
export { g as CallDirection, h as CallStatus, O as OpenAIToolDefinition, i as ToolCallRequest, j as functionTool, z as zodToToolParams } from '../base-C3yzF1e0.js';
|
|
3
3
|
import { Logger } from 'pino';
|
|
4
4
|
export { Logger } from 'pino';
|
|
5
5
|
import 'zod';
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_BASE_URL,
|
|
1
|
+
import { DEFAULT_BASE_URL, VERSION } from '../chunk-QNWXGJTJ.js';
|
|
2
|
+
import { AgentError, AgentConnectionError } from '../chunk-36JABW7P.js';
|
|
2
3
|
import { NOOP_LOGGER, resolveBuiltinTools, createAgentLogger, createPipelineLogger, BufferingCall, attachBuffered, ulawToPcm16, resamplePcm16, getBuiltinToolSchemas, BUILTIN_TOOL_NAMES, executeBuiltinTool, CALL_NOT_READY_RESULT, pcm16ToUlaw, applyUlawGain } from '../chunk-4YLSDMLL.js';
|
|
3
4
|
export { BUILTIN_TOOL_NAMES, BuiltinTool, DECODE_TABLE, createAgentLogger, createPipelineLogger, executeBuiltinTool, getBuiltinToolSchemas, isBuiltinTool, pcm16ToUlaw, resamplePcm16, ulawToPcm16 } from '../chunk-4YLSDMLL.js';
|
|
4
5
|
import * as fs from 'fs';
|
|
@@ -849,7 +850,12 @@ var CallSession = class {
|
|
|
849
850
|
if (isConnected) this._isTransportConnected = isConnected;
|
|
850
851
|
this._status = "active";
|
|
851
852
|
}
|
|
852
|
-
/**
|
|
853
|
+
/**
|
|
854
|
+
* Send G.711 μ-law audio (8kHz, mono) to the caller.
|
|
855
|
+
*
|
|
856
|
+
* NOT PCM16. The transport applies μ-law gain and forwards the bytes as-is,
|
|
857
|
+
* so PCM16 input is reinterpreted as μ-law and plays as noise. Convert first.
|
|
858
|
+
*/
|
|
853
859
|
sendAudio(audio) {
|
|
854
860
|
if (this._sendAudioFn) {
|
|
855
861
|
this._sendAudioFn(audio);
|