@rulemetric/cli 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/base-command.js +5 -5
  2. package/dist/chunk-346TGPVR.js +309 -0
  3. package/dist/chunk-346TGPVR.js.map +7 -0
  4. package/dist/{chunk-2AM54TUK.js → chunk-4UJATBTG.js} +2 -2
  5. package/dist/{chunk-2WWGG2A5.js → chunk-54IODRPZ.js} +16 -15
  6. package/dist/chunk-54IODRPZ.js.map +7 -0
  7. package/dist/{chunk-BD7CY42U.js → chunk-7DRLX3DN.js} +3 -3
  8. package/dist/{chunk-JX5UI6RW.js → chunk-AUUHXCJU.js} +2 -2
  9. package/dist/{chunk-S56LOTGQ.js → chunk-CB43W53J.js} +5 -5
  10. package/dist/{chunk-EHABPBGH.js → chunk-CCSR73HF.js} +2 -2
  11. package/dist/{chunk-EHZJ6OXD.js → chunk-CGUV6TUA.js} +2 -2
  12. package/dist/{chunk-EJOI2ZGU.js → chunk-CWFVBGX2.js} +8 -12
  13. package/dist/chunk-CWFVBGX2.js.map +7 -0
  14. package/dist/{chunk-42A3HEEH.js → chunk-F5DPTXRC.js} +30 -2
  15. package/dist/{chunk-42A3HEEH.js.map → chunk-F5DPTXRC.js.map} +3 -3
  16. package/dist/{chunk-YEBBX4HQ.js → chunk-I4GHR6CY.js} +2 -2
  17. package/dist/{chunk-XMWHTOCC.js → chunk-IKEI4KNV.js} +2 -2
  18. package/dist/{chunk-CROYS75W.js → chunk-LJ5OT5XN.js} +4 -4
  19. package/dist/{chunk-UF73WX2J.js → chunk-OAQG5WBV.js} +2 -2
  20. package/dist/{chunk-QJXAULRC.js → chunk-OKCFYPIQ.js} +2 -2
  21. package/dist/{chunk-MTLAIJED.js → chunk-OWUS3HMA.js} +2 -2
  22. package/dist/{chunk-YBNW7ARH.js → chunk-PHIAFGQ2.js} +2 -2
  23. package/dist/{chunk-OGVORIFM.js → chunk-R56PH7YE.js} +11 -3
  24. package/dist/chunk-R56PH7YE.js.map +7 -0
  25. package/dist/{chunk-CLC7ZFH2.js → chunk-RYMK7FQL.js} +2 -2
  26. package/dist/{chunk-IWYCRLEK.js → chunk-TDTHAOXO.js} +2 -2
  27. package/dist/{chunk-PQU7GZ7A.js → chunk-TJ2M5QVL.js} +2 -2
  28. package/dist/{chunk-C7SRRSPA.js → chunk-VBOTWXJW.js} +2 -2
  29. package/dist/{chunk-KZRFUXGF.js → chunk-W2YERO7E.js} +27 -2
  30. package/dist/chunk-W2YERO7E.js.map +7 -0
  31. package/dist/commands/antigravity/backfill.js +6 -6
  32. package/dist/commands/auth/create-key.js +5 -5
  33. package/dist/commands/auth/login.js +5 -5
  34. package/dist/commands/auth/logout.js +5 -5
  35. package/dist/commands/auth/revoke-key.js +5 -5
  36. package/dist/commands/auth/status.js +5 -5
  37. package/dist/commands/catalog/index.js +5 -5
  38. package/dist/commands/catalog/recommend.js +5 -5
  39. package/dist/commands/convert.js +5 -5
  40. package/dist/commands/converters.js +5 -5
  41. package/dist/commands/crons/list.js +5 -5
  42. package/dist/commands/crons/run.js +5 -5
  43. package/dist/commands/dashboard.js +5 -5
  44. package/dist/commands/eval-targets/create.js +5 -5
  45. package/dist/commands/eval-targets/list.js +5 -5
  46. package/dist/commands/evals/agent.js +20 -19
  47. package/dist/commands/evals/agent.js.map +2 -2
  48. package/dist/commands/evals/benchmark.js +6 -6
  49. package/dist/commands/evals/compare.js +5 -5
  50. package/dist/commands/evals/create.js +5 -5
  51. package/dist/commands/evals/optimize-description.js +5 -5
  52. package/dist/commands/evals/optimize.js +5 -5
  53. package/dist/commands/evals/run.js +5 -5
  54. package/dist/commands/gateway/ensure.js +5 -5
  55. package/dist/commands/hooks/install.js +5 -5
  56. package/dist/commands/hooks/run.js +5 -5
  57. package/dist/commands/hooks/uninstall.js +5 -5
  58. package/dist/commands/import.js +5 -5
  59. package/dist/commands/instructions/create.js +5 -5
  60. package/dist/commands/instructions/delete.js +5 -5
  61. package/dist/commands/instructions/fork.js +5 -5
  62. package/dist/commands/instructions/get.js +5 -5
  63. package/dist/commands/instructions/list.js +5 -5
  64. package/dist/commands/instructions/promote.js +5 -5
  65. package/dist/commands/instructions/pull.js +5 -5
  66. package/dist/commands/instructions/upstream.js +5 -5
  67. package/dist/commands/instructions/versions.js +5 -5
  68. package/dist/commands/launcher.js +5 -5
  69. package/dist/commands/org/current.js +5 -5
  70. package/dist/commands/org/list.js +5 -5
  71. package/dist/commands/org/switch.js +5 -5
  72. package/dist/commands/packs/add-instruction.js +5 -5
  73. package/dist/commands/packs/apply.js +5 -5
  74. package/dist/commands/packs/create.js +5 -5
  75. package/dist/commands/packs/fork.js +5 -5
  76. package/dist/commands/packs/get.js +5 -5
  77. package/dist/commands/packs/list.js +5 -5
  78. package/dist/commands/packs/remove-instruction.js +5 -5
  79. package/dist/commands/proxy/env.js +5 -5
  80. package/dist/commands/proxy/logs.js +5 -5
  81. package/dist/commands/proxy/restart.js +5 -5
  82. package/dist/commands/proxy/setup.js +5 -5
  83. package/dist/commands/proxy/start.js +5 -5
  84. package/dist/commands/proxy/status.js +5 -5
  85. package/dist/commands/proxy/stop.js +5 -5
  86. package/dist/commands/research/backfill.js +6 -6
  87. package/dist/commands/research/tail-transcript.js +6 -6
  88. package/dist/commands/service/install.js +5 -5
  89. package/dist/commands/service/status.js +5 -5
  90. package/dist/commands/service/uninstall.js +5 -5
  91. package/dist/commands/sessions/analyze.js +5 -5
  92. package/dist/commands/sessions/end.js +5 -5
  93. package/dist/commands/sessions/import.js +5 -5
  94. package/dist/commands/sessions/list.js +5 -5
  95. package/dist/commands/sessions/start.js +5 -5
  96. package/dist/commands/setup.js +146 -0
  97. package/dist/commands/setup.js.map +7 -0
  98. package/dist/commands/signals/report.js +5 -5
  99. package/dist/commands/skills/export-approved.js +5 -5
  100. package/dist/commands/skills/install.js +5 -5
  101. package/dist/commands/skills/list.js +5 -5
  102. package/dist/commands/skills/publish.js +5 -5
  103. package/dist/commands/skills/search.js +5 -5
  104. package/dist/commands/skills/update.js +5 -5
  105. package/dist/commands/suggestions/accept.js +5 -5
  106. package/dist/commands/suggestions/dismiss.js +5 -5
  107. package/dist/commands/suggestions/list.js +5 -5
  108. package/dist/commands/suggestions/refresh.js +5 -5
  109. package/dist/dashboard/Dashboard.js +11 -11
  110. package/dist/dashboard/launcher/LauncherOverlay.js +3 -3
  111. package/dist/lib/active-org-refresh.js +3 -3
  112. package/dist/lib/agent-loop.js +15 -15
  113. package/dist/lib/antigravity-transcript.js +3 -3
  114. package/dist/lib/api-client.js +2 -2
  115. package/dist/lib/auth.js +5 -1
  116. package/dist/lib/eval-benchmark.js +3 -3
  117. package/dist/lib/eval-conversation-handler.js +3 -3
  118. package/dist/lib/handlers/cron-close-stale-sessions.js +2 -2
  119. package/dist/lib/handlers/cron-data-integrity-audit.js +2 -2
  120. package/dist/lib/handlers/cron-suggest-instructions.js +3 -3
  121. package/dist/lib/handlers/process-announcement.js +2 -2
  122. package/dist/lib/handlers/process-changelog.js +2 -2
  123. package/dist/lib/handlers/process-conversation.js +4 -4
  124. package/dist/lib/handlers/process-eval.js +3 -3
  125. package/dist/lib/handlers/process-insights.js +3 -3
  126. package/dist/lib/handlers/process-launch.js +3 -3
  127. package/dist/lib/handlers/process-run-cleanup.js +2 -2
  128. package/dist/lib/handlers/process-session-goal.js +2 -2
  129. package/dist/lib/manual-tasks.js +5 -5
  130. package/dist/lib/research-client.js +3 -3
  131. package/dist/lib/setup-steps.js +26 -0
  132. package/dist/lib/setup-steps.js.map +7 -0
  133. package/dist/lib/terminal-target-heartbeat.js +3 -3
  134. package/dist/lib/version-check.js +3 -1
  135. package/oclif.manifest.json +1033 -972
  136. package/package.json +4 -4
  137. package/dist/chunk-2WWGG2A5.js.map +0 -7
  138. package/dist/chunk-EJOI2ZGU.js.map +0 -7
  139. package/dist/chunk-KZRFUXGF.js.map +0 -7
  140. package/dist/chunk-OGVORIFM.js.map +0 -7
  141. /package/dist/{chunk-2AM54TUK.js.map → chunk-4UJATBTG.js.map} +0 -0
  142. /package/dist/{chunk-BD7CY42U.js.map → chunk-7DRLX3DN.js.map} +0 -0
  143. /package/dist/{chunk-JX5UI6RW.js.map → chunk-AUUHXCJU.js.map} +0 -0
  144. /package/dist/{chunk-S56LOTGQ.js.map → chunk-CB43W53J.js.map} +0 -0
  145. /package/dist/{chunk-EHABPBGH.js.map → chunk-CCSR73HF.js.map} +0 -0
  146. /package/dist/{chunk-EHZJ6OXD.js.map → chunk-CGUV6TUA.js.map} +0 -0
  147. /package/dist/{chunk-YEBBX4HQ.js.map → chunk-I4GHR6CY.js.map} +0 -0
  148. /package/dist/{chunk-XMWHTOCC.js.map → chunk-IKEI4KNV.js.map} +0 -0
  149. /package/dist/{chunk-CROYS75W.js.map → chunk-LJ5OT5XN.js.map} +0 -0
  150. /package/dist/{chunk-UF73WX2J.js.map → chunk-OAQG5WBV.js.map} +0 -0
  151. /package/dist/{chunk-QJXAULRC.js.map → chunk-OKCFYPIQ.js.map} +0 -0
  152. /package/dist/{chunk-MTLAIJED.js.map → chunk-OWUS3HMA.js.map} +0 -0
  153. /package/dist/{chunk-YBNW7ARH.js.map → chunk-PHIAFGQ2.js.map} +0 -0
  154. /package/dist/{chunk-CLC7ZFH2.js.map → chunk-RYMK7FQL.js.map} +0 -0
  155. /package/dist/{chunk-IWYCRLEK.js.map → chunk-TDTHAOXO.js.map} +0 -0
  156. /package/dist/{chunk-PQU7GZ7A.js.map → chunk-TJ2M5QVL.js.map} +0 -0
  157. /package/dist/{chunk-C7SRRSPA.js.map → chunk-VBOTWXJW.js.map} +0 -0
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  runAgentLoop
3
- } from "../../chunk-2WWGG2A5.js";
4
- import "../../chunk-JX5UI6RW.js";
5
- import "../../chunk-QJXAULRC.js";
6
- import "../../chunk-EHABPBGH.js";
7
- import "../../chunk-XMWHTOCC.js";
8
- import "../../chunk-C7SRRSPA.js";
3
+ } from "../../chunk-54IODRPZ.js";
4
+ import "../../chunk-AUUHXCJU.js";
5
+ import "../../chunk-7DRLX3DN.js";
6
+ import "../../chunk-OKCFYPIQ.js";
7
+ import "../../chunk-CCSR73HF.js";
8
+ import "../../chunk-XZXS2W24.js";
9
+ import "../../chunk-IKEI4KNV.js";
10
+ import "../../chunk-VBOTWXJW.js";
9
11
  import "../../chunk-FUS5C4SB.js";
