create-egregore 0.17.3 → 0.17.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/lib/api.js CHANGED
@@ -88,7 +88,7 @@ class EgregoreAPI {
88
88
  });
89
89
  }
90
90
 
91
- async joinOrg(githubToken, { github_org, repo_name = "egregore-core" }) {
91
+ async joinOrg(githubToken, { github_org, repo_name = "egregore" }) {
92
92
  return request("POST", `${this.base}/api/org/join`, {
93
93
  headers: { Authorization: `Bearer ${githubToken}` },
94
94
  body: { github_org, repo_name },
package/lib/local.js CHANGED
@@ -86,9 +86,7 @@ async function findEgregoreRepo(token, orgLogin, explicitRepo) {
86
86
  if (explicitRepo) {
87
87
  if (await repoExists(token, orgLogin, explicitRepo)) return explicitRepo;
88
88
  } else {
89
- for (const candidate of ["egregore", "egregore-core"]) {
90
- if (await repoExists(token, orgLogin, candidate)) return candidate;
91
- }
89
+ if (await repoExists(token, orgLogin, "egregore")) return "egregore";
92
90
  }
93
91
  return null;
94
92
  }
@@ -134,7 +132,7 @@ async function listOrgRepos(token, owner, isOrg) {
134
132
  }
135
133
 
136
134
  return allRepos
137
- .filter((r) => !r.archived && r.name !== "egregore" && r.name !== "egregore-core" && !r.name.endsWith("-memory"))
135
+ .filter((r) => !r.archived && r.name !== "egregore" && !r.name.endsWith("-memory"))
138
136
  .map((r) => ({ name: r.name, language: r.language || "", description: r.description || "" }));
139
137
  }
140
138
 
@@ -414,7 +412,7 @@ async function localFounderFlow(ui, ctx = {}) {
414
412
  s1.stop(`${githubOrg}/${repoName} already has Egregore set up`);
415
413
  console.log("");
416
414
  ui.info("To join it:");
417
- ui.info(` ${ui.bold(`npx create-egregore join ${githubOrg}/${repoName}`)}`);
415
+ ui.info(` ${ui.bold(`npx -y egregore-init@latest join ${githubOrg}/${repoName}`)}`);
418
416
  console.log("");
419
417
  ui.info("To set up a different one, choose a different team name.");
420
418
  process.exit(0);
@@ -669,7 +667,7 @@ async function localFounderFlow(ui, ctx = {}) {
669
667
  invSpin.stop(`Invited ${invUsername}`);
670
668
  console.log("");
671
669
  ui.info(`Tell them to run:`);
672
- ui.commandBox("command", `npx create-egregore@latest join ${githubOrg}/${repoName}`);
670
+ ui.commandBox("command", `npx -y egregore-init@latest join ${githubOrg}/${repoName}`);
673
671
  } catch (err) {
674
672
  invSpin.fail(`Could not invite ${invUsername}: ${err.message}`);
675
673
  }
package/lib/setup.js CHANGED
@@ -112,7 +112,7 @@ async function install(data, ui, targetDir, opts = {}) {
112
112
  const base = targetDir || process.cwd();
113
113
  const skipRepos = opts.skipRepos instanceof Set ? opts.skipRepos : new Set();
114
114
 
115
- // Directory name from fork URL (what git clone would use), e.g. "egregore-core"
115
+ // Directory name from fork URL (what git clone would use), e.g. "egregore"
116
116
  const forkDirName = fork_url.split("/").pop().replace(/\.git$/, "");
117
117
  const egregoreDir = path.join(base, forkDirName);
118
118
  const memoryDirName = memory_url
@@ -264,6 +264,20 @@ async function install(data, ui, targetDir, opts = {}) {
264
264
  }
265
265
  }
266
266
 
267
+ // Warm the npx cache for egregore-artifacts so the first /view or
268
+ // publish-artifact call doesn't pay a cold npm download (~5-10s).
269
+ // Background + detached — we don't care about completion, and any
270
+ // failure is silent. The first real use benefits if this finishes in
271
+ // time, otherwise it costs nothing.
272
+ try {
273
+ const { spawn } = require("child_process");
274
+ const warm = spawn("npx", ["-y", "egregore-artifacts@latest", "--help"], {
275
+ detached: true,
276
+ stdio: "ignore",
277
+ });
278
+ warm.unref();
279
+ } catch { /* ignore — cosmetic warmup */ }
280
+
267
281
  // Done
268
282
  console.log("");
269
283
  ui.success(`Egregore is ready for ${ui.bold(org_name)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-egregore",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "Set up Egregore for your team in one command",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -18,5 +18,10 @@
18
18
  "claude",
19
19
  "ai",
20
20
  "collaboration"
21
- ]
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/Curve-Labs/egregore.git",
25
+ "directory": "packages/create-egregore"
26
+ }
22
27
  }