cbrowser 18.21.0 → 18.22.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 +29 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/lightpanda.d.ts +67 -19
- package/dist/lightpanda.d.ts.map +1 -1
- package/dist/lightpanda.js +164 -41
- package/dist/lightpanda.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -26,8 +26,8 @@ import { startDaemon, stopDaemon, getDaemonStatus, isDaemonRunning, sendToDaemon
|
|
|
26
26
|
import { getStatusInfo, formatStatus, getDataDir } from "./config.js";
|
|
27
27
|
import { printEnterpriseStatus } from "./stealth/index.js";
|
|
28
28
|
import { runCognitiveJourney, getAnthropicApiKey, setAnthropicApiKey, removeAnthropicApiKey, isApiKeyConfigured, } from "./cognitive/index.js";
|
|
29
|
-
// Lightpanda integration (v18.
|
|
30
|
-
import { getLightpandaStatus, LIGHTPANDA_SETUP_GUIDE, } from "./lightpanda.js";
|
|
29
|
+
// Lightpanda integration (v18.20.0) - OPT-IN ONLY with security guardrails
|
|
30
|
+
import { getLightpandaStatus, LIGHTPANDA_SETUP_GUIDE, LIGHTPANDA_SECURITY_WARNING, } from "./lightpanda.js";
|
|
31
31
|
// Version from package.json - single source of truth
|
|
32
32
|
import { VERSION } from "./version.js";
|
|
33
33
|
// Node readline for interactive input
|
|
@@ -603,17 +603,21 @@ API CONFIGURATION (v8.0.0)
|
|
|
603
603
|
config remove-api-key Remove stored API key
|
|
604
604
|
config set-model <model> Set Claude model (default: claude-sonnet-4-20250514)
|
|
605
605
|
|
|
606
|
-
LIGHTPANDA (v18.
|
|
606
|
+
LIGHTPANDA (v18.20.0) - High-Performance Headless Browser (OPT-IN ONLY)
|
|
607
607
|
lightpanda-status Check Lightpanda availability and configuration
|
|
608
|
-
lightpanda-setup Show setup instructions
|
|
609
|
-
|
|
610
|
-
|
|
608
|
+
lightpanda-setup Show setup instructions with security warnings
|
|
609
|
+
⚠️ SECURITY NOTICE:
|
|
610
|
+
• Lightpanda is BETA software with no security audit
|
|
611
|
+
• Cloud mode exposes traffic to lightpanda.io servers
|
|
612
|
+
• NEVER use for auth, credentials, or payments
|
|
613
|
+
• Requires explicit --lightpanda flag (not automatic)
|
|
611
614
|
Environment Variables:
|
|
612
615
|
LIGHTPANDA_ENDPOINT WebSocket endpoint (e.g., ws://127.0.0.1:9222)
|
|
613
|
-
LIGHTPANDA_TOKEN Cloud API token (
|
|
616
|
+
LIGHTPANDA_TOKEN Cloud API token (⚠️ data visible to lightpanda.io)
|
|
614
617
|
Examples:
|
|
615
618
|
cbrowser lightpanda-status
|
|
616
|
-
|
|
619
|
+
cbrowser screenshot https://example.com --lightpanda
|
|
620
|
+
cbrowser agent-ready-audit https://example.com --lightpanda
|
|
617
621
|
|
|
618
622
|
DIAGNOSTICS
|
|
619
623
|
version, -v, --version Show version number
|
|
@@ -3791,7 +3795,7 @@ Documentation: https://github.com/alexandriashai/cbrowser/wiki
|
|
|
3791
3795
|
break;
|
|
3792
3796
|
}
|
|
3793
3797
|
// =========================================================================
|
|
3794
|
-
// Lightpanda Integration (v18.
|
|
3798
|
+
// Lightpanda Integration (v18.20.0) - OPT-IN ONLY
|
|
3795
3799
|
// =========================================================================
|
|
3796
3800
|
case "lightpanda-status": {
|
|
3797
3801
|
console.log("\n🐼 Lightpanda Status\n");
|
|
@@ -3800,17 +3804,26 @@ Documentation: https://github.com/alexandriashai/cbrowser/wiki
|
|
|
3800
3804
|
console.log("❌ Not configured");
|
|
3801
3805
|
console.log("");
|
|
3802
3806
|
console.log("To enable Lightpanda, set one of these environment variables:");
|
|
3803
|
-
console.log(" LIGHTPANDA_ENDPOINT=ws://127.0.0.1:9222 (local)");
|
|
3804
|
-
console.log(" LIGHTPANDA_TOKEN=your-api-token (cloud)");
|
|
3807
|
+
console.log(" LIGHTPANDA_ENDPOINT=ws://127.0.0.1:9222 (local, recommended)");
|
|
3808
|
+
console.log(" LIGHTPANDA_TOKEN=your-api-token (cloud, ⚠️ data exposure)");
|
|
3805
3809
|
console.log("");
|
|
3806
3810
|
console.log("Run 'cbrowser lightpanda-setup' for full setup instructions.");
|
|
3807
3811
|
}
|
|
3808
3812
|
else if (status.available) {
|
|
3809
3813
|
console.log("✅ Available and connected");
|
|
3810
3814
|
console.log(` Endpoint: ${status.endpoint}`);
|
|
3811
|
-
console.log(` Mode: ${status.isCloud ? "Cloud (lightpanda.io)" : "Local"}`);
|
|
3815
|
+
console.log(` Mode: ${status.isCloud ? "Cloud ⚠️ (traffic via lightpanda.io)" : "Local (recommended)"}`);
|
|
3812
3816
|
console.log("");
|
|
3813
|
-
|
|
3817
|
+
// Show security warning for cloud mode
|
|
3818
|
+
if (status.isCloud && status.securityWarning) {
|
|
3819
|
+
console.log(status.securityWarning);
|
|
3820
|
+
console.log("");
|
|
3821
|
+
}
|
|
3822
|
+
console.log("Usage (OPT-IN REQUIRED):");
|
|
3823
|
+
console.log(" cbrowser screenshot https://example.com --lightpanda");
|
|
3824
|
+
console.log(" cbrowser agent-ready-audit https://example.com --lightpanda");
|
|
3825
|
+
console.log("");
|
|
3826
|
+
console.log("Note: Lightpanda is NOT used automatically. The --lightpanda flag is required.");
|
|
3814
3827
|
}
|
|
3815
3828
|
else {
|
|
3816
3829
|
console.log("⚠️ Configured but unavailable");
|
|
@@ -3825,6 +3838,9 @@ Documentation: https://github.com/alexandriashai/cbrowser/wiki
|
|
|
3825
3838
|
console.log("Check your API token and network connection.");
|
|
3826
3839
|
}
|
|
3827
3840
|
}
|
|
3841
|
+
// Always show security notice
|
|
3842
|
+
console.log("");
|
|
3843
|
+
console.log(LIGHTPANDA_SECURITY_WARNING);
|
|
3828
3844
|
break;
|
|
3829
3845
|
}
|
|
3830
3846
|
case "lightpanda-setup": {
|