10
12
  import "../../chunk-W53GKIZQ.js";
11
- import "../../chunk-YEBBX4HQ.js";
12
- import "../../chunk-XZXS2W24.js";
13
+ import "../../chunk-I4GHR6CY.js";
13
14
  import "../../chunk-RQ2TMLKG.js";
14
- import "../../chunk-YBNW7ARH.js";
15
+ import "../../chunk-PHIAFGQ2.js";
15
16
  import "../../chunk-FZKLLNDS.js";
16
- import "../../chunk-CLC7ZFH2.js";
17
+ import "../../chunk-RYMK7FQL.js";
17
18
  import "../../chunk-DGHWRQXL.js";
18
19
  import "../../chunk-K3BFZ7KG.js";
19
20
  import "../../chunk-QSN77T7C.js";
20
21
  import {
21
22
  closeDb
22
- } from "../../chunk-42A3HEEH.js";
23
- import "../../chunk-BD7CY42U.js";
24
- import "../../chunk-IWYCRLEK.js";
23
+ } from "../../chunk-F5DPTXRC.js";
24
+ import "../../chunk-TDTHAOXO.js";
25
25
  import "../../chunk-J7N3DLH6.js";
26
26
  import "../../chunk-52WIYRZH.js";
27
27
  import "../../chunk-EKP32DLN.js";
@@ -33,13 +33,13 @@ import "../../chunk-YNIH3KMU.js";
33
33
  import "../../chunk-QN34TGD3.js";
34
34
  import {
35
35
  BaseCommand
36
- } from "../../chunk-S56LOTGQ.js";
37
- import "../../chunk-OGVORIFM.js";
38
- import "../../chunk-2AM54TUK.js";
39
- import "../../chunk-EJOI2ZGU.js";
36
+ } from "../../chunk-CB43W53J.js";
37
+ import "../../chunk-R56PH7YE.js";
38
+ import "../../chunk-4UJATBTG.js";
39
+ import "../../chunk-CWFVBGX2.js";
40
40
  import {
41
41
  loadToken
42
- } from "../../chunk-KZRFUXGF.js";
42
+ } from "../../chunk-W2YERO7E.js";
43
43
  import "../../chunk-EKJ2CABV.js";
44
44
  import "../../chunk-NSBPE2FW.js";
45
45
 
