@taiga-ai/mcp-server 0.37.0-dev.1147 → 0.37.0-dev.1148

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 +158 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24339,7 +24339,8 @@ const STACK_FACETS = [
24339
24339
  "iac",
24340
24340
  "scripting",
24341
24341
  "data_store",
24342
- "ci_cd"
24342
+ "ci_cd",
24343
+ "iac_state"
24343
24344
  ];
24344
24345
  const LANGUAGES = {
24345
24346
  typescript: {
@@ -24478,18 +24479,21 @@ const LANGUAGES = {
24478
24479
  "apex"
24479
24480
  ],
24480
24481
  files: ["sfdx-project.json"]
24481
- }
24482
+ },
24483
+ clouds: ["salesforce"]
24482
24484
  }
24483
24485
  };
24484
24486
  const FRAMEWORKS = {
24485
24487
  react: {
24486
24488
  label: "React",
24487
24489
  languages: ["typescript"],
24490
+ role: "frontend",
24488
24491
  detectors: { topics: ["react", "reactjs"] }
24489
24492
  },
24490
24493
  nextjs: {
24491
24494
  label: "Next.js",
24492
24495
  languages: ["typescript"],
24496
+ role: "frontend",
24493
24497
  detectors: {
24494
24498
  topics: ["nextjs"],
24495
24499
  files: [
@@ -24502,6 +24506,7 @@ const FRAMEWORKS = {
24502
24506
  angular: {
24503
24507
  label: "Angular",
24504
24508
  languages: ["typescript"],
24509
+ role: "frontend",
24505
24510
  detectors: {
24506
24511
  topics: ["angular"],
24507
24512
  files: ["angular.json"]
@@ -24510,6 +24515,7 @@ const FRAMEWORKS = {
24510
24515
  vue: {
24511
24516
  label: "Vue",
24512
24517
  languages: ["typescript"],
24518
+ role: "frontend",
24513
24519
  detectors: {
24514
24520
  linguist: ["Vue"],
24515
24521
  topics: ["vue", "vuejs"]
@@ -24518,6 +24524,7 @@ const FRAMEWORKS = {
24518
24524
  nuxt: {
24519
24525
  label: "Nuxt",
24520
24526
  languages: ["typescript"],
24527
+ role: "frontend",
24521
24528
  detectors: {
24522
24529
  topics: ["nuxt", "nuxtjs"],
24523
24530
  files: ["nuxt.config.ts", "nuxt.config.js"]
@@ -24526,6 +24533,7 @@ const FRAMEWORKS = {
24526
24533
  sveltekit: {
24527
24534
  label: "SvelteKit",
24528
24535
  languages: ["typescript"],
24536
+ role: "frontend",
24529
24537
  detectors: {
24530
24538
  linguist: ["Svelte"],
24531
24539
  topics: ["svelte", "sveltekit"],
@@ -24535,6 +24543,7 @@ const FRAMEWORKS = {
24535
24543
  react_native: {
24536
24544
  label: "React Native",
24537
24545
  languages: ["typescript"],
24546
+ role: "mobile",
24538
24547
  detectors: {
24539
24548
  topics: ["react-native", "expo"],
24540
24549
  files: ["eas.json"]
@@ -24543,6 +24552,7 @@ const FRAMEWORKS = {
24543
24552
  nestjs: {
24544
24553
  label: "NestJS",
24545
24554
  languages: ["typescript"],
24555
+ role: "backend",
24546
24556
  detectors: {
24547
24557
  topics: ["nestjs"],
24548
24558
  files: ["nest-cli.json"]
@@ -24551,16 +24561,19 @@ const FRAMEWORKS = {
24551
24561
  fastify: {
24552
24562
  label: "Fastify",
24553
24563
  languages: ["typescript"],
24564
+ role: "backend",
24554
24565
  detectors: { topics: ["fastify"] }
24555
24566
  },
24556
24567
  express: {
24557
24568
  label: "Express",
24558
24569
  languages: ["typescript"],
24570
+ role: "backend",
24559
24571
  detectors: { topics: ["express", "expressjs"] }
24560
24572
  },
24561
24573
  django: {
24562
24574
  label: "Django",
24563
24575
  languages: ["python"],
24576
+ role: "backend",
24564
24577
  detectors: {
24565
24578
  topics: ["django"],
24566
24579
  files: ["manage.py"]
@@ -24569,36 +24582,43 @@ const FRAMEWORKS = {
24569
24582
  fastapi: {
24570
24583
  label: "FastAPI",
24571
24584
  languages: ["python"],
24585
+ role: "backend",
24572
24586
  detectors: { topics: ["fastapi"] }
24573
24587
  },
24574
24588
  flask: {
24575
24589
  label: "Flask",
24576
24590
  languages: ["python"],
24591
+ role: "backend",
24577
24592
  detectors: { topics: ["flask"] }
24578
24593
  },
24579
24594
  spring_boot: {
24580
24595
  label: "Spring Boot",
24581
24596
  languages: ["java", "kotlin"],
24597
+ role: "backend",
24582
24598
  detectors: { topics: ["spring-boot", "spring"] }
24583
24599
  },
24584
24600
  quarkus: {
24585
24601
  label: "Quarkus",
24586
24602
  languages: ["java", "kotlin"],
24603
+ role: "backend",
24587
24604
  detectors: { topics: ["quarkus"] }
24588
24605
  },
24589
24606
  micronaut: {
24590
24607
  label: "Micronaut",
24591
24608
  languages: ["java", "kotlin"],
24609
+ role: "backend",
24592
24610
  detectors: { topics: ["micronaut"] }
24593
24611
  },
24594
24612
  ktor: {
24595
24613
  label: "Ktor",
24596
24614
  languages: ["kotlin"],
24615
+ role: "backend",
24597
24616
  detectors: { topics: ["ktor"] }
24598
24617
  },
24599
24618
  aspnet_core: {
24600
24619
  label: "ASP.NET Core",
24601
24620
  languages: ["csharp"],
24621
+ role: "backend",
24602
24622
  detectors: { topics: [
24603
24623
  "aspnetcore",
24604
24624
  "asp-net-core",
@@ -24608,6 +24628,7 @@ const FRAMEWORKS = {
24608
24628
  blazor: {
24609
24629
  label: "Blazor",
24610
24630
  languages: ["csharp"],
24631
+ role: "frontend",
24611
24632
  detectors: {
24612
24633
  topics: ["blazor"],
24613
24634
  files: ["*.razor"]
@@ -24616,6 +24637,7 @@ const FRAMEWORKS = {
24616
24637
  laravel: {
24617
24638
  label: "Laravel",
24618
24639
  languages: ["php"],
24640
+ role: "backend",
24619
24641
  detectors: {
24620
24642
  topics: ["laravel"],
24621
24643
  files: ["artisan"]
@@ -24624,6 +24646,7 @@ const FRAMEWORKS = {
24624
24646
  symfony: {
24625
24647
  label: "Symfony",
24626
24648
  languages: ["php"],
24649
+ role: "backend",
24627
24650
  detectors: {
24628
24651
  topics: ["symfony"],
24629
24652
  files: ["symfony.lock"]
@@ -24632,11 +24655,13 @@ const FRAMEWORKS = {
24632
24655
  drupal: {
24633
24656
  label: "Drupal",
24634
24657
  languages: ["php"],
24658
+ role: "backend",
24635
24659
  detectors: { topics: ["drupal"] }
24636
24660
  },
24637
24661
  rails: {
24638
24662
  label: "Rails",
24639
24663
  languages: ["ruby"],
24664
+ role: "backend",
24640
24665
  detectors: {
24641
24666
  topics: ["rails", "ruby-on-rails"],
24642
24667
  files: ["bin/rails", "config/routes.rb"]
@@ -24645,20 +24670,24 @@ const FRAMEWORKS = {
24645
24670
  phoenix: {
24646
24671
  label: "Phoenix",
24647
24672
  languages: ["elixir"],
24673
+ role: "backend",
24648
24674
  detectors: { topics: ["phoenix", "phoenix-framework"] }
24649
24675
  },
24650
24676
  flutter: {
24651
24677
  label: "Flutter",
24652
24678
  languages: ["dart"],
24679
+ role: "mobile",
24653
24680
  detectors: { topics: ["flutter"] }
24654
24681
  },
24655
24682
  lwc: {
24656
24683
  label: "Lightning Web Components",
24657
24684
  languages: ["apex"],
24685
+ role: "frontend",
24658
24686
  detectors: {
24659
24687
  topics: ["lightning-web-components", "lwc"],
24660
24688
  files: ["force-app/main/default/lwc"]
24661
- }
24689
+ },
24690
+ clouds: ["salesforce"]
24662
24691
  }
24663
24692
  };
24664
24693
  const IAC = {
@@ -24676,21 +24705,24 @@ const IAC = {
24676
24705
  linguist: ["Bicep"],
24677
24706
  topics: ["bicep", "arm-templates"],
24678
24707
  files: ["*.bicep", "azuredeploy.json"]
24679
- }
24708
+ },
24709
+ clouds: ["azure"]
24680
24710
  },
24681
24711
  cloudformation: {
24682
24712
  label: "CloudFormation / SAM",
24683
24713
  detectors: {
24684
24714
  topics: ["cloudformation", "aws-sam"],
24685
24715
  files: ["template.yaml", "samconfig.toml"]
24686
- }
24716
+ },
24717
+ clouds: ["aws"]
24687
24718
  },
24688
24719
  aws_cdk: {
24689
24720
  label: "AWS CDK",
24690
24721
  detectors: {
24691
24722
  topics: ["aws-cdk", "cdk"],
24692
24723
  files: ["cdk.json"]
24693
- }
24724
+ },
24725
+ clouds: ["aws"]
24694
24726
  },
24695
24727
  pulumi: {
24696
24728
  label: "Pulumi",
@@ -24792,11 +24824,13 @@ const DATA_STORES = {
24792
24824
  },
24793
24825
  dynamodb: {
24794
24826
  label: "DynamoDB",
24795
- detectors: { topics: ["dynamodb"] }
24827
+ detectors: { topics: ["dynamodb"] },
24828
+ clouds: ["aws"]
24796
24829
  },
24797
24830
  cosmos_db: {
24798
24831
  label: "Cosmos DB",
24799
- detectors: { topics: ["cosmosdb", "azure-cosmos-db"] }
24832
+ detectors: { topics: ["cosmosdb", "azure-cosmos-db"] },
24833
+ clouds: ["azure"]
24800
24834
  }
24801
24835
  };
24802
24836
  const CI_CD = {
@@ -24843,12 +24877,95 @@ const CI_CD = {
24843
24877
  aws_codebuild: {
24844
24878
  label: "AWS CodeBuild / CodePipeline",
24845
24879
  ciSystem: "external",
24846
- detectors: { files: ["buildspec.yml"] }
24880
+ detectors: { files: ["buildspec.yml"] },
24881
+ clouds: ["aws"]
24847
24882
  },
24848
24883
  google_cloud_build: {
24849
24884
  label: "Google Cloud Build",
24850
24885
  ciSystem: "external",
24851
- detectors: { files: ["cloudbuild.yaml", "cloudbuild.yml"] }
24886
+ detectors: { files: ["cloudbuild.yaml", "cloudbuild.yml"] },
24887
+ clouds: ["gcp"]
24888
+ }
24889
+ };
24890
+ /**
24891
+ * Where Terraform / OpenTofu or Pulumi keeps its state: a bucket in the
24892
+ * organization's own cloud, or a service that holds it. CloudFormation, CDK
24893
+ * and Bicep have no state file of their own (the cloud keeps it), and Ansible
24894
+ * keeps none, so they have no entry here.
24895
+ */
24896
+ const IAC_STATE = {
24897
+ s3: {
24898
+ label: "S3",
24899
+ sublabel: "AWS",
24900
+ iacTools: ["terraform", "pulumi"],
24901
+ detectors: {},
24902
+ clouds: ["aws"]
24903
+ },
24904
+ azure_blob: {
24905
+ label: "Azure Blob Storage",
24906
+ iacTools: ["terraform", "pulumi"],
24907
+ detectors: {},
24908
+ clouds: ["azure"]
24909
+ },
24910
+ gcs: {
24911
+ label: "Cloud Storage",
24912
+ sublabel: "Google Cloud",
24913
+ iacTools: ["terraform", "pulumi"],
24914
+ detectors: {},
24915
+ clouds: ["gcp"]
24916
+ },
24917
+ upcloud_object_storage: {
24918
+ label: "UpCloud Object Storage",
24919
+ iacTools: ["terraform", "pulumi"],
24920
+ detectors: {},
24921
+ clouds: ["upcloud"]
24922
+ },
24923
+ hcp_terraform: {
24924
+ label: "HCP Terraform",
24925
+ sublabel: "Terraform Cloud",
24926
+ iacTools: ["terraform"],
24927
+ detectors: { topics: ["terraform-cloud", "hcp-terraform"] }
24928
+ },
24929
+ terraform_enterprise: {
24930
+ label: "Terraform Enterprise",
24931
+ iacTools: ["terraform"],
24932
+ detectors: { topics: ["terraform-enterprise"] }
24933
+ },
24934
+ spacelift: {
24935
+ label: "Spacelift",
24936
+ iacTools: ["terraform"],
24937
+ detectors: {
24938
+ topics: ["spacelift"],
24939
+ files: [".spacelift/config.yml"]
24940
+ }
24941
+ },
24942
+ env0: {
24943
+ label: "env0",
24944
+ iacTools: ["terraform"],
24945
+ detectors: {
24946
+ topics: ["env0"],
24947
+ files: ["env0.yml"]
24948
+ }
24949
+ },
24950
+ scalr: {
24951
+ label: "Scalr",
24952
+ iacTools: ["terraform"],
24953
+ detectors: { topics: ["scalr"] }
24954
+ },
24955
+ gitlab_terraform_state: {
24956
+ label: "GitLab-managed state",
24957
+ iacTools: ["terraform"],
24958
+ detectors: {}
24959
+ },
24960
+ pulumi_cloud: {
24961
+ label: "Pulumi Cloud",
24962
+ iacTools: ["pulumi"],
24963
+ detectors: {}
24964
+ },
24965
+ pulumi_self_hosted: {
24966
+ label: "Pulumi self-hosted",
24967
+ iacTools: ["pulumi"],
24968
+ detectors: {}
24852
24969
  }
24853
24970
  };
24854
24971
  function entries(facet, group) {
@@ -24858,6 +24975,9 @@ function entries(facet, group) {
24858
24975
  label: shape.label,
24859
24976
  ...shape.sublabel ? { sublabel: shape.sublabel } : {},
24860
24977
  languages: "languages" in shape ? shape.languages : [],
24978
+ role: "role" in shape ? shape.role : null,
24979
+ iacTools: "iacTools" in shape ? shape.iacTools : [],
24980
+ clouds: shape.clouds ?? [],
24861
24981
  ciSystem: "ciSystem" in shape ? shape.ciSystem : null,
24862
24982
  detectors: shape.detectors
24863
24983
  }));
@@ -24869,7 +24989,8 @@ const STACK_CATALOGUE = [
24869
24989
  ...entries("iac", IAC),
24870
24990
  ...entries("scripting", SCRIPTING),
24871
24991
  ...entries("data_store", DATA_STORES),
24872
- ...entries("ci_cd", CI_CD)
24992
+ ...entries("ci_cd", CI_CD),
24993
+ ...entries("iac_state", IAC_STATE)
24873
24994
  ];
24874
24995
  const STACK_ENTRY_IDS = STACK_CATALOGUE.map((entry) => entry.id);
24875
24996
  const BY_ID = new Map(STACK_CATALOGUE.map((entry) => [entry.id, entry]));
@@ -24879,6 +25000,13 @@ function stackEntry(id) {
24879
25000
  return entry;
24880
25001
  }
24881
25002
  /**
25003
+ * The entries an entry sits under, one of which a declaration must name: a
25004
+ * framework's languages, a state location's tools. Empty for the rest.
25005
+ */
25006
+ function stackEntryParents(entry) {
25007
+ return entry.facet === "framework" ? entry.languages : entry.facet === "iac_state" ? entry.iacTools : [];
25008
+ }
25009
+ /**
24882
25010
  * Every name an entry answers to, lowercased: its id, its label, each part of
24883
25011
  * a combined label ("TypeScript / JavaScript" is also JavaScript), and its
24884
25012
  * sublabel ("Node.js").
@@ -24893,18 +25021,30 @@ function namesOf(entry) {
24893
25021
  return new Set(names.map((name) => name.trim().toLowerCase()).filter((name) => name.length > 0));
24894
25022
  }
24895
25023
  /**
25024
+ * The catalogue entry a "not listed" name already is in its facet, if any:
25025
+ * "JavaScript" in languages is TypeScript / JavaScript. The screen says so
25026
+ * before the schema refuses it.
25027
+ */
25028
+ function catalogueEntryNamed(facet, name) {
25029
+ const key = name.trim().toLowerCase();
25030
+ return STACK_CATALOGUE.find((entry) => entry.facet === facet && namesOf(entry).has(key));
25031
+ }
25032
+ /** What a "not listed" name may not contain: it lands in one Markdown table cell. */
25033
+ const STACK_NOT_LISTED_FORBIDDEN = /[\r\n\t|]/;
25034
+ /**
24896
25035
  * What an organization declares: catalogue entries, and technologies the
24897
25036
  * catalogue does not list, each named in its facet. A "not listed" name is
24898
25037
  * stated in the policy as declared and never promises a build.
24899
25038
  *
24900
- * A framework needs one of its languages: a declaration naming Laravel
24901
- * without PHP is refused rather than guessed at.
25039
+ * A framework needs one of its languages, and a state location one of its
25040
+ * tools: a declaration naming Laravel without PHP, or S3 state without
25041
+ * Terraform or Pulumi, is refused rather than guessed at.
24902
25042
  */
24903
25043
  const stackDeclarationSchema = object({
24904
25044
  entries: array(_enum(STACK_ENTRY_IDS)).max(STACK_ENTRY_IDS.length * 2),
24905
25045
  notListed: array(object({
24906
25046
  facet: _enum(STACK_FACETS),
24907
- name: string$2().trim().min(1).max(60).regex(/^[^\r\n\t|]+$/, { message: "Use one line without |" })
25047
+ name: string$2().trim().min(1).max(60).refine((value) => !STACK_NOT_LISTED_FORBIDDEN.test(value), { message: "Use one line without |" })
24908
25048
  })).max(20).default([])
24909
25049
  }).superRefine((declaration, ctx) => {
24910
25050
  if (declaration.entries.length === 0 && declaration.notListed.length === 0) ctx.addIssue({
@@ -24915,16 +25055,17 @@ const stackDeclarationSchema = object({
24915
25055
  const chosen = new Set(declaration.entries);
24916
25056
  declaration.entries.forEach((id, index) => {
24917
25057
  const entry = BY_ID.get(id);
24918
- if (entry?.facet === "framework" && !entry.languages.some((language) => chosen.has(language))) ctx.addIssue({
25058
+ const parents = entry ? stackEntryParents(entry) : [];
25059
+ if (entry && parents.length > 0 && !parents.some((parent) => chosen.has(parent))) ctx.addIssue({
24919
25060
  code: "custom",
24920
25061
  path: ["entries", index],
24921
- message: `${entry.label} needs one of its languages: ${entry.languages.map((l) => stackEntry(l).label).join(", ")}`
25062
+ message: `${entry.label} needs one of: ${parents.map((p) => stackEntry(p).label).join(", ")}`
24922
25063
  });
24923
25064
  });
24924
25065
  const seen = /* @__PURE__ */ new Set();
24925
25066
  declaration.notListed.forEach(({ facet, name }, index) => {
24926
25067
  const key = name.toLowerCase();
24927
- const listed = STACK_CATALOGUE.find((entry) => entry.facet === facet && namesOf(entry).has(key));
25068
+ const listed = catalogueEntryNamed(facet, name);
24928
25069
  if (listed) ctx.addIssue({
24929
25070
  code: "custom",
24930
25071
  path: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1147",
3
+ "version": "0.37.0-dev.1148",
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",