vivus-agent 1.1.20 → 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.
Files changed (3) hide show
  1. package/bin/vivus.mjs +15 -0
  2. package/dist/main.js +25435 -3266
  3. package/package.json +5 -3
package/bin/vivus.mjs CHANGED
@@ -55,6 +55,21 @@ setDefault('DO_NOT_TRACK', '1')
55
55
  // (the proxy), never to api.anthropic.com.
56
56
  setDefault('VIVUS_CODE_ENABLE_EVENT_LOGGING', '1')
57
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
+ }
72
+
58
73
  // --- Default agent definitions (mirrors ts/proxy/agents.json) ---
59
74
  const AGENTS = {
60
75
  coder: {