@taiga-ai/mcp-server 0.37.0-dev.1061 → 0.37.0-dev.1062

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 +52 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28274,6 +28274,54 @@ const IAC_PHRASES = [
28274
28274
  new RegExp(`^\\|\\s*(${CONTROL_ID_SOURCE})\\s*\\|\\s*(.*?)\\s*(?:\\||$)`);
28275
28275
  REALITY_DERIVED_DOCUMENT_TYPES.filter((t) => t !== "codebase_snapshot");
28276
28276
  //#endregion
28277
+ //#region ../../packages/types/dist/scope-triggers.js
28278
+ /**
28279
+ * What a product has to be, or do, for a piece of the organization's policy
28280
+ * content to bind it (PRO-4369): the scope triggers, one plain question per
28281
+ * trigger, and which content rests on which trigger.
28282
+ *
28283
+ * An organization's policies carry every regulation its country, regions,
28284
+ * markets and industries bring. One product is bound by only some of them: a
28285
+ * telecom group's HR tool provides no public communications service, and a
28286
+ * healthcare company's marketing site processes no health data. The content
28287
+ * already says why it applies: its layer's industry, its `basis`, and the
28288
+ * stand-down rules between layers. This module turns that into questions a
28289
+ * product is asked once, so an exclusion on the product's Regulations tab
28290
+ * traces to a recorded answer instead of a guess from the product's text.
28291
+ *
28292
+ * Questions are written per TRIGGER, never per regulation: every section that
28293
+ * rests on the same trigger is answered by the same question. The API derives
28294
+ * `SCOPE_CONTENT` from its overlay registry (`scopeContent()` in
28295
+ * `overlays/scope.ts`), and `scope.test.ts` there fails when this copy drifts
28296
+ * from it. It is here so the synced graph scopes a product's policies as REST
28297
+ * does, the way `MARKET_CONTENT_COUNTRIES` serves the market step.
28298
+ *
28299
+ * Nothing here changes any tenant's documents or any product's conformance:
28300
+ * what reads the answers lands behind the `productScope` flag.
28301
+ */
28302
+ /**
28303
+ * The closed vocabulary. A trigger names a fact about the product, not an act:
28304
+ * one act can rest on several, and one trigger carries many acts.
28305
+ */
28306
+ const SCOPE_TRIGGERS = [
28307
+ "telecom_service",
28308
+ "health_data",
28309
+ "medical_device",
28310
+ "financial_service",
28311
+ "public_body",
28312
+ "energy_operator",
28313
+ "manufactured_product",
28314
+ "defense",
28315
+ "ai_system",
28316
+ "ai_high_risk",
28317
+ "consumer_facing"
28318
+ ];
28319
+ //#endregion
28320
+ //#region ../../packages/types/dist/product-scope.js
28321
+ const SCOPE_ANSWER_VALUES = ["yes", "no"];
28322
+ /** The longest note a person may leave beside a confirmed answer. */
28323
+ const SCOPE_ANSWER_NOTE_MAX_LENGTH = 1e3;
28324
+ //#endregion
28277
28325
  //#region ../../packages/types/dist/custom-documents.js
28278
28326
  /**
28279
28327
  * Shared types for the custom-documents feature: customer-uploaded reference
@@ -28864,6 +28912,10 @@ strictObject({ type: productDocumentType }), object({
28864
28912
  ]),
28865
28913
  note: string$2().trim().max(1e3).optional(),
28866
28914
  link: string$2().trim().max(ATTESTATION_LINK_MAX_LENGTH).refine(isAttestationLink, { message: "Must be an http or https link" }).optional()
28915
+ }), strictObject({
28916
+ trigger: _enum(SCOPE_TRIGGERS),
28917
+ answer: _enum(SCOPE_ANSWER_VALUES),
28918
+ note: string$2().trim().max(SCOPE_ANSWER_NOTE_MAX_LENGTH).optional()
28867
28919
  }), strictObject({ environments: array(string$2()).default(["development"]) }), object({ id: string$2().uuid() }), strictObject({
28868
28920
  connection: newCloudConnection,
28869
28921
  environment: object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1061",
3
+ "version": "0.37.0-dev.1062",
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",