@teamlearners/clawops 0.36.0 → 0.37.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.
Files changed (35) hide show
  1. package/dist/agent/index.cjs +78 -409
  2. package/dist/agent/index.cjs.map +1 -1
  3. package/dist/agent/index.d.cts +2 -2
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +5 -340
  6. package/dist/agent/index.js.map +1 -1
  7. package/dist/agent/livekit/index.cjs +9 -8
  8. package/dist/agent/livekit/index.cjs.map +1 -1
  9. package/dist/agent/livekit/index.d.cts +1 -1
  10. package/dist/agent/livekit/index.d.ts +1 -1
  11. package/dist/agent/livekit/index.js +2 -1
  12. package/dist/agent/livekit/index.js.map +1 -1
  13. package/dist/{base-C3yzF1e0.d.cts → base-BalWsEyb.d.cts} +31 -2
  14. package/dist/{base-C3yzF1e0.d.ts → base-BalWsEyb.d.ts} +31 -2
  15. package/dist/{chunk-4YLSDMLL.js → chunk-2OGQSWTW.js} +372 -3
  16. package/dist/chunk-2OGQSWTW.js.map +1 -0
  17. package/dist/{chunk-XL2VWU36.js → chunk-35XJNMFU.js} +3 -6
  18. package/dist/chunk-35XJNMFU.js.map +1 -0
  19. package/dist/{chunk-QD2ZY4UP.cjs → chunk-7TEOYLZI.cjs} +375 -2
  20. package/dist/chunk-7TEOYLZI.cjs.map +1 -0
  21. package/dist/chunk-CKPVV6SZ.js +6 -0
  22. package/dist/chunk-CKPVV6SZ.js.map +1 -0
  23. package/dist/chunk-EYI3ULDU.cjs +8 -0
  24. package/dist/chunk-EYI3ULDU.cjs.map +1 -0
  25. package/dist/{chunk-LKFNV2GI.cjs → chunk-LLPMUDNE.cjs} +2 -6
  26. package/dist/chunk-LLPMUDNE.cjs.map +1 -0
  27. package/dist/index.cjs +12 -11
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.js +3 -2
  30. package/dist/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/chunk-4YLSDMLL.js.map +0 -1
  33. package/dist/chunk-LKFNV2GI.cjs.map +0 -1
  34. package/dist/chunk-QD2ZY4UP.cjs.map +0 -1
  35. package/dist/chunk-XL2VWU36.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkLKFNV2GI_cjs = require('./chunk-LKFNV2GI.cjs');
5
+ var chunkLLPMUDNE_cjs = require('./chunk-LLPMUDNE.cjs');
6
6
  var chunkIYSPOOKH_cjs = require('./chunk-IYSPOOKH.cjs');
7
+ var chunkEYI3ULDU_cjs = require('./chunk-EYI3ULDU.cjs');
7
8
  var zod = require('zod');
8
9
  var crypto = require('crypto');
9
10
 
@@ -31,9 +32,9 @@ var APIClient = class {
31
32
  _defaultHeaders;
32
33
  constructor(options) {
33
34
  this._apiKey = options.apiKey;
34
- this._baseURL = validateBaseUrl((options.baseURL ?? chunkLKFNV2GI_cjs.DEFAULT_BASE_URL).replace(/\/+$/, ""));
35
- this._maxRetries = options.maxRetries ?? chunkLKFNV2GI_cjs.DEFAULT_MAX_RETRIES;
36
- this._timeout = options.timeout ?? chunkLKFNV2GI_cjs.DEFAULT_TIMEOUT;
35
+ this._baseURL = validateBaseUrl((options.baseURL ?? chunkLLPMUDNE_cjs.DEFAULT_BASE_URL).replace(/\/+$/, ""));
36
+ this._maxRetries = options.maxRetries ?? chunkLLPMUDNE_cjs.DEFAULT_MAX_RETRIES;
37
+ this._timeout = options.timeout ?? chunkLLPMUDNE_cjs.DEFAULT_TIMEOUT;
37
38
  this._fetch = options.fetch ?? globalThis.fetch;
38
39
  this._defaultHeaders = options.defaultHeaders ?? {};
39
40
  }
@@ -42,7 +43,7 @@ var APIClient = class {
42
43
  Authorization: `Bearer ${this._apiKey}`,
43
44
  "Content-Type": "application/json",
44
45
  Accept: "application/json",
45
- "User-Agent": `claw-ops-node/${chunkLKFNV2GI_cjs.VERSION}`,
46
+ "User-Agent": `claw-ops-node/${chunkEYI3ULDU_cjs.VERSION}`,
46
47
  ...this._defaultHeaders
47
48
  };
48
49
  if (extra) Object.assign(headers, extra);
@@ -124,7 +125,7 @@ var APIClient = class {
124
125
  return status === 408 || status === 409 || status === 429 || status >= 500;
125
126
  }
126
127
  _retryDelay(retriesTaken) {
127
- const delay = Math.min(chunkLKFNV2GI_cjs.INITIAL_RETRY_DELAY * 2 ** retriesTaken, chunkLKFNV2GI_cjs.MAX_RETRY_DELAY);
128
+ const delay = Math.min(chunkLLPMUDNE_cjs.INITIAL_RETRY_DELAY * 2 ** retriesTaken, chunkLLPMUDNE_cjs.MAX_RETRY_DELAY);
128
129
  return delay * (1 + Math.random());
129
130
  }
130
131
  _sleep(ms) {
@@ -1256,7 +1257,7 @@ var ClawOps = class extends APIClient {
1256
1257
  if (!accountId) {
1257
1258
  throw new chunkIYSPOOKH_cjs.ClawOpsError("accountId\uB97C \uC9C0\uC815\uD558\uAC70\uB098 CLAWOPS_ACCOUNT_ID \uD658\uACBD\uBCC0\uC218\uB97C \uC124\uC815\uD558\uC138\uC694.");
1258
1259
  }
1259
- const baseURL = options.baseURL ?? process.env.CLAWOPS_BASE_URL ?? chunkLKFNV2GI_cjs.DEFAULT_BASE_URL;
1260
+ const baseURL = options.baseURL ?? process.env.CLAWOPS_BASE_URL ?? chunkLLPMUDNE_cjs.DEFAULT_BASE_URL;
1260
1261
  super({
1261
1262
  apiKey,
1262
1263
  baseURL,
@@ -1309,10 +1310,6 @@ var ClawOps = class extends APIClient {
1309
1310
  // src/client-default.ts
1310
1311
  var client_default_default = ClawOps;
1311
1312
 
1312
- Object.defineProperty(exports, "VERSION", {
1313
- enumerable: true,
1314
- get: function () { return chunkLKFNV2GI_cjs.VERSION; }
1315
- });
1316
1313
  Object.defineProperty(exports, "APIConnectionError", {
1317
1314
  enumerable: true,
1318
1315
  get: function () { return chunkIYSPOOKH_cjs.APIConnectionError; }
@@ -1385,6 +1382,10 @@ Object.defineProperty(exports, "UnprocessableEntityError", {
1385
1382
  enumerable: true,
1386
1383
  get: function () { return chunkIYSPOOKH_cjs.UnprocessableEntityError; }
1387
1384
  });
1385
+ Object.defineProperty(exports, "VERSION", {
1386
+ enumerable: true,
1387
+ get: function () { return chunkEYI3ULDU_cjs.VERSION; }
1388
+ });
1388
1389
  exports.APIClient = APIClient;
1389
1390
  exports.AccountContext = AccountContext;
1390
1391
  exports.AssignmentLinks = AssignmentLinks;