@taiga-ai/mcp-server 0.36.0-dev.786 → 0.36.0-dev.788

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 +566 -27
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1079,7 +1079,7 @@ const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9
1079
1079
  /** Returns a regex for validating an RFC 9562/4122 UUID.
1080
1080
  *
1081
1081
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
1082
- const uuid = (version) => {
1082
+ const uuid$1 = (version) => {
1083
1083
  if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
1084
1084
  return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
1085
1085
  };
@@ -1619,8 +1619,8 @@ const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
1619
1619
  v8: 8
1620
1620
  }[def.version];
1621
1621
  if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
1622
- def.pattern ?? (def.pattern = uuid(v));
1623
- } else def.pattern ?? (def.pattern = uuid());
1622
+ def.pattern ?? (def.pattern = uuid$1(v));
1623
+ } else def.pattern ?? (def.pattern = uuid$1());
1624
1624
  $ZodStringFormat.init(inst, def);
1625
1625
  });
1626
1626
  const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
@@ -5676,6 +5676,14 @@ function object(shape, params) {
5676
5676
  };
5677
5677
  return new ZodObject(def);
5678
5678
  }
5679
+ function strictObject(shape, params) {
5680
+ return new ZodObject({
5681
+ type: "object",
5682
+ shape,
5683
+ catchall: never(),
5684
+ ...normalizeParams(params)
5685
+ });
5686
+ }
5679
5687
  function looseObject(shape, params) {
5680
5688
  return new ZodObject({
5681
5689
  type: "object",
@@ -24106,6 +24114,25 @@ var TaigaClient = class {
24106
24114
  }
24107
24115
  };
24108
24116
  //#endregion
24117
+ //#region ../../packages/types/dist/clouds.js
24118
+ /**
24119
+ * Cloud provider platforms that Taiga can connect to.
24120
+ */
24121
+ const CLOUD_PROVIDERS = [
24122
+ "aws",
24123
+ "gcp",
24124
+ "azure",
24125
+ "upcloud",
24126
+ "kubernetes",
24127
+ "digitalocean",
24128
+ "vercel",
24129
+ "railway",
24130
+ "render",
24131
+ "fly",
24132
+ "on_prem",
24133
+ "other"
24134
+ ];
24135
+ //#endregion
24109
24136
  //#region ../../packages/types/dist/lenient-schema.js
24110
24137
  /**
24111
24138
  * Building blocks for reading JSON that arrives untyped -- a stored jsonb
@@ -24167,6 +24194,14 @@ const optionalUuid = string$2().uuid().optional();
24167
24194
  */
24168
24195
  const optionalLineAnchor = number$1().int().min(0).optional().transform((v) => v ? v : void 0);
24169
24196
  //#endregion
24197
+ //#region ../../packages/types/dist/entitlements.js
24198
+ /**
24199
+ * Which agent implementation serves a planning job or build run (PRO-1331).
24200
+ * Recorded on `agent_jobs.runtime` / `build_runs.runtime` at dispatch so
24201
+ * outcomes can be compared per runtime and the UI can badge runs.
24202
+ */
24203
+ const AGENT_RUNTIMES = ["legacy", "engineer"];
24204
+ //#endregion
24170
24205
  //#region ../../packages/types/dist/tenants.js
