@taiga-ai/mcp-server 0.37.0-dev.1111 → 0.37.0-dev.1113

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 +17 -45
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24425,8 +24425,8 @@ const AUTO_TOP_UP_LIMITS = {
24425
24425
  * never `UK`. Kept as a constant rather than read from `Intl.DisplayNames`
24426
24426
  * so the API and every browser see the same list, whatever their ICU data.
24427
24427
  *
24428
- * This is the set a tenant or a product market may name once the
24429
- * `globalCountries` flag is on (`offeredCountries`). It says nothing about
24428
+ * This is the set a tenant or a product market may name
24429
+ * (`offeredCountries`). It says nothing about
24430
24430
  * what Taiga knows of a country's law: that is its region
24431
24431
  * (`COUNTRY_TO_REGION`) and its layers in the API.
24432
24432
  */
@@ -25642,8 +25642,7 @@ const EU_COUNTRIES = [
25642
25642
  /**
25643
25643
  * EEA countries outside the EU, all three, so {@link COUNTRIES} covers the
25644
25644
  * whole EU and EEA (PRO-3791). Only Norway has a country layer; Iceland and
25645
- * Liechtenstein get the `eea` region layer alone, and neither is offered as a
25646
- * Taiga tenant country ({@link offeredCountries}).
25645
+ * Liechtenstein get the `eea` region layer alone.
25647
25646
  */
25648
25647
  const EEA_COUNTRIES = [
25649
25648
  {
@@ -25661,7 +25660,7 @@ const EEA_COUNTRIES = [
25661
25660
  ];
25662
25661
  /**
25663
25662
  * The United Kingdom (PRO-3420): ISO code `GB`, neither EU nor EEA, in the
25664
- * `uk` region. Offered only while the `regulations` flag is on.
25663
+ * `uk` region.
25665
25664
  */
25666
25665
  const UK_COUNTRIES = [{
25667
25666
  code: "GB",
@@ -25669,9 +25668,8 @@ const UK_COUNTRIES = [{
25669
25668
  }];
25670
25669
  /**
25671
25670
  * The United States (PRO-4404, PRO-4409): ISO code `US`, the one country of
25672
- * the `us` region. Not in {@link COUNTRIES}: it is offered only while the
25673
- * `globalCountries` flag is on, with the rest of the world
25674
- * ({@link offeredCountries}), and its region resolves only then.
25671
+ * the `us` region. Not in {@link COUNTRIES}: it is offered with the rest of
25672
+ * the world ({@link offeredCountries}).
25675
25673
  */
25676
25674
  const US_COUNTRIES = [{
25677
25675
  code: "US",
@@ -25684,37 +25682,14 @@ const US_COUNTRIES = [{
25684
25682
  ];
25685
25683
  /** Countries available during closed beta. Expand as we open new markets. */
25686
25684
  const BETA_COUNTRIES = ["FI"];
25687
- /**
25688
- * Countries offered only while the `regulations` flag is on (PRO-3419,
25689
- * PRO-3420): every EU member but Finland, and Norway. Each of them has a
25690
- * national layer of its own (`overlays/countries/`), independently reviewed in
25691
- * PRO-4371. A country without one would say so on the Regulations page
25692
- * (`TenantRegulations.context.countryLayer`). Iceland and Liechtenstein stay
25693
- * unoffered. They go with the flag when it is removed.
25694
- */
25695
- const PREVIEW_COUNTRIES = [
25696
- ...EU_COUNTRIES.map((c) => c.code).filter((code) => !BETA_COUNTRIES.includes(code)),
25697
- "NO",
25698
- "GB"
25699
- ];
25700
25685
  EU_COUNTRIES.filter((c) => BETA_COUNTRIES.includes(c.code));
25701
- /** Every country Taiga can name is offered: what a stored country may be, whatever the flags. */
25702
- const EVERY_COUNTRY_OFFERED = {
25703
- regulations: true,
25704
- globalCountries: true
25705
- };
25706
25686
  /**
25707
- * The countries a tenant may choose. The caller passes its own resolution of
25708
- * the flags, so the API's validation and the web's picker cannot disagree
25709
- * about which countries exist. With `globalCountries` on, every ISO 3166
25710
- * country, in name order. It opens nothing while `regulations` is off: what a
25711
- * country outside every region gets (the no-layer notice, the market step
25712
- * that brings its EU markets' law) is regulations content.
25687
+ * The countries a tenant or a product market may name (PRO-3419, PRO-4404):
25688
+ * every ISO 3166 country, in name order. One list, so the API's validation
25689
+ * and the web's picker cannot disagree about which countries exist.
25713
25690
  */
25714
- function offeredCountries(offer) {
25715
- if (!offer.regulations) return [...BETA_COUNTRIES];
25716
- if (offer.globalCountries) return ISO_COUNTRIES.map((c) => c.code);
25717
- return [...BETA_COUNTRIES, ...PREVIEW_COUNTRIES];
25691
+ function offeredCountries() {
25692
+ return ISO_COUNTRIES.map((c) => c.code);
25718
25693
  }
25719
25694
  Object.fromEntries([
25720
25695
  ...EU_COUNTRIES.map((c) => [c.code, "eu"]),
@@ -25730,8 +25705,7 @@ Object.fromEntries([
25730
25705
  *
25731
25706
  * Computed on read from the tenant's context and its published policies, never
25732
25707
  * stored, so a regulation's status can change without republishing anyone's
25733
- * documents. Served by `GET /v1/tenants/current/regulations` while the
25734
- * `regulations` flag is on.
25708
+ * documents. Served by `GET /v1/tenants/current/regulations`.
25735
25709
  */
25736
25710
  /**
25737
25711
  * Where a regulation stands in the tenant's jurisdiction.
@@ -27737,16 +27711,14 @@ const CHANGE_REQUEST_MAX_CHARS = 1e4;
27737
27711
  * or document shows. One per product, raised while any such
27738
27712
  * control has no current attestation or has one about to
27739
27713
  * run out, and answered by attesting them, on the
27740
- * Regulations tab or in Action required's pane. Only with
27741
- * the `regulations` flag on. Advisory.
27714
+ * Regulations tab or in Action required's pane. Advisory.
27742
27715
  * - `scope_question` a product's scope questions wait on a person (PRO-4425):
27743
27716
  * what the product is and does, as far as the organization's
27744
27717
  * regulations care, which Discovery proposed an answer to
27745
27718
  * and nobody confirmed, or proposed anew against a confirmed
27746
27719
  * answer. One per product, raised while any asked question
27747
27720
  * has no confirmed answer or a newer proposal, and answered
27748
- * by confirming each on the Regulations tab. Only with the
27749
- * `productScope` flag on. Advisory.
27721
+ * by confirming each on the Regulations tab. Advisory.
27750
27722
  */
27751
27723
  const REQUEST_KINDS = [
27752
27724
  "stop",
@@ -28332,7 +28304,7 @@ object({
28332
28304
  * does, the way `MARKET_CONTENT_COUNTRIES` serves the market step.
28333
28305
  *
28334
28306
  * Nothing here changes any tenant's documents or any product's conformance:
28335
- * what reads the answers lands behind the `productScope` flag.
28307
+ * what reads the answers does.
28336
28308
  */
28337
28309
  /**
28338
28310
  * The closed vocabulary. A trigger names a fact about the product, not an act:
@@ -29480,8 +29452,8 @@ object({
29480
29452
  });
29481
29453
  /** A value GitHub's redirect carries back: a state token, or a one-time code. */
29482
29454
  const githubCallbackSecret = string$2().trim().min(1).max(1024);
29483
- /** Every country Taiga knows; the server refuses one it does not offer yet. */
29484
- const KNOWN_COUNTRIES = offeredCountries(EVERY_COUNTRY_OFFERED);
29455
+ /** Every country Taiga knows. */
29456
+ const KNOWN_COUNTRIES = offeredCountries();
29485
29457
  const knownCountry = string$2().length(2).refine((code) => KNOWN_COUNTRIES.includes(code), { message: "Unsupported country" });
29486
29458
  strictObject({
29487
29459
  industries: array(_enum(SUPPORTED_INDUSTRIES)).min(1).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1111",
3
+ "version": "0.37.0-dev.1113",
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",