zooid 0.0.2 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -609,10 +609,19 @@ async function runShare(channelIds, options = {}) {
609
609
  console.log("");
610
610
  for (const ch of selected) {
611
611
  const dirChannel = result.channels?.find((c) => c.channel_id === ch.id);
612
- const url = dirChannel?.directory_url ?? `${DIRECTORY_BASE_URL}/servers/${encodeURIComponent(serverUrl)}/${ch.id}`;
612
+ const url = dirChannel?.directory_url ?? `${serverUrl}/${ch.id}`;
613
613
  console.log(` ${ch.id} \u2192 ${url}`);
614
614
  }
615
615
  console.log("");
616
+ console.log(` Any zooid can find your channel using:`);
617
+ console.log(` npx zooid discover --query ${selected[0].id}`);
618
+ const tags = [
619
+ ...new Set(selected.flatMap((ch) => channelDetails.get(ch.id)?.tags ?? []))
620
+ ];
621
+ if (tags.length > 0) {
622
+ console.log(` npx zooid discover --tag ${tags[0]}`);
623
+ }
624
+ console.log("");
616
625
  }
617
626
  async function pickChannels(channels) {
618
627
  const { default: checkbox } = await import("@inquirer/checkbox");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zooid",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Ori Ben",
@@ -18,8 +18,8 @@
18
18
  "dependencies": {
19
19
  "@inquirer/checkbox": "^5.0.7",
20
20
  "commander": "^14.0.3",
21
- "@zooid/server": "0.0.1",
22
21
  "@zooid/sdk": "0.0.1",
22
+ "@zooid/server": "0.0.1",
23
23
  "@zooid/types": "0.0.1"
24
24
  },
25
25
  "devDependencies": {