@@ -276,7 +276,8 @@ var EvalAgentCommand = class _EvalAgentCommand extends BaseCommand {
276
276
  try {
277
277
  await runAgentLoop({
278
278
  signal: controller.signal,
279
- log: (msg) => this.log(msg)
279
+ log: (msg) => this.log(msg),
280
+ version: this.config.version
280
281
  });
281
282
  } finally {
282
283
  releaseAgentLock();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../packages/telemetry/src/init.ts", "../../../../../packages/telemetry/src/otlp-headers.ts", "../../../../../packages/telemetry/src/hono-middleware.ts", "../../../../../packages/telemetry/src/mcp-instrumentation.ts", "../../../../../packages/telemetry/src/span-attributes.ts", "../../../../../packages/telemetry/src/sentry.ts", "../../../src/commands/evals/agent.ts"],
4
- "sourcesContent": ["import { trace, context, type Tracer } from '@opentelemetry/api';\nimport { NodeSDK } from '@opentelemetry/sdk-node';\nimport { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';\nimport {\n BatchSpanProcessor,\n ConsoleSpanExporter,\n SimpleSpanProcessor,\n} from '@opentelemetry/sdk-trace-node';\nimport { Resource } from '@opentelemetry/resources';\nimport { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from '@opentelemetry/semantic-conventions';\nimport { parseOtlpHeaders } from './otlp-headers.js';\n\nlet sdk: NodeSDK | null = null;\n\nexport interface TelemetryConfig {\n serviceName: string;\n serviceVersion?: string;\n}\n\n/**\n * Boot states for `initTelemetry`. Returned discriminator lets callers\n * emit a precise boot log:\n * - 'otlp' \u2014 spans ship over OTLP to a real backend (Honeycomb etc.)\n * - 'console' \u2014 spans print to stdout as JSON (Fly logs ingest them);\n * the \"open + zero third-party\" default\n * - 'off' \u2014 telemetry globally disabled (TELEMETRY_ENABLED=false)\n * OR a prior `initTelemetry()` already booted the SDK\n * in this process (idempotent skip)\n */\nexport type TelemetryBootState = 'otlp' | 'console' | 'silent' | 'off';\n\nexport function isTelemetryEnabled(): boolean {\n return process.env.TELEMETRY_ENABLED !== 'false';\n}\n\n/**\n * Initialize OpenTelemetry tracing. Two transport modes, both built on\n * the same OTel SDK \u2014 only the exporter changes:\n *\n * - OTLP backend \u2192 set `OTEL_EXPORTER_OTLP_ENDPOINT` (+ optional\n * `OTEL_EXPORTER_OTLP_HEADERS` for vendor auth)\n * - Console (stdout) \u2192 the default when no endpoint is set\n *\n * The console path is intentionally on-by-default. Without a real backend\n * configured, spans are written to stdout as JSON and end up in Fly's log\n * stream alongside everything else \u2014 searchable, structured, and you\n * stay inside the open OpenTelemetry spec without paying a third party.\n * Swap to OTLP later by setting one env var; no code change needed.\n *\n * Returns `'off'` when:\n * - TELEMETRY_ENABLED=false (operator kill switch \u2014 beats any config)\n * - The SDK was already started in this process (idempotent skip)\n *\n * See packages/telemetry/src/init.test.ts for the full state table.\n */\nexport function initTelemetry(config: TelemetryConfig): TelemetryBootState {\n if (!isTelemetryEnabled()) {\n return 'off';\n }\n if (sdk !== null) {\n // OTel's global tracer provider gets set on first start(); calling\n // start() twice triggers an SDK warning. Treat second-call as a no-op.\n return 'off';\n }\n\n const resource = new Resource({\n [ATTR_SERVICE_NAME]: config.serviceName,\n [ATTR_SERVICE_VERSION]: config.serviceVersion ?? '0.1.0',\n });\n\n const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT;\n let mode: TelemetryBootState;\n let spanProcessor: BatchSpanProcessor | SimpleSpanProcessor | undefined;\n\n if (endpoint) {\n // OTLP path. Headers via OTEL_EXPORTER_OTLP_HEADERS (W3C convention,\n // comma-separated key=value pairs). Parsed explicitly rather than\n // relying on SDK-version-specific auto-discovery \u2014 predictable boot\n // matters more than tracking whatever the current default is.\n // Honeycomb: x-honeycomb-team=hcaik_xxx (plus optional dataset)\n // Grafana Cloud: authorization=Basic <base64creds>\n const headers = parseOtlpHeaders(process.env.OTEL_EXPORTER_OTLP_HEADERS);\n const exporter = new OTLPTraceExporter({\n url: `${endpoint}/v1/traces`,\n headers,\n });\n spanProcessor = new BatchSpanProcessor(exporter);\n mode = 'otlp';\n } else if (process.env.OTEL_SPAN_EXPORT === 'none') {\n // Silent path: trace context still propagates (so trace IDs are available\n // for correlation and an OTLP endpoint can be added later with zero code\n // change), but NO span processor is registered \u2014 nothing is written to\n // stdout. This exists because the ConsoleSpanExporter below writes one\n // JSON span per ended span, and on the local launchd API (no OTLP\n // endpoint, fixed log file, no Fly-managed rotation) that grew api-stdout\n // to 370MB / ~400k spans. Set OTEL_SPAN_EXPORT=none on that process; Fly\n // leaves it unset so console spans stay grep-able in its managed log stream.\n spanProcessor = undefined;\n mode = 'silent';\n } else {\n // Console (stdout) path. SimpleSpanProcessor \u2014 not batched \u2014 so spans\n // appear in chronological order in the log stream. Acceptable cost for\n // tracing: a span is written per ended span, vs. a batched POST for OTLP.\n // Logs that would otherwise need a UI to make sense (trace tree\n // visualization) are still queryable via `flyctl logs | grep traceId=...`\n // or any log-aggregator that ingests Fly's stream.\n const exporter = new ConsoleSpanExporter();\n spanProcessor = new SimpleSpanProcessor(exporter);\n mode = 'console';\n }\n\n sdk = new NodeSDK({\n resource,\n spanProcessors: spanProcessor ? [spanProcessor] : [],\n });\n\n sdk.start();\n return mode;\n}\n\nexport async function shutdownTelemetry(): Promise<void> {\n if (sdk) {\n await sdk.shutdown();\n sdk = null;\n }\n}\n\nexport function getTracer(name?: string): Tracer {\n return trace.getTracer(name ?? 'rulemetric');\n}\n\nexport function getTraceId(): string | undefined {\n const span = trace.getSpan(context.active());\n return span?.spanContext().traceId;\n}\n", "// Parse the `OTEL_EXPORTER_OTLP_HEADERS` env var into a plain headers object\n// that the OTLP exporter constructor accepts.\n//\n// OpenTelemetry SDK env-vars spec (\u00A710) defines this as a comma-separated list\n// of `key=value` pairs. We parse it ourselves rather than relying on the\n// `@opentelemetry/exporter-trace-otlp-http` package's auto-discovery, because\n// that auto-discovery has shifted between SDK versions and we want predictable\n// behaviour at boot.\n//\n// Real-world usage:\n// - Honeycomb: `x-honeycomb-team=hcaik_xxx` (and optionally `,x-honeycomb-dataset=...`)\n// - Grafana Cloud: `authorization=Basic <base64>` (note: base64 padding can be `==`)\n//\n// Edge cases (covered by `otlp-headers.test.ts`):\n// - undefined or empty \u2192 {} (caller will get a no-headers exporter)\n// - whitespace around `=` and `,` is trimmed (operator-friendly)\n// - only the first `=` is the separator, so base64 padding (==) survives in\n// values\n// - malformed entries (no `=`) are skipped silently\n// - empty keys are dropped (never inject a \"\" header)\n// - duplicate keys: last value wins, matching URL search-params semantics\n\nexport function parseOtlpHeaders(raw: string | undefined): Record<string, string> {\n if (!raw) return {};\n const out: Record<string, string> = {};\n for (const entry of raw.split(',')) {\n const eq = entry.indexOf('=');\n if (eq === -1) continue;\n const key = entry.slice(0, eq).trim();\n const value = entry.slice(eq + 1).trim();\n if (!key) continue;\n out[key] = value;\n }\n return out;\n}\n", "import { SpanKind, SpanStatusCode } from '@opentelemetry/api';\nimport type { MiddlewareHandler } from 'hono';\nimport { getTracer, isTelemetryEnabled } from './init.js';\n\nexport function telemetryMiddleware(): MiddlewareHandler {\n return async (c, next) => {\n if (!isTelemetryEnabled()) {\n await next();\n return;\n }\n\n const tracer = getTracer();\n const method = c.req.method;\n const path = c.req.path;\n\n await tracer.startActiveSpan(\n `${method} ${path}`,\n {\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.url': c.req.url,\n 'http.route': path,\n },\n },\n async (span) => {\n try {\n await next();\n\n span.setAttribute('http.status_code', c.res.status);\n\n const userId = c.get('userId' as never);\n if (userId) {\n span.setAttribute('rulemetric.user_id', userId as string);\n }\n\n if (c.res.status >= 400) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n }\n } catch (err) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n span.recordException(err as Error);\n throw err;\n } finally {\n span.end();\n }\n },\n );\n };\n}\n", "import { SpanKind, SpanStatusCode } from '@opentelemetry/api';\nimport { getTracer, isTelemetryEnabled } from './init.js';\n\nexport function instrumentMcpTool<TArgs, TResult>(\n name: string,\n handler: (args: TArgs) => Promise<TResult>,\n): (args: TArgs) => Promise<TResult> {\n return async (args: TArgs) => {\n if (!isTelemetryEnabled()) {\n return handler(args);\n }\n\n const tracer = getTracer();\n return tracer.startActiveSpan(\n `mcp.tool.${name}`,\n { kind: SpanKind.INTERNAL },\n async (span) => {\n try {\n const result = await handler(args);\n return result;\n } catch (err) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n span.recordException(err as Error);\n throw err;\n } finally {\n span.end();\n }\n },\n );\n };\n}\n", "import { trace, context as otelContext } from '@opentelemetry/api';\n\n/**\n * Set attributes on the currently-active span, if one exists. Safe no-op\n * when no span is active (e.g. running outside of a Hono request handler,\n * or with telemetry disabled).\n *\n * Use this from business-logic code that wants to expose a discriminator\n * for telemetry queries \u2014 e.g. \"which branch did `resolveCallerOrgId` take\"\n * in `apps/api/src/routes/sessions.ts`. Span attributes are searchable in\n * any OpenTelemetry backend (Honeycomb, Grafana Cloud, ...) and in\n * `flyctl logs` when the console exporter is active.\n *\n * Keeping this thin wrapper in the telemetry package means application\n * code never imports `@opentelemetry/api` directly \u2014 the package boundary\n * stays the only place that knows about the OTel SDK shape.\n */\nexport function setSpanAttributes(\n attributes: Record<string, string | number | boolean>,\n): void {\n const span = trace.getSpan(otelContext.active());\n if (!span) return;\n for (const [key, value] of Object.entries(attributes)) {\n span.setAttribute(key, value);\n }\n}\n", "// Thin wrapper around @sentry/node so callers don't have to guard every\n// captureException with `if (process.env.SENTRY_DSN)`. The wrapper handles\n// three concerns:\n//\n// 1. Init only when SENTRY_DSN is set. Otherwise every entry point becomes\n// a silent no-op \u2014 never throws, never logs noise, never opens a\n// network transport.\n// 2. Idempotent init. Double-init is a Sentry SDK foot-gun (the second\n// call wins, but the warning lands at runtime). The module-level\n// `enabled` flag short-circuits the second call.\n// 3. tracesSampleRate = 0 by default. We already have OpenTelemetry\n// shipping spans to a tracing backend; paying Sentry's quota for the\n// same data isn't useful. Sentry's job here is errors-only.\n//\n// Wiring:\n// - `apps/api/src/index.ts` \u2192 initSentry({ serviceName: 'rulemetric-api' })\n// - `apps/api/src/middleware/auth.ts` \u2192 setSentryUser(userId) after JWT verify\n// - `apps/cli/src/commands/evals/agent.ts` \u2192 initSentry({ serviceName: 'rulemetric-agent' })\n// (the thin-agent worker \u2014 Phase 4c moved the init here from the old\n// graphile `listen.ts`; that path no longer inits Sentry)\n//\n// All four hooks are no-op-safe when DSN is unset, so the wiring doesn't\n// require feature-flag plumbing.\n\nimport * as Sentry from '@sentry/node';\n\nlet enabled = false;\n\nexport interface InitSentryConfig {\n serviceName: string;\n}\n\n/**\n * Initialize Sentry if SENTRY_DSN is set. Presence of the DSN is now the\n * single switch: set it (incl. as a Fly secret in prod) to enable error\n * capture, leave it unset for a silent no-op.\n *\n * Previously gated to non-production by policy; that gate was dropped so\n * production errors actually get reported. Errors-only (`tracesSampleRate:\n * 0`) keeps Sentry quota bounded \u2014 OpenTelemetry still owns tracing.\n *\n * Returns true when init actually ran, false when it was skipped (DSN unset\n * or a prior call already initialized). Idempotent.\n */\nexport function initSentry(config: InitSentryConfig): boolean {\n if (enabled) return false;\n const dsn = process.env.SENTRY_DSN;\n if (!dsn) return false;\n\n Sentry.init({\n dsn,\n serverName: config.serviceName,\n environment: process.env.NODE_ENV ?? 'development',\n // We rely on OpenTelemetry for tracing \u2014 Sentry stays errors-only here.\n // Override at the env-var level if you ever want Sentry performance too:\n // `SENTRY_TRACES_SAMPLE_RATE=0.05` (Sentry SDK reads it natively).\n tracesSampleRate: 0,\n });\n\n enabled = true;\n return true;\n}\n\n/**\n * Report an exception. Coerces non-Error throws to Error so Sentry's\n * grouping/stack-trace logic has something to work with. Silent no-op when\n * SENTRY_DSN is unset.\n */\nexport function captureException(\n err: unknown,\n context?: { extra?: Record<string, unknown>; tags?: Record<string, string> },\n): void {\n if (!enabled) return;\n const e = err instanceof Error ? err : new Error(typeof err === 'string' ? err : JSON.stringify(err));\n Sentry.captureException(e, context);\n}\n\n/**\n * Attach (or clear, with null) the active user on the Sentry scope. Called\n * from the API auth middleware so any captured exception during the request\n * carries `user.id`. Silent no-op when SENTRY_DSN is unset.\n */\nexport function setSentryUser(userId: string | null): void {\n if (!enabled) return;\n if (userId === null) {\n Sentry.setUser(null);\n return;\n }\n Sentry.setUser({ id: userId });\n}\n\n/**\n * Flush any queued events with a timeout. Critical to call before\n * `process.exit()` in worker shutdown \u2014 Sentry batches events and the SIGTERM\n * path was previously dropping the final exception (the one we'd most want\n * to see). Resolves immediately when SENTRY_DSN is unset.\n */\nexport async function flushSentry(timeoutMs: number): Promise<void> {\n if (!enabled) return;\n await Sentry.flush(timeoutMs);\n}\n\n/**\n * Reset the module-level state. Test-only \u2014 exported so test suites can\n * unwind the singleton between cases without `vi.resetModules` plumbing in\n * every block.\n */\nexport function _resetSentryForTests(): void {\n enabled = false;\n}\n", "import { initSentry, flushSentry, initTelemetry, shutdownTelemetry } from '@rulemetric/telemetry';\nimport { BaseCommand } from '../../base-command.js';\nimport { loadToken } from '../../lib/auth.js';\nimport { runAgentLoop } from '../../lib/agent-loop.js';\nimport { closeDb } from '@rulemetric/db';\nimport { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { homedir } from 'node:os';\nimport { execFileSync } from 'node:child_process';\n\n// Anchored under ~/.config/rulemetric (like gateway.pid), NOT os.tmpdir(), to\n// avoid launch-context TMPDIR divergence (launchd vs SSH/sudo/CI).\nconst AGENT_LOCK_PATH = join(homedir(), '.config', 'rulemetric', 'evals-agent.lock');\n\nfunction pidAlive(pid: number): boolean {\n try {\n process.kill(pid, 0);\n return true;\n } catch (e) {\n // ESRCH = no such process (stale); EPERM = exists but owned by another user\n return (e as { code?: string }).code === 'EPERM';\n }\n}\n\n// Defends against PID reuse: a SIGKILL/OOM leaves the lock behind and the OS may\n// later assign that PID to an unrelated process \u2014 `pidAlive` alone would then\n// wedge `evals agent` (refuse to start forever). Confirm the holder is actually\n// an evals-agent before treating the lock as held; otherwise it's reclaimable.\nfunction isLiveAgent(pid: number): boolean {\n if (!pidAlive(pid)) return false;\n try {\n const cmd = execFileSync('ps', ['-p', String(pid), '-o', 'command='], {\n encoding: 'utf-8',\n stdio: ['ignore', 'pipe', 'ignore'],\n });\n return /run\\.js\\s+evals\\s+agent|evals\\s+agent/.test(cmd);\n } catch {\n // ps unavailable/failed \u2014 fall back to liveness only (conservative: held)\n return true;\n }\n}\n\n// Single-instance guard. Each `evals agent` daemon holds its own postgres-js\n// pool; an orphaned, unsupervised fleet (4 stale agents found alive 3+ days on\n// 2026-06-21) was a confirmed driver of the recurring Supavisor 200-client\n// saturation. ATOMIC acquire via O_EXCL (flag 'wx') closes the TOCTOU window\n// where two simultaneously-starting agents could both acquire. On EEXIST the\n// holder is liveness-checked; a stale lock (holder gone) is reclaimed once.\n// See docs/incidents/2026-06-21-pool-exhaustion.md.\nfunction acquireAgentLock(): { ok: true } | { ok: false; holder: number } {\n try {\n mkdirSync(dirname(AGENT_LOCK_PATH), { recursive: true });\n } catch {\n /* ignore \u2014 writeFileSync will surface a real problem */\n }\n for (let attempt = 0; attempt < 2; attempt++) {\n try {\n // 'wx' = O_CREAT | O_EXCL: fails atomically with EEXIST if it exists.\n writeFileSync(AGENT_LOCK_PATH, String(process.pid), { flag: 'wx' });\n return { ok: true };\n } catch (e) {\n if ((e as { code?: string }).code !== 'EEXIST') throw e;\n let holder = 0;\n try {\n holder = Number(readFileSync(AGENT_LOCK_PATH, 'utf-8').trim());\n } catch {\n /* unreadable \u2014 treat as stale */\n }\n if (holder && holder !== process.pid && isLiveAgent(holder)) {\n return { ok: false, holder };\n }\n // stale (holder gone) / ours / unreadable \u2014 drop it and retry the atomic create once\n try { unlinkSync(AGENT_LOCK_PATH); } catch { /* raced with another reclaimer */ }\n }\n }\n // Last resort after a reclaim race \u2014 best-effort non-exclusive write.\n try { writeFileSync(AGENT_LOCK_PATH, String(process.pid)); } catch { /* ignore */ }\n return { ok: true };\n}\n\nfunction releaseAgentLock(): void {\n try {\n if (\n existsSync(AGENT_LOCK_PATH) &&\n Number(readFileSync(AGENT_LOCK_PATH, 'utf-8').trim()) === process.pid\n ) {\n unlinkSync(AGENT_LOCK_PATH);\n }\n } catch {\n /* best-effort */\n }\n}\n\n/**\n * `rulemetric evals agent` \u2014 Phase 4b parallel-run thin agent.\n *\n * Polls the /api/work endpoints (Phase 4a) instead of binding a Postgres\n * LISTEN/NOTIFY connection. This is the scaffold for the cutover described\n * in docs/plans/2026-05-25-thin-agent-migration.md; the default worker is\n * the sole worker mode since Phase 4c deleted the graphile path.\n *\n * Both commands can run side-by-side on the same user during the cutover \u2014\n * the API's atomic SKIP-LOCKED claim guarantees a job is handed to exactly\n * one agent. Picking which one runs is a launchd / shell choice.\n */\nexport default class EvalAgentCommand extends BaseCommand {\n static override description =\n 'The worker daemon: long-polls /api/work/next, claims jobs, and runs them locally. Installed as a launchd service by `rulemetric service install`.';\n\n static override examples = [\n '<%= config.bin %> evals agent',\n ];\n\n async run(): Promise<void> {\n await this.parse(EvalAgentCommand);\n this.requireAuth();\n\n // Single-instance guard \u2014 refuse to start a second agent. Each extra agent\n // holds its own DB pool; an orphaned fleet was a confirmed cause of pooler\n // saturation (pool-exhaustion RCA 2026-06-21).\n const lock = acquireAgentLock();\n if (!lock.ok) {\n this.log(\n `Another rulemetric evals agent is already running (pid ${lock.holder}). ` +\n 'Refusing to start a second instance.',\n );\n return;\n }\n\n process.env.PG_APPLICATION_NAME ||= 'rulemetric-agent';\n\n const sentryEnabled = initSentry({ serviceName: 'rulemetric-agent' });\n if (sentryEnabled) this.log('[sentry] error capture enabled');\n\n const otelMode = initTelemetry({ serviceName: 'rulemetric-agent' });\n if (otelMode === 'otlp') {\n this.log(`[otel] traces exporting to ${process.env.OTEL_EXPORTER_OTLP_ENDPOINT}`);\n } else if (otelMode === 'console') {\n this.log('[otel] cron spans printing to stdout (set OTEL_EXPORTER_OTLP_ENDPOINT to ship to a backend)');\n } else {\n this.log('[otel] disabled (TELEMETRY_ENABLED=false)');\n }\n\n // Early auth sanity check \u2014 the agent loop also reads the token on every\n // request via api-client, but failing here gives a friendlier error than\n // a 401 thirty seconds into the first long-poll.\n const token = loadToken();\n if (!token && !process.env.RULEMETRIC_API_KEY) {\n this.error('No auth token found. Run `rulemetric auth login` first.');\n }\n\n this.log('Starting thin agent (Phase 4b parallel-run)...');\n this.log('Long-polling /api/work/next. Press Ctrl+C to stop.\\n');\n\n const controller = new AbortController();\n\n const shutdown = async (signal: string) => {\n this.log(`\\n[${signal}] shutting down agent...`);\n controller.abort();\n // Flush telemetry + drain the pool on the way out. All members run\n // concurrently under Promise.allSettled (flushSentry 2s, closeDb 5s), so\n // the total stays well under launchd's ~20s shutdown grace.\n await Promise.allSettled([\n flushSentry(2_000),\n shutdownTelemetry(),\n // Drain the postgres-js pool so this agent's Supavisor client sessions\n // are released (Terminate) instead of orphaned as ghosts on every\n // launchd bounce. Pool-exhaustion RCA 2026-06-21.\n closeDb(),\n ]);\n releaseAgentLock();\n process.exit(0);\n };\n process.on('SIGINT', () => { void shutdown('SIGINT'); });\n process.on('SIGTERM', () => { void shutdown('SIGTERM'); });\n\n try {\n await runAgentLoop({\n signal: controller.signal,\n log: (msg) => this.log(msg),\n });\n } finally {\n releaseAgentLock();\n // Drain on the throw path too (defense-in-depth). The signal-handler drain\n // covers normal shutdown; a thrown runAgentLoop must not skip it. closeDb\n // is idempotent, so the happy-path SIGTERM drain stays a no-op.\n await closeDb();\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,OAAO,eAA4B;AAC5C,SAAS,eAAe;AACxB,SAAS,yBAAyB;AAClC,SACE,oBACA,qBACA,2BACK;AACP,SAAS,gBAAgB;AACzB,SAAS,mBAAmB,4BAA4B;;;ACalD,SAAU,iBAAiB,KAAuB;AACtD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OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';\nimport {\n BatchSpanProcessor,\n ConsoleSpanExporter,\n SimpleSpanProcessor,\n} from '@opentelemetry/sdk-trace-node';\nimport { Resource } from '@opentelemetry/resources';\nimport { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from '@opentelemetry/semantic-conventions';\nimport { parseOtlpHeaders } from './otlp-headers.js';\n\nlet sdk: NodeSDK | null = null;\n\nexport interface TelemetryConfig {\n serviceName: string;\n serviceVersion?: string;\n}\n\n/**\n * Boot states for `initTelemetry`. Returned discriminator lets callers\n * emit a precise boot log:\n * - 'otlp' \u2014 spans ship over OTLP to a real backend (Honeycomb etc.)\n * - 'console' \u2014 spans print to stdout as JSON (Fly logs ingest them);\n * the \"open + zero third-party\" default\n * - 'off' \u2014 telemetry globally disabled (TELEMETRY_ENABLED=false)\n * OR a prior `initTelemetry()` already booted the SDK\n * in this process (idempotent skip)\n */\nexport type TelemetryBootState = 'otlp' | 'console' | 'silent' | 'off';\n\nexport function isTelemetryEnabled(): boolean {\n return process.env.TELEMETRY_ENABLED !== 'false';\n}\n\n/**\n * Initialize OpenTelemetry tracing. Two transport modes, both built on\n * the same OTel SDK \u2014 only the exporter changes:\n *\n * - OTLP backend \u2192 set `OTEL_EXPORTER_OTLP_ENDPOINT` (+ optional\n * `OTEL_EXPORTER_OTLP_HEADERS` for vendor auth)\n * - Console (stdout) \u2192 the default when no endpoint is set\n *\n * The console path is intentionally on-by-default. Without a real backend\n * configured, spans are written to stdout as JSON and end up in Fly's log\n * stream alongside everything else \u2014 searchable, structured, and you\n * stay inside the open OpenTelemetry spec without paying a third party.\n * Swap to OTLP later by setting one env var; no code change needed.\n *\n * Returns `'off'` when:\n * - TELEMETRY_ENABLED=false (operator kill switch \u2014 beats any config)\n * - The SDK was already started in this process (idempotent skip)\n *\n * See packages/telemetry/src/init.test.ts for the full state table.\n */\nexport function initTelemetry(config: TelemetryConfig): TelemetryBootState {\n if (!isTelemetryEnabled()) {\n return 'off';\n }\n if (sdk !== null) {\n // OTel's global tracer provider gets set on first start(); calling\n // start() twice triggers an SDK warning. Treat second-call as a no-op.\n return 'off';\n }\n\n const resource = new Resource({\n [ATTR_SERVICE_NAME]: config.serviceName,\n [ATTR_SERVICE_VERSION]: config.serviceVersion ?? '0.1.0',\n });\n\n const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT;\n let mode: TelemetryBootState;\n let spanProcessor: BatchSpanProcessor | SimpleSpanProcessor | undefined;\n\n if (endpoint) {\n // OTLP path. Headers via OTEL_EXPORTER_OTLP_HEADERS (W3C convention,\n // comma-separated key=value pairs). Parsed explicitly rather than\n // relying on SDK-version-specific auto-discovery \u2014 predictable boot\n // matters more than tracking whatever the current default is.\n // Honeycomb: x-honeycomb-team=hcaik_xxx (plus optional dataset)\n // Grafana Cloud: authorization=Basic <base64creds>\n const headers = parseOtlpHeaders(process.env.OTEL_EXPORTER_OTLP_HEADERS);\n const exporter = new OTLPTraceExporter({\n url: `${endpoint}/v1/traces`,\n headers,\n });\n spanProcessor = new BatchSpanProcessor(exporter);\n mode = 'otlp';\n } else if (process.env.OTEL_SPAN_EXPORT === 'none') {\n // Silent path: trace context still propagates (so trace IDs are available\n // for correlation and an OTLP endpoint can be added later with zero code\n // change), but NO span processor is registered \u2014 nothing is written to\n // stdout. This exists because the ConsoleSpanExporter below writes one\n // JSON span per ended span, and on the local launchd API (no OTLP\n // endpoint, fixed log file, no Fly-managed rotation) that grew api-stdout\n // to 370MB / ~400k spans. Set OTEL_SPAN_EXPORT=none on that process; Fly\n // leaves it unset so console spans stay grep-able in its managed log stream.\n spanProcessor = undefined;\n mode = 'silent';\n } else {\n // Console (stdout) path. SimpleSpanProcessor \u2014 not batched \u2014 so spans\n // appear in chronological order in the log stream. Acceptable cost for\n // tracing: a span is written per ended span, vs. a batched POST for OTLP.\n // Logs that would otherwise need a UI to make sense (trace tree\n // visualization) are still queryable via `flyctl logs | grep traceId=...`\n // or any log-aggregator that ingests Fly's stream.\n const exporter = new ConsoleSpanExporter();\n spanProcessor = new SimpleSpanProcessor(exporter);\n mode = 'console';\n }\n\n sdk = new NodeSDK({\n resource,\n spanProcessors: spanProcessor ? [spanProcessor] : [],\n });\n\n sdk.start();\n return mode;\n}\n\nexport async function shutdownTelemetry(): Promise<void> {\n if (sdk) {\n await sdk.shutdown();\n sdk = null;\n }\n}\n\nexport function getTracer(name?: string): Tracer {\n return trace.getTracer(name ?? 'rulemetric');\n}\n\nexport function getTraceId(): string | undefined {\n const span = trace.getSpan(context.active());\n return span?.spanContext().traceId;\n}\n", "// Parse the `OTEL_EXPORTER_OTLP_HEADERS` env var into a plain headers object\n// that the OTLP exporter constructor accepts.\n//\n// OpenTelemetry SDK env-vars spec (\u00A710) defines this as a comma-separated list\n// of `key=value` pairs. We parse it ourselves rather than relying on the\n// `@opentelemetry/exporter-trace-otlp-http` package's auto-discovery, because\n// that auto-discovery has shifted between SDK versions and we want predictable\n// behaviour at boot.\n//\n// Real-world usage:\n// - Honeycomb: `x-honeycomb-team=hcaik_xxx` (and optionally `,x-honeycomb-dataset=...`)\n// - Grafana Cloud: `authorization=Basic <base64>` (note: base64 padding can be `==`)\n//\n// Edge cases (covered by `otlp-headers.test.ts`):\n// - undefined or empty \u2192 {} (caller will get a no-headers exporter)\n// - whitespace around `=` and `,` is trimmed (operator-friendly)\n// - only the first `=` is the separator, so base64 padding (==) survives in\n// values\n// - malformed entries (no `=`) are skipped silently\n// - empty keys are dropped (never inject a \"\" header)\n// - duplicate keys: last value wins, matching URL search-params semantics\n\nexport function parseOtlpHeaders(raw: string | undefined): Record<string, string> {\n if (!raw) return {};\n const out: Record<string, string> = {};\n for (const entry of raw.split(',')) {\n const eq = entry.indexOf('=');\n if (eq === -1) continue;\n const key = entry.slice(0, eq).trim();\n const value = entry.slice(eq + 1).trim();\n if (!key) continue;\n out[key] = value;\n }\n return out;\n}\n", "import { SpanKind, SpanStatusCode } from '@opentelemetry/api';\nimport type { MiddlewareHandler } from 'hono';\nimport { getTracer, isTelemetryEnabled } from './init.js';\n\nexport function telemetryMiddleware(): MiddlewareHandler {\n return async (c, next) => {\n if (!isTelemetryEnabled()) {\n await next();\n return;\n }\n\n const tracer = getTracer();\n const method = c.req.method;\n const path = c.req.path;\n\n await tracer.startActiveSpan(\n `${method} ${path}`,\n {\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.url': c.req.url,\n 'http.route': path,\n },\n },\n async (span) => {\n try {\n await next();\n\n span.setAttribute('http.status_code', c.res.status);\n\n const userId = c.get('userId' as never);\n if (userId) {\n span.setAttribute('rulemetric.user_id', userId as string);\n }\n\n if (c.res.status >= 400) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n }\n } catch (err) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n span.recordException(err as Error);\n throw err;\n } finally {\n span.end();\n }\n },\n );\n };\n}\n", "import { SpanKind, SpanStatusCode } from '@opentelemetry/api';\nimport { getTracer, isTelemetryEnabled } from './init.js';\n\nexport function instrumentMcpTool<TArgs, TResult>(\n name: string,\n handler: (args: TArgs) => Promise<TResult>,\n): (args: TArgs) => Promise<TResult> {\n return async (args: TArgs) => {\n if (!isTelemetryEnabled()) {\n return handler(args);\n }\n\n const tracer = getTracer();\n return tracer.startActiveSpan(\n `mcp.tool.${name}`,\n { kind: SpanKind.INTERNAL },\n async (span) => {\n try {\n const result = await handler(args);\n return result;\n } catch (err) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n span.recordException(err as Error);\n throw err;\n } finally {\n span.end();\n }\n },\n );\n };\n}\n", "import { trace, context as otelContext } from '@opentelemetry/api';\n\n/**\n * Set attributes on the currently-active span, if one exists. Safe no-op\n * when no span is active (e.g. running outside of a Hono request handler,\n * or with telemetry disabled).\n *\n * Use this from business-logic code that wants to expose a discriminator\n * for telemetry queries \u2014 e.g. \"which branch did `resolveCallerOrgId` take\"\n * in `apps/api/src/routes/sessions.ts`. Span attributes are searchable in\n * any OpenTelemetry backend (Honeycomb, Grafana Cloud, ...) and in\n * `flyctl logs` when the console exporter is active.\n *\n * Keeping this thin wrapper in the telemetry package means application\n * code never imports `@opentelemetry/api` directly \u2014 the package boundary\n * stays the only place that knows about the OTel SDK shape.\n */\nexport function setSpanAttributes(\n attributes: Record<string, string | number | boolean>,\n): void {\n const span = trace.getSpan(otelContext.active());\n if (!span) return;\n for (const [key, value] of Object.entries(attributes)) {\n span.setAttribute(key, value);\n }\n}\n", "// Thin wrapper around @sentry/node so callers don't have to guard every\n// captureException with `if (process.env.SENTRY_DSN)`. The wrapper handles\n// three concerns:\n//\n// 1. Init only when SENTRY_DSN is set. Otherwise every entry point becomes\n// a silent no-op \u2014 never throws, never logs noise, never opens a\n// network transport.\n// 2. Idempotent init. Double-init is a Sentry SDK foot-gun (the second\n// call wins, but the warning lands at runtime). The module-level\n// `enabled` flag short-circuits the second call.\n// 3. tracesSampleRate = 0 by default. We already have OpenTelemetry\n// shipping spans to a tracing backend; paying Sentry's quota for the\n// same data isn't useful. Sentry's job here is errors-only.\n//\n// Wiring:\n// - `apps/api/src/index.ts` \u2192 initSentry({ serviceName: 'rulemetric-api' })\n// - `apps/api/src/middleware/auth.ts` \u2192 setSentryUser(userId) after JWT verify\n// - `apps/cli/src/commands/evals/agent.ts` \u2192 initSentry({ serviceName: 'rulemetric-agent' })\n// (the thin-agent worker \u2014 Phase 4c moved the init here from the old\n// graphile `listen.ts`; that path no longer inits Sentry)\n//\n// All four hooks are no-op-safe when DSN is unset, so the wiring doesn't\n// require feature-flag plumbing.\n\nimport * as Sentry from '@sentry/node';\n\nlet enabled = false;\n\nexport interface InitSentryConfig {\n serviceName: string;\n}\n\n/**\n * Initialize Sentry if SENTRY_DSN is set. Presence of the DSN is now the\n * single switch: set it (incl. as a Fly secret in prod) to enable error\n * capture, leave it unset for a silent no-op.\n *\n * Previously gated to non-production by policy; that gate was dropped so\n * production errors actually get reported. Errors-only (`tracesSampleRate:\n * 0`) keeps Sentry quota bounded \u2014 OpenTelemetry still owns tracing.\n *\n * Returns true when init actually ran, false when it was skipped (DSN unset\n * or a prior call already initialized). Idempotent.\n */\nexport function initSentry(config: InitSentryConfig): boolean {\n if (enabled) return false;\n const dsn = process.env.SENTRY_DSN;\n if (!dsn) return false;\n\n Sentry.init({\n dsn,\n serverName: config.serviceName,\n environment: process.env.NODE_ENV ?? 'development',\n // We rely on OpenTelemetry for tracing \u2014 Sentry stays errors-only here.\n // Override at the env-var level if you ever want Sentry performance too:\n // `SENTRY_TRACES_SAMPLE_RATE=0.05` (Sentry SDK reads it natively).\n tracesSampleRate: 0,\n });\n\n enabled = true;\n return true;\n}\n\n/**\n * Report an exception. Coerces non-Error throws to Error so Sentry's\n * grouping/stack-trace logic has something to work with. Silent no-op when\n * SENTRY_DSN is unset.\n */\nexport function captureException(\n err: unknown,\n context?: { extra?: Record<string, unknown>; tags?: Record<string, string> },\n): void {\n if (!enabled) return;\n const e = err instanceof Error ? err : new Error(typeof err === 'string' ? err : JSON.stringify(err));\n Sentry.captureException(e, context);\n}\n\n/**\n * Attach (or clear, with null) the active user on the Sentry scope. Called\n * from the API auth middleware so any captured exception during the request\n * carries `user.id`. Silent no-op when SENTRY_DSN is unset.\n */\nexport function setSentryUser(userId: string | null): void {\n if (!enabled) return;\n if (userId === null) {\n Sentry.setUser(null);\n return;\n }\n Sentry.setUser({ id: userId });\n}\n\n/**\n * Flush any queued events with a timeout. Critical to call before\n * `process.exit()` in worker shutdown \u2014 Sentry batches events and the SIGTERM\n * path was previously dropping the final exception (the one we'd most want\n * to see). Resolves immediately when SENTRY_DSN is unset.\n */\nexport async function flushSentry(timeoutMs: number): Promise<void> {\n if (!enabled) return;\n await Sentry.flush(timeoutMs);\n}\n\n/**\n * Reset the module-level state. Test-only \u2014 exported so test suites can\n * unwind the singleton between cases without `vi.resetModules` plumbing in\n * every block.\n */\nexport function _resetSentryForTests(): void {\n enabled = false;\n}\n", "import { initSentry, flushSentry, initTelemetry, shutdownTelemetry } from '@rulemetric/telemetry';\nimport { BaseCommand } from '../../base-command.js';\nimport { loadToken } from '../../lib/auth.js';\nimport { runAgentLoop } from '../../lib/agent-loop.js';\nimport { closeDb } from '@rulemetric/db';\nimport { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { homedir } from 'node:os';\nimport { execFileSync } from 'node:child_process';\n\n// Anchored under ~/.config/rulemetric (like gateway.pid), NOT os.tmpdir(), to\n// avoid launch-context TMPDIR divergence (launchd vs SSH/sudo/CI).\nconst AGENT_LOCK_PATH = join(homedir(), '.config', 'rulemetric', 'evals-agent.lock');\n\nfunction pidAlive(pid: number): boolean {\n try {\n process.kill(pid, 0);\n return true;\n } catch (e) {\n // ESRCH = no such process (stale); EPERM = exists but owned by another user\n return (e as { code?: string }).code === 'EPERM';\n }\n}\n\n// Defends against PID reuse: a SIGKILL/OOM leaves the lock behind and the OS may\n// later assign that PID to an unrelated process \u2014 `pidAlive` alone would then\n// wedge `evals agent` (refuse to start forever). Confirm the holder is actually\n// an evals-agent before treating the lock as held; otherwise it's reclaimable.\nfunction isLiveAgent(pid: number): boolean {\n if (!pidAlive(pid)) return false;\n try {\n const cmd = execFileSync('ps', ['-p', String(pid), '-o', 'command='], {\n encoding: 'utf-8',\n stdio: ['ignore', 'pipe', 'ignore'],\n });\n return /run\\.js\\s+evals\\s+agent|evals\\s+agent/.test(cmd);\n } catch {\n // ps unavailable/failed \u2014 fall back to liveness only (conservative: held)\n return true;\n }\n}\n\n// Single-instance guard. Each `evals agent` daemon holds its own postgres-js\n// pool; an orphaned, unsupervised fleet (4 stale agents found alive 3+ days on\n// 2026-06-21) was a confirmed driver of the recurring Supavisor 200-client\n// saturation. ATOMIC acquire via O_EXCL (flag 'wx') closes the TOCTOU window\n// where two simultaneously-starting agents could both acquire. On EEXIST the\n// holder is liveness-checked; a stale lock (holder gone) is reclaimed once.\n// See docs/incidents/2026-06-21-pool-exhaustion.md.\nfunction acquireAgentLock(): { ok: true } | { ok: false; holder: number } {\n try {\n mkdirSync(dirname(AGENT_LOCK_PATH), { recursive: true });\n } catch {\n /* ignore \u2014 writeFileSync will surface a real problem */\n }\n for (let attempt = 0; attempt < 2; attempt++) {\n try {\n // 'wx' = O_CREAT | O_EXCL: fails atomically with EEXIST if it exists.\n writeFileSync(AGENT_LOCK_PATH, String(process.pid), { flag: 'wx' });\n return { ok: true };\n } catch (e) {\n if ((e as { code?: string }).code !== 'EEXIST') throw e;\n let holder = 0;\n try {\n holder = Number(readFileSync(AGENT_LOCK_PATH, 'utf-8').trim());\n } catch {\n /* unreadable \u2014 treat as stale */\n }\n if (holder && holder !== process.pid && isLiveAgent(holder)) {\n return { ok: false, holder };\n }\n // stale (holder gone) / ours / unreadable \u2014 drop it and retry the atomic create once\n try { unlinkSync(AGENT_LOCK_PATH); } catch { /* raced with another reclaimer */ }\n }\n }\n // Last resort after a reclaim race \u2014 best-effort non-exclusive write.\n try { writeFileSync(AGENT_LOCK_PATH, String(process.pid)); } catch { /* ignore */ }\n return { ok: true };\n}\n\nfunction releaseAgentLock(): void {\n try {\n if (\n existsSync(AGENT_LOCK_PATH) &&\n Number(readFileSync(AGENT_LOCK_PATH, 'utf-8').trim()) === process.pid\n ) {\n unlinkSync(AGENT_LOCK_PATH);\n }\n } catch {\n /* best-effort */\n }\n}\n\n/**\n * `rulemetric evals agent` \u2014 Phase 4b parallel-run thin agent.\n *\n * Polls the /api/work endpoints (Phase 4a) instead of binding a Postgres\n * LISTEN/NOTIFY connection. This is the scaffold for the cutover described\n * in docs/plans/2026-05-25-thin-agent-migration.md; the default worker is\n * the sole worker mode since Phase 4c deleted the graphile path.\n *\n * Both commands can run side-by-side on the same user during the cutover \u2014\n * the API's atomic SKIP-LOCKED claim guarantees a job is handed to exactly\n * one agent. Picking which one runs is a launchd / shell choice.\n */\nexport default class EvalAgentCommand extends BaseCommand {\n static override description =\n 'The worker daemon: long-polls /api/work/next, claims jobs, and runs them locally. Installed as a launchd service by `rulemetric service install`.';\n\n static override examples = [\n '<%= config.bin %> evals agent',\n ];\n\n async run(): Promise<void> {\n await this.parse(EvalAgentCommand);\n this.requireAuth();\n\n // Single-instance guard \u2014 refuse to start a second agent. Each extra agent\n // holds its own DB pool; an orphaned fleet was a confirmed cause of pooler\n // saturation (pool-exhaustion RCA 2026-06-21).\n const lock = acquireAgentLock();\n if (!lock.ok) {\n this.log(\n `Another rulemetric evals agent is already running (pid ${lock.holder}). ` +\n 'Refusing to start a second instance.',\n );\n return;\n }\n\n process.env.PG_APPLICATION_NAME ||= 'rulemetric-agent';\n\n const sentryEnabled = initSentry({ serviceName: 'rulemetric-agent' });\n if (sentryEnabled) this.log('[sentry] error capture enabled');\n\n const otelMode = initTelemetry({ serviceName: 'rulemetric-agent' });\n if (otelMode === 'otlp') {\n this.log(`[otel] traces exporting to ${process.env.OTEL_EXPORTER_OTLP_ENDPOINT}`);\n } else if (otelMode === 'console') {\n this.log('[otel] cron spans printing to stdout (set OTEL_EXPORTER_OTLP_ENDPOINT to ship to a backend)');\n } else {\n this.log('[otel] disabled (TELEMETRY_ENABLED=false)');\n }\n\n // Early auth sanity check \u2014 the agent loop also reads the token on every\n // request via api-client, but failing here gives a friendlier error than\n // a 401 thirty seconds into the first long-poll.\n const token = loadToken();\n if (!token && !process.env.RULEMETRIC_API_KEY) {\n this.error('No auth token found. Run `rulemetric auth login` first.');\n }\n\n this.log('Starting thin agent (Phase 4b parallel-run)...');\n this.log('Long-polling /api/work/next. Press Ctrl+C to stop.\\n');\n\n const controller = new AbortController();\n\n const shutdown = async (signal: string) => {\n this.log(`\\n[${signal}] shutting down agent...`);\n controller.abort();\n // Flush telemetry + drain the pool on the way out. All members run\n // concurrently under Promise.allSettled (flushSentry 2s, closeDb 5s), so\n // the total stays well under launchd's ~20s shutdown grace.\n await Promise.allSettled([\n flushSentry(2_000),\n shutdownTelemetry(),\n // Drain the postgres-js pool so this agent's Supavisor client sessions\n // are released (Terminate) instead of orphaned as ghosts on every\n // launchd bounce. Pool-exhaustion RCA 2026-06-21.\n closeDb(),\n ]);\n releaseAgentLock();\n process.exit(0);\n };\n process.on('SIGINT', () => { void shutdown('SIGINT'); });\n process.on('SIGTERM', () => { void shutdown('SIGTERM'); });\n\n try {\n await runAgentLoop({\n signal: controller.signal,\n log: (msg) => this.log(msg),\n version: this.config.version,\n });\n } finally {\n releaseAgentLock();\n // Drain on the throw path too (defense-in-depth). The signal-handler drain\n // covers normal shutdown; a thrown runAgentLoop must not skip it. closeDb\n // is idempotent, so the happy-path SIGTERM drain stays a no-op.\n await closeDb();\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,OAAO,eAA4B;AAC5C,SAAS,eAAe;AACxB,SAAS,yBAAyB;AAClC,SACE,oBACA,qBACA,2BACK;AACP,SAAS,gBAAgB;AACzB,SAAS,mBAAmB,4BAA4B;;;ACalD,SAAU,iBAAiB,KAAuB;AACtD,MAAI,CAAC;AAAK,WAAO,CAAA;AACjB,QAAM,MAA8B,CAAA;AACpC,aAAW,SAAS,IAAI,MAAM,GAAG,GAAG;AAClC,UAAM,KAAK,MAAM,QAAQ,GAAG;AAC5B,QAAI,OAAO;AAAI;AACf,UAAM,MAAM,MAAM,MAAM,GAAG,EAAE,EAAE,KAAI;AACnC,UAAM,QAAQ,MAAM,MAAM,KAAK,CAAC,EAAE,KAAI;AACtC,QAAI,CAAC;AAAK;AACV,QAAI,GAAG,IAAI;EACb;AACA,SAAO;AACT;;;ADtBA,IAAI,MAAsB;AAmBpB,SAAU,qBAAkB;AAChC,SAAO,QAAQ,IAAI,sBAAsB;AAC3C;AAsBM,SAAU,cAAc,QAAuB;AACnD,MAAI,CAAC,mBAAkB,GAAI;AACzB,WAAO;EACT;AACA,MAAI,QAAQ,MAAM;AAGhB,WAAO;EACT;AAEA,QAAM,WAAW,IAAI,SAAS;IAC5B,CAAC,iBAAiB,GAAG,OAAO;IAC5B,CAAC,oBAAoB,GAAG,O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Q,WAAW;AAAA,QACvB,YAAY,GAAK;AAAA,QACjB,kBAAkB;AAAA;AAAA;AAAA;AAAA,QAIlB,QAAQ;AAAA,MACV,CAAC;AACD,uBAAiB;AACjB,cAAQ,KAAK,CAAC;AAAA,IAChB;AACA,YAAQ,GAAG,UAAU,MAAM;AAAE,WAAK,SAAS,QAAQ;AAAA,IAAG,CAAC;AACvD,YAAQ,GAAG,WAAW,MAAM;AAAE,WAAK,SAAS,SAAS;AAAA,IAAG,CAAC;AAEzD,QAAI;AACF,YAAM,aAAa;AAAA,QACjB,QAAQ,WAAW;AAAA,QACnB,KAAK,CAAC,QAAQ,KAAK,IAAI,GAAG;AAAA,QAC1B,SAAS,KAAK,OAAO;AAAA,MACvB,CAAC;AAAA,IACH,UAAE;AACA,uBAAiB;AAIjB,YAAM,QAAQ;AAAA,IAChB;AAAA,EACF;AACF;",
6
6
  "names": ["SpanKind", "SpanStatusCode", "trace"]
7
7
  }
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  aggregateBenchmark,
3
3
  postBenchmark
4
- } from "../../chunk-PQU7GZ7A.js";
4
+ } from "../../chunk-TJ2M5QVL.js";
5
5
  import {
6
6
  BaseCommand
7
- } from "../../chunk-S56LOTGQ.js";
8
- import "../../chunk-OGVORIFM.js";
9
- import "../../chunk-2AM54TUK.js";
7
+ } from "../../chunk-CB43W53J.js";
8
+ import "../../chunk-R56PH7YE.js";
9
+ import "../../chunk-4UJATBTG.js";
10
10
  import {
11
11
  apiGet
12
- } from "../../chunk-EJOI2ZGU.js";
13
- import "../../chunk-KZRFUXGF.js";
12
+ } from "../../chunk-CWFVBGX2.js";
13
+ import "../../chunk-W2YERO7E.js";
14
14
  import "../../chunk-EKJ2CABV.js";
