@arielbk/trace-cli
v0.1.7
Published
CLI tool for analyzing conversation transcripts and detecting patterns
Maintainers
Readme
@arielbk/trace-cli
CLI tool for analyzing conversation transcripts and detecting patterns.
Installation
No installation needed - use npx:
npx @arielbk/trace-cli --helpOr install globally:
npm install -g @arielbk/trace-cliUsage
Authentication
npx @arielbk/trace-cli loginOpens your browser to authenticate with the Trace platform.
Analyze a transcript
# From a file
npx @arielbk/trace-cli analyze --file transcript.txt
# From stdin
cat transcript.txt | npx @arielbk/trace-cli analyze
# Inline text
npx @arielbk/trace-cli analyze --input "user: Hello\nassistant: Hi there!"
# JSON output
npx @arielbk/trace-cli analyze --file transcript.txt --jsonLogout
npx @arielbk/trace-cli logoutConfiguration
Set the Trace API base URL (defaults to https://agentpatterns.vercel.app):
export TRACE_BASE_URL=https://your-trace-instance.com
export TRACE_API_BASE_URL=https://your-trace-instance.comOr:
export API_BASE_URL=https://your-trace-instance.comOr override per command:
npx @arielbk/trace-cli --base-url http://localhost:3000 analyze --file transcript.txtFor local dev without typing a URL:
npx @arielbk/trace-cli --dev analyze --file transcript.txtDev auth shortcut (skips browser login when TRACE_DEV_AUTH_MODE is not browser):
npx @arielbk/trace-cli --dev loginTo force browser login in dev:
TRACE_DEV_AUTH_MODE=browser npx @arielbk/trace-cli --dev loginLicense
MIT
