claudemesh-cli 1.0.0-alpha.4 → 1.0.0-alpha.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.
package/dist/entrypoints/cli.js
CHANGED
|
@@ -288,13 +288,24 @@ async function claimInvite(code, body) {
|
|
|
288
288
|
return post(`/api/public/invites/${code}/claim`, body);
|
|
289
289
|
}
|
|
290
290
|
async function requestDeviceCode(deviceInfo) {
|
|
291
|
-
return
|
|
291
|
+
return request({
|
|
292
|
+
path: "/cli/device-code",
|
|
293
|
+
method: "POST",
|
|
294
|
+
body: deviceInfo,
|
|
295
|
+
baseUrl: BROKER_HTTP
|
|
296
|
+
});
|
|
292
297
|
}
|
|
293
298
|
async function pollDeviceCode(deviceCode) {
|
|
294
|
-
return
|
|
299
|
+
return request({
|
|
300
|
+
path: `/cli/device-code/${deviceCode}`,
|
|
301
|
+
baseUrl: BROKER_HTTP
|
|
302
|
+
});
|
|
295
303
|
}
|
|
304
|
+
var BROKER_HTTP;
|
|
296
305
|
var init_public = __esm(() => {
|
|
297
306
|
init_client();
|
|
307
|
+
init_urls();
|
|
308
|
+
BROKER_HTTP = URLS.BROKER.replace("wss://", "https://").replace("ws://", "http://").replace("/ws", "");
|
|
298
309
|
});
|
|
299
310
|
|
|
300
311
|
// src/services/api/facade.ts
|
|
@@ -10591,4 +10602,4 @@ main().catch((err) => {
|
|
|
10591
10602
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
10592
10603
|
});
|
|
10593
10604
|
|
|
10594
|
-
//# debugId=
|
|
10605
|
+
//# debugId=9CB1A759EC6A796364756E2164756E21
|