@kernel.chat/kbot 3.11.0 → 3.12.0

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/dist/cli.js CHANGED
@@ -50,6 +50,7 @@ async function main() {
50
50
  .option('--plan', 'Plan mode — read-only exploration, no changes')
51
51
  .option('--architect', 'Architect mode — plan-review-implement with dual agents')
52
52
  .option('--tree', 'Tree planning mode — LATS branching search instead of linear plans')
53
+ .option('--lite', 'Lightweight mode — skip heavy tools (auto-enabled on Replit)')
53
54
  .option('--safe', 'Confirm destructive operations')
54
55
  .option('--strict', 'Confirm ALL operations')
55
56
  .argument('[prompt...]', 'One-shot prompt')
@@ -1851,6 +1852,21 @@ async function main() {
1851
1852
  }
1852
1853
  // Register built-in agents (hacker, operator, dreamer) so --agent flag works
1853
1854
  registerBuiltinAgents();
1855
+ // ── Replit / lite mode detection ──
1856
+ {
1857
+ const { isReplit, detectReplit, printReplitWelcome } = await import('./replit.js');
1858
+ const { setLiteMode } = await import('./tools/index.js');
1859
+ if (opts.lite || isReplit()) {
1860
+ setLiteMode(true);
1861
+ if (isReplit() && !opts.quiet && !opts.pipe) {
1862
+ const env = detectReplit();
1863
+ printInfo(printReplitWelcome());
1864
+ if (env.publicUrl) {
1865
+ printInfo(` Public URL: ${env.publicUrl}`);
1866
+ }
1867
+ }
1868
+ }
1869
+ }
1854
1870
  // Parallel startup: register core tools (fast), gather context, check updates, cloud sync
1855
1871
  const toolOpts = { computerUse: opts.computerUse };
1856
1872
  const [, context, , syncMsg] = await Promise.all([