mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-20 00:03:21 +00:00
* feat: track AI fill, AI fix, evals, reusable agents and debugger usage Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: pin ee ref to the feature_usage registry commit Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: update ee-repo-ref to c3b6f62ea579a3583d4b474e9885c77104cfc87e This commit updates the EE repository reference after PR #745 was merged in windmill-ee-private. Previous ee-repo-ref: 77992910929188a854eadc06ee45971877b6f954 New ee-repo-ref: c3b6f62ea579a3583d4b474e9885c77104cfc87e Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
20 lines
804 B
TypeScript
20 lines
804 B
TypeScript
import { logFeatureUsage } from '$lib/utils/featureUsage'
|
|
|
|
// Anonymous counters for the reusable-agent lifecycle (`docs/reusable-ai-agents.md`). Same rules
|
|
// as every other `logFeatureUsage` caller: aggregated counts only, and the four keys below are
|
|
// the whole vocabulary — no agent path, prompt, model or tool ever reaches here.
|
|
|
|
export type ReusableAgentEvent =
|
|
/** A step was saved as a new reusable agent. */
|
|
| 'saved'
|
|
/** Edits to a linked agent were written back, propagating to every flow using it. */
|
|
| 'updated'
|
|
/** A saved agent was picked into a new step. */
|
|
| 'linked'
|
|
/** A linked step was forked back into a standalone agent. */
|
|
| 'unlinked'
|
|
|
|
export function logReusableAgentUsage(event: ReusableAgentEvent): void {
|
|
logFeatureUsage('ai_agent', 'reusable', { key: event })
|
|
}
|