15
15
  import "../../chunk-NSBPE2FW.js";
16
16
 
@@ -3,13 +3,13 @@ import {
3
3
  } from "../../chunk-QN34TGD3.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-S56LOTGQ.js";
7
- import "../../chunk-OGVORIFM.js";
8
- import "../../chunk-2AM54TUK.js";
6
+ } from "../../chunk-CB43W53J.js";
7
+ import "../../chunk-R56PH7YE.js";
8
+ import "../../chunk-4UJATBTG.js";
9
9
  import {
10
10
  apiGet
11
- } from "../../chunk-EJOI2ZGU.js";
12
- import "../../chunk-KZRFUXGF.js";
11
+ } from "../../chunk-CWFVBGX2.js";
12
+ import "../../chunk-W2YERO7E.js";
13
13
  import "../../chunk-EKJ2CABV.js";
14
14
  import "../../chunk-NSBPE2FW.js";
15
15
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiPost
8
- } from "../../chunk-EJOI2ZGU.js";
9
- import "../../chunk-KZRFUXGF.js";
8
+ } from "../../chunk-CWFVBGX2.js";
9
+ import "../../chunk-W2YERO7E.js";
10
10
  import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
@@ -7,15 +7,15 @@ import {
7
7
  } from "../../chunk-QN34TGD3.js";
