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

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 +24 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28278,12 +28278,16 @@ const runEvidenceSchema = object({
28278
28278
  /**
28279
28279
  * What a person should know before merging a Factory run's change (PRO-4756),
28280
28280
  * as the run page reads it: the handover's `signals.json` (`run-signals`
28281
- * 0.1.0), held to its schema when the run files worker reads the ZIP, then
28282
- * read into this shape. Its vocabularies are open: a kind this reader does not
28283
- * know is shown from its words, and a light it does not know is `unknown`,
28281
+ * 0.1.0 or 0.2.0), held to its schema when the run files worker reads the ZIP,
28282
+ * then read into this shape. Its vocabularies are open: a kind this reader does
28283
+ * not know is shown from its words, and a light it does not know is `unknown`,
28284
28284
  * never taken for green.
28285
+ *
28286
+ * The report is written once, before CI has run; Taiga sets the lights from
28287
+ * what it knows now ({@link settleRunSignals}, PRO-4771). A signal never holds a
28288
+ * merge: red is only a failure Taiga sees itself.
28285
28289
  */
28286
- /** red blocks the merge, amber needs a person, green is proven, unchecked is a gap that matters. */
28290
+ /** red is a failure Taiga sees, amber needs a person, green is proven, unchecked is not known yet. */
28287
28291
  const RUN_SIGNAL_LIGHTS = [
28288
28292
  "red",
28289
28293
  "amber",
@@ -28292,12 +28296,16 @@ const RUN_SIGNAL_LIGHTS = [
28292
28296
  ];
28293
28297
  /** Whether a signal is about this change or the product as it was before it. */
28294
28298
  const RUN_SIGNAL_SUBJECTS = ["change", "base"];
28295
- /** Who set a signal's light: a rule on the run's records, the assessor, the record as written, or policy. */
28299
+ /**
28300
+ * Who set a signal's light: a rule on the run's records, the assessor, the record as written,
28301
+ * policy, or Taiga from what it knows now, such as the pull request's CI.
28302
+ */
28296
28303
  const RUN_SIGNAL_SETTERS = [
28297
28304
  "rule",
28298
28305
  "assessor",
28299
28306
  "record",
28300
- "policy"
28307
+ "policy",
28308
+ "taiga"
28301
28309
  ];
28302
28310
  /** How a person answered an amber signal, or made the run's next work an initiative. */
28303
28311
  const RUN_SIGNAL_ANSWERS = [
@@ -28330,11 +28338,16 @@ const runSignalsSchema = object({
28330
28338
  kind: text$4(40),
28331
28339
  name: text$4(300),
28332
28340
  detail: text$4(1e3).nullable(),
28341
+ source: text$4(500).nullable(),
28333
28342
  url: text$4(2e3).nullable()
28334
28343
  })),
28335
28344
  about: _enum([...RUN_SIGNAL_SUBJECTS, "unknown"]),
28336
28345
  setBy: _enum([...RUN_SIGNAL_SETTERS, "unknown"]),
28337
- leads: boolean()
28346
+ leads: boolean(),
28347
+ settledBy: object({
28348
+ by: text$4(40),
28349
+ what: text$4(200).nullable()
28350
+ }).nullable()
28338
28351
  })),
28339
28352
  next: object({
28340
28353
  title: text$4(200),
@@ -40762,7 +40775,7 @@ function registerBuildTools(server, client) {
40762
40775
  }));
40763
40776
  server.registerTool("taiga_get_run", {
40764
40777
  title: "Get run",
40765
- 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: each with its light (red blocks the merge, amber needs a person, green is proven, unchecked is a gap that matters) and whether a person answered it, the verdict they add up to, and the work the run would do next.",
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.",
40766
40779
  inputSchema: object({
40767
40780
  runId,
40768
40781
  full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
@@ -40869,7 +40882,7 @@ function signalsOf(overview) {
40869
40882
  const answered = new Map(answers.map((answer) => [answer.signalId, answer]));
40870
40883
  const verdict = runSignalsVerdict(signals.signals, answers);
40871
40884
  return { signals: {
40872
- verdict: verdict.state === "not_ready" ? `Not ready: ${verdict.blocking} blocking` : verdict.state === "needs_you" ? `Ready once a person looks at ${verdict.open}` : "Ready",
40885
+ verdict: verdict.state === "not_ready" ? `Not ready: ${verdict.blocking} failing` : verdict.state === "needs_you" ? `Ready once a person looks at ${verdict.open}` : "Ready",
40873
40886
  ...signals.reviewMinutes ? { reviewMinutes: signals.reviewMinutes } : {},
40874
40887
  items: signals.signals.map((signal) => ({
40875
40888
  id: signal.id,
@@ -40878,7 +40891,8 @@ function signalsOf(overview) {
40878
40891
  title: signal.title,
40879
40892
  ...signal.detail ? { detail: signal.detail } : {},
40880
40893
  ...signal.about === "base" ? { about: "already so before this change" } : {},
40881
- ...signal.evidence.length > 0 ? { evidence: signal.evidence.map((item) => item.name) } : {},
40894
+ ...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 } : {},
40882
40896
  ...answered.has(signal.id) ? { answered: answered.get(signal.id).answer } : {}
40883
40897
  })),
40884
40898
  ...signals.next ? { next: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1164",
3
+ "version": "0.37.0-dev.1167",
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",