vivus-agent 1.1.19 → 1.1.21
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/bin/vivus.mjs +20 -0
- package/dist/main.js +265788 -243472
- package/package.json +5 -3
package/bin/vivus.mjs
CHANGED
|
@@ -49,6 +49,26 @@ setDefault('DISABLE_TELEMETRY', '1')
|
|
|
49
49
|
setDefault('DISABLE_AUTOUPDATER', '1')
|
|
50
50
|
setDefault('DISABLE_INSTALLATION_CHECKS', '1')
|
|
51
51
|
setDefault('DO_NOT_TRACK', '1')
|
|
52
|
+
// Route CLI product/usage events (and feedback-survey responses) to OUR proxy
|
|
53
|
+
// → portal instead of Anthropic/Datadog (which stay disabled). Set to 0 to opt
|
|
54
|
+
// out. The events only ever go to ANTHROPIC_BASE_URL/VIVUS_CODE_API_BASE_URL
|
|
55
|
+
// (the proxy), never to api.anthropic.com.
|
|
56
|
+
setDefault('VIVUS_CODE_ENABLE_EVENT_LOGGING', '1')
|
|
57
|
+
|
|
58
|
+
// --- Deep tracing (OpenTelemetry) → OUR proxy → portal --------------------
|
|
59
|
+
// Emits per-interaction span trees (interaction → llm_request → tool/hook),
|
|
60
|
+
// with timing and detailed content (system prompts, model output, tool I/O),
|
|
61
|
+
// as standard OTLP/JSON. All spans/logs go ONLY to BETA_TRACING_ENDPOINT (the
|
|
62
|
+
// proxy), never to Anthropic. Heavier than event logging (captures prompt +
|
|
63
|
+
// response content) — set VIVUS_CODE_ENABLE_TRACING=0 to turn the whole thing
|
|
64
|
+
// off, or OTEL_LOG_USER_PROMPTS=0 to keep traces but redact the user prompt.
|
|
65
|
+
if (process.env.VIVUS_CODE_ENABLE_TRACING !== '0') {
|
|
66
|
+
setDefault('ENABLE_BETA_TRACING_DETAILED', '1')
|
|
67
|
+
setDefault('BETA_TRACING_ENDPOINT', PROXY) // exporter POSTs to ${PROXY}/v1/traces + /v1/logs
|
|
68
|
+
setDefault('VIVUS_CODE_TRACING_INTERACTIVE', '1') // enable in interactive mode (not just headless)
|
|
69
|
+
setDefault('OTEL_LOG_USER_PROMPTS', '1') // self-hosted: capture the user prompt text on spans
|
|
70
|
+
setDefault('VIVUS_CODE_ENABLE_TELEMETRY', '1') // gate that turns on the OTEL pipeline
|
|
71
|
+
}
|
|
52
72
|
|
|
53
73
|
// --- Default agent definitions (mirrors ts/proxy/agents.json) ---
|
|
54
74
|
const AGENTS = {
|