8
8
  import {
9
9
  BaseCommand
10
- } from "../../chunk-S56LOTGQ.js";
11
- import "../../chunk-OGVORIFM.js";
12
- import "../../chunk-2AM54TUK.js";
10
+ } from "../../chunk-CB43W53J.js";
11
+ import "../../chunk-R56PH7YE.js";
12
+ import "../../chunk-4UJATBTG.js";
13
13
  import {
14
14
  apiGet,
15
15
  apiPost,
16
16
  apiPut
17
- } from "../../chunk-EJOI2ZGU.js";
18
- import "../../chunk-KZRFUXGF.js";
17
+ } from "../../chunk-CWFVBGX2.js";
18
+ import "../../chunk-W2YERO7E.js";
19
19
  import "../../chunk-EKJ2CABV.js";
20
20
  import "../../chunk-NSBPE2FW.js";
21
21
 
@@ -9,15 +9,15 @@ import {
9
9
  } from "../../chunk-QN34TGD3.js";
10
10
  import {
11
11
  BaseCommand
12
- } from "../../chunk-S56LOTGQ.js";
13
- import "../../chunk-OGVORIFM.js";
14
- import "../../chunk-2AM54TUK.js";
12
+ } from "../../chunk-CB43W53J.js";
13
+ import "../../chunk-R56PH7YE.js";
14
+ import "../../chunk-4UJATBTG.js";
15
15
  import {
16
16
  apiGet,
17
17
  apiPost,
18
18
  apiPut
19
- } from "../../chunk-EJOI2ZGU.js";
20
- import "../../chunk-KZRFUXGF.js";
19
+ } from "../../chunk-CWFVBGX2.js";
20
+ import "../../chunk-W2YERO7E.js";
21
21
  import "../../chunk-EKJ2CABV.js";
