@obol/cli 0.1.0 → 0.1.1
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/package.json +1 -1
- package/src/setup.js +1 -14
package/package.json
CHANGED
package/src/setup.js
CHANGED
|
@@ -13,20 +13,7 @@ export async function runSetup() {
|
|
|
13
13
|
|
|
14
14
|
p.log.info("Let's get your agent connected. This takes about 60 seconds.");
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
const gatewayUrl = await p.text({
|
|
18
|
-
message: "Where's your Obol gateway?",
|
|
19
|
-
placeholder: 'https://www.obolagents.com',
|
|
20
|
-
defaultValue: 'https://www.obolagents.com',
|
|
21
|
-
validate: (val) => {
|
|
22
|
-
const v = val || 'https://www.obolagents.com';
|
|
23
|
-
if (!v.startsWith('http://') && !v.startsWith('https://')) {
|
|
24
|
-
return 'Should start with http:// or https://';
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
if (p.isCancel(gatewayUrl)) return cancelled();
|
|
29
|
-
const url = (gatewayUrl || 'https://www.obolagents.com').replace(/\/+$/, '');
|
|
16
|
+
const url = 'https://www.obolagents.com';
|
|
30
17
|
|
|
31
18
|
// Verify connectivity
|
|
32
19
|
const healthSpin = p.spinner();
|