phewsh 0.15.61 → 0.15.62
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/commands/session.js +14 -6
- package/package.json +1 -1
package/commands/session.js
CHANGED
|
@@ -439,15 +439,15 @@ async function main() {
|
|
|
439
439
|
const dot = teal('●');
|
|
440
440
|
const tools = `${toolCount} AI tool${toolCount !== 1 ? 's' : ''}`;
|
|
441
441
|
if (hasProject && toolCount > 1) {
|
|
442
|
-
console.log(` ${dot} ${sage('
|
|
442
|
+
console.log(` ${dot} ${sage('phew — you made it.')} ${slate('shh,')} ${cream(projectName)} ${sage(`and your ${tools} are aligned to one thread`)} ${slate('— switch mid-thought, nothing re-explained.')}`);
|
|
443
443
|
} else if (hasProject) {
|
|
444
|
-
console.log(` ${dot} ${sage('
|
|
444
|
+
console.log(` ${dot} ${sage('phew — you made it.')} ${slate('shh,')} ${sage('one verified memory of')} ${cream(projectName)} ${sage('— ready for whatever tool you reach for next.')}`);
|
|
445
445
|
} else if (toolCount > 1) {
|
|
446
|
-
console.log(` ${dot} ${sage(`
|
|
446
|
+
console.log(` ${dot} ${sage(`phew — you made it.`)} ${slate('shh,')} ${sage(`time to align your ${tools} to you and get down to business.`)} ${cream('/init')} ${sage('to begin.')}`);
|
|
447
447
|
} else if (toolCount === 1) {
|
|
448
|
-
console.log(` ${dot} ${sage('
|
|
448
|
+
console.log(` ${dot} ${sage('phew — you made it.')} ${slate('shh,')} ${sage('add Codex or Gemini and phewsh keeps every tool aligned to you.')}`);
|
|
449
449
|
} else {
|
|
450
|
-
console.log(` ${dot} ${sage('
|
|
450
|
+
console.log(` ${dot} ${sage('phew — you made it.')} ${slate('shh,')} ${sage('install Claude Code, Codex, or Gemini and phewsh keeps them aligned to you.')}`);
|
|
451
451
|
}
|
|
452
452
|
console.log('');
|
|
453
453
|
} catch { /* the welcome is a flourish, never a blocker */ }
|
|
@@ -2469,7 +2469,15 @@ async function main() {
|
|
|
2469
2469
|
rl.prompt();
|
|
2470
2470
|
return;
|
|
2471
2471
|
}
|
|
2472
|
-
|
|
2472
|
+
// Forgiving aliases — people type the tool's everyday name, not its id.
|
|
2473
|
+
// `/use claude` should just work, not bounce off "Unknown route".
|
|
2474
|
+
const USE_ALIASES = {
|
|
2475
|
+
claude: 'claude-code', cc: 'claude-code', claudecode: 'claude-code',
|
|
2476
|
+
gpt: 'codex', chatgpt: 'codex', openai: 'codex',
|
|
2477
|
+
grokbuild: 'grok',
|
|
2478
|
+
};
|
|
2479
|
+
const raw = cmdArg.trim().toLowerCase();
|
|
2480
|
+
const target = USE_ALIASES[raw] || raw;
|
|
2473
2481
|
if (target === 'api') {
|
|
2474
2482
|
if (!config?.apiKey) {
|
|
2475
2483
|
console.log(` ${ember('!')} ${sage('No API key set — run /key first.')}`);
|