@thinkai/tai-api-contract 2.92.0 → 2.94.0

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.
@@ -4177,6 +4177,16 @@ export interface components {
4177
4177
  };
4178
4178
  /** @description Nested metric groups; see TypeScript `DashboardProductivityMetricsDto` in @thinkai/tai-api-contract. */
4179
4179
  DashboardProductivityMetricsDto: {
4180
+ velocity?: {
4181
+ mergedPrCount?: number;
4182
+ shipWeightSum?: number;
4183
+ totalShipWeight?: number;
4184
+ /** @description GitHub merged PR ledger rows in the metrics window still awaiting ship-weight scoring (omit when zero). */
4185
+ shipWeightPendingCount?: number;
4186
+ } & {
4187
+ [key: string]: unknown;
4188
+ };
4189
+ } & {
4180
4190
  [key: string]: unknown;
4181
4191
  };
4182
4192
  DashboardProductivityDto: {
@@ -4229,6 +4239,10 @@ export interface components {
4229
4239
  */
4230
4240
  date: string;
4231
4241
  mergedPrCount: number;
4242
+ /** @description Sum of ship-weight scores for PRs merged on this day. */
4243
+ shipWeightSum?: number;
4244
+ /** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
4245
+ shipWeightPendingCount?: number;
4232
4246
  /** @description GitHub Actions CI build failures on this day from `ciFailureRuns` ledger when CI ingest is enabled. */
4233
4247
  ciFailuresCount?: number;
4234
4248
  /** @description Mean hours from PR creation to first review for PRs merged on this day. */
@@ -4248,6 +4262,10 @@ export interface components {
4248
4262
  /** @description Short label for the week column (MM/DD), aligned with Measure charts. */
4249
4263
  weekLabel?: string;
4250
4264
  mergedPrCount: number;
4265
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
4266
+ shipWeightSum?: number;
4267
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
4268
+ shipWeightPendingCount?: number;
4251
4269
  /** @description DORA change failure rate (deployments/incidents), not CI build failures. */
4252
4270
  failRatePercent: number;
4253
4271
  /** @description GitHub Actions / Checks CI build failure rate for the week bucket (failed runs / (failed + passed) * 100). Zero when GitHub Actions CI is disabled. */
@@ -4308,6 +4326,10 @@ export interface components {
4308
4326
  /** @description Short label for the week column (MM/DD), aligned with Measure charts. */
4309
4327
  weekLabel?: string;
4310
4328
  mergedPrCount: number;
4329
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
4330
+ shipWeightSum?: number;
4331
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
4332
+ shipWeightPendingCount?: number;
4311
4333
  };
4312
4334
  ProductivityInsightsMergedPrContributorRowDto: {
4313
4335
  /** @description Canonical person identifier (matches org chart person_id / employeeId). */
@@ -4357,6 +4379,8 @@ export interface components {
4357
4379
  subtitle?: string;
4358
4380
  /** @description Average weekly merged PR count over the selected range. */
4359
4381
  periodAvgMergedPrs: number;
4382
+ /** @description Average weekly ship-weight sum over the selected range. */
4383
+ periodAvgShipWeight?: number;
4360
4384
  /** @description Average change failure rate over the range when available. */
4361
4385
  avgFailRatePercent?: number;
4362
4386
  /** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
@@ -4364,7 +4388,13 @@ export interface components {
4364
4388
  };
4365
4389
  ProductivityInsightsTeamSummaryDto: {
4366
4390
  totalMergedPrs: number;
4391
+ /** @description Sum of ship-weight scores for merged PRs over the selected range. */
4392
+ totalShipWeight?: number;
4393
+ /** @description True when merged GitHub PRs in scope still lack ship-weight scores (ingest backfill in progress). */
4394
+ shipWeightBackfillPending?: boolean;
4367
4395
  avgMergedPrsPerWeek: number;
4396
+ /** @description Mean weekly ship-weight sum over the selected range. */
4397
+ avgShipWeightPerWeek?: number;
4368
4398
  /** @description Average DORA change failure rate over the range when available. */
4369
4399
  avgFailRatePercent: number;
4370
4400
  /** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
@@ -4434,6 +4464,10 @@ export interface components {
4434
4464
  date: string;
4435
4465
  dayIndex: number;
4436
4466
  mergedPrCount: number;
4467
+ /** @description Sum of ship-weight scores for PRs merged on this day. */
4468
+ shipWeightSum?: number;
4469
+ /** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
4470
+ shipWeightPendingCount?: number;
4437
4471
  mergedPrs: string[];
4438
4472
  absent: boolean;
4439
4473
  absenceType?: string;
@@ -4470,14 +4504,24 @@ export interface components {
4470
4504
  };
4471
4505
  ProductivityInsightsContributorActivitySummaryDto: {
4472
4506
  totalMergedPrs: number;
4507
+ /** @description Sum of ship-weight scores for merged PRs over the selected range. */
4508
+ totalShipWeight?: number;
4509
+ /** @description True when merged GitHub PRs in scope still lack ship-weight scores (ingest backfill in progress). */
4510
+ shipWeightBackfillPending?: boolean;
4473
4511
  avgMergedPrsPerWeek: number;
4512
+ /** @description Mean weekly ship-weight sum over the selected range. */
4513
+ avgShipWeightPerWeek?: number;
4474
4514
  totalAbsenceDays: number;
4475
4515
  /** @description CI failure rate (%) over the selected range when GitHub Actions CI ingest is enabled (failures / runs × 100); otherwise average DORA change failure rate when available. */
4476
4516
  avgFailRate: number;
4477
4517
  /** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
4478
4518
  avgCiFailRate?: number;
4479
4519
  mergedPrDelta: number;
4520
+ /** @description Change in total ship-weight sum vs the prior comparison window. */
4521
+ shipWeightDelta?: number;
4480
4522
  avgMergedPrsPerWeekDelta: number;
4523
+ /** @description Change in mean weekly ship-weight sum vs the prior comparison window. */
4524
+ avgShipWeightPerWeekDelta?: number;
4481
4525
  totalAbsenceDaysDelta: number;
4482
4526
  avgFailRateDelta: number;
4483
4527
  /** @description Change in average CI build failure rate vs the prior comparison window. */
@@ -4524,6 +4568,8 @@ export interface components {
4524
4568
  subtitle?: string;
4525
4569
  /** @description Mean weekly merged PR count across the selected range. */
4526
4570
  periodAvgMergedPrs: number;
4571
+ /** @description Mean weekly ship-weight sum across the selected range. */
4572
+ periodAvgShipWeight?: number;
4527
4573
  /** @description Mean weekly change-failure rate when available. */
4528
4574
  avgFailRatePercent?: number;
4529
4575
  /** @description Mean weekly GitHub Actions CI build failure rate when CI ingest is enabled. */
@@ -4883,6 +4929,10 @@ export interface components {
4883
4929
  date: string;
4884
4930
  dayLabel?: string;
4885
4931
  mergedPrCount: number;
4932
+ /** @description Sum of ship-weight scores for PRs merged on this day. */
4933
+ shipWeightSum?: number;
4934
+ /** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
4935
+ shipWeightPendingCount?: number;
4886
4936
  tokenCount: number;
4887
4937
  };
4888
4938
  AiUsageSpendRoiProductivitySignalWeekDto: {
@@ -4893,6 +4943,10 @@ export interface components {
4893
4943
  weekLabel?: string;
4894
4944
  /** @description Estimated merged PR count in the bucket from dashboard velocity metrics. */
4895
4945
  mergedPrCount: number;
4946
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
4947
+ shipWeightSum?: number;
4948
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
4949
+ shipWeightPendingCount?: number;
4896
4950
  /** @description Total AI-tool tokens consumed in the bucket. */
4897
4951
  tokenCount: number;
4898
4952
  };
@@ -4915,6 +4969,8 @@ export interface components {
4915
4969
  /** Format: date-time */
4916
4970
  generatedAt: string;
4917
4971
  totalMergedPrs: number;
4972
+ /** @description Sum of ship-weight scores for merged PRs over the selected range. */
4973
+ totalShipWeight?: number;
4918
4974
  totalSpendCents: number;
4919
4975
  activeUsers: number;
4920
4976
  totalEngineers: number;
@@ -6786,6 +6842,10 @@ export interface components {
6786
6842
  bucketEnd: string;
6787
6843
  weekLabel: string;
6788
6844
  mergedPrCount: number;
6845
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
6846
+ shipWeightSum?: number;
6847
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
6848
+ shipWeightPendingCount?: number;
6789
6849
  tokenCount: number;
6790
6850
  };
6791
6851
  YourAiJourneyAiSpendDto: {