@taiga-ai/mcp-server 0.31.0-dev.655 → 0.31.0-dev.659
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 +118 -103
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22857,8 +22857,14 @@ function policyNamedByControl(controlId) {
|
|
|
22857
22857
|
* the row that holds it (PRO-1499): a control one side can name must be one
|
|
22858
22858
|
* the other can find, and two hand-copied literals would only agree until the
|
|
22859
22859
|
* next overlay.
|
|
22860
|
+
*
|
|
22861
|
+
* A segment starts with a letter and may carry digits after it, because a
|
|
22862
|
+
* regulation's own name can: `NIS2-1.1` is the EU overlay's NIS2 family, which
|
|
22863
|
+
* an all-letters segment silently dropped from every tenant's held controls
|
|
22864
|
+
* (PRO-3420). The numbering still follows the last hyphen, so a segment never
|
|
22865
|
+
* swallows it.
|
|
22860
22866
|
*/
|
|
22861
|
-
const CONTROL_ID_SOURCE = "[A-Z]{
|
|
22867
|
+
const CONTROL_ID_SOURCE = "[A-Z][A-Z0-9]{1,5}(?:-[A-Z][A-Z0-9]{1,5})*-\\d+(?:\\.\\d+)*";
|
|
22862
22868
|
/** True when `text` is exactly one control id. */
|
|
22863
22869
|
function isControlId(text) {
|
|
22864
22870
|
return new RegExp(`^${CONTROL_ID_SOURCE}$`).test(text);
|
|
@@ -22973,10 +22979,19 @@ const EU_COUNTRIES = [
|
|
|
22973
22979
|
name: "Sweden"
|
|
22974
22980
|
}
|
|
22975
22981
|
];
|
|
22982
|
+
/**
|
|
22983
|
+
* EEA countries outside the EU. Norway only: Iceland and Liechtenstein have
|
|
22984
|
+
* no overlay and no customer asking for one.
|
|
22985
|
+
*/
|
|
22986
|
+
const EEA_COUNTRIES = [{
|
|
22987
|
+
code: "NO",
|
|
22988
|
+
name: "Norway"
|
|
22989
|
+
}];
|
|
22990
|
+
[...EU_COUNTRIES, ...EEA_COUNTRIES];
|
|
22976
22991
|
/** Countries available during closed beta. Expand as we open new markets. */
|
|
22977
22992
|
const BETA_COUNTRIES = ["FI"];
|
|
22978
22993
|
EU_COUNTRIES.filter((c) => BETA_COUNTRIES.includes(c.code));
|
|
22979
|
-
Object.fromEntries(EU_COUNTRIES.map((c) => [c.code, "eu"]));
|
|
22994
|
+
Object.fromEntries([...EU_COUNTRIES.map((c) => [c.code, "eu"]), ...EEA_COUNTRIES.map((c) => [c.code, "eea"])]);
|
|
22980
22995
|
//#endregion
|
|
22981
22996
|
//#region ../../packages/types/dist/factories.js
|
|
22982
22997
|
const FACTORY_DOCUMENT_TYPES = ["factory_instructions"];
|
|
@@ -24077,6 +24092,107 @@ function createdInitiativesOf(result) {
|
|
|
24077
24092
|
const parsed = withCreatedInitiatives.safeParse(result);
|
|
24078
24093
|
return parsed.success ? parsed.data.createdInitiatives : null;
|
|
24079
24094
|
}
|
|
24095
|
+
const DOCUMENT_INPUTS = Object.freeze({
|
|
24096
|
+
user_flow: {
|
|
24097
|
+
required: ["specification"],
|
|
24098
|
+
optional: []
|
|
24099
|
+
},
|
|
24100
|
+
architecture: {
|
|
24101
|
+
required: ["specification"],
|
|
24102
|
+
optional: ["user_flow"]
|
|
24103
|
+
},
|
|
24104
|
+
technology_decisions: {
|
|
24105
|
+
required: ["specification", "architecture"],
|
|
24106
|
+
optional: []
|
|
24107
|
+
},
|
|
24108
|
+
data_flow: {
|
|
24109
|
+
required: ["specification", "architecture"],
|
|
24110
|
+
optional: []
|
|
24111
|
+
},
|
|
24112
|
+
privacy_assessment: {
|
|
24113
|
+
required: ["specification", "architecture"],
|
|
24114
|
+
optional: ["data_flow"]
|
|
24115
|
+
},
|
|
24116
|
+
threat_model: {
|
|
24117
|
+
required: [
|
|
24118
|
+
"specification",
|
|
24119
|
+
"architecture",
|
|
24120
|
+
"privacy_assessment"
|
|
24121
|
+
],
|
|
24122
|
+
optional: ["data_flow"]
|
|
24123
|
+
},
|
|
24124
|
+
risk_register: {
|
|
24125
|
+
required: ["specification"],
|
|
24126
|
+
optional: [
|
|
24127
|
+
"privacy_assessment",
|
|
24128
|
+
"threat_model",
|
|
24129
|
+
"technology_decisions",
|
|
24130
|
+
"architecture",
|
|
24131
|
+
"data_flow"
|
|
24132
|
+
]
|
|
24133
|
+
},
|
|
24134
|
+
service_blueprint: {
|
|
24135
|
+
required: [
|
|
24136
|
+
"specification",
|
|
24137
|
+
"user_flow",
|
|
24138
|
+
"architecture"
|
|
24139
|
+
],
|
|
24140
|
+
optional: ["ui_direction"]
|
|
24141
|
+
}
|
|
24142
|
+
});
|
|
24143
|
+
//#endregion
|
|
24144
|
+
//#region ../../packages/types/dist/document-types-for-kind.js
|
|
24145
|
+
/**
|
|
24146
|
+
* What a thing with no users of its own does not have.
|
|
24147
|
+
*
|
|
24148
|
+
* A library, an infrastructure module and a pipeline share one fact: their
|
|
24149
|
+
* consumers are other products, not people. That is what decides all four
|
|
24150
|
+
* exclusions, and it is why the three kinds share a list rather than each
|
|
24151
|
+
* having their own -- three identical lists are three chances to change one.
|
|
24152
|
+
*
|
|
24153
|
+
* - `user_flow`: a journey through screens. There are no screens and there
|
|
24154
|
+
* is no journey; the ux-planning agent asked for one invents both.
|
|
24155
|
+
* - `privacy_assessment`: a GDPR Article 35 DPIA. Its sections are the legal
|
|
24156
|
+
* basis for processing, the data subjects affected, retention, how each
|
|
24157
|
+
* data-subject right is served, and an approval decision. A module has no
|
|
24158
|
+
* data subjects and is not a controller, so every one of those sections is
|
|
24159
|
+
* written from nothing. (A library that DOES touch personal data is still
|
|
24160
|
+
* covered: the data flow below is kept, and the threat model reads it.)
|
|
24161
|
+
* - `service_blueprint`: frontstage and backstage of a SERVICE, divided by a
|
|
24162
|
+
* line of visibility that only exists where a customer is looking.
|
|
24163
|
+
* - `ui_direction`: the look and the navigation. A Terraform module offered
|
|
24164
|
+
* a look-and-feel wizard is the clearest single symptom of PRO-1866.
|
|
24165
|
+
*
|
|
24166
|
+
* The `data_flow` is deliberately KEPT, against the ticket's shorter list.
|
|
24167
|
+
* Two reasons, and both are about the documents that remain rather than about
|
|
24168
|
+
* the data flow itself. The threat model is STRIDE over trust boundaries and
|
|
24169
|
+
* data stores, and the data flow is where those come from -- dropping it
|
|
24170
|
+
* leaves the threat model and the risk register standing but ungrounded, which
|
|
24171
|
+
* is a worse outcome than a document nobody wanted. And a data flow is not an
|
|
24172
|
+
* application concept: a module's state file, provider credentials and remote
|
|
24173
|
+
* backend cross trust boundaries, a pipeline moves artifacts and secrets
|
|
24174
|
+
* between them, and a library receives and returns data it does not own.
|
|
24175
|
+
*
|
|
24176
|
+
* The technology decisions, architecture, threat model and risk register are
|
|
24177
|
+
* kept for every kind. Each describes the thing itself, and a consumer of a
|
|
24178
|
+
* library has more need of them, not less.
|
|
24179
|
+
*/
|
|
24180
|
+
const NO_USERS_OF_ITS_OWN = [
|
|
24181
|
+
"user_flow",
|
|
24182
|
+
"privacy_assessment",
|
|
24183
|
+
"service_blueprint",
|
|
24184
|
+
"ui_direction"
|
|
24185
|
+
];
|
|
24186
|
+
Object.freeze({
|
|
24187
|
+
/** The kind every product was before the column existed. Nothing is excluded. */
|
|
24188
|
+
application: [],
|
|
24189
|
+
/** Code other products depend on, shipped as a published package. */
|
|
24190
|
+
library: NO_USERS_OF_ITS_OWN,
|
|
24191
|
+
/** A Terraform module, a Helm chart: consumed by other products' infrastructure. */
|
|
24192
|
+
infrastructure_module: NO_USERS_OF_ITS_OWN,
|
|
24193
|
+
/** A reusable workflow, an action, a build template. */
|
|
24194
|
+
pipeline: NO_USERS_OF_ITS_OWN
|
|
24195
|
+
});
|
|
24080
24196
|
//#endregion
|
|
24081
24197
|
//#region ../../packages/types/dist/chat-stream-events.js
|
|
24082
24198
|
/**
|
|
@@ -24780,107 +24896,6 @@ Object.freeze({
|
|
|
24780
24896
|
applicationOwnership: true
|
|
24781
24897
|
});
|
|
24782
24898
|
//#endregion
|
|
24783
|
-
//#region ../../packages/types/dist/document-types-for-kind.js
|
|
24784
|
-
/**
|
|
24785
|
-
* What a thing with no users of its own does not have.
|
|
24786
|
-
*
|
|
24787
|
-
* A library, an infrastructure module and a pipeline share one fact: their
|
|
24788
|
-
* consumers are other products, not people. That is what decides all four
|
|
24789
|
-
* exclusions, and it is why the three kinds share a list rather than each
|
|
24790
|
-
* having their own -- three identical lists are three chances to change one.
|
|
24791
|
-
*
|
|
24792
|
-
* - `user_flow`: a journey through screens. There are no screens and there
|
|
24793
|
-
* is no journey; the ux-planning agent asked for one invents both.
|
|
24794
|
-
* - `privacy_assessment`: a GDPR Article 35 DPIA. Its sections are the legal
|
|
24795
|
-
* basis for processing, the data subjects affected, retention, how each
|
|
24796
|
-
* data-subject right is served, and an approval decision. A module has no
|
|
24797
|
-
* data subjects and is not a controller, so every one of those sections is
|
|
24798
|
-
* written from nothing. (A library that DOES touch personal data is still
|
|
24799
|
-
* covered: the data flow below is kept, and the threat model reads it.)
|
|
24800
|
-
* - `service_blueprint`: frontstage and backstage of a SERVICE, divided by a
|
|
24801
|
-
* line of visibility that only exists where a customer is looking.
|
|
24802
|
-
* - `ui_direction`: the look and the navigation. A Terraform module offered
|
|
24803
|
-
* a look-and-feel wizard is the clearest single symptom of PRO-1866.
|
|
24804
|
-
*
|
|
24805
|
-
* The `data_flow` is deliberately KEPT, against the ticket's shorter list.
|
|
24806
|
-
* Two reasons, and both are about the documents that remain rather than about
|
|
24807
|
-
* the data flow itself. The threat model is STRIDE over trust boundaries and
|
|
24808
|
-
* data stores, and the data flow is where those come from -- dropping it
|
|
24809
|
-
* leaves the threat model and the risk register standing but ungrounded, which
|
|
24810
|
-
* is a worse outcome than a document nobody wanted. And a data flow is not an
|
|
24811
|
-
* application concept: a module's state file, provider credentials and remote
|
|
24812
|
-
* backend cross trust boundaries, a pipeline moves artifacts and secrets
|
|
24813
|
-
* between them, and a library receives and returns data it does not own.
|
|
24814
|
-
*
|
|
24815
|
-
* The technology decisions, architecture, threat model and risk register are
|
|
24816
|
-
* kept for every kind. Each describes the thing itself, and a consumer of a
|
|
24817
|
-
* library has more need of them, not less.
|
|
24818
|
-
*/
|
|
24819
|
-
const NO_USERS_OF_ITS_OWN = [
|
|
24820
|
-
"user_flow",
|
|
24821
|
-
"privacy_assessment",
|
|
24822
|
-
"service_blueprint",
|
|
24823
|
-
"ui_direction"
|
|
24824
|
-
];
|
|
24825
|
-
Object.freeze({
|
|
24826
|
-
/** The kind every product was before the column existed. Nothing is excluded. */
|
|
24827
|
-
application: [],
|
|
24828
|
-
/** Code other products depend on, shipped as a published package. */
|
|
24829
|
-
library: NO_USERS_OF_ITS_OWN,
|
|
24830
|
-
/** A Terraform module, a Helm chart: consumed by other products' infrastructure. */
|
|
24831
|
-
infrastructure_module: NO_USERS_OF_ITS_OWN,
|
|
24832
|
-
/** A reusable workflow, an action, a build template. */
|
|
24833
|
-
pipeline: NO_USERS_OF_ITS_OWN
|
|
24834
|
-
});
|
|
24835
|
-
const DOCUMENT_INPUTS = Object.freeze({
|
|
24836
|
-
user_flow: {
|
|
24837
|
-
required: ["specification"],
|
|
24838
|
-
optional: []
|
|
24839
|
-
},
|
|
24840
|
-
architecture: {
|
|
24841
|
-
required: ["specification"],
|
|
24842
|
-
optional: ["user_flow"]
|
|
24843
|
-
},
|
|
24844
|
-
technology_decisions: {
|
|
24845
|
-
required: ["specification", "architecture"],
|
|
24846
|
-
optional: []
|
|
24847
|
-
},
|
|
24848
|
-
data_flow: {
|
|
24849
|
-
required: ["specification", "architecture"],
|
|
24850
|
-
optional: []
|
|
24851
|
-
},
|
|
24852
|
-
privacy_assessment: {
|
|
24853
|
-
required: ["specification", "architecture"],
|
|
24854
|
-
optional: ["data_flow"]
|
|
24855
|
-
},
|
|
24856
|
-
threat_model: {
|
|
24857
|
-
required: [
|
|
24858
|
-
"specification",
|
|
24859
|
-
"architecture",
|
|
24860
|
-
"privacy_assessment"
|
|
24861
|
-
],
|
|
24862
|
-
optional: ["data_flow"]
|
|
24863
|
-
},
|
|
24864
|
-
risk_register: {
|
|
24865
|
-
required: ["specification"],
|
|
24866
|
-
optional: [
|
|
24867
|
-
"privacy_assessment",
|
|
24868
|
-
"threat_model",
|
|
24869
|
-
"technology_decisions",
|
|
24870
|
-
"architecture",
|
|
24871
|
-
"data_flow"
|
|
24872
|
-
]
|
|
24873
|
-
},
|
|
24874
|
-
service_blueprint: {
|
|
24875
|
-
required: [
|
|
24876
|
-
"specification",
|
|
24877
|
-
"user_flow",
|
|
24878
|
-
"architecture"
|
|
24879
|
-
],
|
|
24880
|
-
optional: ["ui_direction"]
|
|
24881
|
-
}
|
|
24882
|
-
});
|
|
24883
|
-
//#endregion
|
|
24884
24899
|
//#region src/compat.ts
|
|
24885
24900
|
/**
|
|
24886
24901
|
* Why this server should not serve the API it reached, or null when it may
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.31.0-dev.
|
|
3
|
+
"version": "0.31.0-dev.659",
|
|
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",
|