@letpeoplework/lighthouse-client 1.4.0 → 1.5.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.
package/dist/index.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ FEATURE_REQUIRES_SERVER_NEWER_THAN: () => FEATURE_REQUIRES_SERVER_NEWER_THAN,
23
24
  createLighthouseAuthContext: () => createLighthouseAuthContext,
24
25
  createLighthouseClient: () => createLighthouseClient,
25
26
  getClientPackageContract: () => getClientPackageContract,
@@ -785,7 +786,8 @@ var deriveTotalWorkItemAgeOverTime = (startDate, endDate, wipData) => {
785
786
  var FEATURE_REQUIRES_SERVER_NEWER_THAN = {
786
787
  cumulativeStateTime: "v26.5.24.10",
787
788
  recurringBlackoutRules: "v26.5.29.5",
788
- workItemAgePercentiles: "v26.6.7.1"
789
+ workItemAgePercentiles: "v26.6.7.1",
790
+ mcpOAuthPassThrough: "v26.6.16.14"
789
791
  };
790
792
  var parseServerVersion = (raw) => {
791
793
  const trimmed = raw.trim().replace(/^v/iu, "");
@@ -1419,6 +1421,7 @@ var createLighthouseClient = (configuration, dependencies = {}) => {
1419
1421
  };
1420
1422
  // Annotate the CommonJS export names for ESM import in node:
1421
1423
  0 && (module.exports = {
1424
+ FEATURE_REQUIRES_SERVER_NEWER_THAN,
1422
1425
  createLighthouseAuthContext,
1423
1426
  createLighthouseClient,
1424
1427
  getClientPackageContract,
package/dist/index.d.cts CHANGED
@@ -341,6 +341,20 @@ type LighthouseClient = {
341
341
  type LighthouseClientDependencies = {
342
342
  readonly fetch?: (url: string, init?: RequestInit) => Promise<ConnectivityFetchResponse>;
343
343
  };
344
+ /**
345
+ * Server-version gating for endpoints that did not exist in older Lighthouse
346
+ * releases. At development time the NEXT release number is unknown, so each
347
+ * feature records the LAST released version that did NOT have it; the server
348
+ * must report a version STRICTLY NEWER than that baseline for the feature to be
349
+ * callable. Update the baseline to the current latest release whenever a new
350
+ * server-dependent feature is wrapped.
351
+ */
352
+ declare const FEATURE_REQUIRES_SERVER_NEWER_THAN: {
353
+ readonly cumulativeStateTime: "v26.5.24.10";
354
+ readonly recurringBlackoutRules: "v26.5.29.5";
355
+ readonly workItemAgePercentiles: "v26.6.7.1";
356
+ readonly mcpOAuthPassThrough: "v26.6.16.14";
357
+ };
344
358
  /**
345
359
  * Returns true when `candidate` is strictly newer than `baseline`, false when
346
360
  * it is equal-or-older, and null when either string is unparseable (treat as
@@ -349,4 +363,4 @@ type LighthouseClientDependencies = {
349
363
  declare const isServerVersionNewerThan: (candidate: string, baseline: string) => boolean | null;
350
364
  declare const createLighthouseClient: (configuration: LighthouseClientConfiguration, dependencies?: LighthouseClientDependencies) => LighthouseClient;
351
365
 
352
- export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type CliStandaloneConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type CumulativeStateTimeCandidateRow, type CumulativeStateTimeCandidatesResult, type CumulativeStateTimeItemRow, type CumulativeStateTimeItemsResult, type CumulativeStateTimeResult, type CumulativeStateTimeStateRow, type DailyTotalWorkItemAge, type DailyWorkItemAge, type DayOfWeek, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type RecurringBlackoutRule, type RecurringBlackoutRuleInput, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, isServerVersionNewerThan, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
366
+ export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type CliStandaloneConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type CumulativeStateTimeCandidateRow, type CumulativeStateTimeCandidatesResult, type CumulativeStateTimeItemRow, type CumulativeStateTimeItemsResult, type CumulativeStateTimeResult, type CumulativeStateTimeStateRow, type DailyTotalWorkItemAge, type DailyWorkItemAge, type DayOfWeek, FEATURE_REQUIRES_SERVER_NEWER_THAN, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type RecurringBlackoutRule, type RecurringBlackoutRuleInput, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, isServerVersionNewerThan, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
package/dist/index.d.ts CHANGED
@@ -341,6 +341,20 @@ type LighthouseClient = {
341
341
  type LighthouseClientDependencies = {
342
342
  readonly fetch?: (url: string, init?: RequestInit) => Promise<ConnectivityFetchResponse>;
343
343
  };
344
+ /**
345
+ * Server-version gating for endpoints that did not exist in older Lighthouse
346
+ * releases. At development time the NEXT release number is unknown, so each
347
+ * feature records the LAST released version that did NOT have it; the server
348
+ * must report a version STRICTLY NEWER than that baseline for the feature to be
349
+ * callable. Update the baseline to the current latest release whenever a new
350
+ * server-dependent feature is wrapped.
351
+ */
352
+ declare const FEATURE_REQUIRES_SERVER_NEWER_THAN: {
353
+ readonly cumulativeStateTime: "v26.5.24.10";
354
+ readonly recurringBlackoutRules: "v26.5.29.5";
355
+ readonly workItemAgePercentiles: "v26.6.7.1";
356
+ readonly mcpOAuthPassThrough: "v26.6.16.14";
357
+ };
344
358
  /**
345
359
  * Returns true when `candidate` is strictly newer than `baseline`, false when
346
360
  * it is equal-or-older, and null when either string is unparseable (treat as
@@ -349,4 +363,4 @@ type LighthouseClientDependencies = {
349
363
  declare const isServerVersionNewerThan: (candidate: string, baseline: string) => boolean | null;
350
364
  declare const createLighthouseClient: (configuration: LighthouseClientConfiguration, dependencies?: LighthouseClientDependencies) => LighthouseClient;
351
365
 
352
- export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type CliStandaloneConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type CumulativeStateTimeCandidateRow, type CumulativeStateTimeCandidatesResult, type CumulativeStateTimeItemRow, type CumulativeStateTimeItemsResult, type CumulativeStateTimeResult, type CumulativeStateTimeStateRow, type DailyTotalWorkItemAge, type DailyWorkItemAge, type DayOfWeek, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type RecurringBlackoutRule, type RecurringBlackoutRuleInput, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, isServerVersionNewerThan, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
366
+ export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type CliStandaloneConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type CumulativeStateTimeCandidateRow, type CumulativeStateTimeCandidatesResult, type CumulativeStateTimeItemRow, type CumulativeStateTimeItemsResult, type CumulativeStateTimeResult, type CumulativeStateTimeStateRow, type DailyTotalWorkItemAge, type DailyWorkItemAge, type DayOfWeek, FEATURE_REQUIRES_SERVER_NEWER_THAN, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type RecurringBlackoutRule, type RecurringBlackoutRuleInput, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, isServerVersionNewerThan, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
package/dist/index.js CHANGED
@@ -750,7 +750,8 @@ var deriveTotalWorkItemAgeOverTime = (startDate, endDate, wipData) => {
750
750
  var FEATURE_REQUIRES_SERVER_NEWER_THAN = {
751
751
  cumulativeStateTime: "v26.5.24.10",
752
752
  recurringBlackoutRules: "v26.5.29.5",
753
- workItemAgePercentiles: "v26.6.7.1"
753
+ workItemAgePercentiles: "v26.6.7.1",
754
+ mcpOAuthPassThrough: "v26.6.16.14"
754
755
  };
755
756
  var parseServerVersion = (raw) => {
756
757
  const trimmed = raw.trim().replace(/^v/iu, "");
@@ -1383,6 +1384,7 @@ var createLighthouseClient = (configuration, dependencies = {}) => {
1383
1384
  };
1384
1385
  };
1385
1386
  export {
1387
+ FEATURE_REQUIRES_SERVER_NEWER_THAN,
1386
1388
  createLighthouseAuthContext,
1387
1389
  createLighthouseClient,
1388
1390
  getClientPackageContract,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letpeoplework/lighthouse-client",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Shared Lighthouse API client contracts",
5
5
  "repository": "https://github.com/LetPeopleWork/lighthouse-clients",
6
6
  "type": "module",