demoman 0.9.5 → 0.9.7

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.
@@ -15453,7 +15453,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15453
15453
  /** The longest single hold within `roomMs` (a settle or the camera's
15454
15454
  * room, not a wait for the page to go quiet): what the film check may
15455
15455
  * take for Demoman's pacing inside one still stretch. */
15456
- roomHeldMs: external_exports.number().nonnegative().optional()
15456
+ roomHeldMs: external_exports.number().nonnegative().optional(),
15457
+ /** Where the walk set off for this step, in source time. */
15458
+ approachSourceTimeMs: external_exports.number().min(0).optional(),
15459
+ /** When this step's approach scroll ended, in source time: continuous
15460
+ * recording, and only when the approach scrolled. */
15461
+ scrollEndSourceTimeMs: external_exports.number().min(0).optional()
15457
15462
  }).superRefine((marker, ctx) => {
15458
15463
  if (marker.actEndSourceTimeMs !== void 0 && marker.actEndSourceTimeMs < marker.sourceTimeMs) {
15459
15464
  ctx.addIssue({
@@ -15555,6 +15560,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15555
15560
  // the page named for it was gone, or copying it threw). The drag still
15556
15561
  // ran; the film shows the card jump to its drop instead of travelling.
15557
15562
  "dragPictureMissing",
15563
+ // A pointer move reached the page more than `POINTER_LATE_MS` after its
15564
+ // plan (a slow machine). The drawn cursor follows the plan, so it
15565
+ // arrives before the page's hover shows; the note counts the moves and
15566
+ // names the worst. One per run.
15567
+ "pointerLate",
15558
15568
  // A step's page had not settled when the cap ran out (requests in
15559
15569
  // flight, an animation running, the DOM still changing) or showed a
15560
15570
  // caret it would not hide: the page's own doing. The video is
@@ -15574,7 +15584,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15574
15584
  // A page screen's hold (caret hidden, endless animations held) could not
15575
15585
  // be undone after the capture: the video after that step may show no
15576
15586
  // caret and frozen spinners. About the video, so not forgiven.
15577
- "pageHoldNotReleased"
15587
+ "pageHoldNotReleased",
15588
+ // A held take only: a connection with no data for IDLE_CONNECTION_MS
15589
+ // stopped counting as waiting on the server. One per connection; the
15590
+ // note is its label ("GET /poll"). The video is right, so refresh
15591
+ // forgives it.
15592
+ "connectionIgnored",
15593
+ // A held take only: a page animation the held clock could not pin (one
15594
+ // in a cross-origin frame, say) ran on real time. One per animation, at
15595
+ // the held time first seen; the note names it. The video is right, so
15596
+ // refresh forgives it.
15597
+ "animationUnpinned",
15598
+ // A held take only: data arrived, outside a wait of the script's (in a
15599
+ // pause or a rest), on a connection the recording had followed, so it
15600
+ // landed where the machine put it. Once a take, at the held time first
15601
+ // seen. The page's own, so refresh forgives it.
15602
+ "answerUnpaced"
15578
15603
  ]),
15579
15604
  note: external_exports.string()
15580
15605
  });
@@ -15606,6 +15631,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15606
15631
  * reader of what it means.
15607
15632
  */
15608
15633
  timing: external_exports.literal("real").optional(),
15634
+ /**
15635
+ * Present only on a replay recorded on a held page clock: page time
15636
+ * advanced one video frame per capture, so source time is the designed
15637
+ * clock, not elapsed wall time. `isHeld` is the one reader.
15638
+ */
15639
+ clock: external_exports.literal("held").optional(),
15640
+ /**
15641
+ * A held replay only: the stretches of source time spent waiting on the
15642
+ * network, `label` the connections that made each ("POST /api/chat").
15643
+ */
15644
+ networkSpans: external_exports.array(external_exports.object({
15645
+ startMs: external_exports.number().nonnegative(),
15646
+ endMs: external_exports.number().nonnegative(),
15647
+ label: external_exports.string()
15648
+ }).refine((s) => s.endMs >= s.startMs, {
15649
+ message: "a network stretch cannot end before it starts"
15650
+ })).optional(),
15609
15651
  /**
15610
15652
  * A real-time replay only: the gaps the author edited that the engine
15611
15653
  * waited out live, each at the duration it waited. The pause is then
@@ -15661,6 +15703,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15661
15703
  path: ["timing"]
15662
15704
  });
15663
15705
  }
15706
+ if (bundle.clock === "held" && (bundle.source === "capture" || bundle.timing !== "real")) {
15707
+ ctx.addIssue({
15708
+ code: "custom",
15709
+ message: "a held clock is a real-time replay's; a capture or a sampled replay cannot be held",
15710
+ path: ["clock"]
15711
+ });
15712
+ }
15664
15713
  if (bundle.pacedGaps !== void 0 && bundle.timing !== "real") {
15665
15714
  ctx.addIssue({
15666
15715
  code: "custom",
@@ -16110,7 +16159,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16110
16159
  * own edit. The record that write-back reads, never inferred from the
16111
16160
  * scale's value. Absent when the scale was the default.
16112
16161
  */
16113
- scaleSetBy: external_exports.enum(["script", "author"]).optional()
16162
+ scaleSetBy: external_exports.enum(["script", "author"]).optional(),
16163
+ /**
16164
+ * How the camera reaches this zoom, decided once at record time from the
16165
+ * beat plan: `pan` slides from the zoom before it, `return` pulls back to
16166
+ * full frame first. Absent: the renderer's own clock (every earlier take).
16167
+ */
16168
+ arrives: external_exports.enum(["pan", "return"]).optional()
16114
16169
  });
16115
16170
  var ZoomSkipped = external_exports.union([
16116
16171
  external_exports.object({
@@ -16397,6 +16452,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16397
16452
  anchors: external_exports.array(Anchor),
16398
16453
  actions: external_exports.array(Action),
16399
16454
  camera: external_exports.array(CameraEvent),
16455
+ /**
16456
+ * The take's pauses, planned rather than measured: one beat per action,
16457
+ * in order. Absent on every take recorded before the plan existed.
16458
+ */
16459
+ pacing: external_exports.object({
16460
+ beats: external_exports.array(external_exports.object({
16461
+ beforeActionId: external_exports.string().min(1),
16462
+ /** Dead air before the action. */
16463
+ restMs: external_exports.number().min(0),
16464
+ /** How long the walk to the action takes. */
16465
+ arriveMs: external_exports.number().min(0),
16466
+ /** Dead air from the approach scroll's end to the journey's
16467
+ * start. Only on a step whose approach scrolled. */
16468
+ afterScrollMs: external_exports.number().min(0).optional()
16469
+ })),
16470
+ /** Dead air after the last action's motion. */
16471
+ tailMs: external_exports.number().min(0)
16472
+ }).optional(),
16400
16473
  /** See `ZoomSkipped`. */
16401
16474
  zoomsSkipped: external_exports.array(ZoomSkipped).optional(),
16402
16475
  edits: external_exports.object({