@taiga-ai/mcp-server 0.37.0-dev.1134 → 0.37.0-dev.1136

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 +630 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24307,6 +24307,636 @@ const ECOSYSTEMS = [
24307
24307
  "other"
24308
24308
  ];
24309
24309
  //#endregion
24310
+ //#region ../../packages/types/dist/stack-catalogue.js
24311
+ /**
24312
+ * The stack catalogue (PRO-4618, P-PRO-219): one typed list of what an
24313
+ * organization builds with, read by web, API, MCP and agents.
24314
+ *
24315
+ * It replaces the flat `ECOSYSTEMS` list as the vocabulary of the stack. That
24316
+ * list mixed tiers (a framework, a language and a platform were all one kind
24317
+ * of answer), so a team writing plain PHP, PowerShell scripts or Bicep had
24318
+ * nothing true to tick. Here every entry has a facet, and a framework sits
24319
+ * under the language or languages it is written in.
24320
+ *
24321
+ * What it offers is what the Factory can actually build and test, checked
24322
+ * against its build image (factory-vm `Dockerfile`, `image/toolchain-check.sh`)
24323
+ * on 2026-11-12, plus the existing Salesforce choice: Apex compiles only
24324
+ * inside an org, so the customer's pipeline stays the gate that runs it
24325
+ * (PRO-4690). Swift is absent because the Factory runs on Linux and iOS never
24326
+ * will; Dart comes only with Flutter (PRO-4689). Anything else is declared as
24327
+ * "not listed" in its facet: named in the policy, promising no builds.
24328
+ *
24329
+ * Version control is not a facet: the connected forge already says it. CI/CD
24330
+ * is, because a GitHub repository can be built by Jenkins (`CI_SYSTEMS`).
24331
+ *
24332
+ * Stored `ECOSYSTEMS` values keep working: `ecosystemCatalogueEntries` maps
24333
+ * each onto the entries it always meant. Until the policy composes from the
24334
+ * catalogue (PRO-4619) nothing a customer sees reads this list.
24335
+ */
24336
+ const STACK_FACETS = [
24337
+ "language",
24338
+ "framework",
24339
+ "iac",
24340
+ "scripting",
24341
+ "data_store",
24342
+ "ci_cd"
24343
+ ];
24344
+ const LANGUAGES = {
24345
+ typescript: {
24346
+ label: "TypeScript / JavaScript",
24347
+ sublabel: "Node.js",
24348
+ detectors: {
24349
+ linguist: ["TypeScript", "JavaScript"],
24350
+ topics: [
24351
+ "typescript",
24352
+ "javascript",
24353
+ "nodejs",
24354
+ "node"
24355
+ ],
24356
+ files: ["package.json", "tsconfig.json"]
24357
+ }
24358
+ },
24359
+ python: {
24360
+ label: "Python",
24361
+ detectors: {
24362
+ linguist: ["Python"],
24363
+ topics: ["python"],
24364
+ files: [
24365
+ "pyproject.toml",
24366
+ "requirements.txt",
24367
+ "setup.py",
24368
+ "Pipfile"
24369
+ ]
24370
+ }
24371
+ },
24372
+ java: {
24373
+ label: "Java",
24374
+ detectors: {
24375
+ linguist: ["Java"],
24376
+ topics: ["java"],
24377
+ files: [
24378
+ "pom.xml",
24379
+ "build.gradle",
24380
+ "build.gradle.kts"
24381
+ ]
24382
+ }
24383
+ },
24384
+ kotlin: {
24385
+ label: "Kotlin",
24386
+ detectors: {
24387
+ linguist: ["Kotlin"],
24388
+ topics: ["kotlin"]
24389
+ }
24390
+ },
24391
+ scala: {
24392
+ label: "Scala",
24393
+ detectors: {
24394
+ linguist: ["Scala"],
24395
+ topics: ["scala"],
24396
+ files: ["build.sbt"]
24397
+ }
24398
+ },
24399
+ csharp: {
24400
+ label: "C# / .NET",
24401
+ detectors: {
24402
+ linguist: ["C#", "F#"],
24403
+ topics: ["dotnet", "csharp"],
24404
+ files: [
24405
+ "*.csproj",
24406
+ "*.sln",
24407
+ "*.fsproj",
24408
+ "global.json"
24409
+ ]
24410
+ }
24411
+ },
24412
+ go: {
24413
+ label: "Go",
24414
+ detectors: {
24415
+ linguist: ["Go"],
24416
+ topics: ["go", "golang"],
24417
+ files: ["go.mod"]
24418
+ }
24419
+ },
24420
+ rust: {
24421
+ label: "Rust",
24422
+ detectors: {
24423
+ linguist: ["Rust"],
24424
+ topics: ["rust"],
24425
+ files: ["Cargo.toml"]
24426
+ }
24427
+ },
24428
+ php: {
24429
+ label: "PHP",
24430
+ detectors: {
24431
+ linguist: ["PHP"],
24432
+ topics: ["php"],
24433
+ files: ["composer.json"]
24434
+ }
24435
+ },
24436
+ ruby: {
24437
+ label: "Ruby",
24438
+ detectors: {
24439
+ linguist: ["Ruby"],
24440
+ topics: ["ruby"],
24441
+ files: ["Gemfile"]
24442
+ }
24443
+ },
24444
+ cpp: {
24445
+ label: "C / C++",
24446
+ detectors: {
24447
+ linguist: ["C", "C++"],
24448
+ topics: ["cpp", "c"],
24449
+ files: ["CMakeLists.txt", "meson.build"]
24450
+ }
24451
+ },
24452
+ elixir: {
24453
+ label: "Elixir",
24454
+ detectors: {
24455
+ linguist: ["Elixir"],
24456
+ topics: ["elixir"],
24457
+ files: ["mix.exs"]
24458
+ }
24459
+ },
24460
+ dart: {
24461
+ label: "Dart",
24462
+ sublabel: "Flutter",
24463
+ detectors: {
24464
+ linguist: ["Dart"],
24465
+ topics: ["dart", "flutter"],
24466
+ files: ["pubspec.yaml"]
24467
+ }
24468
+ },
24469
+ apex: {
24470
+ label: "Apex",
24471
+ sublabel: "Salesforce",
24472
+ detectors: {
24473
+ linguist: ["Apex"],
24474
+ topics: [
24475
+ "salesforce",
24476
+ "sfdx",
24477
+ "salesforce-dx",
24478
+ "apex"
24479
+ ],
24480
+ files: ["sfdx-project.json"]
24481
+ }
24482
+ }
24483
+ };
24484
+ const FRAMEWORKS = {
24485
+ react: {
24486
+ label: "React",
24487
+ languages: ["typescript"],
24488
+ detectors: { topics: ["react", "reactjs"] }
24489
+ },
24490
+ nextjs: {
24491
+ label: "Next.js",
24492
+ languages: ["typescript"],
24493
+ detectors: {
24494
+ topics: ["nextjs"],
24495
+ files: [
24496
+ "next.config.js",
24497
+ "next.config.mjs",
24498
+ "next.config.ts"
24499
+ ]
24500
+ }
24501
+ },
24502
+ angular: {
24503
+ label: "Angular",
24504
+ languages: ["typescript"],
24505
+ detectors: {
24506
+ topics: ["angular"],
24507
+ files: ["angular.json"]
24508
+ }
24509
+ },
24510
+ vue: {
24511
+ label: "Vue",
24512
+ languages: ["typescript"],
24513
+ detectors: {
24514
+ linguist: ["Vue"],
24515
+ topics: ["vue", "vuejs"]
24516
+ }
24517
+ },
24518
+ nuxt: {
24519
+ label: "Nuxt",
24520
+ languages: ["typescript"],
24521
+ detectors: {
24522
+ topics: ["nuxt", "nuxtjs"],
24523
+ files: ["nuxt.config.ts", "nuxt.config.js"]
24524
+ }
24525
+ },
24526
+ sveltekit: {
24527
+ label: "SvelteKit",
24528
+ languages: ["typescript"],
24529
+ detectors: {
24530
+ linguist: ["Svelte"],
24531
+ topics: ["svelte", "sveltekit"],
24532
+ files: ["svelte.config.js"]
24533
+ }
24534
+ },
24535
+ react_native: {
24536
+ label: "React Native",
24537
+ languages: ["typescript"],
24538
+ detectors: {
24539
+ topics: ["react-native", "expo"],
24540
+ files: ["eas.json"]
24541
+ }
24542
+ },
24543
+ nestjs: {
24544
+ label: "NestJS",
24545
+ languages: ["typescript"],
24546
+ detectors: {
24547
+ topics: ["nestjs"],
24548
+ files: ["nest-cli.json"]
24549
+ }
24550
+ },
24551
+ fastify: {
24552
+ label: "Fastify",
24553
+ languages: ["typescript"],
24554
+ detectors: { topics: ["fastify"] }
24555
+ },
24556
+ express: {
24557
+ label: "Express",
24558
+ languages: ["typescript"],
24559
+ detectors: { topics: ["express", "expressjs"] }
24560
+ },
24561
+ django: {
24562
+ label: "Django",
24563
+ languages: ["python"],
24564
+ detectors: {
24565
+ topics: ["django"],
24566
+ files: ["manage.py"]
24567
+ }
24568
+ },
24569
+ fastapi: {
24570
+ label: "FastAPI",
24571
+ languages: ["python"],
24572
+ detectors: { topics: ["fastapi"] }
24573
+ },
24574
+ flask: {
24575
+ label: "Flask",
24576
+ languages: ["python"],
24577
+ detectors: { topics: ["flask"] }
24578
+ },
24579
+ spring_boot: {
24580
+ label: "Spring Boot",
24581
+ languages: ["java", "kotlin"],
24582
+ detectors: { topics: ["spring-boot", "spring"] }
24583
+ },
24584
+ quarkus: {
24585
+ label: "Quarkus",
24586
+ languages: ["java", "kotlin"],
24587
+ detectors: { topics: ["quarkus"] }
24588
+ },
24589
+ micronaut: {
24590
+ label: "Micronaut",
24591
+ languages: ["java", "kotlin"],
24592
+ detectors: { topics: ["micronaut"] }
24593
+ },
24594
+ ktor: {
24595
+ label: "Ktor",
24596
+ languages: ["kotlin"],
24597
+ detectors: { topics: ["ktor"] }
24598
+ },
24599
+ aspnet_core: {
24600
+ label: "ASP.NET Core",
24601
+ languages: ["csharp"],
24602
+ detectors: { topics: [
24603
+ "aspnetcore",
24604
+ "asp-net-core",
24605
+ "aspnet-core"
24606
+ ] }
24607
+ },
24608
+ blazor: {
24609
+ label: "Blazor",
24610
+ languages: ["csharp"],
24611
+ detectors: {
24612
+ topics: ["blazor"],
24613
+ files: ["*.razor"]
24614
+ }
24615
+ },
24616
+ laravel: {
24617
+ label: "Laravel",
24618
+ languages: ["php"],
24619
+ detectors: {
24620
+ topics: ["laravel"],
24621
+ files: ["artisan"]
24622
+ }
24623
+ },
24624
+ symfony: {
24625
+ label: "Symfony",
24626
+ languages: ["php"],
24627
+ detectors: {
24628
+ topics: ["symfony"],
24629
+ files: ["symfony.lock"]
24630
+ }
24631
+ },
24632
+ drupal: {
24633
+ label: "Drupal",
24634
+ languages: ["php"],
24635
+ detectors: { topics: ["drupal"] }
24636
+ },
24637
+ rails: {
24638
+ label: "Rails",
24639
+ languages: ["ruby"],
24640
+ detectors: {
24641
+ topics: ["rails", "ruby-on-rails"],
24642
+ files: ["bin/rails", "config/routes.rb"]
24643
+ }
24644
+ },
24645
+ phoenix: {
24646
+ label: "Phoenix",
24647
+ languages: ["elixir"],
24648
+ detectors: { topics: ["phoenix", "phoenix-framework"] }
24649
+ },
24650
+ flutter: {
24651
+ label: "Flutter",
24652
+ languages: ["dart"],
24653
+ detectors: { topics: ["flutter"] }
24654
+ },
24655
+ lwc: {
24656
+ label: "Lightning Web Components",
24657
+ languages: ["apex"],
24658
+ detectors: {
24659
+ topics: ["lightning-web-components", "lwc"],
24660
+ files: ["force-app/main/default/lwc"]
24661
+ }
24662
+ }
24663
+ };
24664
+ const IAC = {
24665
+ terraform: {
24666
+ label: "Terraform / OpenTofu",
24667
+ detectors: {
24668
+ linguist: ["HCL"],
24669
+ topics: ["terraform", "opentofu"],
24670
+ files: ["*.tf", "*.tofu"]
24671
+ }
24672
+ },
24673
+ bicep: {
24674
+ label: "Bicep / ARM",
24675
+ detectors: {
24676
+ linguist: ["Bicep"],
24677
+ topics: ["bicep", "arm-templates"],
24678
+ files: ["*.bicep", "azuredeploy.json"]
24679
+ }
24680
+ },
24681
+ cloudformation: {
24682
+ label: "CloudFormation / SAM",
24683
+ detectors: {
24684
+ topics: ["cloudformation", "aws-sam"],
24685
+ files: ["template.yaml", "samconfig.toml"]
24686
+ }
24687
+ },
24688
+ aws_cdk: {
24689
+ label: "AWS CDK",
24690
+ detectors: {
24691
+ topics: ["aws-cdk", "cdk"],
24692
+ files: ["cdk.json"]
24693
+ }
24694
+ },
24695
+ pulumi: {
24696
+ label: "Pulumi",
24697
+ detectors: {
24698
+ topics: ["pulumi"],
24699
+ files: ["Pulumi.yaml"]
24700
+ }
24701
+ },
24702
+ kubernetes: {
24703
+ label: "Kubernetes manifests",
24704
+ detectors: { topics: ["kubernetes", "k8s"] }
24705
+ },
24706
+ helm: {
24707
+ label: "Helm / Kustomize",
24708
+ detectors: {
24709
+ topics: ["helm", "kustomize"],
24710
+ files: ["Chart.yaml", "kustomization.yaml"]
24711
+ }
24712
+ },
24713
+ ansible: {
24714
+ label: "Ansible",
24715
+ detectors: {
24716
+ topics: ["ansible"],
24717
+ files: ["ansible.cfg", "playbook.yml"]
24718
+ }
24719
+ },
24720
+ docker: {
24721
+ label: "Dockerfile / Compose",
24722
+ detectors: {
24723
+ linguist: ["Dockerfile"],
24724
+ topics: ["docker", "docker-compose"],
24725
+ files: [
24726
+ "Dockerfile",
24727
+ "compose.yaml",
24728
+ "docker-compose.yml"
24729
+ ]
24730
+ }
24731
+ }
24732
+ };
24733
+ const SCRIPTING = {
24734
+ powershell: {
24735
+ label: "PowerShell",
24736
+ detectors: {
24737
+ linguist: ["PowerShell"],
24738
+ topics: ["powershell"],
24739
+ files: ["*.ps1", "*.psm1"]
24740
+ }
24741
+ },
24742
+ bash: {
24743
+ label: "Bash / POSIX shell",
24744
+ detectors: {
24745
+ linguist: ["Shell"],
24746
+ topics: ["bash", "shell"],
24747
+ files: ["*.sh"]
24748
+ }
24749
+ },
24750
+ python_scripts: {
24751
+ label: "Python scripts",
24752
+ detectors: {}
24753
+ },
24754
+ make: {
24755
+ label: "Make",
24756
+ detectors: {
24757
+ linguist: ["Makefile"],
24758
+ files: ["Makefile"]
24759
+ }
24760
+ }
24761
+ };
24762
+ const DATA_STORES = {
24763
+ postgresql: {
24764
+ label: "PostgreSQL",
24765
+ detectors: { topics: ["postgresql", "postgres"] }
24766
+ },
24767
+ mysql: {
24768
+ label: "MySQL / MariaDB",
24769
+ detectors: { topics: ["mysql", "mariadb"] }
24770
+ },
24771
+ sql_server: {
24772
+ label: "SQL Server",
24773
+ detectors: {
24774
+ linguist: ["TSQL"],
24775
+ topics: ["sql-server", "mssql"]
24776
+ }
24777
+ },
24778
+ oracle: {
24779
+ label: "Oracle",
24780
+ detectors: {
24781
+ linguist: ["PLSQL"],
24782
+ topics: ["oracle", "oracle-database"]
24783
+ }
24784
+ },
24785
+ mongodb: {
24786
+ label: "MongoDB",
24787
+ detectors: { topics: ["mongodb"] }
24788
+ },
24789
+ redis: {
24790
+ label: "Redis / Valkey",
24791
+ detectors: { topics: ["redis", "valkey"] }
24792
+ },
24793
+ dynamodb: {
24794
+ label: "DynamoDB",
24795
+ detectors: { topics: ["dynamodb"] }
24796
+ },
24797
+ cosmos_db: {
24798
+ label: "Cosmos DB",
24799
+ detectors: { topics: ["cosmosdb", "azure-cosmos-db"] }
24800
+ }
24801
+ };
24802
+ const CI_CD = {
24803
+ github_actions: {
24804
+ label: "GitHub Actions",
24805
+ ciSystem: "github_actions",
24806
+ detectors: { files: [".github/workflows/*.yml", ".github/workflows/*.yaml"] }
24807
+ },
24808
+ gitlab_ci: {
24809
+ label: "GitLab CI",
24810
+ ciSystem: "gitlab_ci",
24811
+ detectors: { files: [".gitlab-ci.yml"] }
24812
+ },
24813
+ azure_pipelines: {
24814
+ label: "Azure Pipelines",
24815
+ ciSystem: "azure_pipelines",
24816
+ detectors: { files: ["azure-pipelines.yml", "azure-pipelines.yaml"] }
24817
+ },
24818
+ jenkins: {
24819
+ label: "Jenkins",
24820
+ ciSystem: "jenkins",
24821
+ detectors: { files: ["Jenkinsfile"] }
24822
+ },
24823
+ circleci: {
24824
+ label: "CircleCI",
24825
+ ciSystem: "circleci",
24826
+ detectors: { files: [".circleci/config.yml"] }
24827
+ },
24828
+ buildkite: {
24829
+ label: "Buildkite",
24830
+ ciSystem: "buildkite",
24831
+ detectors: { files: [".buildkite/pipeline.yml"] }
24832
+ },
24833
+ bitbucket_pipelines: {
24834
+ label: "Bitbucket Pipelines",
24835
+ ciSystem: "bitbucket_pipelines",
24836
+ detectors: { files: ["bitbucket-pipelines.yml"] }
24837
+ },
24838
+ teamcity: {
24839
+ label: "TeamCity",
24840
+ ciSystem: "external",
24841
+ detectors: { files: [".teamcity/settings.kts"] }
24842
+ },
24843
+ aws_codebuild: {
24844
+ label: "AWS CodeBuild / CodePipeline",
24845
+ ciSystem: "external",
24846
+ detectors: { files: ["buildspec.yml"] }
24847
+ },
24848
+ google_cloud_build: {
24849
+ label: "Google Cloud Build",
24850
+ ciSystem: "external",
24851
+ detectors: { files: ["cloudbuild.yaml", "cloudbuild.yml"] }
24852
+ }
24853
+ };
24854
+ function entries(facet, group) {
24855
+ return Object.entries(group).map(([id, shape]) => ({
24856
+ id,
24857
+ facet,
24858
+ label: shape.label,
24859
+ ...shape.sublabel ? { sublabel: shape.sublabel } : {},
24860
+ languages: "languages" in shape ? shape.languages : [],
24861
+ ciSystem: "ciSystem" in shape ? shape.ciSystem : null,
24862
+ detectors: shape.detectors
24863
+ }));
24864
+ }
24865
+ /** Every entry, facet by facet, in the order the screen offers them. */
24866
+ const STACK_CATALOGUE = [
24867
+ ...entries("language", LANGUAGES),
24868
+ ...entries("framework", FRAMEWORKS),
24869
+ ...entries("iac", IAC),
24870
+ ...entries("scripting", SCRIPTING),
24871
+ ...entries("data_store", DATA_STORES),
24872
+ ...entries("ci_cd", CI_CD)
24873
+ ];
24874
+ const STACK_ENTRY_IDS = STACK_CATALOGUE.map((entry) => entry.id);
24875
+ const BY_ID = new Map(STACK_CATALOGUE.map((entry) => [entry.id, entry]));
24876
+ function stackEntry(id) {
24877
+ const entry = BY_ID.get(id);
24878
+ if (!entry) throw new Error(`Unknown stack catalogue entry: ${id}`);
24879
+ return entry;
24880
+ }
24881
+ /**
24882
+ * Every name an entry answers to, lowercased: its id, its label, each part of
24883
+ * a combined label ("TypeScript / JavaScript" is also JavaScript), and its
24884
+ * sublabel ("Node.js").
24885
+ */
24886
+ function namesOf(entry) {
24887
+ const names = [
24888
+ entry.id,
24889
+ entry.label,
24890
+ ...entry.label.split("/"),
24891
+ ...entry.sublabel ? [entry.sublabel] : []
24892
+ ];
24893
+ return new Set(names.map((name) => name.trim().toLowerCase()).filter((name) => name.length > 0));
24894
+ }
24895
+ object({
24896
+ entries: array(_enum(STACK_ENTRY_IDS)).max(STACK_ENTRY_IDS.length * 2),
24897
+ notListed: array(object({
24898
+ facet: _enum(STACK_FACETS),
24899
+ name: string$2().trim().min(1).max(60)
24900
+ })).max(20).default([])
24901
+ }).superRefine((declaration, ctx) => {
24902
+ const chosen = new Set(declaration.entries);
24903
+ declaration.entries.forEach((id, index) => {
24904
+ const entry = BY_ID.get(id);
24905
+ if (entry?.facet === "framework" && !entry.languages.some((language) => chosen.has(language))) ctx.addIssue({
24906
+ code: "custom",
24907
+ path: ["entries", index],
24908
+ message: `${entry.label} needs one of its languages: ${entry.languages.map((l) => stackEntry(l).label).join(", ")}`
24909
+ });
24910
+ });
24911
+ const seen = /* @__PURE__ */ new Set();
24912
+ declaration.notListed.forEach(({ facet, name }, index) => {
24913
+ const key = name.toLowerCase();
24914
+ const listed = STACK_CATALOGUE.find((entry) => entry.facet === facet && namesOf(entry).has(key));
24915
+ if (listed) ctx.addIssue({
24916
+ code: "custom",
24917
+ path: [
24918
+ "notListed",
24919
+ index,
24920
+ "name"
24921
+ ],
24922
+ message: `${listed.label} is in the catalogue`
24923
+ });
24924
+ else if (seen.has(`${facet}:${key}`)) ctx.addIssue({
24925
+ code: "custom",
24926
+ path: [
24927
+ "notListed",
24928
+ index,
24929
+ "name"
24930
+ ],
24931
+ message: `${name} is named twice`
24932
+ });
24933
+ seen.add(`${facet}:${key}`);
24934
+ });
24935
+ }).transform((declaration) => ({
24936
+ ...declaration,
24937
+ entries: [...new Set(declaration.entries)]
24938
+ }));
24939
+ //#endregion
24310
24940
  //#region ../../packages/types/dist/lenient-schema.js
24311
24941
  /**
24312
24942
  * Building blocks for reading JSON that arrives untyped -- a stored jsonb
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1134",
3
+ "version": "0.37.0-dev.1136",
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",