blitzwing 0.2.3 → 0.2.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blitzwing",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Interactive setup wizard to join a Blitzwing Petals mother swarm as a compute contributor",
5
5
  "bin": {
6
6
  "blitzwing": "bin/blitzwing.js"
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "config": {
26
- "discoveryUrl": "http://35.226.124.189:9000"
26
+ "discoveryUrl": "http://34.60.5.221:9000"
27
27
  },
28
28
  "dependencies": {
29
29
  "@clack/prompts": "^0.9.1",
package/src/config.js CHANGED
@@ -2,7 +2,7 @@
2
2
  export const DEFAULT_DISCOVERY_URL =
3
3
  process.env.BLITZWING_DISCOVERY_URL ||
4
4
  process.env.npm_package_config_discoveryUrl ||
5
- "http://35.226.124.189:9000";
5
+ "http://34.60.5.221:9000";
6
6
 
7
7
  export const HOME_DIR = process.env.BLITZWING_HOME || `${process.env.HOME || process.env.USERPROFILE}/.blitzwing`;
8
8
  export const STATE_PATH = `${HOME_DIR}/contributor.json`;
package/src/wizard.js CHANGED
@@ -284,8 +284,9 @@ async function wizard(args) {
284
284
  spin.stop("Petals is serving your layers");
285
285
 
286
286
  spin.start("Finalizing handoff with mother…");
287
+ let readyResult;
287
288
  try {
288
- await readyHost(selected.mother_url, {
289
+ readyResult = await readyHost(selected.mother_url, {
289
290
  host_id: assignment.host_id,
290
291
  });
291
292
  } catch (err) {
@@ -310,6 +311,7 @@ async function wizard(args) {
310
311
  shard_pid: pid,
311
312
  discovery_url: args.discoveryUrl,
312
313
  hedera_account_id: hederaAccountId,
314
+ ens_name: readyResult?.ens_name || null,
313
315
  joined_at: new Date().toISOString(),
314
316
  };
315
317
  saveState(state);
@@ -318,8 +320,10 @@ async function wizard(args) {
318
320
  hostId: state.host_id,
319
321
  });
320
322
 
323
+ const ensLine = state.ens_name ? `ENS name: ${color.cyan(state.ens_name)}\n` : "";
321
324
  p.outro(
322
325
  `${color.green("You are online.")} Hosting ${color.cyan(String(state.layers_hosted))} layers of ${color.cyan(state.model)} at ${state.block_indices}\n` +
326
+ ensLine +
323
327
  `Tunnel: ${color.cyan(tunnel.url)}\n` +
324
328
  `Run ${color.bold("blitzwing status")} anytime, or ${color.bold("blitzwing leave")} to exit.`
325
329
  );
@@ -339,6 +343,7 @@ async function showStatus() {
339
343
  console.log(` mother: ${state.mother_url}`);
340
344
  console.log(` tunnel: ${state.tunnel_url || state.shard_manager_url || "—"}`);
341
345
  console.log(` hedera: ${state.hedera_account_id || "—"}`);
346
+ console.log(` ens_name: ${state.ens_name || "—"}`);
342
347
  try {
343
348
  const res = await fetch(`http://127.0.0.1:${SHARD_PORT}/status`);
344
349
  if (res.ok) {