@taiga-ai/mcp-server 0.37.0-dev.1167 → 0.37.0-dev.1169

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -51
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28307,23 +28307,6 @@ const RUN_SIGNAL_SETTERS = [
28307
28307
  "policy",
28308
28308
  "taiga"
28309
28309
  ];
28310
- /** How a person answered an amber signal, or made the run's next work an initiative. */
28311
- const RUN_SIGNAL_ANSWERS = [
28312
- "looked",
28313
- "accepted",
28314
- "confirmed",
28315
- "changes_requested",
28316
- "initiative"
28317
- ];
28318
- /** The answers a person gives an amber signal itself. */
28319
- const RUN_SIGNAL_REPLIES = [
28320
- "looked",
28321
- "accepted",
28322
- "confirmed",
28323
- "changes_requested"
28324
- ];
28325
- /** The id the run's next work is answered under: no signal's, which never starts with `#`. */
28326
- const RUN_SIGNAL_NEXT_ID = "#next";
28327
28310
  /** At most `max` code points, as the contract and {@link readRunSignals} count them. */
28328
28311
  const text$4 = (max) => string$2().refine((value) => Array.from(value).length <= max, { message: `At most ${max} characters` });
28329
28312
  /** The signals in a run page's answer: what {@link readRunSignals} reads, no more. */
@@ -28355,20 +28338,9 @@ const runSignalsSchema = object({
28355
28338
  }).nullable(),
28356
28339
  reviewMinutes: number$1().int().nullable()
28357
28340
  });
