@holochain/hc-spin 0.500.2 → 0.600.0-dev.0

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,15 @@ 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-10-13: v0.600.0-dev.0
13
+
14
+ ### Changed
15
+ - Bumped to holochain 0.6.0-dev.28
16
+
17
+ ## 2025-07-31: v0.500.3
18
+ ### Fixed
19
+ - 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)
20
+
12
21
  ## 2025-07-09: v0.500.2
13
22
  ### Fixed
14
23
  - 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))
@@ -279,9 +279,6 @@ var AppStatusFilter;
279
279
  (function(AppStatusFilter2) {
280
280
  AppStatusFilter2["Enabled"] = "enabled";
281
281
  AppStatusFilter2["Disabled"] = "disabled";
282
- AppStatusFilter2["Running"] = "running";
283
- AppStatusFilter2["Stopped"] = "stopped";
284
- AppStatusFilter2["Paused"] = "paused";
285
282
  })(AppStatusFilter || (AppStatusFilter = {}));
286
283
  const __HC_LAUNCHER_ENV__ = "__HC_LAUNCHER_ENV__";
287
284
  const __HC_ZOME_CALL_SIGNER__ = "__HC_ZOME_CALL_SIGNER__";
@@ -11617,7 +11614,7 @@ class AppWebsocket {
11617
11614
  cachedAppInfo;
11618
11615
  appInfoRequester;
11619
11616
  agentInfoRequester;
11620
- agentMetaInfoRequester;
11617
+ peerMetaInfoRequester;
11621
11618
  callZomeRequester;
11622
11619
  provideMemproofRequester;
11623
11620
  enableAppRequester;
@@ -11639,7 +11636,7 @@ class AppWebsocket {
11639
11636
  this.cachedAppInfo = appInfo;
11640
11637
  this.appInfoRequester = AppWebsocket.requester(this.client, "app_info", this.defaultTimeout);
11641
11638
  this.agentInfoRequester = AppWebsocket.requester(this.client, "agent_info", this.defaultTimeout);
11642
- this.agentMetaInfoRequester = AppWebsocket.requester(this.client, "agent_meta_info", this.defaultTimeout);
11639
+ this.peerMetaInfoRequester = AppWebsocket.requester(this.client, "peer_meta_info", this.defaultTimeout);
11643
11640
  this.callZomeRequester = AppWebsocket.requester(this.client, "call_zome", this.defaultTimeout, this.callZomeTransform);
11644
11641
  this.provideMemproofRequester = AppWebsocket.requester(this.client, "provide_memproofs", this.defaultTimeout);
11645
11642
  this.enableAppRequester = AppWebsocket.requester(this.client, "enable_app", this.defaultTimeout);
@@ -11664,7 +11661,6 @@ class AppWebsocket {
11664
11661
  /**
11665
11662
  * Instance factory for creating an {@link AppWebsocket}.
11666
11663
  *
11667
- * @param token - A token to authenticate the websocket connection. Get a token using AdminWebsocket#issueAppAuthenticationToken.
11668
11664
  * @param options - {@link (WebsocketConnectionOptions:interface)}
11669
11665
  * @returns A new instance of an AppWebsocket.
11670
11666
  */
@@ -11705,21 +11701,21 @@ class AppWebsocket {
11705
11701
  * Request the currently known agents of the app.
11706
11702
  *
11707
11703
  * @param req - An array of DNA hashes or null
11704
+ * @param timeout - A timeout to override the default.
11708
11705
  * @returns The app's agent infos as JSON string.
11709
11706
  */
11710
11707
  async agentInfo(req, timeout2) {
11711
- const agentInfos = await this.agentInfoRequester(req, timeout2);
11712
- return agentInfos;
11708
+ return await this.agentInfoRequester(req, timeout2);
11713
11709
  }
11714
11710
  /**
11715
- * Request agent meta info for an agent by peer Url.
11711
+ * Request peer meta info for a peer by Url.
11716
11712
  *
11717
11713
  * @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.
11714
+ * @param timeout - A timeout to override the default.
11715
+ * @returns The meta info stored for this peer URL.
11719
11716
  */
11720
- async agentMetaInfo(req, timeout2) {
11721
- const agentInfos = await this.agentMetaInfoRequester(req, timeout2);
11722
- return agentInfos;
11717
+ async peerMetaInfo(req, timeout2) {
11718
+ return await this.peerMetaInfoRequester(req, timeout2);
11723
11719
  }
11724
11720
  /**
11725
11721
  * Request network stats.
@@ -12281,12 +12277,6 @@ class AdminWebsocket {
12281
12277
  * Generate a new agent pub key.
12282
12278
  */
12283
12279
  revokeAgentKey = this._requester("revoke_agent_key");
12284
- /**
12285
- * Register a DNA for later app installation.
12286
- *
12287
- * Stores the given DNA into the Holochain DNA database and returns the hash of it.
12288
- */
12289
- registerDna = this._requester("register_dna");
12290
12280
  /**
12291
12281
  * Get the DNA definition for the specified DNA hash.
12292
12282
  */
@@ -12328,9 +12318,9 @@ class AdminWebsocket {
12328
12318
  */
12329
12319
  addAgentInfo = this._requester("add_agent_info");
12330
12320
  /**
12331
- * Request agent meta info about an agent.
12321
+ * Request peer meta info for a peer.
12332
12322
  */
12333
- agentMetaInfo = this._requester("agent_meta_info");
12323
+ peerMetaInfo = this._requester("peer_meta_info");
12334
12324
  /**
12335
12325
  * Delete a disabled clone cell.
12336
12326
  */
@@ -12340,6 +12330,15 @@ class AdminWebsocket {
12340
12330
  * calls.
12341
12331
  */
12342
12332
  grantZomeCallCapability = this._requester("grant_zome_call_capability");
12333
+ /**
12334
+ * Revoke a zome call capability for an agent, which was previously granted
12335
+ * using {@link AdminWebsocket.grantZomeCallCapability}.
12336
+ */
12337
+ revokeZomeCallCapability = this._requester("revoke_zome_call_capability");
12338
+ /**
12339
+ * List all capability grants for all cells.
12340
+ */
12341
+ listCapabilityGrants = this._requester("list_capability_grants");
12343
12342
  storageInfo = this._requester("storage_info");
12344
12343
  issueAppAuthenticationToken = this._requester("issue_app_authentication_token");
12345
12344
  dumpNetworkStats = this._requester("dump_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.600.0-dev.0",
4
+ "holochainVersion": "0.6.0-dev.28",
5
5
  "description": "CLI to run Holochain apps during development.",
6
6
  "author": "matthme",
7
7
  "homepage": "https://developer.holochain.org",
@@ -35,8 +35,8 @@
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",
39
- "@holochain/hc-spin-rust-utils": "^0.500.0",
38
+ "@holochain/client": "^0.20.0-dev.2",
39
+ "@holochain/hc-spin-rust-utils": "0.600.0-dev.0",
40
40
  "@msgpack/msgpack": "^2.8.0",
41
41
  "bufferutil": "4.0.8",
42
42
  "commander": "11.1.0",
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[] = [];