@taiga-ai/mcp-server 0.37.0-dev.1168 → 0.37.0-dev.1170
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.js +27 -52
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27625,6 +27625,16 @@ const INBOX_TASK_PHASES = [
|
|
|
27625
27625
|
*/
|
|
27626
27626
|
/** How long one answer of a `run_summary` may be. */
|
|
27627
27627
|
const RUN_SUMMARY_ANSWER_MAX = 1e3;
|
|
27628
|
+
/**
|
|
27629
|
+
* How a failed check of a `ci_result` ended on its base branch's head (P-PRO-224): `failed`
|
|
27630
|
+
* there too, so not this change's doing; `passed` there, so this change's; `not_run` there,
|
|
27631
|
+
* as a check that runs only on pull requests is not.
|
|
27632
|
+
*/
|
|
27633
|
+
const CI_BASE_RESULTS = [
|
|
27634
|
+
"failed",
|
|
27635
|
+
"passed",
|
|
27636
|
+
"not_run"
|
|
27637
|
+
];
|
|
27628
27638
|
/** A moment as factory-vm records it: ISO 8601, with its offset. */
|
|
27629
27639
|
const moment = datetime({ offset: true });
|
|
27630
27640
|
const optionalMoment = moment.optional();
|
|
@@ -27686,9 +27696,15 @@ discriminatedUnion("kind", [
|
|
|
27686
27696
|
passed: number$1().int().min(0),
|
|
27687
27697
|
failed: array(object({
|
|
27688
27698
|
name: string$2().min(1).max(200),
|
|
27689
|
-
url: string$2().max(2e3).nullable()
|
|
27699
|
+
url: string$2().max(2e3).nullable(),
|
|
27700
|
+
onBase: _enum(CI_BASE_RESULTS).optional()
|
|
27690
27701
|
})).max(20),
|
|
27691
27702
|
moreFailed: number$1().int().min(0).optional(),
|
|
27703
|
+
moreFailedSameOnBase: number$1().int().min(0).optional(),
|
|
27704
|
+
base: object({
|
|
27705
|
+
branch: string$2().min(1).max(255),
|
|
27706
|
+
headSha: string$2().regex(/^[0-9a-f]{7,40}$/)
|
|
27707
|
+
}).optional(),
|
|
27692
27708
|
passing: array(object({
|
|
27693
27709
|
name: string$2().min(1).max(200),
|
|
27694
27710
|
url: string$2().max(2e3).nullable()
|
|
@@ -28307,23 +28323,6 @@ const RUN_SIGNAL_SETTERS = [
|
|
|
28307
28323
|
"policy",
|
|
28308
28324
|
"taiga"
|
|
28309
28325
|
];
|
|
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
28326
|
/** At most `max` code points, as the contract and {@link readRunSignals} count them. */
|
|
28328
28327
|
const text$4 = (max) => string$2().refine((value) => Array.from(value).length <= max, { message: `At most ${max} characters` });
|
|
28329
28328
|
/** The signals in a run page's answer: what {@link readRunSignals} reads, no more. */
|
|
@@ -28355,20 +28354,9 @@ const runSignalsSchema = object({
|
|
|
28355
28354
|
}).nullable(),
|
|
28356
28355
|
reviewMinutes: number$1().int().nullable()
|
|
28357
28356
|
});
|
|
28358
|
-
|
|
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));
|
|
28357
|
+
function runSignalsVerdict(signals) {
|
|
28370
28358
|
const blocking = signals.filter((signal) => signal.light === "red").length;
|
|
28371
|
-
const open = signals.filter((signal) => signal.light === "amber"
|
|
28359
|
+
const open = signals.filter((signal) => signal.light === "amber").length;
|
|
28372
28360
|
return {
|
|
28373
28361
|
state: blocking > 0 ? "not_ready" : open > 0 ? "needs_you" : "ready",
|
|
28374
28362
|
blocking,
|
|
@@ -30281,11 +30269,7 @@ object({
|
|
|
30281
30269
|
/** The acceptance criteria the run was given, which its evidence judges by number (PRO-4680). */
|
|
30282
30270
|
criteria: runGivenCriteriaSchema.nullable().optional(),
|
|
30283
30271
|
/** 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()
|
|
30272
|
+
signals: runSignalsSchema.nullable().optional()
|
|
30289
30273
|
}), strictObject({
|
|
30290
30274
|
notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS),
|
|
30291
30275
|
/** Show the revised plan before the run continues (PRO-3164). */
|
|
@@ -30301,12 +30285,7 @@ object({
|
|
|
30301
30285
|
]).optional() }), object({ files: array(object({
|
|
30302
30286
|
id: string$2(),
|
|
30303
30287
|
url: string$2().url()
|
|
30304
|
-
})) }), object({ hosts: array(string$2()).max(500) })
|
|
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) });
|
|
30288
|
+
})) }), object({ hosts: array(string$2()).max(500) });
|
|
30310
30289
|
object({ images: array(object({
|
|
30311
30290
|
name: string$2(),
|
|
30312
30291
|
url: string$2().url().nullable()
|
|
@@ -40775,7 +40754,7 @@ function registerBuildTools(server, client) {
|
|
|
40775
40754
|
}));
|
|
40776
40755
|
server.registerTool("taiga_get_run", {
|
|
40777
40756
|
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),
|
|
40757
|
+
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
40758
|
inputSchema: object({
|
|
40780
40759
|
runId,
|
|
40781
40760
|
full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
|
|
@@ -40872,15 +40851,13 @@ function steerSituation(steer) {
|
|
|
40872
40851
|
}
|
|
40873
40852
|
/**
|
|
40874
40853
|
* 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
|
|
40876
|
-
*
|
|
40854
|
+
* lights add up to, each signal with its light and words, and the work the run would do next.
|
|
40855
|
+
* Nothing for a run whose report has no signals.
|
|
40877
40856
|
*/
|
|
40878
40857
|
function signalsOf(overview) {
|
|
40879
40858
|
const signals = overview?.signals;
|
|
40880
40859
|
if (!signals) return {};
|
|
40881
|
-
const
|
|
40882
|
-
const answered = new Map(answers.map((answer) => [answer.signalId, answer]));
|
|
40883
|
-
const verdict = runSignalsVerdict(signals.signals, answers);
|
|
40860
|
+
const verdict = runSignalsVerdict(signals.signals);
|
|
40884
40861
|
return { signals: {
|
|
40885
40862
|
verdict: verdict.state === "not_ready" ? `Not ready: ${verdict.blocking} failing` : verdict.state === "needs_you" ? `Ready once a person looks at ${verdict.open}` : "Ready",
|
|
40886
40863
|
...signals.reviewMinutes ? { reviewMinutes: signals.reviewMinutes } : {},
|
|
@@ -40892,13 +40869,11 @@ function signalsOf(overview) {
|
|
|
40892
40869
|
...signal.detail ? { detail: signal.detail } : {},
|
|
40893
40870
|
...signal.about === "base" ? { about: "already so before this change" } : {},
|
|
40894
40871
|
...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 } : {}
|
|
40872
|
+
...signal.light === "unchecked" && signal.settledBy ? { settledBy: signal.settledBy.what ? `${signal.settledBy.by}: ${signal.settledBy.what}` : signal.settledBy.by } : {}
|
|
40897
40873
|
})),
|
|
40898
40874
|
...signals.next ? { next: {
|
|
40899
40875
|
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 } : {}
|
|
40876
|
+
...signals.next.detail ? { detail: signals.next.detail } : {}
|
|
40902
40877
|
} } : {}
|
|
40903
40878
|
} };
|
|
40904
40879
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.37.0-dev.
|
|
3
|
+
"version": "0.37.0-dev.1170",
|
|
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",
|