@taiga-ai/mcp-server 0.37.0-dev.1060 → 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 +75 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25662,6 +25662,25 @@ Object.fromEntries([
25662
25662
  ...UK_COUNTRIES.map((c) => [c.code, "uk"])
25663
25663
  ]);
25664
25664
  //#endregion
25665
+ //#region ../../packages/types/dist/frameworks.js
25666
+ /**
25667
+ * Security and compliance frameworks an organization can say it follows
25668
+ * (PRO-4405): certification and assurance frameworks it chooses, as opposed
25669
+ * to the laws its country, region and industries impose. A chosen framework
25670
+ * joins the overlay chain as its own layer and the Regulations page lists it
25671
+ * with the reason `chosen`. Offered only while the `frameworks` flag is on.
25672
+ *
25673
+ * The ids are the `FrameworkRef.id`s the framework overlays declare
25674
+ * (`apps/api/src/modules/tenants/data/overlays/frameworks/`), so a chosen id
25675
+ * and the regulation it lists are the same string.
25676
+ *
25677
+ * Which frameworks are offered is a licensing decision as much as a product
25678
+ * one (`regulations/README.md`, "Frameworks the organisation follows"): a
25679
+ * framework whose licence does not allow use in a commercial product (CIS
25680
+ * Controls, the CSA CCM) is not listed here until Taiga holds one.
25681
+ */
25682
+ const COMPLIANCE_FRAMEWORKS = ["iso-27001"];
25683
+ //#endregion
25665
25684
  //#region ../../packages/types/dist/factories.js
25666
25685
  const FACTORY_DOCUMENT_TYPES = ["factory_instructions"];
25667
25686
  /** The single canonical factory-document type (the free-form Factory Instructions doc). */
@@ -28255,6 +28274,54 @@ const IAC_PHRASES = [
28255
28274
  new RegExp(`^\\|\\s*(${CONTROL_ID_SOURCE})\\s*\\|\\s*(.*?)\\s*(?:\\||$)`);
28256
28275
  REALITY_DERIVED_DOCUMENT_TYPES.filter((t) => t !== "codebase_snapshot");
28257
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
28258
28325
  //#region ../../packages/types/dist/custom-documents.js
28259
28326
  /**
28260
28327
  * Shared types for the custom-documents feature: customer-uploaded reference
@@ -28845,6 +28912,10 @@ strictObject({ type: productDocumentType }), object({
28845
28912
  ]),
28846
28913
  note: string$2().trim().max(1e3).optional(),
28847
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()
28848
28919
  }), strictObject({ environments: array(string$2()).default(["development"]) }), object({ id: string$2().uuid() }), strictObject({
28849
28920
  connection: newCloudConnection,
28850
28921
  environment: object({
@@ -28975,6 +29046,7 @@ strictObject({
28975
29046
  industries: array(_enum(SUPPORTED_INDUSTRIES)).min(1).optional(),
28976
29047
  country: knownCountry.optional(),
28977
29048
  servesEu: boolean().optional(),
29049
+ frameworks: array(_enum(COMPLIANCE_FRAMEWORKS)).max(COMPLIANCE_FRAMEWORKS.length).optional(),
28978
29050
  cloudProviders: array(_enum(CLOUD_PROVIDERS)).min(1).optional(),
28979
29051
  ecosystems: array(_enum(ECOSYSTEMS)).min(1).optional(),
28980
29052
  productMarkets: strictObject({
@@ -28983,10 +29055,11 @@ strictObject({
28983
29055
  notOfferedAtHome: boolean().optional()
28984
29056
  }).optional(),
28985
29057
  overrides: record(string$2().max(100), array(string$2().max(200)).max(200)).optional()
28986
- }).refine(({ industries, country, servesEu, cloudProviders, ecosystems, productMarkets }) => [
29058
+ }).refine(({ industries, country, servesEu, frameworks, cloudProviders, ecosystems, productMarkets }) => [
28987
29059
  industries,
28988
29060
  country,
28989
29061
  servesEu,
29062
+ frameworks,
28990
29063
  cloudProviders,
28991
29064
  ecosystems,
28992
29065
  productMarkets
@@ -28997,6 +29070,7 @@ object({
28997
29070
  country: string$2().optional(),
28998
29071
  operatingRegions: array(string$2()),
28999
29072
  marketCountries: array(string$2()),
29073
+ frameworks: array(string$2()),
29000
29074
  cloudProviders: array(_enum(CLOUD_PROVIDERS)),
29001
29075
  ecosystems: array(_enum(ECOSYSTEMS))
29002
29076
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1060",
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",