@holochain/hc-spin 0.500.2 → 0.500.3

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/CHANGELOG.md CHANGED
@@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
9
9
  ### Changed
10
10
  ### Removed
11
11
 
12
+ ## 2025-07-31: v0.500.3
13
+ ### Fixed
14
+ - The `--network-seed` argument to hc sandbox was not actually passed on to hc sandbox. Fixed with [#33](https://github.com/holochain/hc-spin/pull/33)
15
+
12
16
  ## 2025-07-09: v0.500.2
13
17
  ### Fixed
14
18
  - Fixes issue [#31](https://github.com/holochain/hc-spin/issues/30) that made initial zome calls fail in cases where the UI loaded faster than the zome call signing logic was ready (PR [#31](https://github.com/holochain/hc-spin/pull/31))
@@ -11664,7 +11664,6 @@ class AppWebsocket {
11664
11664
  /**
11665
11665
  * Instance factory for creating an {@link AppWebsocket}.
11666
11666
  *
11667
- * @param token - A token to authenticate the websocket connection. Get a token using AdminWebsocket#issueAppAuthenticationToken.
11668
11667
  * @param options - {@link (WebsocketConnectionOptions:interface)}
11669
11668
  * @returns A new instance of an AppWebsocket.
11670
11669
  */
@@ -11705,21 +11704,21 @@ class AppWebsocket {
11705
11704
  * Request the currently known agents of the app.
11706
11705
  *
11707
11706
  * @param req - An array of DNA hashes or null
11707
+ * @param timeout - A timeout to override the default.
11708
11708
  * @returns The app's agent infos as JSON string.
11709
11709
  */
11710
11710
  async agentInfo(req, timeout2) {
11711
- const agentInfos = await this.agentInfoRequester(req, timeout2);
11712
- return agentInfos;
11711
+ return await this.agentInfoRequester(req, timeout2);
11713
11712
  }
11714
11713
  /**
11715
11714
  * Request agent meta info for an agent by peer Url.
11716
11715
  *
11717
11716
  * @param req - The peer Url of the agent and an optional array of DNA hashes
11718
- * @returns The app's agent infos as JSON string.
11717
+ * @param timeout - A timeout to override the default.
11718
+ * @returns The meta info stored for this peer URL.
11719
11719
  */
11720
11720
  async agentMetaInfo(req, timeout2) {
11721
- const agentInfos = await this.agentMetaInfoRequester(req, timeout2);
11722
- return agentInfos;
11721
+ return await this.agentMetaInfoRequester(req, timeout2);
11723
11722
  }
11724
11723
  /**
11725
11724
  * Request network stats.
@@ -12695,6 +12694,10 @@ async function spawnSandboxes(nAgents, happPath, bootStrapUrl, signalUrl, appId,
12695
12694
  appPorts += `${appPort},`;
12696
12695
  }
12697
12696
  generateArgs.push(appPorts.slice(0, appPorts.length - 1));
12697
+ if (networkSeed) {
12698
+ generateArgs.push("--network-seed");
12699
+ generateArgs.push(networkSeed);
12700
+ }
12698
12701
  generateArgs.push(happPath, "network", "--bootstrap", bootStrapUrl, "webrtc", signalUrl);
12699
12702
  let readyConductors = 0;
12700
12703
  const portsInfo = {};
@@ -12745,7 +12748,8 @@ electron.app.whenReady().then(async () => {
12745
12748
  happTargetDir ? happTargetDir : CLI_OPTS.happOrWebhappPath.path,
12746
12749
  CLI_OPTS.bootstrapUrl ? CLI_OPTS.bootstrapUrl : bootstrapUrl,
12747
12750
  CLI_OPTS.singalingUrl ? CLI_OPTS.singalingUrl : signalingUrl,
12748
- CLI_OPTS.appId
12751
+ CLI_OPTS.appId,
12752
+ CLI_OPTS.networkSeed
12749
12753
  );
12750
12754
  const lairUrls = [];
12751
12755
  sandboxPaths.forEach((sandbox) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@holochain/hc-spin",
3
- "version": "0.500.2",
4
- "holochainVersion": "0.5.3",
3
+ "version": "0.500.3",
4
+ "holochainVersion": "0.5.4",
5
5
  "description": "CLI to run Holochain apps during development.",
6
6
  "author": "matthme",
7
7
  "homepage": "https://developer.holochain.org",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@electron-toolkit/preload": "^3.0.0",
37
37
  "@electron-toolkit/utils": "^3.0.0",
38
- "@holochain/client": "^0.19.1",
38
+ "@holochain/client": "^0.19.2",
39
39
  "@holochain/hc-spin-rust-utils": "^0.500.0",
40
40
  "@msgpack/msgpack": "^2.8.0",
41
41
  "bufferutil": "4.0.8",
package/src/main/index.ts CHANGED
@@ -301,6 +301,7 @@ app.whenReady().then(async () => {
301
301
  CLI_OPTS.bootstrapUrl ? CLI_OPTS.bootstrapUrl : bootstrapUrl,
302
302
  CLI_OPTS.singalingUrl ? CLI_OPTS.singalingUrl : signalingUrl,
303
303
  CLI_OPTS.appId,
304
+ CLI_OPTS.networkSeed,
304
305
  );
305
306
 
306
307
  const lairUrls: string[] = [];