instar 0.6.1 → 0.6.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.
|
@@ -32,7 +32,7 @@ Start with a brief welcome, then immediately ask HOW they want to use Instar.
|
|
|
32
32
|
|
|
33
33
|
**Welcome to Instar!**
|
|
34
34
|
|
|
35
|
-
Instar
|
|
35
|
+
Instar turns Claude Code into a persistent agent you just talk to — through Telegram, not the terminal. This setup gets you there. Two ways to use it:
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -246,21 +246,23 @@ which claude
|
|
|
246
246
|
- **Port** (default: 4040) — "The agent runs a small HTTP server for health checks and internal communication."
|
|
247
247
|
- **Max sessions** (default: 3) — "This limits how many Claude sessions can run at once. 2-3 is usually right."
|
|
248
248
|
|
|
249
|
-
### 3c. Telegram Setup
|
|
249
|
+
### 3c. Telegram Setup — The Destination
|
|
250
250
|
|
|
251
|
-
**
|
|
251
|
+
**This terminal session is the on-ramp. Telegram is where the agent experience truly begins.** Frame it that way:
|
|
252
252
|
|
|
253
|
-
> Telegram is where
|
|
253
|
+
> Right now we're in a terminal. Telegram is where your agent comes alive:
|
|
254
|
+
> - **Just talk** — no commands, no terminal, just conversation
|
|
254
255
|
> - **Topic threads** — organized channels for different concerns
|
|
255
|
-
> - **
|
|
256
|
-
> - **
|
|
257
|
-
> - **Notifications** — your agent reaches you proactively
|
|
256
|
+
> - **Mobile access** — your agent is always reachable
|
|
257
|
+
> - **Proactive** — your agent reaches out when something matters
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
The goal of this setup is to get the user onto Telegram as fast as possible. Everything else (jobs, config, technical setup) supports that destination.
|
|
260
260
|
|
|
261
|
-
For **
|
|
261
|
+
For **General Agents**: Telegram is essential. Without it, there IS no natural interface. Be direct: "This is how you'll talk to your agent."
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
For **Project Agents**: Telegram is strongly recommended. Frame it as: "Your agent can message you about builds, issues, and progress — you just reply."
|
|
264
|
+
|
|
265
|
+
If the user declines, accept it in one sentence and move on — but they should understand they're choosing the terminal-only experience.
|
|
264
266
|
|
|
265
267
|
#### Browser-Automated Setup (Default)
|
|
266
268
|
|
|
@@ -445,23 +447,23 @@ Append if not present:
|
|
|
445
447
|
.instar/logs/
|
|
446
448
|
```
|
|
447
449
|
|
|
448
|
-
## Phase 4: Summary &
|
|
450
|
+
## Phase 4: Summary & Launch
|
|
449
451
|
|
|
450
|
-
Show what was created briefly, then
|
|
452
|
+
Show what was created briefly, then get the user to their agent.
|
|
451
453
|
|
|
452
|
-
**
|
|
454
|
+
**If Telegram was configured — this is the moment:**
|
|
453
455
|
|
|
454
|
-
|
|
456
|
+
> "That's everything. Let me start the server, and then open Telegram and say hello to your agent. That's your primary channel from here on — no terminal needed."
|
|
455
457
|
|
|
456
|
-
|
|
458
|
+
Start the server, then direct them to Telegram. The setup is complete when the user is talking to their agent in Telegram, not when config files are written.
|
|
457
459
|
|
|
458
|
-
If Telegram was NOT
|
|
460
|
+
**If Telegram was NOT configured:**
|
|
459
461
|
|
|
460
|
-
> "Start the server with `instar server start`. You can
|
|
462
|
+
> "Start the server with `instar server start`. You can talk to your agent through Claude Code sessions. When you're ready for a richer experience, just ask your agent to help set up Telegram."
|
|
461
463
|
|
|
462
464
|
Offer to start the server.
|
|
463
465
|
|
|
464
|
-
**Important:** Do NOT present a list of CLI commands. The
|
|
466
|
+
**Important:** Do NOT present a list of CLI commands. The setup's job is to get the user FROM the terminal TO their agent. After starting the server, the user talks to their agent (through Telegram), not to the CLI. The terminal was just the on-ramp.
|
|
465
467
|
|
|
466
468
|
## Tone
|
|
467
469
|
|
package/dist/commands/setup.js
CHANGED
|
@@ -184,9 +184,10 @@ async function runClassicSetup() {
|
|
|
184
184
|
}) ?? 3;
|
|
185
185
|
// ── Step 3: Telegram (BEFORE users, so we know context) ────────
|
|
186
186
|
console.log();
|
|
187
|
-
console.log(pc.bold(' Telegram
|
|
188
|
-
console.log(pc.dim(' Telegram is the
|
|
189
|
-
console.log(pc.dim('
|
|
187
|
+
console.log(pc.bold(' Telegram — Where Your Agent Lives'));
|
|
188
|
+
console.log(pc.dim(' Telegram is where the real experience begins.'));
|
|
189
|
+
console.log(pc.dim(' Once connected, you just talk — no commands, no terminal.'));
|
|
190
|
+
console.log(pc.dim(' Topic threads, message history, mobile access, proactive notifications.'));
|
|
190
191
|
console.log();
|
|
191
192
|
const telegramConfig = await promptForTelegram();
|
|
192
193
|
// ── Step 4: User setup ─────────────────────────────────────────
|
|
@@ -356,14 +357,25 @@ async function runClassicSetup() {
|
|
|
356
357
|
console.log();
|
|
357
358
|
const { startServer } = await import('./server.js');
|
|
358
359
|
await startServer({ foreground: false });
|
|
360
|
+
if (telegramConfig?.chatId) {
|
|
361
|
+
console.log();
|
|
362
|
+
console.log(pc.bold(' Now open Telegram and say hello to your agent.'));
|
|
363
|
+
console.log(pc.dim(' That\'s your primary channel from here on — no terminal needed.'));
|
|
364
|
+
}
|
|
359
365
|
}
|
|
360
366
|
else {
|
|
361
367
|
console.log();
|
|
362
368
|
console.log(' To start the server:');
|
|
363
369
|
console.log(` ${pc.cyan('instar server start')}`);
|
|
364
370
|
console.log();
|
|
365
|
-
|
|
366
|
-
|
|
371
|
+
if (telegramConfig?.chatId) {
|
|
372
|
+
console.log(' Then open Telegram and say hello to your agent.');
|
|
373
|
+
console.log(' That\'s your primary channel — no terminal needed.');
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
console.log(' Once running, just talk to your agent through Claude Code sessions.');
|
|
377
|
+
console.log(' For a richer experience, set up Telegram later with your agent\'s help.');
|
|
378
|
+
}
|
|
367
379
|
}
|
|
368
380
|
console.log();
|
|
369
381
|
}
|
|
@@ -389,11 +401,13 @@ function isInstarGlobal() {
|
|
|
389
401
|
*/
|
|
390
402
|
async function promptForTelegram() {
|
|
391
403
|
const enableTelegram = await confirm({
|
|
392
|
-
message: 'Set up Telegram? (
|
|
404
|
+
message: 'Set up Telegram? (this is how you\'ll talk to your agent — mobile, threaded, always available)',
|
|
393
405
|
default: true,
|
|
394
406
|
});
|
|
395
|
-
if (!enableTelegram)
|
|
407
|
+
if (!enableTelegram) {
|
|
408
|
+
console.log(pc.dim(' You can set it up later — just ask your agent once it\'s running.'));
|
|
396
409
|
return null;
|
|
410
|
+
}
|
|
397
411
|
console.log();
|
|
398
412
|
console.log(pc.bold(' Telegram Setup'));
|
|
399
413
|
console.log(pc.dim(' We\'ll walk you through creating a Telegram bot and a group for it to live in.'));
|