@osfactory/otel-hook 0.1.0 → 0.1.2

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.
package/dist/install.js CHANGED
@@ -842,7 +842,12 @@ var usageFields = {
842
842
  cache_write_tokens: z4.number().int().min(0).optional()
843
843
  };
844
844
  var envelopeShape = {
845
- conversation_id: z4.string().min(1),
845
+ // Not `.min(1)`: see `cursorSessionId`. A payload naming neither
846
+ // `conversation_id` nor `session_id` is still rejected — by
847
+ // `recognizeCursorPayload`'s post-parse check — but rejecting it here would
848
+ // fail the whole discriminated union on a field the adapter can source from
849
+ // either name.
850
+ conversation_id: z4.string().optional(),
846
851
  generation_id: z4.string().optional(),
847
852
  session_id: z4.string().optional(),
848
853
  model: z4.string().optional(),