@teamlearners/clawops 0.16.5 → 0.16.6

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTFYE5DWP_cjs = require('../chunk-TFYE5DWP.cjs');
3
+ var chunkOLGP2XVS_cjs = require('../chunk-OLGP2XVS.cjs');
4
4
  var pino = require('pino');
5
5
  var fs = require('fs');
6
6
  var path = require('path');
@@ -1079,7 +1079,7 @@ var MAX_ERROR_MESSAGE_LENGTH = 200;
1079
1079
  function getSdkInfo() {
1080
1080
  return {
1081
1081
  name: "clawops-node",
1082
- version: chunkTFYE5DWP_cjs.VERSION,
1082
+ version: chunkOLGP2XVS_cjs.VERSION,
1083
1083
  runtime: `node/${process.versions.node}`,
1084
1084
  os: `${process.platform}/${os__default.default.arch()}`
1085
1085
  };
@@ -1762,7 +1762,7 @@ var ClawOpsAgent = class _ClawOpsAgent {
1762
1762
  constructor(options) {
1763
1763
  this._apiKey = options.apiKey ?? process.env["CLAWOPS_API_KEY"] ?? "";
1764
1764
  this._accountId = options.accountId ?? process.env["CLAWOPS_ACCOUNT_ID"] ?? "";
1765
- this._baseUrl = options.baseUrl ?? chunkTFYE5DWP_cjs.DEFAULT_BASE_URL;
1765
+ this._baseUrl = options.baseUrl ?? chunkOLGP2XVS_cjs.DEFAULT_BASE_URL;
1766
1766
  this._fromNumber = options.from;
1767
1767
  this._session = options.session;
1768
1768
  this._recording = options.recording ?? false;
@@ -1784,7 +1784,7 @@ var ClawOpsAgent = class _ClawOpsAgent {
1784
1784
  }
1785
1785
  static _validateGain(name, gain) {
1786
1786
  if (typeof gain !== "number" || !Number.isFinite(gain) || gain < 0) {
1787
- throw new chunkTFYE5DWP_cjs.AgentError(`${name}=${gain} must be a finite number >= 0`);
1787
+ throw new chunkOLGP2XVS_cjs.AgentError(`${name}=${gain} must be a finite number >= 0`);
1788
1788
  }
1789
1789
  return gain;
1790
1790
  }
@@ -1798,7 +1798,7 @@ var ClawOpsAgent = class _ClawOpsAgent {
1798
1798
  tool(nameOrTool, description, parameters, handler) {
1799
1799
  if (typeof nameOrTool === "string") {
1800
1800
  if (!description || !parameters || !handler) {
1801
- throw new chunkTFYE5DWP_cjs.AgentError(
1801
+ throw new chunkOLGP2XVS_cjs.AgentError(
1802
1802
  "tool(name, description, parameters, handler) requires all arguments."
1803
1803
  );
1804
1804
  }
@@ -1834,10 +1834,10 @@ var ClawOpsAgent = class _ClawOpsAgent {
1834
1834
  async connect() {
1835
1835
  if (this._controlWs) return;
1836
1836
  if (!this._apiKey) {
1837
- throw new chunkTFYE5DWP_cjs.AgentError("API key is required. Set CLAWOPS_API_KEY or pass apiKey option.");
1837
+ throw new chunkOLGP2XVS_cjs.AgentError("API key is required. Set CLAWOPS_API_KEY or pass apiKey option.");
1838
1838
  }
1839
1839
  if (!this._accountId) {
1840
- throw new chunkTFYE5DWP_cjs.AgentError(
1840
+ throw new chunkOLGP2XVS_cjs.AgentError(
1841
1841
  "Account ID is required. Set CLAWOPS_ACCOUNT_ID or pass accountId option."
1842
1842
  );
1843
1843
  }
@@ -1861,7 +1861,7 @@ var ClawOpsAgent = class _ClawOpsAgent {
1861
1861
  } catch {
1862
1862
  }
1863
1863
  } catch (err) {
1864
- throw new chunkTFYE5DWP_cjs.AgentConnectionError(
1864
+ throw new chunkOLGP2XVS_cjs.AgentConnectionError(
1865
1865
  `Failed to connect to ClawOps: ${err instanceof Error ? err.message : String(err)}`
1866
1866
  );
1867
1867
  }
@@ -1912,7 +1912,7 @@ var ClawOpsAgent = class _ClawOpsAgent {
1912
1912
  });
1913
1913
  if (resp.status !== 201) {
1914
1914
  const error = await resp.json();
1915
- throw new chunkTFYE5DWP_cjs.AgentError(`\uBC1C\uC2E0 \uC2E4\uD328 (${resp.status}): ${error["error"] ?? ""}`);
1915
+ throw new chunkOLGP2XVS_cjs.AgentError(`\uBC1C\uC2E0 \uC2E4\uD328 (${resp.status}): ${error["error"] ?? ""}`);
1916
1916
  }
1917
1917
  const data = await resp.json();
1918
1918
  const callSession = new CallSession({
@@ -4287,6 +4287,7 @@ exports.BUILTIN_TOOL_NAMES = BUILTIN_TOOL_NAMES;
4287
4287
  exports.BuiltinTool = BuiltinTool;
4288
4288
  exports.CallSession = CallSession;
4289
4289
  exports.ClawOpsAgent = ClawOpsAgent;
4290
+ exports.ControlWebSocket = ControlWebSocket;
4290
4291
  exports.DECODE_TABLE = DECODE_TABLE;
4291
4292
  exports.DeepSeekLLM = DeepSeekLLM;
4292
4293
  exports.DeepgramSTT = DeepgramSTT;
@@ -4307,6 +4308,7 @@ exports.PipelineSession = PipelineSession;
4307
4308
  exports.TogetherLLM = TogetherLLM;
4308
4309
  exports.ToolRegistry = ToolRegistry;
4309
4310
  exports.XaiLLM = XaiLLM;
4311
+ exports.buildControlWsUrl = buildControlWsUrl;
4310
4312
  exports.createAgentLogger = createAgentLogger;
4311
4313
  exports.createPipelineLogger = createPipelineLogger;
4312
4314
  exports.executeBuiltinTool = executeBuiltinTool;