mirror of
https://github.com/vercel/vercel-plugin.git
synced 2026-09-14 15:39:47 +08:00
358400ace0
* adding skill invocation for plugin * Address review: namespace allowlist, skill:injected, harness tagging - Only accept skills under the plugin's own namespaces (vercel, vercel-plugin); other-plugin:deploy, netlify:deploy, and bare slugs are dropped - Emit skill:injected from the opt-in inject hooks via the same detached sender - Persist the detected harness per session and attach plugin:agent_harness to every skill event batch - Fix normalizeDetectedAgentHarness for AI_AGENT-style names (claude-code_<version>_agent was reporting as "other") - Accept Cursor-shaped payloads (conversation_id) through compat normalizeInput - Disable telemetry for the whole test suite via bunfig preload so hook tests never phone home Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
21 lines
729 B
JavaScript
Executable File
21 lines
729 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// hooks/src/setup-telemetry.mts
|
|
import { getTelemetryOverride } from "./telemetry.mjs";
|
|
function main() {
|
|
const telemetryOverride = getTelemetryOverride();
|
|
if (telemetryOverride === "off") {
|
|
process.stdout.write("Telemetry is fully disabled via VERCEL_PLUGIN_TELEMETRY=off.\n");
|
|
process.exit(0);
|
|
}
|
|
process.stdout.write(
|
|
[
|
|
"The default telemetry profile sends a once-per-day DAU phone-home (dau:active_today) and the name of each vercel-plugin skill loaded via the Skill tool (skill:invoked). Skill arguments and non-plugin skill names are never sent.",
|
|
"To disable all telemetry, set VERCEL_PLUGIN_TELEMETRY=off.",
|
|
""
|
|
].join("\n")
|
|
);
|
|
process.exit(0);
|
|
}
|
|
main();
|