22
22
  import "../../chunk-NSBPE2FW.js";
23
23
 
@@ -6,14 +6,14 @@ import {
6
6
  } from "../../chunk-QN34TGD3.js";
7
7
  import {
8
8
  BaseCommand
9
- } from "../../chunk-S56LOTGQ.js";
10
- import "../../chunk-OGVORIFM.js";
11
- import "../../chunk-2AM54TUK.js";
9
+ } from "../../chunk-CB43W53J.js";
10
+ import "../../chunk-R56PH7YE.js";
11
+ import "../../chunk-4UJATBTG.js";
12
12
  import {
13
13
  apiGet,
14
14
  apiPost
15
- } from "../../chunk-EJOI2ZGU.js";
16
- import "../../chunk-KZRFUXGF.js";
15
+ } from "../../chunk-CWFVBGX2.js";
16
+ import "../../chunk-W2YERO7E.js";
17
17
  import "../../chunk-EKJ2CABV.js";
18
18
  import "../../chunk-NSBPE2FW.js";
19
19
 
@@ -4,11 +4,11 @@ import {
4
4
  } from "../../chunk-FTJRMUID.js";
5
5
  import {
6
6
  BaseCommand
7
- } from "../../chunk-S56LOTGQ.js";
8
- import "../../chunk-OGVORIFM.js";
9
- import "../../chunk-2AM54TUK.js";
10
- import "../../chunk-EJOI2ZGU.js";
11
- import "../../chunk-KZRFUXGF.js";
7
+ } from "../../chunk-CB43W53J.js";
8
+ import "../../chunk-R56PH7YE.js";
9
+ import "../../chunk-4UJATBTG.js";
10
+ import "../../chunk-CWFVBGX2.js";
11
+ import "../../chunk-W2YERO7E.js";
12
12
  import "../../chunk-EKJ2CABV.js";
