@taiga-ai/mcp-server 0.37.0-dev.1083 → 0.37.0-dev.1084
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 +190 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25673,6 +25673,117 @@ Object.fromEntries([
|
|
|
25673
25673
|
...US_COUNTRIES.map((c) => [c.code, "us"])
|
|
25674
25674
|
]);
|
|
25675
25675
|
//#endregion
|
|
25676
|
+
//#region ../../packages/types/dist/regulations.js
|
|
25677
|
+
/**
|
|
25678
|
+
* Regulations in a tenant's policies (PRO-3420): which regulations apply to
|
|
25679
|
+
* the organization, why, and which policy sections implement each one.
|
|
25680
|
+
*
|
|
25681
|
+
* Computed on read from the tenant's context and its published policies, never
|
|
25682
|
+
* stored, so a regulation's status can change without republishing anyone's
|
|
25683
|
+
* documents. Served by `GET /v1/tenants/current/regulations` while the
|
|
25684
|
+
* `regulations` flag is on.
|
|
25685
|
+
*/
|
|
25686
|
+
/**
|
|
25687
|
+
* Where a regulation stands in the tenant's jurisdiction.
|
|
25688
|
+
*
|
|
25689
|
+
* - `in_force`: the obligations apply now.
|
|
25690
|
+
* - `pending`: adopted but not yet binding there, e.g. an EU act awaiting
|
|
25691
|
+
* incorporation into the EEA Agreement, which is where the AI Act and NIS2
|
|
25692
|
+
* stand for Norway.
|
|
25693
|
+
* - `interim`: a temporary arrangement that ends on `statusUntil`, such as
|
|
25694
|
+
* Sweden's AI Act authority mandate.
|
|
25695
|
+
* - `superseded`: replaced; kept so an old citation still resolves.
|
|
25696
|
+
*/
|
|
25697
|
+
const FRAMEWORK_STATUSES = [
|
|
25698
|
+
"in_force",
|
|
25699
|
+
"pending",
|
|
25700
|
+
"interim",
|
|
25701
|
+
"superseded"
|
|
25702
|
+
];
|
|
25703
|
+
/**
|
|
25704
|
+
* Who has verified a regulation row against its official source (PRO-3420).
|
|
25705
|
+
* Shown to the customer only when present, as a positive mark -- a row that
|
|
25706
|
+
* nobody has verified yet shows nothing, rather than a warning that it waits
|
|
25707
|
+
* on Taiga.
|
|
25708
|
+
*
|
|
25709
|
+
* `ai_research`: checked row by row against the official legal text by an AI
|
|
25710
|
+
* research pass, with the sources and reasoning kept in a review report
|
|
25711
|
+
* (`regulations/reviews/<cc>.md`). Never a lawyer's review, and the mark says
|
|
25712
|
+
* so; `taiga_legal` stays reserved for that.
|
|
25713
|
+
*/
|
|
25714
|
+
const REGULATION_VERIFIERS = [
|
|
25715
|
+
"taiga_legal",
|
|
25716
|
+
"regulator",
|
|
25717
|
+
"ai_research"
|
|
25718
|
+
];
|
|
25719
|
+
/**
|
|
25720
|
+
* Why a regulation applies: the part of the organization's context that
|
|
25721
|
+
* brought it in. `baseline` is Taiga's own policies, which cite a few EU acts
|
|
25722
|
+
* (GDPR, the AI Act, the CRA) for every organization. `market` is a country
|
|
25723
|
+
* a product is offered in beyond the organization's own (PRO-3420). `chosen`
|
|
25724
|
+
* is a framework the organization said it follows (PRO-4405): nothing imposes
|
|
25725
|
+
* it, so it is the one reason the organization can take away by itself.
|
|
25726
|
+
*/
|
|
25727
|
+
const REGULATION_ORIGIN_KINDS = [
|
|
25728
|
+
"baseline",
|
|
25729
|
+
"region",
|
|
25730
|
+
"country",
|
|
25731
|
+
"market",
|
|
25732
|
+
"industry",
|
|
25733
|
+
"chosen"
|
|
25734
|
+
];
|
|
25735
|
+
/**
|
|
25736
|
+
* Who can show that a control answering a regulation is met (PRO-3420):
|
|
25737
|
+
*
|
|
25738
|
+
* - `product`: something about the product as built and run -- its code,
|
|
25739
|
+
* infrastructure, or Taiga's own records of it -- so a product's evidence
|
|
25740
|
+
* can prove it or contradict it.
|
|
25741
|
+
* - `process`: something the organisation does about this product, and
|
|
25742
|
+
* keeps doing -- the breach drill that covers it, the DPIA kept under
|
|
25743
|
+
* review, the contracts with its processors, the release sign-off -- which
|
|
25744
|
+
* no scanner reads. Taiga's own records can show some of it; the rest a
|
|
25745
|
+
* person attests to, for a stated time, after which the control asks
|
|
25746
|
+
* again (PolicyControlAttestation).
|
|
25747
|
+
* - `organisation`: something the organisation does once or for every
|
|
25748
|
+
* product -- appoint a DPO, register, notify an authority, procure, train
|
|
25749
|
+
* -- which no product's evidence can show.
|
|
25750
|
+
*
|
|
25751
|
+
* A product's verdict on a regulation reads its product and process rows; its
|
|
25752
|
+
* organisational rows are listed as the organisation's to answer, never as a
|
|
25753
|
+
* product lacking evidence.
|
|
25754
|
+
*/
|
|
25755
|
+
const EVIDENCE_OWNERS = [
|
|
25756
|
+
"product",
|
|
25757
|
+
"process",
|
|
25758
|
+
"organisation"
|
|
25759
|
+
];
|
|
25760
|
+
/**
|
|
25761
|
+
* How far Taiga's controls answer one requirement of a framework an
|
|
25762
|
+
* organization follows (PRO-4405, PRO-4413):
|
|
25763
|
+
*
|
|
25764
|
+
* - `answered`: base controls set the requirement on the application, and
|
|
25765
|
+
* the organization's published policies hold at least one of them;
|
|
25766
|
+
* `controlIds` names the ones held.
|
|
25767
|
+
* - `unanswered`: base controls set it, but the published policies hold
|
|
25768
|
+
* none of them (not published yet, or edited out), so for this
|
|
25769
|
+
* organization nothing answers it.
|
|
25770
|
+
* - `gap`: the requirement binds the application and no control answers it
|
|
25771
|
+
* yet, for anyone.
|
|
25772
|
+
* - `outside`: not a requirement on the application Taiga checks: an
|
|
25773
|
+
* organisational duty (a management review, screening) or the people,
|
|
25774
|
+
* endpoints, hosts and premises around the application (physical
|
|
25775
|
+
* security, web filtering). Listed so the page can say what Taiga does
|
|
25776
|
+
* not check and a verdict never overclaims.
|
|
25777
|
+
*
|
|
25778
|
+
* The first two are the organization's; the last two are the crosswalk's.
|
|
25779
|
+
*/
|
|
25780
|
+
const FRAMEWORK_REQUIREMENT_COVERAGE = [
|
|
25781
|
+
"answered",
|
|
25782
|
+
"unanswered",
|
|
25783
|
+
"gap",
|
|
25784
|
+
"outside"
|
|
25785
|
+
];
|
|
25786
|
+
//#endregion
|
|
25676
25787
|
//#region ../../packages/types/dist/frameworks.js
|
|
25677
25788
|
/**
|
|
25678
25789
|
* Security and compliance frameworks an organization can say it follows
|
|
@@ -28854,7 +28965,84 @@ strictObject({
|
|
|
28854
28965
|
message: "Only Mark reviewed says what was shown.",
|
|
28855
28966
|
path: ["seen"]
|
|
28856
28967
|
});
|
|
28857
|
-
|
|
28968
|
+
/** A regulation's id in the catalogue, as its routes take it (PRO-3420). */
|
|
28969
|
+
const regulationId = string$2().min(1).max(100).regex(/^[a-z0-9-]+$/);
|
|
28970
|
+
object({
|
|
28971
|
+
context: object({
|
|
28972
|
+
industries: array(string$2()),
|
|
28973
|
+
country: string$2().nullable(),
|
|
28974
|
+
operatingRegions: array(string$2()),
|
|
28975
|
+
countryLayer: boolean(),
|
|
28976
|
+
frameworks: array(string$2()).optional()
|
|
28977
|
+
}),
|
|
28978
|
+
regulations: array(object({
|
|
28979
|
+
id: string$2(),
|
|
28980
|
+
name: string$2(),
|
|
28981
|
+
jurisdiction: string$2(),
|
|
28982
|
+
scope: string$2(),
|
|
28983
|
+
keyRequirements: string$2(),
|
|
28984
|
+
citation: string$2().nullable(),
|
|
28985
|
+
status: _enum(FRAMEWORK_STATUSES),
|
|
28986
|
+
effectiveFrom: string$2().nullable(),
|
|
28987
|
+
statusUntil: string$2().nullable(),
|
|
28988
|
+
statusNote: string$2().nullable(),
|
|
28989
|
+
verification: object({
|
|
28990
|
+
by: _enum(REGULATION_VERIFIERS),
|
|
28991
|
+
at: string$2()
|
|
28992
|
+
}).nullable(),
|
|
28993
|
+
acknowledgement: object({
|
|
28994
|
+
at: string$2(),
|
|
28995
|
+
byName: string$2().nullable()
|
|
28996
|
+
}).nullable(),
|
|
28997
|
+
isNew: boolean(),
|
|
28998
|
+
appliesBecause: array(object({
|
|
28999
|
+
kind: _enum(REGULATION_ORIGIN_KINDS),
|
|
29000
|
+
key: string$2()
|
|
29001
|
+
})),
|
|
29002
|
+
implementedBy: array(object({
|
|
29003
|
+
policyType: _enum(POLICY_TYPES),
|
|
29004
|
+
sectionKey: string$2(),
|
|
29005
|
+
ref: string$2().nullable(),
|
|
29006
|
+
sectionTitle: string$2().nullable().optional(),
|
|
29007
|
+
controlIds: array(string$2()),
|
|
29008
|
+
evidenceOwners: record(string$2(), _enum(EVIDENCE_OWNERS)),
|
|
29009
|
+
controlTexts: record(string$2(), string$2()).optional(),
|
|
29010
|
+
present: boolean()
|
|
29011
|
+
})),
|
|
29012
|
+
requirements: array(object({
|
|
29013
|
+
id: string$2(),
|
|
29014
|
+
summary: string$2(),
|
|
29015
|
+
coverage: _enum(FRAMEWORK_REQUIREMENT_COVERAGE),
|
|
29016
|
+
controlIds: array(string$2()),
|
|
29017
|
+
unverified: boolean().optional()
|
|
29018
|
+
})).optional()
|
|
29019
|
+
}))
|
|
29020
|
+
});
|
|
29021
|
+
object({
|
|
29022
|
+
regulationId: string$2(),
|
|
29023
|
+
acknowledgements: array(object({
|
|
29024
|
+
at: string$2(),
|
|
29025
|
+
byName: string$2().nullable()
|
|
29026
|
+
})),
|
|
29027
|
+
attestations: array(object({
|
|
29028
|
+
id: string$2(),
|
|
29029
|
+
productId: string$2(),
|
|
29030
|
+
productName: string$2(),
|
|
29031
|
+
controlId: string$2(),
|
|
29032
|
+
attestedAt: string$2(),
|
|
29033
|
+
validUntil: string$2(),
|
|
29034
|
+
byName: string$2().nullable(),
|
|
29035
|
+
note: string$2().nullable(),
|
|
29036
|
+
link: string$2().nullable()
|
|
29037
|
+
}))
|
|
29038
|
+
});
|
|
29039
|
+
object({
|
|
29040
|
+
countries: array(string$2()),
|
|
29041
|
+
homeCountry: string$2().nullable(),
|
|
29042
|
+
available: array(string$2()),
|
|
29043
|
+
withLayer: array(string$2()),
|
|
29044
|
+
notOfferedAtHome: boolean()
|
|
29045
|
+
}), strictObject({ type: productDocumentType }), object({
|
|
28858
29046
|
version: number$1().int().min(1),
|
|
28859
29047
|
unknownCitations: object({
|
|
28860
29048
|
shown: array(string$2()),
|
|
@@ -29186,7 +29374,7 @@ const deriveSource = discriminatedUnion("kind", [
|
|
|
29186
29374
|
uploadId: uuid
|
|
29187
29375
|
})
|
|
29188
29376
|
]);
|
|
29189
|
-
strictObject({
|
|
29377
|
+
strictObject({ regulationId }), strictObject({ regulationId }), strictObject({
|
|
29190
29378
|
displayName: string$2().trim().min(1).max(255),
|
|
29191
29379
|
baseUrl: string$2().trim().min(1).max(480),
|
|
29192
29380
|
token: gitlabToken,
|
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.1084",
|
|
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",
|