feat: add prompt field for telemetry AUTO-248 - #180
Conversation
Walkthrough
ChangesPrompt Context Propagation
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant LLM
participant defineTool
participant Tool
participant Analytics
LLM->>defineTool: Invoke with _prompt
defineTool->>Tool: Pass params and redacted prompt
Tool->>Analytics: Emit prompt-aware analytics
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/tools/agent.ts`:
- Around line 516-524: Remove the raw console.log(prompt) call from the agent
handler. If prompt diagnostics are required, route them through the existing log
helper with its redaction behavior, preserving the surrounding handler logic and
parameters.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: baf8615b-b120-4a2a-b9b4-65fef17666e1
📒 Files selected for processing (4)
src/lib/define-tool.tssrc/tools/agent.tssrc/tools/crawl.tstest/lib/define-tool.spec.ts
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/utils.ts`:
- Line 85: Update the credential-redaction pattern in the utility to match
JSON-style fields with quoted keys and quoted or unquoted values, while
preserving existing unquoted formats. Add a regression case covering a payload
such as a password field containing a secret and verify the value is redacted
before analytics forwarding.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 99e56381-7112-4ff4-b62f-38a82337f7c9
📒 Files selected for processing (4)
src/lib/define-tool.tssrc/lib/utils.tssrc/tools/agent.tstest/tools/agent.spec.ts
💤 Files with no reviewable changes (1)
- src/tools/agent.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/lib/define-tool.ts
🤖 I have created a release *beep* *boop* --- ## [1.13.0](v1.12.0...v1.13.0) (2026-07-16) ### Features * add prompt field for telemetry AUTO-248 ([#180](#180)) ([9a2119c](9a2119c)) * force updating tool list on client connect AUTO-245 ([#181](#181)) ([3f526c0](3f526c0)) * get browserless profiles [AUTO-240] ([#179](#179)) ([8928462](8928462)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: browserless-actions-bot[bot] <186328842+browserless-actions-bot[bot]@users.noreply.github.com>
Summary
Adds optional prompt field for telemetry
Related issues
Closes AUTO-248
Changes
Test plan
npm testpasses locallynpm run lintpasses locallynpm run coveragethresholds still metChecklist
Summary by CodeRabbit