24171
24206
  const TENANT_DOCUMENT_TYPES = [
24172
24207
  "policy_security",
@@ -24382,6 +24417,14 @@ Object.fromEntries([...EU_COUNTRIES.map((c) => [c.code, "eu"]), ...EEA_COUNTRIES
24382
24417
  //#endregion
24383
24418
  //#region ../../packages/types/dist/factories.js
24384
24419
  const FACTORY_DOCUMENT_TYPES = ["factory_instructions"];
24420
+ /** The single canonical factory-document type (the free-form Factory Instructions doc). */
24421
+ const FACTORY_INSTRUCTIONS_TYPE = "factory_instructions";
24422
+ /**
24423
+ * The pre-PRO-1671 value of that type. Old clients still name it in URLs
24424
+ * (`/factories/:id/documents/team_instructions`), so the API accepts it as
24425
+ * an alias for a deprecation window.
24426
+ */
24427
+ const LEGACY_FACTORY_INSTRUCTIONS_TYPE = "team_instructions";
24385
24428
  //#endregion
24386
24429
  //#region ../../packages/types/dist/forge.js
24387
24430
  /** Source-control hosts. `bitbucket` is a stored link provider without an adapter yet. */
@@ -24433,6 +24476,15 @@ const FORGE_SUPPORT = {
24433
24476
  ],
24434
24477
  bitbucket: []
24435
24478
  };
24479
+ /**
24480
+ * Whether a repository link under this forge may name a GitHub App
24481
+ * installation's repository: only GitHub's. Stored under another forge, the
24482
+ * link would be dispatched with GitHub credentials while the rest of its
24483
+ * lifecycle reads it as that forge.
24484
+ */
24485
+ function linksGitHubAppRepositories(provider) {
24486
+ return provider === "github";
24487
+ }
24436
24488
  const FORGE_TERMS = {
24437
24489
  github: {
24438
24490
  name: "GitHub",
@@ -24488,6 +24540,11 @@ const PRODUCT_DOCUMENT_TYPES = [
24488
24540
  "product_instructions"
24489
24541
  ];
24490
24542
  /**
24543
+ * The pre-PRO-1671 value of `product_instructions`. Old clients still name it
24544
+ * in URLs, so the API accepts it as an alias for a deprecation window.
24545
+ */
24546
+ const LEGACY_PRODUCT_INSTRUCTIONS_TYPE = "project_instructions";
24547
+ /**
24491
24548
  * The document types the codebase-intelligence agent can derive from a repo --
24492
24549
  * the valid values for a single-document reality refresh (PRO-1141).
24493
24550
  *
@@ -24583,6 +24640,8 @@ const PRODUCT_DOCUMENT_DISPLAY_NAMES = {
24583
24640
  service_blueprint: "Service Blueprint"
24584
24641
  };
24585
24642
  const PRODUCT_DOCUMENT_ORIGINS = ["plan", "reality"];
24643
+ /** The forges a repository link can name: `FORGE_PROVIDERS`, under the name links have always used. */
24644
+ const VCS_PROVIDERS = FORGE_PROVIDERS;
24586
24645
  //#endregion
24587
24646
  //#region ../../packages/types/dist/route-key.js
24588
24647
  /**
@@ -25541,6 +25600,29 @@ object({
25541
25600
  [...BUILD_RUN_ACTIVE_STATUSES.filter((s) => s !== "reviewing")];
25542
25601
  //#endregion
25543
25602
  //#region ../../packages/types/dist/agents.js
25603
+ const AGENT_JOB_TYPES = [
25604
+ "generate_document",
25605
+ "generate_backlog",
25606
+ "plan_backlog_item",
25607
+ "infer_backlog_dependencies",
25608
+ "deploy",
25609
+ "provision_infrastructure",
25610
+ "health_check",
25611
+ "refresh_reality_docs",
25612
+ "derive_policy_update",
25613
+ "derive_design_from_documents",
25614
+ "sync_design_tokens",
25615
+ "generate_design_component",
25616
+ "maintenance_sweep",
25617
+ "maintenance_verify",
25618
+ "propose_ui_concepts",
25619
+ "iterate_ui_concept",
25620
+ "fill_questionnaire",
25621
+ "read_questionnaire_layout",
25622
+ "generate_ui_direction",
25623
+ "assess_policy_conformance",
25624
+ "replan_run"
25625
+ ];
25544
25626
  /**
25545
25627
  * Why a PROMPTED `generate_backlog` job planned nothing.
25546
25628
  *
@@ -25953,6 +26035,23 @@ const MCP_TOOLSETS = [
25953
26035
  /** Longest request for changes from Taiga (PRO-3035): about four pages of prose. */
25954
26036
  const CHANGE_REQUEST_MAX_CHARS = 1e4;
25955
26037
  //#endregion
26038
+ //#region ../../packages/types/dist/requests.js
26039
+ /** Every way a request can be answered, whatever its kind. */
26040
+ const REQUEST_EXITS = [
26041
+ "resume_run",
26042
+ "replan",
26043
+ "clear",
26044
+ "leave_line",
26045
+ "approve",
26046
+ "reject",
26047
+ "merge",
26048
+ "close",
26049
+ "request_changes",
26050
+ "done",
26051
+ "dismiss",
26052
+ "reviewed"
26053
+ ];
26054
+ //#endregion
25956
26055
  //#region ../../packages/types/dist/maintenance.js
25957
26056
  /**
25958
26057
  * Maintenance taxonomy + API DTOs.
@@ -26278,6 +26377,19 @@ object({
26278
26377
  */
26279
26378
  const MAINTENANCE_LICENSE_FILTER_MAX = 4096;
26280
26379
  //#endregion
26380
+ //#region ../../packages/types/dist/custom-documents.js
26381
+ /**
26382
+ * Shared types for the custom-documents feature: customer-uploaded reference
26383
+ * files (PDFs, Markdown, OpenAPI specs, etc.) indexed into a Bedrock
26384
+ * Knowledge Base for retrieval by Taiga's internal agents.
26385
+ */
26386
+ const CUSTOM_DOCUMENT_STATUSES = [
26387
+ "pending",
26388
+ "ingesting",
26389
+ "ready",
26390
+ "failed"
26391
+ ];
26392
+ //#endregion
26281
26393
  //#region ../../packages/types/dist/design-tokens.js
26282
26394
  /**
26283
26395
  * The brand grounding contract (PRO-929).
@@ -26453,6 +26565,457 @@ object({
26453
26565
  fontSize: lenient(union([string$2(), number$1()]))
26454
26566
  });
26455
26567
  //#endregion
26568
+ //#region ../../packages/types/dist/questionnaires.js
26569
+ /**
26570
+ * Questionnaire filling (PRO-932).
26571
+ *
26572
+ * A customer uploads their own requirement spreadsheet; Taiga answers what the
26573
+ * project's evidence settles, cites the document version each answer rests on,
26574
+ * and hands back the gaps. The register these types describe is the durable
26575
+ * object -- the workbook is an import format on one side and an export format
26576
+ * on the other.
26577
+ */
26578
+ /**
26579
+ * Lifecycle of one questionnaire.
26580
+ *
26581
+ * `filling` is deliberately NOT set by the fill workflow (PRO-1187), and that
26582
+ * is a decision rather than an omission. A status set at the start of a
26583
+ * multi-minute run needs something to clear it when the run does not finish --
26584
+ * and if the worker dies mid-fill, nothing would: `agent_jobs` has a reaper for
26585
+ * stale JOBS, but it knows nothing about this table, so the register would read
26586
+ * `filling` forever. A state nothing can leave is worse than one nothing
26587
+ * enters.
26588
+ *
26589
+ * "Is a fill running" is already answerable, and from the row that has a reaper:
26590
+ * an active `fill_questionnaire` job with this questionnaire as its target.
26591
+ * Wire `filling` up when it comes with a path off it.
26592
+ */
26593
+ /**
26594
+ * `reading` and `needs_columns` are the import itself (PRO-1506). A workbook
26595
+ * is stored and its row exists from the first byte; the column read runs as
26596
+ * a job. `reading` is that job in flight; `needs_columns` is the read done
26597
+ * without confidence, waiting for a person to confirm the map. Only once the
26598
+ * map is confirmed do items exist and the row becomes `draft`.
26599
+ */
26600
+ /**
26601
+ * A sheet map's bounds, Excel's own: a column index becomes a column letter
26602
+ * in a cell reference the export writes to, so an unbounded one names
26603
+ * whatever it likes.
26604
+ */
26605
+ const EXCEL_MAX_COLUMN = 16384;
26606
+ const EXCEL_MAX_ROW = 1048576;
26607
+ //#endregion
26608
+ //#region ../../packages/types/dist/product-network.js
26609
+ /**
26610
+ * Where an engineer build's sandbox may connect to (PRO-2793, part of
26611
+ * PRO-1980).
26612
+ *
26613
+ * The engineer pod's credential gateway is the sandbox's only way out. By
26614
+ * default it lets through a standard list: the public package registries,
26615
+ * toolchain downloads, container registries, GitHub for reading public
26616
+ * dependencies, and the tenant's own registries. A product adds to that:
26617
+ *
26618
+ * - `allowlist` (the default, also what `null` means): the standard list plus
26619
+ * the product's own `networkHosts`.
26620
+ * - `unrestricted`: any public host. For a product whose builds need hosts
26621
+ * nobody can list in advance; the gateway still refuses private and
26622
+ * metadata addresses, and still never hands the sandbox a credential.
26623
+ *
26624
+ * A host is one exact name (`api.example.com`). There are no wildcards: a
26625
+ * wildcard over a multi-label public suffix (`*.co.uk`) or a provider's
26626
+ * namespace would admit every tenant under it, and telling those apart needs
26627
+ * the public suffix list. A build that needs many names under one domain is
26628
+ * what `unrestricted` is for.
26629
+ */
26630
+ const PRODUCT_NETWORK_ACCESS = ["allowlist", "unrestricted"];
26631
+ /**
26632
+ * A host a product may add: lowercase DNS labels, at least two, ending in a
26633
+ * letter label. No wildcard, scheme, port, path or IP literal.
26634
+ */
26635
+ const PRODUCT_NETWORK_HOST_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z][a-z0-9-]{0,61}[a-z0-9]$/;
26636
+ /**
26637
+ * Domains where anyone can host content under their own name: a bucket, an
26638
+ * app, a tunnel. Listing one whole would let a prompt injection send code to
26639
+ * a bucket the attacker made, the way the gateway's standard list never lists
26640
+ * a shared CDN whole. A specific name under one (`my-bucket.s3.amazonaws.com`)
26641
+ * is fine.
26642
+ */
26643
+ const SHARED_HOSTING_DOMAINS = [
26644
+ "amazonaws.com",
26645
+ "s3.amazonaws.com",
26646
+ "cloudfront.net",
26647
+ "googleapis.com",
26648
+ "storage.googleapis.com",
26649
+ "appspot.com",
26650
+ "firebaseapp.com",
26651
+ "web.app",
26652
+ "blob.core.windows.net",
26653
+ "azureedge.net",
26654
+ "azurewebsites.net",
26655
+ "githubusercontent.com",
26656
+ "github.io",
26657
+ "herokuapp.com",
26658
+ "vercel.app",
26659
+ "netlify.app",
26660
+ "pages.dev",
26661
+ "workers.dev",
26662
+ "trycloudflare.com",
26663
+ "ngrok.io",
26664
+ "ngrok-free.app",
26665
+ "onrender.com",
26666
+ "fly.dev"
26667
+ ];
26668
+ /** Whether `host` has the shape of a host a product may list. */
26669
+ function isProductNetworkHost(host) {
26670
+ return PRODUCT_NETWORK_HOST_PATTERN.test(host);
26671
+ }
26672
+ /** Whether `host` is a domain anyone can host content on, listed whole. */
26673
+ function isSharedHostingDomain(host) {
26674
+ return SHARED_HOSTING_DOMAINS.includes(host);
26675
+ }
26676
+ strictObject({});
26677
+ const uuid = string$2().uuid();
26678
+ const sha256 = string$2().regex(/^[0-9a-f]{64}$/, "sha256 must be 64 lowercase hex characters");
26679
+ object({ jobId: string$2() });
26680
+ /** An upload's grant: a presigned PUT to staging and the headers it signed. */
26681
+ const uploadGrant = object({
26682
+ id: string$2(),
26683
+ url: string$2(),
26684
+ headers: record(string$2(), string$2()),
26685
+ expiresAt: string$2()
26686
+ });
26687
+ object({ version: number$1().int().min(1) });
26688
+ /** The uploads a product's move could not re-file, named while they fit the answer (PRO-3497). */
26689
+ const failedDocuments = array(object({
26690
+ id: string$2(),
26691
+ fileName: string$2(),
26692
+ error: string$2()
26693
+ }));
26694
+ object({
26695
+ backlogItemId: string$2(),
26696
+ divergenceCount: number$1(),
26697
+ created: boolean()
26698
+ });
26699
+ /** The options of a policy fix: build it once planned, and refuse it when the violation was fixed since. */
26700
+ const policyFixOptions = {
26701
+ autoBuild: boolean().optional(),
26702
+ refuseIfFixedSinceAssessment: boolean().optional()
26703
+ };
26704
+ object({
26705
+ findings: number$1(),
26706
+ findingIds: array(string$2()).nullable()
26707
+ });
26708
+ /** An ignore's expiry, when it has one, is in the future. */
26709
+ const expiresInFuture = (expiresAt) => !expiresAt || new Date(expiresAt).getTime() > Date.now();
26710
+ const EXPIRY_IN_FUTURE = {
26711
+ message: "The ignore expiry must be in the future.",
26712
+ path: ["ignoreExpiresAt"]
26713
+ };
26714
+ const ignoreNote = string$2().trim().max(280).nullish();
26715
+ const ignoreExpiresAt = string$2().datetime({ offset: true }).nullish();
26716
+ const productDocumentType = _enum([...PRODUCT_DOCUMENT_TYPES, LEGACY_PRODUCT_INSTRUCTIONS_TYPE]).transform((type) => type === "project_instructions" ? "product_instructions" : type);
26717
+ const customDocumentStatus = _enum(CUSTOM_DOCUMENT_STATUSES);
26718
+ const cloudPreferences = object({
26719
+ iacTool: _enum([
26720
+ "terraform",
26721
+ "pulumi",
26722
+ "cdk",
26723
+ "none"
26724
+ ]).nullable().optional(),
26725
+ stateBackend: _enum([
26726
+ "aws-s3",
26727
+ "gcs",
26728
+ "azurerm",
26729
+ "tfcloud",
26730
+ "other"
26731
+ ]).nullable().optional(),
26732
+ ciSystem: _enum([
26733
+ "github-actions",
26734
+ "gitlab-ci",
26735
+ "circleci",
26736
+ "jenkins",
26737
+ "other"
26738
+ ]).nullable().optional(),
26739
+ authMethod: _enum([
26740
+ "oidc",
26741
+ "static-keys",
26742
+ "unknown"
26743
+ ]).optional(),
26744
+ accountIsolation: _enum([
26745
+ "per-env",
26746
+ "shared",
26747
+ "unknown"
26748
+ ]).optional()
26749
+ }).optional();
26750
+ const cloudBestPractices = object({
26751
+ dedicatedAccount: boolean().optional(),
26752
+ oidcAuth: boolean().optional(),
26753
+ regionMatchesPolicy: boolean().optional(),
26754
+ stateInSameAccount: boolean().optional()
26755
+ }).optional();
26756
+ const cloudProviderConfig = discriminatedUnion("provider", [
26757
+ object({
26758
+ provider: literal("aws"),
26759
+ accountId: string$2().regex(/^\d{12}$/, "AWS account ID must be 12 digits").optional(),
26760
+ region: string$2().min(1),
26761
+ preferences: cloudPreferences,
26762
+ bestPractices: cloudBestPractices
26763
+ }),
26764
+ object({
26765
+ provider: literal("gcp"),
26766
+ projectId: string$2().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/, "Invalid GCP project ID").optional(),
26767
+ region: string$2().min(1),
26768
+ preferences: cloudPreferences,
26769
+ bestPractices: cloudBestPractices
26770
+ }),
26771
+ object({
26772
+ provider: literal("azure"),
26773
+ subscriptionId: string$2().uuid("Azure subscription ID must be a UUID").optional(),
26774
+ tenantId: string$2().uuid("Azure tenant ID must be a UUID").optional(),
26775
+ region: string$2().min(1),
26776
+ preferences: cloudPreferences,
26777
+ bestPractices: cloudBestPractices
26778
+ }),
26779
+ object({
26780
+ provider: literal("upcloud"),
26781
+ zone: string$2().min(1),
26782
+ username: string$2().min(1).optional(),
26783
+ authMethod: _enum(["password", "token"]).optional(),
26784
+ preferences: cloudPreferences,
26785
+ bestPractices: cloudBestPractices
26786
+ })
26787
+ ]);
26788
+ const columnIndex = number$1().int().min(1).max(EXCEL_MAX_COLUMN);
26789
+ const sheetMap = object({
26790
+ sheetName: string$2().min(1).max(120),
26791
+ idColumn: columnIndex,
26792
+ questionColumn: columnIndex,
26793
+ detailColumns: array(columnIndex).max(20).optional(),
26794
+ sectionColumn: columnIndex.optional(),
26795
+ answerColumn: columnIndex,
26796
+ justificationColumn: columnIndex.optional(),
26797
+ firstDataRow: number$1().int().min(1).max(EXCEL_MAX_ROW)
26798
+ });
26799
+ const answerValue = string$2().trim().min(1).max(64);
26800
+ const justification = string$2().trim().max(2e3);
26801
+ const notApplicableReason = string$2().trim().min(1).max(1200);
26802
+ strictObject({ comment: string$2().trim().min(1).max(PLAN_REJECTION_COMMENT_MAX_CHARS) });
26803
+ strictObject({ expectedRunId: uuid.optional() }), strictObject({ force: boolean().optional() });
26804
+ strictObject({
26805
+ notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS),
26806
+ /** Show the revised plan before the run continues (PRO-3164). */
26807
+ reviewPlan: boolean().optional(),
26808
+ /** The repository whose pull request should change, by its full name, for a run in several (PRO-3346). */
26809
+ repository: string$2().trim().min(1).max(255).optional()
26810
+ }), object({ steer: _enum([
26811
+ "replanning",
26812
+ "after_step",
26813
+ "after_round",
26814
+ "held"
26815
+ ]).optional() });
26816
+ strictObject({
26817
+ exit: _enum(REQUEST_EXITS),
26818
+ comment: string$2().trim().min(1).max(PLAN_REJECTION_COMMENT_MAX_CHARS).optional(),
26819
+ force: boolean().optional()
26820
+ }).refine((answer) => answer.exit === "reject" === (answer.comment !== void 0), {
26821
+ message: "A rejection takes a comment for the planner, and no other answer takes one.",
26822
+ path: ["comment"]
26823
+ }).refine((answer) => answer.exit === "replan" || answer.force === void 0, {
26824
+ message: "Only Plan again can plan anyway.",
26825
+ path: ["force"]
26826
+ });
26827
+ strictObject({ type: productDocumentType }), object({
26828
+ version: number$1().int().min(1),
26829
+ unknownCitations: object({
26830
+ shown: array(string$2()),
26831
+ count: number$1().int().min(0)
26832
+ })
26833
+ }), strictObject({ type: productDocumentType }), strictObject({
26834
+ githubRepositoryId: uuid.optional(),
26835
+ /** A GitLab project, by the connection whose bot reaches it and GitLab's numeric id (P-PRO-150). */
26836
+ gitlabConnectionId: uuid.optional(),
26837
+ gitlabProjectId: number$1().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
26838
+ provider: _enum(VCS_PROVIDERS).optional().default("github"),
26839
+ repositoryName: string$2().min(1).max(512).optional(),
26840
+ repositoryUrl: string$2().url().max(2048).optional(),
26841
+ repositoryDefaultBranch: string$2().max(255).optional().default("main"),
26842
+ /** The link this one replaces, retired in the same transaction (PRO-2522). */
26843
+ replacesRepositoryId: uuid.optional()
26844
+ }).refine((b) => b.gitlabConnectionId === void 0 === (b.gitlabProjectId === void 0), { message: "gitlabConnectionId and gitlabProjectId go together" }).refine((b) => b.gitlabConnectionId === void 0 || b.githubRepositoryId === void 0, { message: "A link is to a GitHub repository or a GitLab project, not both" }).refine((b) => b.githubRepositoryId === void 0 || linksGitHubAppRepositories(b.provider), { message: "githubRepositoryId is a GitHub repository; provider must be github" }), strictObject({
26845
+ repositoryId: uuid,
26846
+ baseBranch: string$2().trim().min(1).max(255).nullable()
26847
+ }), object({
26848
+ effectiveBranch: string$2(),
26849
+ protection: object({
26850
+ protected: boolean(),
26851
+ requiredStatusChecks: array(string$2()),
26852
+ enforcementLevel: string$2().nullable()
26853
+ }).nullable()
26854
+ }), strictObject({
26855
+ license: string$2().trim().min(1).max(200),
26856
+ ignoreReason: _enum(MAINTENANCE_IGNORE_REASONS),
26857
+ ignoreNote,
26858
+ ignoreExpiresAt
26859
+ }).refine((args) => expiresInFuture(args.ignoreExpiresAt), EXPIRY_IN_FUTURE), strictObject({
26860
+ license: string$2().trim().min(1).max(200),
26861
+ findingIds: array(uuid).min(1).optional()
26862
+ }), strictObject({ host: string$2().trim().toLowerCase().refine(isProductNetworkHost, { message: "A host is one exact DNS name, such as api.example.com: no wildcard, scheme, port or path" }).refine((host) => !isSharedHostingDomain(host), { message: "Anyone can host content on this domain, so it cannot be listed whole; list the one host you need under it" }) }), strictObject({
26863
+ type: _enum(AGENT_JOB_TYPES),
26864
+ documentType: string$2().max(30).optional(),
26865
+ priority: number$1().int().min(0).max(99).optional(),
26866
+ metadata: record(string$2(), unknown$1()).optional(),
26867
+ /** Which implementation should serve it (PRO-1332): a request the server may refuse. */
26868
+ runtime: _enum(AGENT_RUNTIMES).optional()
26869
+ }), strictObject({
26870
+ fileName: string$2().trim().min(1).max(1024),
26871
+ sizeBytes: number$1().int().nonnegative(),
26872
+ sha256
26873
+ }), object({ upload: uploadGrant }), strictObject({ uploadId: uuid }), object({
26874
+ questionnaireId: string$2(),
26875
+ jobId: string$2()
26876
+ }), strictObject({ mode: _enum(["generate", "republish"]).default("generate") }), strictObject({ docTypes: array(_enum(REALITY_DERIVED_DOCUMENT_TYPES)).min(1).max(REALITY_DERIVED_DOCUMENT_TYPES.length).optional() }), object({ jobIds: array(string$2()) }), object({ cancelledJobIds: array(string$2()) }), strictObject({
26877
+ factoryId: uuid,
26878
+ stopLine: boolean().optional()
26879
+ }), object({
26880
+ changed: boolean(),
26881
+ previousFactoryId: string$2().nullable(),
26882
+ lineStopped: boolean(),
26883
+ failedDocuments,
26884
+ /** How many uploads kept the old factory; null while not known, never read as none. */
26885
+ failedCount: number$1().int().min(0).nullable()
26886
+ }), strictObject({ documentIds: array(uuid).min(1).max(100).optional() }), object({
26887
+ rescopedCount: number$1().int().min(0).nullable(),
26888
+ failedDocuments,
26889
+ failedCount: number$1().int().min(0).nullable()
26890
+ }), strictObject({ repositoryId: uuid }), strictObject({
26891
+ ecosystem: string$2().min(1).max(50),
26892
+ packageName: string$2().min(1).max(255),
26893
+ /** The installed version, for a package resolved at several in a monorepo. */
26894
+ currentVersion: string$2().min(1).max(100).nullish(),
26895
+ /** The linked repository the group belongs to: a fix touches one. */
26896
+ productRepositoryId: uuid.nullish(),
26897
+ /** Build the fix as soon as it is planned (PRO-949). */
26898
+ autoBuild: boolean().optional()
26899
+ }), object({
26900
+ backlogItemId: string$2(),
26901
+ findingCount: number$1()
26902
+ }), strictObject({
26903
+ ...policyFixOptions,
26904
+ controlId: string$2().min(1).max(40)
26905
+ }), strictObject({ environments: array(string$2()).default(["development"]) }), strictObject({
26906
+ connection: object({
26907
+ name: string$2().min(1).max(150),
26908
+ provider: _enum(CLOUD_PROVIDERS),
26909
+ providerConfig: cloudProviderConfig
26910
+ }).refine((connection) => connection.provider === connection.providerConfig.provider, {
26911
+ message: "connection.provider must match connection.providerConfig.provider",
26912
+ path: ["providerConfig", "provider"]
26913
+ }),
26914
+ environment: object({
26915
+ name: string$2().min(1).max(100),
26916
+ slug: string$2().min(1).max(63).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Slug must be lowercase letters, digits, and dashes"),
26917
+ type: _enum(ENVIRONMENT_TYPES),
26918
+ ordinal: number$1().int().min(0).default(0),
26919
+ isProtected: boolean().default(false)
26920
+ }).optional()
26921
+ });
26922
+ object({
26923
+ status: customDocumentStatus.nullable(),
26924
+ /** The retry itself threw; absent when it went through. */
26925
+ error: string$2().optional()
26926
+ });
26927
+ strictObject({ type: _enum([...FACTORY_DOCUMENT_TYPES, LEGACY_FACTORY_INSTRUCTIONS_TYPE]).transform((type) => type === "team_instructions" ? FACTORY_INSTRUCTIONS_TYPE : type) });
26928
+ strictObject({ type: _enum(TENANT_DOCUMENT_TYPES) }), strictObject({
26929
+ name: string$2().min(1).max(50),
26930
+ action: _enum(["accept", "decline"])
26931
+ }), object({
26932
+ applied: _enum([
26933
+ "draft",
26934
+ "published",
26935
+ "declined"
26936
+ ]),
26937
+ version: number$1().int().nullable()
26938
+ }), strictObject({
26939
+ fileName: string$2().trim().min(1).max(255),
26940
+ mime: string$2().min(1).max(255),
26941
+ sizeBytes: number$1().int().positive(),
26942
+ sha256,
26943
+ factoryId: string$2().optional(),
26944
+ productId: string$2().optional(),
26945
+ origin: string$2().optional()
26946
+ }), discriminatedUnion("deduplicated", [object({
26947
+ deduplicated: literal(true),
26948
+ documentId: string$2(),
26949
+ factoryId: string$2().nullable(),
26950
+ status: customDocumentStatus
26951
+ }), object({
26952
+ deduplicated: literal(false),
26953
+ upload: uploadGrant
26954
+ })]), strictObject({ uploadId: uuid }), object({
26955
+ documentId: string$2(),
26956
+ factoryId: string$2().nullable(),
26957
+ deduplicated: boolean(),
26958
+ status: customDocumentStatus.nullable(),
26959
+ /** Filing it threw; absent when it went through. */
26960
+ error: string$2().optional()
26961
+ }), strictObject({ ids: array(uuid).min(1).max(100) }), object({
26962
+ failedIds: array(string$2()).nullable(),
26963
+ deletedIds: array(string$2()).optional()
26964
+ }), strictObject({ ids: array(uuid).min(1).max(25) }), object({ referenced: array(string$2()) }), strictObject({
26965
+ approve: array(string$2().min(1).max(100)).max(200).default([]),
26966
+ remove: array(string$2().min(1).max(100)).max(200).default([])
26967
+ }).refine((b) => b.approve.length + b.remove.length > 0, { message: "Name a license to approve or remove" }), object({ version: number$1().nullable() });
26968
+ strictObject({
26969
+ ignoreReason: _enum(MAINTENANCE_IGNORE_REASONS),
26970
+ ignoreNote,
26971
+ ignoreExpiresAt
26972
+ }).refine((args) => expiresInFuture(args.ignoreExpiresAt), EXPIRY_IN_FUTURE), strictObject({ autoBuild: boolean().optional() }), object({ backlogItemId: string$2() });
26973
+ strictObject(policyFixOptions);
26974
+ strictObject({ tier: _enum([
26975
+ "development",
26976
+ "staging",
26977
+ "production"
26978
+ ]) });
26979
+ object({
26980
+ url: string$2().url(),
26981
+ expiresAt: string$2(),
26982
+ written: number$1(),
26983
+ unwrittenCount: number$1(),
26984
+ summary: object({
26985
+ byTaiga: number$1(),
26986
+ byYou: number$1(),
26987
+ notApplicable: number$1(),
26988
+ blank: number$1()
26989
+ })
26990
+ }), strictObject({
26991
+ columnMap: object({ sheets: array(sheetMap).min(1).max(50) }),
26992
+ answerVocabulary: array(string$2().min(1).max(64)).max(16).nullable().optional(),
26993
+ answerLegend: string$2().max(4e3).nullable().optional()
26994
+ }), object({
26995
+ imported: number$1(),
26996
+ skippedRows: number$1()
26997
+ });
26998
+ discriminatedUnion("action", [
26999
+ strictObject({ action: literal("accept") }),
27000
+ strictObject({ action: literal("reject") }),
27001
+ strictObject({
27002
+ action: literal("edit"),
27003
+ answerValue: answerValue.optional(),
27004
+ justification: justification.optional()
27005
+ }),
27006
+ strictObject({
27007
+ action: literal("answer"),
27008
+ answerValue,
27009
+ justification: justification.optional()
27010
+ }),
27011
+ strictObject({
27012
+ action: literal("not_applicable"),
27013
+ /** The token the form uses for it, when it has one -- `NA`, `N/A`, `es`. */
27014
+ answerValue: answerValue.optional(),
27015
+ reason: notApplicableReason
27016
+ })
27017
+ ]);
27018
+ //#endregion
26456
27019
  //#region ../../packages/types/dist/auto-build.js
26457
27020
  /**
26458
27021
  * Auto-build: the review-plans gate (PRO-1305).
@@ -26537,30 +27100,6 @@ Object.freeze({
26537
27100
  applicationOwnership: true
26538
27101
  });
26539
27102
  //#endregion
26540
- //#region ../../packages/types/dist/product-network.js
26541
- /**
26542
- * Where an engineer build's sandbox may connect to (PRO-2793, part of
26543
- * PRO-1980).
26544
- *
26545
- * The engineer pod's credential gateway is the sandbox's only way out. By
26546
- * default it lets through a standard list: the public package registries,
26547
- * toolchain downloads, container registries, GitHub for reading public
26548
- * dependencies, and the tenant's own registries. A product adds to that:
26549
- *
26550
- * - `allowlist` (the default, also what `null` means): the standard list plus
26551
- * the product's own `networkHosts`.
26552
- * - `unrestricted`: any public host. For a product whose builds need hosts
26553
- * nobody can list in advance; the gateway still refuses private and
26554
- * metadata addresses, and still never hands the sandbox a credential.
26555
- *
26556
- * A host is one exact name (`api.example.com`). There are no wildcards: a
26557
- * wildcard over a multi-label public suffix (`*.co.uk`) or a provider's
26558
- * namespace would admit every tenant under it, and telling those apart needs
26559
- * the public suffix list. A build that needs many names under one domain is
26560
- * what `unrestricted` is for.
26561
- */
26562
- const PRODUCT_NETWORK_ACCESS = ["allowlist", "unrestricted"];
26563
- //#endregion
26564
27103
  //#region src/compat.ts
26565
27104
  /**
26566
27105
  * 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.36.0-dev.786",
3
+ "version": "0.36.0-dev.788",
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",