13
13
  import "../../chunk-NSBPE2FW.js";
14
14
 
@@ -29,13 +29,13 @@ import {
29
29
  } from "../../chunk-FTJRMUID.js";
30
30
  import {
31
31
  BaseCommand
32
- } from "../../chunk-S56LOTGQ.js";
33
- import "../../chunk-OGVORIFM.js";
32
+ } from "../../chunk-CB43W53J.js";
33
+ import "../../chunk-R56PH7YE.js";
34
34
  import {
35
35
  bootstrapActiveOrg
36
- } from "../../chunk-2AM54TUK.js";
37
- import "../../chunk-EJOI2ZGU.js";
38
- import "../../chunk-KZRFUXGF.js";
36
+ } from "../../chunk-4UJATBTG.js";
37
+ import "../../chunk-CWFVBGX2.js";
38
+ import "../../chunk-W2YERO7E.js";
39
39
  import "../../chunk-EKJ2CABV.js";
40
40
  import "../../chunk-NSBPE2FW.js";
41
41
 
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
6
- import "../../chunk-EJOI2ZGU.js";
7
- import "../../chunk-KZRFUXGF.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
+ import "../../chunk-CWFVBGX2.js";
7
+ import "../../chunk-W2YERO7E.js";
8
8
  import "../../chunk-EKJ2CABV.js";
