create-egregore 0.19.28 → 0.19.29

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // egregore-launcher-version: 0.19.28
2
+ // egregore-launcher-version: 0.19.29
3
3
  //
4
4
  // egregore — launch and browse Egregore instances from your terminal.
5
5
  // Installed by create-egregore. Reads ~/.egregore/instances.json.
@@ -33,7 +33,7 @@ const crypto = require("node:crypto");
33
33
  const { spawnSync, spawn } = require("node:child_process");
34
34
  const readline = require("node:readline");
35
35
 
36
- const VERSION = "0.19.28";
36
+ const VERSION = "0.19.29";
37
37
  const REGISTRY = path.join(os.homedir(), ".egregore", "instances.json");
38
38
  const DEFAULT_FILE = path.join(os.homedir(), ".egregore", "default");
39
39
  const UPDATE_CACHE_FILE = path.join(os.homedir(), ".egregore", "update-check.json");
@@ -670,27 +670,6 @@ async function renderCodexStartupCard(egregoreDir) {
670
670
  return false;
671
671
  }
672
672
 
673
- function renderClaudeGreetingCard(egregoreDir) {
674
- // Claude Code counterpart of renderCodexStartupCard: prints the card the
675
- // previous boot cached (bin/greeting-card.sh) instead of re-rendering —
676
- // must stay instant. Never fatal: a miss (first boot, stale cache, old
677
- // core) just means the session renders the full greeting itself.
678
- const script = path.join(egregoreDir, "bin", "greeting-card.sh");
679
- if (!fs.existsSync(script)) return false;
680
- try {
681
- const result = spawnSync("bash", [script], {
682
- cwd: egregoreDir,
683
- encoding: "utf8",
684
- stdio: ["ignore", "pipe", "pipe"],
685
- });
686
- if (result.status === 0 && result.stdout) {
687
- process.stdout.write(result.stdout);
688
- return true;
689
- }
690
- } catch {}
691
- return false;
692
- }
693
-
694
673
  function codexSupportMessage(egregoreDir) {
695
674
  return [
696
675
  "Codex harness support is missing from this Egregore checkout.",
@@ -823,10 +802,9 @@ async function launch(inst, runtimeOverride) {
823
802
  } else if (runtime === "pi") {
824
803
  if (!hasPiCoreSupport(inst.path)) die(piSupportMessage(inst.path));
825
804
  }
826
- // Print the cached greeting card for Claude Code (instant; at most one
827
- // session stale) and tell the session to skip the in-chat re-render.
828
- const claudeCardShown =
829
- runtime === "claude-code" && renderClaudeGreetingCard(inst.path);
805
+ // Claude Code renders the greeting in-chat — no pre-launch card. Claude Code
806
+ // ≥2.1.89 boots into the alternate screen buffer, which hides anything
807
+ // printed here; the launcher-card fast path is parked in PR #1493.
830
808
  // Replace the current process with the selected assistant in the instance dir.
831
809
  // spawn + detached + exit-on-exit replicates exec() in Node.
832
810
  const launchEnv = {
@@ -834,7 +812,6 @@ async function launch(inst, runtimeOverride) {
834
812
  EGREGORE_RUNTIME: runtime,
835
813
  EGREGORE_CODEX_TRUSTED: runtime === "codex" ? "1" : process.env.EGREGORE_CODEX_TRUSTED,
836
814
  };
837
- if (claudeCardShown) launchEnv.EGREGORE_CARD_SHOWN = "1";
838
815
  const child = spawn(binary, runtimeLaunchArgs(runtime, inst.path), {
839
816
  cwd: inst.path,
840
817
  stdio: "inherit",
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # egregore-launcher-version: 0.4.11
2
+ # egregore-launcher-version: 0.4.12
3
3
  # egregore — launch an Egregore instance in Claude Code.
4
4
  # Reads ~/.egregore/instances.json for the registry of installed egregores.
5
5
  #
@@ -22,7 +22,7 @@
22
22
 
23
23
  set -u
24
24
 
25
- VERSION="0.4.11"
25
+ VERSION="0.4.12"
26
26
  REGISTRY="${HOME}/.egregore/instances.json"
27
27
  DEFAULT_FILE="${HOME}/.egregore/default"
28
28
 
@@ -97,14 +97,9 @@ launch() {
97
97
  if [ -d "$target_path/memory" ]; then
98
98
  claude_args+=("--add-dir" "$target_path/memory")
99
99
  fi
100
- # Print the cached greeting card (instant; at most one session stale) and
101
- # tell the session to skip the in-chat re-render. greeting-card.sh exits
102
- # non-zero silently on a miss (first boot, stale cache, old core) — the
103
- # session then renders the full greeting itself, exactly as before.
104
- if [ -f "$target_path/bin/greeting-card.sh" ] \
105
- && bash "$target_path/bin/greeting-card.sh" 2>/dev/null; then
106
- export EGREGORE_CARD_SHOWN=1
107
- fi
100
+ # The greeting renders in-chat — no pre-launch card. Claude Code ≥2.1.89
101
+ # boots into the alternate screen buffer, which hides anything printed
102
+ # here; the launcher-card fast path is parked in PR #1493.
108
103
  exec claude "${claude_args[@]}"
109
104
  }
110
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-egregore",
3
- "version": "0.19.28",
3
+ "version": "0.19.29",
4
4
  "description": "Set up Egregore for your team in one command — installs the egregore launcher and your choice of Claude Code, Codex, or Pi.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -495,11 +495,7 @@ if [ "$FIRST_SESSION" = "true" ]; then
495
495
  echo ""
496
496
  echo " Welcome! This is your first session."
497
497
  echo ""
498
- if [ "${EGREGORE_CARD_SHOWN:-}" = "1" ]; then
499
- echo "IMPORTANT: The greeting card is already on screen (rendered by the launcher) — do NOT re-render it. Reply with the greeting-reply block contents, then ask the user if they'd like a quick onboarding tour (run /onboarding), or if they want to jump straight in."
500
- else
501
- echo "IMPORTANT: Display the above greeting exactly as-is (ASCII art + ornamented status). Then ask the user if they'd like a quick onboarding tour (run /onboarding), or if they want to jump straight in."
502
- fi
498
+ echo "IMPORTANT: Display the above greeting exactly as-is (ASCII art + ornamented status). Then ask the user if they'd like a quick onboarding tour (run /onboarding), or if they want to jump straight in."
503
499
  # Clear the flag so it only shows once
504
500
  jq '.first_session = false' "$STATE_FILE" > "$STATE_FILE.tmp" && mv "$STATE_FILE.tmp" "$STATE_FILE"
505
501
  else
@@ -514,11 +510,7 @@ else
514
510
  fi
515
511
 
516
512
  echo ""
517
- if [ "${EGREGORE_CARD_SHOWN:-}" = "1" ]; then
518
- echo "IMPORTANT: The greeting card is already on screen (rendered by the launcher) — do NOT re-render it. Reply with the greeting-reply block contents exactly as-is (it may be empty), then ask: What are you working on?"
519
- else
520
- echo "IMPORTANT: Display the above greeting to the user exactly as-is (preserve the ASCII art formatting and ornamented status) on their first message. Then ask: What are you working on?"
521
- fi
513
+ echo "IMPORTANT: Display the above greeting to the user exactly as-is (preserve the ASCII art formatting and ornamented status) on their first message. Then ask: What are you working on?"
522
514
  echo ""
523
515
  echo "BRANCH RULE: When the user responds with what they're working on, your FIRST action is to create a working branch: git fetch origin develop --quiet && git checkout -b dev/{author}/{topic-slug} origin/develop. Do this BEFORE any other work. Derive the topic slug from their description. If they ask a pure question with no work intent, skip branching."
524
516
  fi
@@ -495,11 +495,7 @@ if [ "$FIRST_SESSION" = "true" ]; then
495
495
  echo ""
496
496
  echo " Welcome! This is your first session."
497
497
  echo ""
498
- if [ "${EGREGORE_CARD_SHOWN:-}" = "1" ]; then
499
- echo "IMPORTANT: The greeting card is already on screen (rendered by the launcher) — do NOT re-render it. Reply with the greeting-reply block contents, then ask the user if they'd like a quick onboarding tour (run /onboarding), or if they want to jump straight in."
500
- else
501
- echo "IMPORTANT: Display the above greeting exactly as-is (ASCII art + ornamented status). Then ask the user if they'd like a quick onboarding tour (run /onboarding), or if they want to jump straight in."
502
- fi
498
+ echo "IMPORTANT: Display the above greeting exactly as-is (ASCII art + ornamented status). Then ask the user if they'd like a quick onboarding tour (run /onboarding), or if they want to jump straight in."
503
499
  # Clear the flag so it only shows once
504
500
  jq '.first_session = false' "$STATE_FILE" > "$STATE_FILE.tmp" && mv "$STATE_FILE.tmp" "$STATE_FILE"
505
501
  else
@@ -514,11 +510,7 @@ else
514
510
  fi
515
511
 
516
512
  echo ""
517
- if [ "${EGREGORE_CARD_SHOWN:-}" = "1" ]; then
518
- echo "IMPORTANT: The greeting card is already on screen (rendered by the launcher) — do NOT re-render it. Reply with the greeting-reply block contents exactly as-is (it may be empty), then ask: What are you working on?"
519
- else
520
- echo "IMPORTANT: Display the above greeting to the user exactly as-is (preserve the ASCII art formatting and ornamented status) on their first message. Then ask: What are you working on?"
521
- fi
513
+ echo "IMPORTANT: Display the above greeting to the user exactly as-is (preserve the ASCII art formatting and ornamented status) on their first message. Then ask: What are you working on?"
522
514
  echo ""
523
515
  echo "BRANCH RULE: When the user responds with what they're working on, your FIRST action is to create a working branch: git fetch origin develop --quiet && git checkout -b dev/{author}/{topic-slug} origin/develop. Do this BEFORE any other work. Derive the topic slug from their description. If they ask a pure question with no work intent, skip branching."
524
516
  fi