@letpeoplework/lighthouse-mcp-core 1.8.0 → 1.8.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.
package/dist/index.cjs CHANGED
@@ -849,7 +849,7 @@ const toolDefinitions = [
849
849
  },
850
850
  {
851
851
  name: "lighthouse_delivery_list",
852
- description: "List deliveries for a portfolio by portfolio ID. A second text block, `summary`, counts them in the instance's terminology; the first block is the facts, unchanged.",
852
+ description: "List deliveries for a portfolio by portfolio ID. The answer holds the running deliveries under `active` and the archived ones under `archived`; a `summary` field counts the running ones in the instance's terminology.",
853
853
  inputSchema: idInputSchema
854
854
  },
855
855
  {
@@ -1812,7 +1812,7 @@ const answerToolCall = (dependencies) => async (name, argumentsPayload) => {
1812
1812
  if (id === null) return getErrorToolResult("delivery: invalid id (portfolio id required)");
1813
1813
  const [result, terms] = await Promise.all([client.listDeliveries(id), (0, _letpeoplework_lighthouse_client.readTerms)(client)]);
1814
1814
  if (!result.ok) return getErrorToolResult(`delivery: ${result.error.category} (${result.error.reason})`);
1815
- return withSummary("deliveries", result.value, countSummary(result.value, _letpeoplework_lighthouse_client.readDeliveryList, (count) => (0, _letpeoplework_lighthouse_client.describeDeliveryCount)(count, terms)));
1815
+ return withSummary("deliveries", result.value, countSummary(result.value, (value) => (0, _letpeoplework_lighthouse_client.readPortfolioDeliveries)(value)?.active ?? null, (count) => (0, _letpeoplework_lighthouse_client.describeDeliveryCount)(count, terms)));
1816
1816
  }
1817
1817
  if (name === "lighthouse_delivery_metrics") {
1818
1818
  const id = getNumericId(argumentsPayload);
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { DeliveryMetricsHistory, LighthouseApiResult, LighthouseClient, LighthouseVoterKeyStore, RefinementMomentFacts, RefinementWordingSource, TeamRefinement, UsageDataOccurrence, UsageDataQuestionAnswer, UsageDataStep, VotedRow } from "@letpeoplework/lighthouse-client";
1
+ import { DeliveryMetricsHistory, LighthouseApiResult, LighthouseClient, LighthouseVoterKeyStore, PortfolioDeliveries, RefinementMomentFacts, RefinementWordingSource, TeamRefinement, UsageDataOccurrence, UsageDataQuestionAnswer, UsageDataStep, VotedRow } from "@letpeoplework/lighthouse-client";
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import "zod";
4
4
  import { ElicitRequestFormParams, ElicitResult } from "@modelcontextprotocol/sdk/types.js";
@@ -551,7 +551,7 @@ type McpRuntimeClient = {
551
551
  }>;
552
552
  readonly listDeliveries: (portfolioId: number) => Promise<{
553
553
  readonly ok: true;
554
- readonly value: readonly unknown[];
554
+ readonly value: PortfolioDeliveries;
555
555
  } | {
556
556
  readonly ok: false;
557
557
  readonly error: {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DeliveryMetricsHistory, LighthouseApiResult, LighthouseClient, LighthouseVoterKeyStore, RefinementMomentFacts, RefinementWordingSource, TeamRefinement, UsageDataOccurrence, UsageDataQuestionAnswer, UsageDataStep, VotedRow } from "@letpeoplework/lighthouse-client";
1
+ import { DeliveryMetricsHistory, LighthouseApiResult, LighthouseClient, LighthouseVoterKeyStore, PortfolioDeliveries, RefinementMomentFacts, RefinementWordingSource, TeamRefinement, UsageDataOccurrence, UsageDataQuestionAnswer, UsageDataStep, VotedRow } from "@letpeoplework/lighthouse-client";
2
2
  import { ElicitRequestFormParams, ElicitResult } from "@modelcontextprotocol/sdk/types.js";
3
3
  import { z } from "zod";
4
4
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -551,7 +551,7 @@ type McpRuntimeClient = {
551
551
  }>;
552
552
  readonly listDeliveries: (portfolioId: number) => Promise<{
553
553
  readonly ok: true;
554
- readonly value: readonly unknown[];
554
+ readonly value: PortfolioDeliveries;
555
555
  } | {
556
556
  readonly ok: false;
557
557
  readonly error: {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { LIGHTHOUSE_IS_REACHABLE, REFINEMENT_ANSWERS, describeAsOfHeading, describeBacktestActual, describeBacktestPeriod, describeBacktestSummary, describeBlackoutRuleCount, describeBlackoutRuleWriteConfirmation, describeBlockedDays, describeBlockedNow, describeConnectionSummary, describeCycleTimeDays, describeDeliveryCount, describeDeliveryMetricsHeading, describeFeatureListCount, describeFeatureWorkItemsHeading, describeInProgressNow, describeManualForecastLikelihood, describeManualForecastSummary, describeMetricSummary, describeMetricsHeading, describeMissingCondition, describeNothingToTakeBack, describeOwnerCount, describePercentilesOverTimeDays, describePortfolioSummary, describeProcessBehaviorChart, describeProcessBehaviorOverTimeDays, describeRecordedComment, describeRecordedVote, describeRefinementSummary, describeRefreshConfirmation, describeSleRiskNow, describeTakenBack, describeTeamSummary, describeThroughputDays, describeTimeInStateContributorDays, describeTimeInStateDays, describeTotalWorkItemAgeDays, describeVersion, describeWhatWipLeavesUnsaid, describeWorkItemAgeDays, describeWorkItemAgePercentiles, describeWorkTrackingSystemCount, getDefaultMetricsDateRange, isMissingItsCondition, isRefinementAnswer, keepVoterKey, myVoteOn, readAnswerWording, readBacktest, readBlackoutRules, readBlocked, readCycleTimeDefinitionName, readCycleTimePercentiles, readDeliveryList, readDeliveryMetricsHistory, readFeatureList, readFeatureWording, readFeatureWorkItems, readInProgressItems, readManualForecast, readNameOfMyVote, readOwnerList, readPercentilesOverTime, readPortfolio, readProcessBehaviorChart, readProcessBehaviorOverTime, readRefinementWording, readRunChart, readServiceLevelExpectation, readSleRisk, readSystemWipLimit, readTeam, readTerms, readTimeInStateBar, readTimeInStateContributors, readTotalWorkItemAge, readVoteRefusal, readWorkItemAge, readWorkItemAgePercentiles, readWorkTrackingConnections, readWrittenBlackoutRule, refinementDayVerdictOf, sizingMomentOf, summariseDeliveryMetricsHistory } from "@letpeoplework/lighthouse-client";
1
+ import { LIGHTHOUSE_IS_REACHABLE, REFINEMENT_ANSWERS, describeAsOfHeading, describeBacktestActual, describeBacktestPeriod, describeBacktestSummary, describeBlackoutRuleCount, describeBlackoutRuleWriteConfirmation, describeBlockedDays, describeBlockedNow, describeConnectionSummary, describeCycleTimeDays, describeDeliveryCount, describeDeliveryMetricsHeading, describeFeatureListCount, describeFeatureWorkItemsHeading, describeInProgressNow, describeManualForecastLikelihood, describeManualForecastSummary, describeMetricSummary, describeMetricsHeading, describeMissingCondition, describeNothingToTakeBack, describeOwnerCount, describePercentilesOverTimeDays, describePortfolioSummary, describeProcessBehaviorChart, describeProcessBehaviorOverTimeDays, describeRecordedComment, describeRecordedVote, describeRefinementSummary, describeRefreshConfirmation, describeSleRiskNow, describeTakenBack, describeTeamSummary, describeThroughputDays, describeTimeInStateContributorDays, describeTimeInStateDays, describeTotalWorkItemAgeDays, describeVersion, describeWhatWipLeavesUnsaid, describeWorkItemAgeDays, describeWorkItemAgePercentiles, describeWorkTrackingSystemCount, getDefaultMetricsDateRange, isMissingItsCondition, isRefinementAnswer, keepVoterKey, myVoteOn, readAnswerWording, readBacktest, readBlackoutRules, readBlocked, readCycleTimeDefinitionName, readCycleTimePercentiles, readDeliveryMetricsHistory, readFeatureList, readFeatureWording, readFeatureWorkItems, readInProgressItems, readManualForecast, readNameOfMyVote, readOwnerList, readPercentilesOverTime, readPortfolio, readPortfolioDeliveries, readProcessBehaviorChart, readProcessBehaviorOverTime, readRefinementWording, readRunChart, readServiceLevelExpectation, readSleRisk, readSystemWipLimit, readTeam, readTerms, readTimeInStateBar, readTimeInStateContributors, readTotalWorkItemAge, readVoteRefusal, readWorkItemAge, readWorkItemAgePercentiles, readWorkTrackingConnections, readWrittenBlackoutRule, refinementDayVerdictOf, sizingMomentOf, summariseDeliveryMetricsHistory } from "@letpeoplework/lighthouse-client";
2
2
  import { ElicitResultSchema } from "@modelcontextprotocol/sdk/types.js";
3
3
  import { z } from "zod";
4
4
  import { encode } from "@toon-format/toon";
@@ -848,7 +848,7 @@ const toolDefinitions = [
848
848
  },
849
849
  {
850
850
  name: "lighthouse_delivery_list",
851
- description: "List deliveries for a portfolio by portfolio ID. A second text block, `summary`, counts them in the instance's terminology; the first block is the facts, unchanged.",
851
+ description: "List deliveries for a portfolio by portfolio ID. The answer holds the running deliveries under `active` and the archived ones under `archived`; a `summary` field counts the running ones in the instance's terminology.",
852
852
  inputSchema: idInputSchema
853
853
  },
854
854
  {
@@ -1811,7 +1811,7 @@ const answerToolCall = (dependencies) => async (name, argumentsPayload) => {
1811
1811
  if (id === null) return getErrorToolResult("delivery: invalid id (portfolio id required)");
1812
1812
  const [result, terms] = await Promise.all([client.listDeliveries(id), readTerms(client)]);
1813
1813
  if (!result.ok) return getErrorToolResult(`delivery: ${result.error.category} (${result.error.reason})`);
1814
- return withSummary("deliveries", result.value, countSummary(result.value, readDeliveryList, (count) => describeDeliveryCount(count, terms)));
1814
+ return withSummary("deliveries", result.value, countSummary(result.value, (value) => readPortfolioDeliveries(value)?.active ?? null, (count) => describeDeliveryCount(count, terms)));
1815
1815
  }
1816
1816
  if (name === "lighthouse_delivery_metrics") {
1817
1817
  const id = getNumericId(argumentsPayload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letpeoplework/lighthouse-mcp-core",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Shared MCP semantics for Lighthouse",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "registry": "https://registry.npmjs.org/"
27
27
  },
28
28
  "dependencies": {
29
- "@letpeoplework/lighthouse-client": "1.9.0",
29
+ "@letpeoplework/lighthouse-client": "1.10.0",
30
30
  "@modelcontextprotocol/sdk": "^1.26.0",
31
31
  "@toon-format/toon": "^4.0.0",
32
32
  "zod": "^4.0.0"