28358
- /** A signal's id as a person's answer names it, counted as {@link readRunSignals} counts it. */
28359
- const runSignalIdSchema = string$2().trim().min(1).refine((value) => Array.from(value).length <= 80, { message: "At most 80 characters" });
28360
- const runSignalAnswerSchema = object({
28361
- signalId: text$4(80),
28362
- answer: _enum(RUN_SIGNAL_ANSWERS),
28363
- answeredBy: string$2(),
28364
- answeredByName: string$2().nullable(),
28365
- answeredAt: string$2(),
28366
- initiativeId: string$2().nullable()
28367
- });
28368
- function runSignalsVerdict(signals, answers) {
28369
- const answered = new Set(answers.map((answer) => answer.signalId));
28341
+ function runSignalsVerdict(signals) {
28370
28342
  const blocking = signals.filter((signal) => signal.light === "red").length;
28371
- const open = signals.filter((signal) => signal.light === "amber" && !answered.has(signal.id)).length;
28343
+ const open = signals.filter((signal) => signal.light === "amber").length;
28372
28344
  return {
28373
28345
  state: blocking > 0 ? "not_ready" : open > 0 ? "needs_you" : "ready",
28374
28346
  blocking,
@@ -30281,11 +30253,7 @@ object({
30281
30253
  /** The acceptance criteria the run was given, which its evidence judges by number (PRO-4680). */
30282
30254
  criteria: runGivenCriteriaSchema.nullable().optional(),
30283
30255
  /** What a person should know before merging, from its handover's `signals.json` (PRO-4756). */
30284
- signals: runSignalsSchema.nullable().optional(),
30285
- /** How people answered this report's signals (PRO-4760). */
30286
- signalAnswers: array(runSignalAnswerSchema).optional(),
30287
- /** The report's version, which an answer names (PRO-4760). */
30288
- reportVersion: number$1().int().optional()
30256
+ signals: runSignalsSchema.nullable().optional()
30289
30257
  }), strictObject({
30290
30258
  notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS),
30291
30259
  /** Show the revised plan before the run continues (PRO-3164). */
@@ -30301,12 +30269,7 @@ object({
30301
30269
  ]).optional() }), object({ files: array(object({
30302
30270
  id: string$2(),
30303
30271
  url: string$2().url()
30304
- })) }), object({ hosts: array(string$2()).max(500) }), strictObject({
30305
- signalId: runSignalIdSchema,
30306
- answer: _enum(RUN_SIGNAL_REPLIES),
30307
- /** The report the person read: an answer never lands on a newer one. */
30308
- reportVersion: number$1().int().min(1)
30309
- }), strictObject({ reportVersion: number$1().int().min(1) });
30272
+ })) }), object({ hosts: array(string$2()).max(500) });
30310
30273
  object({ images: array(object({
30311
30274
  name: string$2(),
30312
30275
  url: string$2().url().nullable()
@@ -40775,7 +40738,7 @@ function registerBuildTools(server, client) {
40775
40738
  }));
40776
40739
  server.registerTool("taiga_get_run", {
40777
40740
  title: "Get run",
40778
- description: "Read one coding agent run, and why it failed when it did: its outcome, pull request, security pass (scanCoverage names scanners that did not run) and each step with its commit, files and checks. A failed run says where it stopped (stoppedIn) and the line of the error that says why (cause). full: true adds every step's instructions and report. lastReplan says what a request for changes did to the plan the run builds now: the steps it added, edited and dropped. A failed or stopped run's nextStep says how to carry it on (taiga_resume_initiative on its initiative). hostsReached lists the public hosts the run reached through the egress gateway, first reached first, with the bytes it sent and received there. signals is what a person should know before merging, from the run's report as Taiga reads it now: each with its light (red is a failure Taiga sees, such as failing CI, amber needs a person, green is proven, unchecked is not known yet, with what settles it), whether a person answered it, the verdict they add up to, and the work the run would do next. No signal holds a merge.",
40741
+ description: "Read one coding agent run, and why it failed when it did: its outcome, pull request, security pass (scanCoverage names scanners that did not run) and each step with its commit, files and checks. A failed run says where it stopped (stoppedIn) and the line of the error that says why (cause). full: true adds every step's instructions and report. lastReplan says what a request for changes did to the plan the run builds now: the steps it added, edited and dropped. A failed or stopped run's nextStep says how to carry it on (taiga_resume_initiative on its initiative). hostsReached lists the public hosts the run reached through the egress gateway, first reached first, with the bytes it sent and received there. signals is what a person should know before merging, from the run's report as Taiga reads it now: each with its light (red is a failure Taiga sees, such as failing CI, amber needs a person, green is proven, unchecked is not known yet, with what settles it), the verdict they add up to, and the work the run would do next. No signal holds a merge.",
40779
40742
  inputSchema: object({
40780
40743
  runId,
40781
40744
  full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
@@ -40872,15 +40835,13 @@ function steerSituation(steer) {
40872
40835
  }
40873
40836
  /**
40874
40837
  * What a person should know before merging (PRO-4756), as the run page shows it: the verdict the
40875
- * lights add up to, each signal with its light, words and whether a person answered it, and the
40876
- * work the run would do next. Nothing for a run whose report has no signals.
40838
+ * lights add up to, each signal with its light and words, and the work the run would do next.
40839
+ * Nothing for a run whose report has no signals.
40877
40840
  */
40878
40841
  function signalsOf(overview) {
40879
40842
  const signals = overview?.signals;
40880
40843
  if (!signals) return {};
40881
- const answers = overview.signalAnswers ?? [];
40882
- const answered = new Map(answers.map((answer) => [answer.signalId, answer]));
40883
- const verdict = runSignalsVerdict(signals.signals, answers);
40844
+ const verdict = runSignalsVerdict(signals.signals);
40884
40845
  return { signals: {
40885
40846
  verdict: verdict.state === "not_ready" ? `Not ready: ${verdict.blocking} failing` : verdict.state === "needs_you" ? `Ready once a person looks at ${verdict.open}` : "Ready",
40886
40847
  ...signals.reviewMinutes ? { reviewMinutes: signals.reviewMinutes } : {},
@@ -40892,13 +40853,11 @@ function signalsOf(overview) {
40892
40853
  ...signal.detail ? { detail: signal.detail } : {},
40893
40854
  ...signal.about === "base" ? { about: "already so before this change" } : {},
40894
40855
  ...signal.evidence.length > 0 ? { evidence: signal.evidence.map((item) => item.detail ? `${item.name}: ${item.detail}` : item.name) } : {},
40895
- ...signal.light === "unchecked" && signal.settledBy ? { settledBy: signal.settledBy.what ? `${signal.settledBy.by}: ${signal.settledBy.what}` : signal.settledBy.by } : {},
40896
- ...answered.has(signal.id) ? { answered: answered.get(signal.id).answer } : {}
40856
+ ...signal.light === "unchecked" && signal.settledBy ? { settledBy: signal.settledBy.what ? `${signal.settledBy.by}: ${signal.settledBy.what}` : signal.settledBy.by } : {}
40897
40857
  })),
40898
40858
  ...signals.next ? { next: {
40899
40859
  title: signals.next.title,
40900
- ...signals.next.detail ? { detail: signals.next.detail } : {},
40901
- ...answered.get("#next")?.initiativeId ? { initiativeId: answered.get(RUN_SIGNAL_NEXT_ID).initiativeId } : {}
40860
+ ...signals.next.detail ? { detail: signals.next.detail } : {}
40902
40861
  } } : {}
40903
40862
  } };
40904
40863
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1167",
3
+ "version": "0.37.0-dev.1169",
4
4
  "description": "Taiga for AI coding assistants: read products, policies, initiatives and runs, and operate the line, over MCP",
5
5
  "mcpName": "ga.tai/mcp-server",
6
6
  "license": "UNLICENSED",