start-jibril 1.0.0 → 1.0.2

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/index.js +17 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -188,7 +188,7 @@ async function main() {
188
188
  write(path.join(memDir, "feedback", "pending.json"), JSON.stringify({ pending: [] }));
189
189
  write(path.join(stateDir, "first_run.json"), JSON.stringify({ first_run_completed: false, onboarding_version: 1 }, null, 2));
190
190
 
191
- // ── MCP config ──────────────────────────────────────────────────────────────
191
+ // ── MCP config (hub SSE mode) ────────────────────────────────────────────────
192
192
  h("Configuring MCP server...");
193
193
  log();
194
194
 
@@ -197,11 +197,20 @@ async function main() {
197
197
  fs.writeFileSync(
198
198
  path.join(claudeDir, "mcp_config.json"),
199
199
  JSON.stringify(
200
- { mcpServers: { "web-chat": { command: "npx", args: ["tsx", "web-chat.ts"], cwd: channelsDir } } },
200
+ { mcpServers: { "jibril-hub": { type: "sse", url: "http://127.0.0.1:7779/mcp" } } },
201
201
  null, 2
202
202
  )
203
203
  );
204
- ok("MCP config written");
204
+ ok("MCP config written (hub SSE mode)");
205
+
206
+ // ── Cloudflare Tunnel (optional, for anywhere access) ────────────────────────
207
+ try {
208
+ run("which cloudflared", { quiet: true });
209
+ ok("cloudflared found — tunnel will start automatically");
210
+ } catch {
211
+ warn("cloudflared not found — Cloudflare Tunnel disabled");
212
+ log(` Install for anywhere access: ${B}brew install cloudflared${X}`);
213
+ }
205
214
 
206
215
  // ── Make scripts executable ─────────────────────────────────────────────────
207
216
  try { run(`chmod +x "${path.join(targetDir, "jibril.sh")}"`, { quiet: true }); } catch {}
@@ -241,13 +250,14 @@ async function main() {
241
250
  log(` ${B}${G}║ Jibril is ready! ║${X}`);
242
251
  log(` ${B}${G}╚══════════════════════════════════════╝${X}`);
243
252
  log();
244
- log(` ${B}Start a session:${X}`);
253
+ log(` ${B}Start Jibril:${X}`);
245
254
  log(` ${G}jibril${X}`);
246
255
  log();
247
- log(` ${B}Web UI + mobile:${X}`);
248
- log(` ${D}cd ${targetDir}${X}`);
249
- log(` ${G}./jibril-start-web.sh${X} ${D}# opens http://localhost:3333${X}`);
256
+ log(` ${D}This one command starts everything:${X}`);
257
+ log(` ${D} Claude Code + mobile web UI (localhost:3333) + tunnel${X}`);
250
258
  log();
259
+ log(` ${D}Open ${B}http://localhost:3333${X}${D} on your phone (same WiFi)${X}`);
260
+ log(` ${D}If cloudflared is installed, a public URL prints for anywhere access.${X}`);
251
261
  log(` ${D}On first launch Jibril will introduce itself.${X}`);
252
262
  log();
253
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-jibril",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Set up and start Jibril — the self-evolving AI assistant — in one command",
5
5
  "keywords": [
6
6
  "jibril",