9
9
  import "../../chunk-NSBPE2FW.js";
10
10
 
@@ -15,11 +15,11 @@ import {
15
15
  } from "../../chunk-FTJRMUID.js";
16
16
  import {
17
17
  BaseCommand
18
- } from "../../chunk-S56LOTGQ.js";
19
- import "../../chunk-OGVORIFM.js";
20
- import "../../chunk-2AM54TUK.js";
21
- import "../../chunk-EJOI2ZGU.js";
22
- import "../../chunk-KZRFUXGF.js";
18
+ } from "../../chunk-CB43W53J.js";
19
+ import "../../chunk-R56PH7YE.js";
20
+ import "../../chunk-4UJATBTG.js";
21
+ import "../../chunk-CWFVBGX2.js";
22
+ import "../../chunk-W2YERO7E.js";
23
23
  import "../../chunk-EKJ2CABV.js";
24
24
  import "../../chunk-NSBPE2FW.js";
25
25
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../chunk-S56LOTGQ.js";
4
- import "../chunk-OGVORIFM.js";
5
- import "../chunk-2AM54TUK.js";
3
+ } from "../chunk-CB43W53J.js";
4
+ import "../chunk-R56PH7YE.js";
5
+ import "../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiPost
8
- } from "../chunk-EJOI2ZGU.js";
9
- import "../chunk-KZRFUXGF.js";
8
+ } from "../chunk-CWFVBGX2.js";
9
+ import "../chunk-W2YERO7E.js";
10
10
  import "../chunk-EKJ2CABV.js";
11
11
  import "../chunk-NSBPE2FW.js";
12
12
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiPost
8
- } from "../../chunk-EJOI2ZGU.js";
9
- import "../../chunk-KZRFUXGF.js";
8
+ } from "../../chunk-CWFVBGX2.js";
9
+ import "../../chunk-W2YERO7E.js";
10
10
  import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
@@ -3,14 +3,14 @@ import {
3
3
  } from "../../chunk-7NYKWN7U.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-S56LOTGQ.js";
7
- import "../../chunk-OGVORIFM.js";
8
- import "../../chunk-2AM54TUK.js";
6
+ } from "../../chunk-CB43W53J.js";
7
+ import "../../chunk-R56PH7YE.js";
8
+ import "../../chunk-4UJATBTG.js";
9
9
  import {
10
10
  apiDelete,
11
11
  apiGet
12
- } from "../../chunk-EJOI2ZGU.js";
13
- import "../../chunk-KZRFUXGF.js";
12
+ } from "../../chunk-CWFVBGX2.js";
13
+ import "../../chunk-W2YERO7E.js";
14
14
  import "../../chunk-EKJ2CABV.js";
15
15
  import "../../chunk-NSBPE2FW.js";
16
16
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiPost
8
- } from "../../chunk-EJOI2ZGU.js";
9
- import "../../chunk-KZRFUXGF.js";
8
+ } from "../../chunk-CWFVBGX2.js";
9
+ import "../../chunk-W2YERO7E.js";
10
10
  import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
@@ -7,13 +7,13 @@ import {
7
7
  } from "../../chunk-BZDKEQKU.js";
8
8
  import {
9
9
  BaseCommand
10
- } from "../../chunk-S56LOTGQ.js";
11
- import "../../chunk-OGVORIFM.js";
12
- import "../../chunk-2AM54TUK.js";
10
+ } from "../../chunk-CB43W53J.js";
11
+ import "../../chunk-R56PH7YE.js";
12
+ import "../../chunk-4UJATBTG.js";
13
13
  import {
14
14
  apiGet
15
- } from "../../chunk-EJOI2ZGU.js";
16
- import "../../chunk-KZRFUXGF.js";
15
+ } from "../../chunk-CWFVBGX2.js";
16
+ import "../../chunk-W2YERO7E.js";
17
17
  import "../../chunk-EKJ2CABV.js";
18
18
  import "../../chunk-NSBPE2FW.js";
19
19
 
@@ -5,13 +5,13 @@ import {
5
5
  } from "../../chunk-BZDKEQKU.js";
6
6
  import {
7
7
  BaseCommand
8
- } from "../../chunk-S56LOTGQ.js";
9
- import "../../chunk-OGVORIFM.js";
10
- import "../../chunk-2AM54TUK.js";
8
+ } from "../../chunk-CB43W53J.js";
9
+ import "../../chunk-R56PH7YE.js";
10
+ import "../../chunk-4UJATBTG.js";
11
11
  import {
12
12
  apiGet
13
- } from "../../chunk-EJOI2ZGU.js";
14
- import "../../chunk-KZRFUXGF.js";
13
+ } from "../../chunk-CWFVBGX2.js";
14
+ import "../../chunk-W2YERO7E.js";
15
15
  import "../../chunk-EKJ2CABV.js";
16
16
  import "../../chunk-NSBPE2FW.js";
17
17
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiPost
8
- } from "../../chunk-EJOI2ZGU.js";
9
- import "../../chunk-KZRFUXGF.js";
8
+ } from "../../chunk-CWFVBGX2.js";
9
+ import "../../chunk-W2YERO7E.js";
10
10
  import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiPost
8
- } from "../../chunk-EJOI2ZGU.js";
9
- import "../../chunk-KZRFUXGF.js";
8
+ } from "../../chunk-CWFVBGX2.js";
9
+ import "../../chunk-W2YERO7E.js";
10
10
  import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-S56LOTGQ.js";
4
- import "../../chunk-OGVORIFM.js";
5
- import "../../chunk-2AM54TUK.js";
3
+ } from "../../chunk-CB43W53J.js";
4
+ import "../../chunk-R56PH7YE.js";
5
+ import "../../chunk-4UJATBTG.js";
6
6
  import {
7
7
  apiGet
8
- } from "../../chunk-EJOI2ZGU.js";
9
- import "../../chunk-KZRFUXGF.js";
8
+ } from "../../chunk-CWFVBGX2.js";
9
+ import "../../chunk-W2YERO7E.js";
10
10
  import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
@@ -6,13 +6,13 @@ import {
6
6
  } from "../../chunk-BZDKEQKU.js";
7
7
  import {
8
8
  BaseCommand
9
- } from "../../chunk-S56LOTGQ.js";
10
- import "../../chunk-OGVORIFM.js";
11
- import "../../chunk-2AM54TUK.js";
9
+ } from "../../chunk-CB43W53J.js";
10
+ import "../../chunk-R56PH7YE.js";
11
+ import "../../chunk-4UJATBTG.js";
12
12
  import {
13
13
  apiGet
14
- } from "../../chunk-EJOI2ZGU.js";
15
- import "../../chunk-KZRFUXGF.js";
14
+ } from "../../chunk-CWFVBGX2.js";
15
+ import "../../chunk-W2YERO7E.js";
16
16
  import "../../chunk-EKJ2CABV.js";
17
17
  import "../../chunk-NSBPE2FW.js";
18
18
 
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../chunk-S56LOTGQ.js";
4
- import "../chunk-OGVORIFM.js";
5
- import "../chunk-2AM54TUK.js";
6
- import "../chunk-EJOI2ZGU.js";
7
- import "../chunk-KZRFUXGF.js";
3
+ } from "../chunk-CB43W53J.js";
4
+ import "../chunk-R56PH7YE.js";
5
+ import "../chunk-4UJATBTG.js";
6
+ import "../chunk-CWFVBGX2.js";
7
+ import "../chunk-W2YERO7E.js";
8
8
  import "../chunk-EKJ2CABV.js";
9
9
  import "../chunk-NSBPE2FW.js";
10
10