@dennisdamenace/clawtell 0.1.1 → 0.1.2
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/dist/index.d.mts +51 -1
- package/dist/index.d.ts +51 -1
- package/dist/index.js +39 -1
- package/dist/index.mjs +37 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -209,6 +209,56 @@ declare class ClawTell {
|
|
|
209
209
|
savings: number;
|
|
210
210
|
};
|
|
211
211
|
}>;
|
|
212
|
+
/**
|
|
213
|
+
* Check for SDK and skill updates.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```typescript
|
|
217
|
+
* const updates = await client.checkUpdates();
|
|
218
|
+
* if (updates.hasUpdates) {
|
|
219
|
+
* for (const update of updates.updates) {
|
|
220
|
+
* console.log(`Update available: ${update.sdk} ${update.latest}`);
|
|
221
|
+
* console.log(` Upgrade: ${update.upgradeCommand}`);
|
|
222
|
+
* }
|
|
223
|
+
* }
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
checkUpdates(): Promise<{
|
|
227
|
+
hasUpdates: boolean;
|
|
228
|
+
updates: Array<{
|
|
229
|
+
type: string;
|
|
230
|
+
sdk?: string;
|
|
231
|
+
current: string;
|
|
232
|
+
latest: string;
|
|
233
|
+
upgradeCommand: string;
|
|
234
|
+
changelogUrl?: string;
|
|
235
|
+
}>;
|
|
236
|
+
latestVersions: {
|
|
237
|
+
python: string;
|
|
238
|
+
javascript: string;
|
|
239
|
+
skill: string;
|
|
240
|
+
};
|
|
241
|
+
}>;
|
|
242
|
+
/**
|
|
243
|
+
* Register your SDK version with ClawTell for update notifications.
|
|
244
|
+
* Call this on agent startup to get notified of important updates.
|
|
245
|
+
*
|
|
246
|
+
* @param notifyOnUpdates - Whether to receive webhook notifications for updates
|
|
247
|
+
*/
|
|
248
|
+
registerVersion(notifyOnUpdates?: boolean): Promise<{
|
|
249
|
+
registered: boolean;
|
|
250
|
+
agent: string;
|
|
251
|
+
hasUpdates: boolean;
|
|
252
|
+
updates: Array<{
|
|
253
|
+
type: string;
|
|
254
|
+
sdk?: string;
|
|
255
|
+
current: string;
|
|
256
|
+
latest: string;
|
|
257
|
+
upgradeCommand: string;
|
|
258
|
+
}>;
|
|
259
|
+
message: string;
|
|
260
|
+
}>;
|
|
212
261
|
}
|
|
262
|
+
declare const SDK_VERSION = "0.1.2";
|
|
213
263
|
|
|
214
|
-
export { type AllowlistEntry, AuthenticationError, ClawTell, type ClawTellConfig, ClawTellError, type InboxResult, type LookupResult, type Message, NotFoundError, type Profile, RateLimitError, type SendResult, ClawTell as default };
|
|
264
|
+
export { type AllowlistEntry, AuthenticationError, ClawTell, type ClawTellConfig, ClawTellError, type InboxResult, type LookupResult, type Message, NotFoundError, type Profile, RateLimitError, SDK_VERSION, type SendResult, ClawTell as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -209,6 +209,56 @@ declare class ClawTell {
|
|
|
209
209
|
savings: number;
|
|
210
210
|
};
|
|
211
211
|
}>;
|
|
212
|
+
/**
|
|
213
|
+
* Check for SDK and skill updates.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```typescript
|
|
217
|
+
* const updates = await client.checkUpdates();
|
|
218
|
+
* if (updates.hasUpdates) {
|
|
219
|
+
* for (const update of updates.updates) {
|
|
220
|
+
* console.log(`Update available: ${update.sdk} ${update.latest}`);
|
|
221
|
+
* console.log(` Upgrade: ${update.upgradeCommand}`);
|
|
222
|
+
* }
|
|
223
|
+
* }
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
checkUpdates(): Promise<{
|
|
227
|
+
hasUpdates: boolean;
|
|
228
|
+
updates: Array<{
|
|
229
|
+
type: string;
|
|
230
|
+
sdk?: string;
|
|
231
|
+
current: string;
|
|
232
|
+
latest: string;
|
|
233
|
+
upgradeCommand: string;
|
|
234
|
+
changelogUrl?: string;
|
|
235
|
+
}>;
|
|
236
|
+
latestVersions: {
|
|
237
|
+
python: string;
|
|
238
|
+
javascript: string;
|
|
239
|
+
skill: string;
|
|
240
|
+
};
|
|
241
|
+
}>;
|
|
242
|
+
/**
|
|
243
|
+
* Register your SDK version with ClawTell for update notifications.
|
|
244
|
+
* Call this on agent startup to get notified of important updates.
|
|
245
|
+
*
|
|
246
|
+
* @param notifyOnUpdates - Whether to receive webhook notifications for updates
|
|
247
|
+
*/
|
|
248
|
+
registerVersion(notifyOnUpdates?: boolean): Promise<{
|
|
249
|
+
registered: boolean;
|
|
250
|
+
agent: string;
|
|
251
|
+
hasUpdates: boolean;
|
|
252
|
+
updates: Array<{
|
|
253
|
+
type: string;
|
|
254
|
+
sdk?: string;
|
|
255
|
+
current: string;
|
|
256
|
+
latest: string;
|
|
257
|
+
upgradeCommand: string;
|
|
258
|
+
}>;
|
|
259
|
+
message: string;
|
|
260
|
+
}>;
|
|
212
261
|
}
|
|
262
|
+
declare const SDK_VERSION = "0.1.2";
|
|
213
263
|
|
|
214
|
-
export { type AllowlistEntry, AuthenticationError, ClawTell, type ClawTellConfig, ClawTellError, type InboxResult, type LookupResult, type Message, NotFoundError, type Profile, RateLimitError, type SendResult, ClawTell as default };
|
|
264
|
+
export { type AllowlistEntry, AuthenticationError, ClawTell, type ClawTellConfig, ClawTellError, type InboxResult, type LookupResult, type Message, NotFoundError, type Profile, RateLimitError, SDK_VERSION, type SendResult, ClawTell as default };
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
ClawTellError: () => ClawTellError,
|
|
25
25
|
NotFoundError: () => NotFoundError,
|
|
26
26
|
RateLimitError: () => RateLimitError,
|
|
27
|
+
SDK_VERSION: () => SDK_VERSION,
|
|
27
28
|
default: () => index_default
|
|
28
29
|
});
|
|
29
30
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -296,7 +297,43 @@ var ClawTell = class {
|
|
|
296
297
|
async renew(years = 1) {
|
|
297
298
|
return this.request("POST", "/renew", { body: { years } });
|
|
298
299
|
}
|
|
300
|
+
// ─────────────────────────────────────────────────────────────
|
|
301
|
+
// Updates
|
|
302
|
+
// ─────────────────────────────────────────────────────────────
|
|
303
|
+
/**
|
|
304
|
+
* Check for SDK and skill updates.
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* ```typescript
|
|
308
|
+
* const updates = await client.checkUpdates();
|
|
309
|
+
* if (updates.hasUpdates) {
|
|
310
|
+
* for (const update of updates.updates) {
|
|
311
|
+
* console.log(`Update available: ${update.sdk} ${update.latest}`);
|
|
312
|
+
* console.log(` Upgrade: ${update.upgradeCommand}`);
|
|
313
|
+
* }
|
|
314
|
+
* }
|
|
315
|
+
* ```
|
|
316
|
+
*/
|
|
317
|
+
async checkUpdates() {
|
|
318
|
+
return this.request("GET", "/updates");
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Register your SDK version with ClawTell for update notifications.
|
|
322
|
+
* Call this on agent startup to get notified of important updates.
|
|
323
|
+
*
|
|
324
|
+
* @param notifyOnUpdates - Whether to receive webhook notifications for updates
|
|
325
|
+
*/
|
|
326
|
+
async registerVersion(notifyOnUpdates = true) {
|
|
327
|
+
return this.request("POST", "/updates", {
|
|
328
|
+
body: {
|
|
329
|
+
sdk: "javascript",
|
|
330
|
+
sdkVersion: SDK_VERSION,
|
|
331
|
+
notifyOnUpdates
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
}
|
|
299
335
|
};
|
|
336
|
+
var SDK_VERSION = "0.1.2";
|
|
300
337
|
var index_default = ClawTell;
|
|
301
338
|
// Annotate the CommonJS export names for ESM import in node:
|
|
302
339
|
0 && (module.exports = {
|
|
@@ -304,5 +341,6 @@ var index_default = ClawTell;
|
|
|
304
341
|
ClawTell,
|
|
305
342
|
ClawTellError,
|
|
306
343
|
NotFoundError,
|
|
307
|
-
RateLimitError
|
|
344
|
+
RateLimitError,
|
|
345
|
+
SDK_VERSION
|
|
308
346
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -268,7 +268,43 @@ var ClawTell = class {
|
|
|
268
268
|
async renew(years = 1) {
|
|
269
269
|
return this.request("POST", "/renew", { body: { years } });
|
|
270
270
|
}
|
|
271
|
+
// ─────────────────────────────────────────────────────────────
|
|
272
|
+
// Updates
|
|
273
|
+
// ─────────────────────────────────────────────────────────────
|
|
274
|
+
/**
|
|
275
|
+
* Check for SDK and skill updates.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```typescript
|
|
279
|
+
* const updates = await client.checkUpdates();
|
|
280
|
+
* if (updates.hasUpdates) {
|
|
281
|
+
* for (const update of updates.updates) {
|
|
282
|
+
* console.log(`Update available: ${update.sdk} ${update.latest}`);
|
|
283
|
+
* console.log(` Upgrade: ${update.upgradeCommand}`);
|
|
284
|
+
* }
|
|
285
|
+
* }
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
async checkUpdates() {
|
|
289
|
+
return this.request("GET", "/updates");
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Register your SDK version with ClawTell for update notifications.
|
|
293
|
+
* Call this on agent startup to get notified of important updates.
|
|
294
|
+
*
|
|
295
|
+
* @param notifyOnUpdates - Whether to receive webhook notifications for updates
|
|
296
|
+
*/
|
|
297
|
+
async registerVersion(notifyOnUpdates = true) {
|
|
298
|
+
return this.request("POST", "/updates", {
|
|
299
|
+
body: {
|
|
300
|
+
sdk: "javascript",
|
|
301
|
+
sdkVersion: SDK_VERSION,
|
|
302
|
+
notifyOnUpdates
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
271
306
|
};
|
|
307
|
+
var SDK_VERSION = "0.1.2";
|
|
272
308
|
var index_default = ClawTell;
|
|
273
309
|
export {
|
|
274
310
|
AuthenticationError,
|
|
@@ -276,5 +312,6 @@ export {
|
|
|
276
312
|
ClawTellError,
|
|
277
313
|
NotFoundError,
|
|
278
314
|
RateLimitError,
|
|
315
|
+
SDK_VERSION,
|
|
279
316
|
index_default as default
|
|
280
317
|
};
|