{"_id":"@carlosmendez/agentlog","name":"@carlosmendez/agentlog","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@carlosmendez/agentlog","version":"0.1.0","private":false,"type":"module","publishConfig":{"access":"public"},"bin":{"agentlog":"dist/index.js"},"scripts":{"build":"tsc -p tsconfig.json","dev":"tsx src/index.ts","test":"vitest run --passWithNoTests","typecheck":"tsc -p tsconfig.json --noEmit"},"dependencies":{"commander":"^14.0.3"},"_id":"@carlosmendez/agentlog@0.1.0","gitHead":"706a22a82fe85c3847a2f6199fd6012d0071fdca","description":"`agentlog` is the first-party CLI for creating accounts, authenticating, sending logs, and uploading full audio files for processing.","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-6PzIpPFo9lnSKm5gERrdZFHpyBRCxg6mq1Rijcj5uiB5JPrYbEXHOBTkvC3D5lWYJMcaxNRG0fYg+cBrW1obYg==","shasum":"88ec14f73d175c3ab7814bd5b2f4a96c9af787ca","tarball":"https://registry.npmjs.org/@carlosmendez/agentlog/-/agentlog-0.1.0.tgz","fileCount":12,"unpackedSize":33449,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG6AeSBSs9h8N+PMFrYya+/cOaAsNRM/V5thcc6XYAmQAiEA+PXyd3bKasLsA/udUH7UVDUB8glFa1eFISKT6LPlX00="}]},"_npmUser":{"name":"carlosmendez","email":"charlesmendez@hotmail.com"},"directories":{},"maintainers":[{"name":"carlosmendez","email":"charlesmendez@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentlog_0.1.0_1777858901306_0.6301521739929394"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T01:41:41.165Z","0.1.0":"2026-05-04T01:41:41.448Z","modified":"2026-05-04T01:41:41.694Z"},"maintainers":[{"name":"carlosmendez","email":"charlesmendez@hotmail.com"}],"description":"`agentlog` is the first-party CLI for creating accounts, authenticating, sending logs, and uploading full audio files for processing.","readme":"# AgentLog CLI\n\n`agentlog` is the first-party CLI for creating accounts, authenticating, sending logs, and uploading full audio files for processing.\n\nServer deployments must set `DEEPGRAM_API_KEY` and should run the `0007_deepgram_diarization.sql` migration before accepting audio uploads through the CLI.\n\n## Install\n\n```bash\nnpm install -g @carlosmendez/agentlog\nagentlog --help\n```\n\nFor one-off usage without a global install:\n\n```bash\nnpx @carlosmendez/agentlog --help\n```\n\n## Configure\n\n```bash\nagentlog signup --base-url https://app.agentlog.example \\\n  --email agent@example.com \\\n  --full-name \"Alex Agent\" \\\n  --project \"Brickell Team\"\n\nagentlog login --base-url https://app.agentlog.example --email agent@example.com\nagentlog whoami\n```\n\nThe CLI saves credentials in `~/.agentlog/config.json` with file mode `0600`. You can also use `AGENTLOG_BASE_URL` and `AGENTLOG_API_TOKEN`.\n\n## Send Text\n\n```bash\nagentlog logs create --text \"Met Maria. Budget is 850k in Brickell. Follow up Friday.\"\ncat note.txt | agentlog logs create --stdin --wait\n```\n\n## Send Audio\n\n```bash\nagentlog audio send ./call.mp3\nagentlog audio send ./call.mp3 --wait\nagentlog audio send ./call.mp3 --apply --yes\n```\n\nAudio uploads send the entire file to AgentLog as multipart form data. The API returns immediately with a queued log id:\n\n```json\n{\n  \"id\": \"9f0b6c7e-2f86-4d01-83d5-cc9e5c0e4309\",\n  \"status\": \"queued\",\n  \"inputType\": \"audio\",\n  \"createdAt\": \"2026-05-03T12:00:00.000Z\",\n  \"pollUrl\": \"/api/v1/logs/9f0b6c7e-2f86-4d01-83d5-cc9e5c0e4309\"\n}\n```\n\nUse `agentlog logs wait <id>` or `agentlog audio send <path> --wait` to wait for Deepgram diarization and CRM extraction. Completed audio details include a plain transcript plus `speakerSegments`:\n\n```json\n{\n  \"speakerSegments\": [\n    {\n      \"speaker\": 0,\n      \"start\": 1.17,\n      \"end\": 2.89,\n      \"text\": \"Parker Scarves, how may I help you?\"\n    },\n    {\n      \"speaker\": 1,\n      \"start\": 4.08,\n      \"end\": 6.04,\n      \"text\": \"I got a scarf online for my wife.\"\n    }\n  ]\n}\n```\n\n## Read Logs\n\n```bash\nagentlog logs list\nagentlog logs search \"Brickell buyer\"\nagentlog logs get <id>\nagentlog logs wait <id>\nagentlog logs review <id>\nagentlog logs apply <id> --yes\n```\n\n`logs review` shows the extracted CRM payload and proposed actions before writes happen. `logs apply` approves the processed log and queues CRM writes. To force links to existing CRM records, pass known target ids:\n\n```bash\nagentlog logs apply <id> --person <person_id> --company <company_id> --opportunity <opportunity_id> --yes\n```\n\nThe same target flags work with `audio send --apply`:\n\n```bash\nagentlog audio send ./call.mp3 --apply --person <person_id> --company <company_id> --yes\n```\n\n## HTTP Contract\n\nDevelopers can upload full audio files directly without chunking:\n\n```bash\ncurl -sS -X POST \"$AGENTLOG_BASE_URL/api/v1/logs\" \\\n  -H \"Authorization: Bearer $AGENTLOG_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -F \"audio=@./call.mp3\" \\\n  -F \"source=cli_audio_upload\"\n```\n\nText logs continue to use JSON:\n\n```bash\ncurl -sS -X POST \"$AGENTLOG_BASE_URL/api/v1/logs\" \\\n  -H \"Authorization: Bearer $AGENTLOG_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"text\":\"Met Maria. Budget is 850k in Brickell.\"}'\n```\n","readmeFilename":"README.md","_rev":"1-1a49cb8b38794ec83f182503f0380fd7"}