cbrowser 20.0.3 → 20.1.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 +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/cognitive/index.d.ts +8 -0
- package/dist/cognitive/index.d.ts.map +1 -1
- package/dist/cognitive/index.js +6 -1
- package/dist/cognitive/index.js.map +1 -1
- package/dist/cognitive/journey-dialog.d.ts +18 -0
- package/dist/cognitive/journey-dialog.d.ts.map +1 -0
- package/dist/cognitive/journey-dialog.js +38 -0
- package/dist/cognitive/journey-dialog.js.map +1 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -41,6 +41,7 @@ import { VideoCaptureSession } from "./recording/engine.js";
|
|
|
41
41
|
import { changeSignal, parseManifest } from "./recording/types.js";
|
|
42
42
|
import { printEnterpriseStatus } from "./stealth/index.js";
|
|
43
43
|
import { runCognitiveJourney, getAnthropicApiKey, setAnthropicApiKey, removeAnthropicApiKey, isApiKeyConfigured, } from "./cognitive/index.js";
|
|
44
|
+
import { formatJourneyStep } from "./cognitive/journey-dialog.js";
|
|
44
45
|
// Lightpanda integration (v18.20.0) - OPT-IN ONLY with security guardrails
|
|
45
46
|
import { getLightpandaStatus, LIGHTPANDA_SETUP_GUIDE, LIGHTPANDA_SECURITY_WARNING, isLightpandaConfigured, } from "./lightpanda.js";
|
|
46
47
|
// Version from package.json - single source of truth
|
|
@@ -7118,8 +7119,11 @@ Documentation: https://github.com/alexandriashai/cbrowser/wiki
|
|
|
7118
7119
|
customTraits, // Pass custom traits from env var
|
|
7119
7120
|
location: locationOverride, // Pass location override
|
|
7120
7121
|
capture: buildAutoCaptureSetting(options, `journey-${personaName.replace(/[^a-zA-Z0-9-_]+/g, "-").toLowerCase()}-${Date.now()}`),
|
|
7122
|
+
// Each step's dialog as it happens: phase and mood, the persona's
|
|
7123
|
+
// monologue, and what it did (src/cognitive/journey-dialog.ts).
|
|
7124
|
+
// --verbose prints its own fuller block instead.
|
|
7121
7125
|
onStep: verbose ? undefined : (step) => {
|
|
7122
|
-
|
|
7126
|
+
console.log(formatJourneyStep(step).join("\n"));
|
|
7123
7127
|
},
|
|
7124
7128
|
});
|
|
7125
7129
|
console.log("\n");
|