index.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * Launcher-side telemetry for the dsh-sdk toolchain: secret redaction, consent
  3. * resolution, anonymous id, payload assembly, and a fire-and-forget reporter.
  4. *
  5. * This package is a plain library the launcher imports around each command — it
  6. * is NOT a Cordis plugin (several commands never boot Cordis). Wiring it into
  7. * the launcher command dispatch and the helper feature catalog lives outside
  8. * this package.
  9. *
  10. * @module @deepseek-ai/dsh-telemetry
  11. */
  12. export {
  13. DEFAULT_ENTROPY_THRESHOLD,
  14. DEFAULT_MIN_TOKEN_LENGTH,
  15. DEFAULT_REDACTION_PLACEHOLDER,
  16. SecretRedactor,
  17. keyLooksSecret,
  18. } from './secret-redactor.ts'
  19. export type { SecretRedactorOptions } from './secret-redactor.ts'
  20. export {
  21. ConsentResolver,
  22. DEFAULT_TELEMETRY_PLUGIN_NAME,
  23. } from './consent-resolver.ts'
  24. export type {
  25. ConsentDecision,
  26. ConsentReason,
  27. ConsentResolverOptions,
  28. } from './consent-resolver.ts'
  29. export {
  30. ANONYMOUS_ID_FILE_NAME,
  31. getOrCreateAnonymousId,
  32. globalConfigDir,
  33. } from './anonymous-id.ts'
  34. export type { AnonymousId, AnonymousIdOptions } from './anonymous-id.ts'
  35. export { buildTelemetryPayload } from './payload.ts'
  36. export type { BuildTelemetryPayloadInput, TelemetryPayload } from './payload.ts'
  37. export {
  38. DEFAULT_FLUSH_TIMEOUT_MS,
  39. DEFAULT_SEND_TIMEOUT_MS,
  40. DSH_TELEMETRY_ENDPOINT,
  41. TELEMETRY_SCHEMA_VERSION,
  42. TelemetryReporter,
  43. } from './reporter.ts'
  44. export type { DeliveryOutcome, TelemetryReporterOptions } from './reporter.ts'