@taiga-ai/mcp-server 0.37.0-dev.1043 → 0.37.0-dev.1045

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 +32 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26988,6 +26988,24 @@ function licensePackageStanding(decisions, pkg) {
26988
26988
  fix: FIX_STAGES.flatMap((stage) => fixes.filter((f) => f.stage === stage))[0] ?? null
26989
26989
  };
26990
26990
  }
26991
+ /** The longest attestation link taken, in characters (PRO-4387). */
26992
+ const ATTESTATION_LINK_MAX_LENGTH = 2e3;
26993
+ /**
26994
+ * Whether `value` is a link an attestation may carry (PRO-4387): an absolute
26995
+ * http or https URL, no longer than {@link ATTESTATION_LINK_MAX_LENGTH}. Any
26996
+ * other scheme (`javascript:`, `data:`, `file:`) is refused, because the link
26997
+ * is shown to every reader of the control and opened on a click.
26998
+ */
26999
+ function isAttestationLink(value) {
27000
+ if (value.length === 0 || value.length > 2e3) return false;
27001
+ if (/[\s<>"]/.test(value) || [...value].some((char) => char.charCodeAt(0) < 32 || char.charCodeAt(0) === 127)) return false;
27002
+ try {
27003
+ const url = new URL(value);
27004
+ return (url.protocol === "https:" || url.protocol === "http:") && url.hostname.length > 0;
27005
+ } catch {
27006
+ return false;
27007
+ }
27008
+ }
26991
27009
  //#endregion
26992
27010
  //#region ../../packages/types/dist/maintenance-advisory.js
26993
27011
  /**
@@ -27790,7 +27808,8 @@ strictObject({ type: productDocumentType }), object({
27790
27808
  literal(6),
27791
27809
  literal(12)
27792
27810
  ]),
27793
- note: string$2().trim().max(1e3).optional()
27811
+ note: string$2().trim().max(1e3).optional(),
27812
+ link: string$2().trim().max(ATTESTATION_LINK_MAX_LENGTH).refine(isAttestationLink, { message: "Must be an http or https link" }).optional()
27794
27813
  }), strictObject({ environments: array(string$2()).default(["development"]) }), object({ id: string$2().uuid() }), strictObject({
27795
27814
  connection: newCloudConnection,
27796
27815
  environment: object({
@@ -27973,7 +27992,18 @@ object({
27973
27992
  stored: string$2().nullable(),
27974
27993
  incoming: string$2().nullable()
27975
27994
  })).optional()
27976
- }))
27995
+ })),
27996
+ regulations: object({
27997
+ added: array(object({
27998
+ id: string$2(),
27999
+ name: string$2()
28000
+ })),
28001
+ removed: array(object({
28002
+ id: string$2(),
28003
+ name: string$2()
28004
+ })),
28005
+ affectedProducts: number$1().int().nonnegative()
28006
+ }).optional()
27977
28007
  });
27978
28008
  /**
27979
28009
  * A derivation's source (PRO-1077, PRO-3680), as the derive routes take one,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1043",
3
+ "version": "0.37.0-dev.1045",
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",