@taiga-ai/mcp-server 0.37.0-dev.1120 → 0.37.0-dev.1122

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 +81 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26710,6 +26710,10 @@ object({
26710
26710
  failingChecks: lenient(lenientList(storedFailingCheck)),
26711
26711
  blockers: lenient(lenientList(_enum(READY_BLOCKERS))),
26712
26712
  detail: lenient(string$2()),
26713
+ setupTasks: lenient(lenientList(object({
26714
+ id: string$2(),
26715
+ title: string$2()
26716
+ }))),
26713
26717
  roundsPaused: lenient(boolean())
26714
26718
  }).transform((e) => ({
26715
26719
  reason: e.reason,
@@ -26719,6 +26723,7 @@ object({
26719
26723
  ...e.failingChecks === void 0 ? {} : { failingChecks: e.failingChecks },
26720
26724
  ...e.blockers === void 0 ? {} : { blockers: e.blockers },
26721
26725
  ...e.detail === void 0 ? {} : { detail: e.detail },
26726
+ ...e.setupTasks === void 0 ? {} : { setupTasks: e.setupTasks },
26722
26727
  ...e.roundsPaused === void 0 ? {} : { roundsPaused: e.roundsPaused }
26723
26728
  }));
26724
26729
  /**
@@ -28470,6 +28475,22 @@ const CUSTOM_DOCUMENT_STATUSES = [
28470
28475
  "failed"
28471
28476
  ];
28472
28477
  //#endregion
28478
+ //#region ../../packages/types/dist/ui-artifacts.js
28479
+ /**
28480
+ * UI Sparring shared constants (PRO-730).
28481
+ *
28482
+ * Lives here rather than in @taiga/db because the web app enforces the same
28483
+ * bound client-side (the feedback textarea's maxLength) and cannot import the
28484
+ * schema package — one constant, read by both sides, so the caps cannot drift.
28485
+ */
28486
+ /**
28487
+ * Bound on one piece of concept feedback. Feedback, not a document — and the
28488
+ * comment is what gets replayed into an iteration prompt, so its cap is part
28489
+ * of that prompt budget. Enforced by the API's Zod schemas, by the DB's
28490
+ * byte-length CHECK (see @taiga/db ui-artifacts), and by the web textarea.
28491
+ */
28492
+ const MAX_UI_ARTIFACT_COMMENT_CHARS = 2e3;
28493
+ //#endregion
28473
28494
  //#region ../../packages/types/dist/design-tokens.js
28474
28495
  /**
28475
28496
  * The brand grounding contract (PRO-929).
@@ -29141,7 +29162,60 @@ object({
29141
29162
  available: array(string$2()),
29142
29163
  withLayer: array(string$2()),
29143
29164
  notOfferedAtHome: boolean()
29144
- }), strictObject({ type: productDocumentType }), object({
29165
+ });
29166
+ /** Where a UI concept's pick points, by its line and column in the concept's code (PRO-3677). */
29167
+ const uiConceptPick = strictObject({
29168
+ line: number$1().int().min(1).max(1e5),
29169
+ column: number$1().int().min(0).max(1e4)
29170
+ });
29171
+ object({ jobId: string$2() });
29172
+ discriminatedUnion("ok", [object({
29173
+ ok: literal(true),
29174
+ code: string$2()
29175
+ }), object({
29176
+ ok: literal(false),
29177
+ errors: array(object({
29178
+ message: string$2(),
29179
+ line: number$1().int().nullable(),
29180
+ column: number$1().int().nullable()
29181
+ })).min(1)
29182
+ })]);
29183
+ strictObject({
29184
+ body: string$2().min(1).max(MAX_UI_ARTIFACT_COMMENT_CHARS),
29185
+ target: uiConceptPick.extend({
29186
+ tag: string$2().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,59}$/).optional(),
29187
+ text: string$2().max(200).optional()
29188
+ }).optional()
29189
+ }), strictObject({
29190
+ feedback: string$2().min(1).max(MAX_UI_ARTIFACT_COMMENT_CHARS),
29191
+ fidelity: _enum([
29192
+ "structure",
29193
+ "brand",
29194
+ "brand_structure"
29195
+ ]).optional(),
29196
+ target: uiConceptPick.optional()
29197
+ }), strictObject({
29198
+ name: string$2().min(2).max(50),
29199
+ description: string$2().max(2e3).optional(),
29200
+ target: uiConceptPick.optional()
29201
+ });
29202
+ strictObject({
29203
+ screen: string$2().min(1).max(2e3),
29204
+ variantCount: number$1().int().min(1).max(3),
29205
+ fidelity: _enum([
29206
+ "structure",
29207
+ "brand",
29208
+ "brand_structure"
29209
+ ]),
29210
+ flowDocumentId: uuid.nullish(),
29211
+ flowStepKey: string$2().min(1).max(120).nullish(),
29212
+ surfaceKey: _enum([
29213
+ "navigation",
29214
+ "overall_look",
29215
+ "empty_states",
29216
+ "forms"
29217
+ ]).nullish()
29218
+ }), strictObject({ source: string$2().min(1).max(102400) }), strictObject({ type: productDocumentType }), object({
29145
29219
  version: number$1().int().min(1),
29146
29220
  unknownCitations: object({
29147
29221
  shown: array(string$2()),
@@ -38767,13 +38841,15 @@ const RUNNING = {
38767
38841
  function handbackSaid(escalation) {
38768
38842
  if (!escalation || typeof escalation !== "object") return null;
38769
38843
  const e = escalation;
38844
+ const tasks = Array.isArray(e.setupTasks) ? e.setupTasks.map((task) => String(task.title)).join(", ") : "";
38845
+ const setup = tasks ? `; waiting on setup: ${tasks}` : "";
38770
38846
  const checks = Array.isArray(e.failingChecks) ? e.failingChecks.map((check) => String(check.name)).join(", ") : "";
38771
38847
  const on = checks ? ` on ${checks}` : "";
38772
38848
  const rounds = typeof e.rounds === "number" && e.rounds > 0 ? ` after ${e.rounds} automatic round${e.rounds === 1 ? "" : "s"}` : "";
38773
38849
  const blockers = Array.isArray(e.blockers) ? e.blockers.map((b) => READY_BLOCKER_SAID[String(b)] ?? String(b)) : [];
38774
38850
  switch (e.reason) {
38775
- case "ci_fix_cap": return `CI is still failing${on}${rounds}`;
38776
- case "ci_fix_stalled": return `CI is still failing${on}, and the last fix round changed nothing`;
38851
+ case "ci_fix_cap": return `CI is still failing${on}${rounds}${setup}`;
38852
+ case "ci_fix_stalled": return `CI is still failing${on}, and the last fix round changed nothing${setup}`;
38777
38853
  case "conflict_cap": return `the branch still conflicts with its base${rounds}`;
38778
38854
  case "review_bot_cap": return `review bots still have open comments${rounds}`;
38779
38855
  case "ci_never_settled": return "CI did not finish in time";
@@ -38806,6 +38882,8 @@ function handbackNextStep(escalation, provider = null) {
38806
38882
  const changeRequest = terms.changeRequest;
38807
38883
  const reason = escalation && typeof escalation === "object" ? escalation.reason : null;
38808
38884
  if (reason === "check_weakened") return `review that change${where} before merging`;
38885
+ const setupTasks = escalation && typeof escalation === "object" ? escalation.setupTasks : null;
38886
+ if (Array.isArray(setupTasks) && setupTasks.length > 0) return "mark that setup done (taiga_resolve_action), which runs the failed checks again";
38809
38887
  if (reason === "ci_never_settled") return `look at what is still running or queued in CI${where}, then review the ${changeRequest}`;
38810
38888
  return `fix it by hand, or review the ${changeRequest}${where}, which hands it back to the agent`;
38811
38889
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1120",
3
+ "version": "0.37.0-dev.1122",
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",