@taiga-ai/mcp-server 0.37.0-dev.1095 → 0.37.0-dev.1096
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 +173 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24364,6 +24364,54 @@ const optionalLineAnchor = number$1().int().min(0).optional().transform((v) => v
|
|
|
24364
24364
|
*/
|
|
24365
24365
|
const AGENT_RUNTIMES = ["legacy", "engineer"];
|
|
24366
24366
|
//#endregion
|
|
24367
|
+
//#region ../../packages/types/dist/auroras.js
|
|
24368
|
+
/**
|
|
24369
|
+
* Where a deposit in the Aurora bank came from (PRO-4361), with its
|
|
24370
|
+
* `externalRef` unique per source: `included` (a plan's month, the month as the
|
|
24371
|
+
* ref), `ops` (ops-auroras.sh grant-auroras, a person's reason as the ref),
|
|
24372
|
+
* `stripe` (a purchase, its payment as the ref) and `subscription` (a month
|
|
24373
|
+
* of an Aurora subscription, PRO-4367, its invoice as the ref).
|
|
24374
|
+
*/
|
|
24375
|
+
const AURORA_DEPOSIT_SOURCES = [
|
|
24376
|
+
"included",
|
|
24377
|
+
"ops",
|
|
24378
|
+
"stripe",
|
|
24379
|
+
"subscription"
|
|
24380
|
+
];
|
|
24381
|
+
//#endregion
|
|
24382
|
+
//#region ../../packages/types/dist/billing.js
|
|
24383
|
+
/**
|
|
24384
|
+
* The billing seam (PRO-3997): what Taiga holds about a tenant's paid
|
|
24385
|
+
* subscription, whichever billing engine sells it. Taiga owns what an
|
|
24386
|
+
* organization may do (its plan, entitlements, Auroras); the engine owns
|
|
24387
|
+
* money. A provider adapter turns the engine's webhooks into the neutral
|
|
24388
|
+
* subscription state below, and that state moves the plan; nothing else in
|
|
24389
|
+
* the app names a provider.
|
|
24390
|
+
*/
|
|
24391
|
+
/**
|
|
24392
|
+
* A subscription's state as Taiga applies it: `active` and `past_due` hold
|
|
24393
|
+
* the plan (what a failed payment leads to is PRO-57's), `ended` returns the
|
|
24394
|
+
* organization to the plan it was on before. A cancellation booked for the
|
|
24395
|
+
* period end is `cancelAtPeriodEnd`, not a status: the plan holds until then.
|
|
24396
|
+
*/
|
|
24397
|
+
const BILLING_SUBSCRIPTION_STATUSES = [
|
|
24398
|
+
"active",
|
|
24399
|
+
"past_due",
|
|
24400
|
+
"ended"
|
|
24401
|
+
];
|
|
24402
|
+
/** Why the last automatic top-up did not happen: the card was refused, or the month's limit was reached. */
|
|
24403
|
+
const AURORA_AUTO_TOP_UP_FAILURES = [
|
|
24404
|
+
"card_declined",
|
|
24405
|
+
"authentication_required",
|
|
24406
|
+
"monthly_max",
|
|
24407
|
+
"failed"
|
|
24408
|
+
];
|
|
24409
|
+
/** The bounds on an automatic top-up rule (PRO-4390). */
|
|
24410
|
+
const AUTO_TOP_UP_LIMITS = {
|
|
24411
|
+
maxBelow: 2e4,
|
|
24412
|
+
maxMonthly: 4e4
|
|
24413
|
+
};
|
|
24414
|
+
//#endregion
|
|
24367
24415
|
//#region ../../packages/types/dist/iso-countries.js
|
|
24368
24416
|
/**
|
|
24369
24417
|
* Every country in ISO 3166-1 (PRO-4404): the alpha-2 code and an English
|
|
@@ -28936,7 +28984,7 @@ const answerValue = string$2().trim().min(1).max(64);
|
|
|
28936
28984
|
const justification = string$2().trim().max(2e3);
|
|
28937
28985
|
const notApplicableReason = string$2().trim().min(1).max(1200);
|
|
28938
28986
|
strictObject({ comment: string$2().trim().min(1).max(PLAN_REJECTION_COMMENT_MAX_CHARS) });
|
|
28939
|
-
strictObject({ expectedRunId: uuid.optional() }), strictObject({ force: boolean().optional() });
|
|
28987
|
+
object({ auroras: number$1().nullable() }), strictObject({ expectedRunId: uuid.optional() }), strictObject({ force: boolean().optional() });
|
|
28940
28988
|
object({
|
|
28941
28989
|
status: _enum(BUILD_OVERVIEW_STATUSES),
|
|
28942
28990
|
document: string$2().nullable(),
|
|
@@ -28986,7 +29034,8 @@ strictObject({
|
|
|
28986
29034
|
});
|
|
28987
29035
|
/** A regulation's id in the catalogue, as its routes take it (PRO-3420). */
|
|
28988
29036
|
const regulationId = string$2().min(1).max(100).regex(/^[a-z0-9-]+$/);
|
|
28989
|
-
|
|
29037
|
+
/** A plan the organization can move to, as Change plan offers it. */
|
|
29038
|
+
const planCatalogueSchema = array(object({
|
|
28990
29039
|
key: string$2(),
|
|
28991
29040
|
name: string$2(),
|
|
28992
29041
|
aurorasPayForBuilding: boolean(),
|
|
@@ -28995,6 +29044,106 @@ object({
|
|
|
28995
29044
|
countsImports: boolean(),
|
|
28996
29045
|
repoLimit: number$1().int().nullable(),
|
|
28997
29046
|
includedAurorasPerMonth: number$1().int().nullable()
|
|
29047
|
+
}));
|
|
29048
|
+
/** A path on the web app to come back to: one leading slash, never two (another origin). */
|
|
29049
|
+
const billingReturnPath = string$2().max(500).regex(/^\/(?![/\\])[^\s\\]*$/, "A path on the web app");
|
|
29050
|
+
/** A checkout session id the browser came back with. */
|
|
29051
|
+
const billingSessionId = string$2().min(1).max(255).regex(/^cs_[A-Za-z0-9_]+$/, "A checkout session");
|
|
29052
|
+
/** Why the provider's side of a command was refused, as its route would have answered. */
|
|
29053
|
+
const billingRefusalSchema = object({
|
|
29054
|
+
status: number$1().int(),
|
|
29055
|
+
code: string$2().optional(),
|
|
29056
|
+
message: string$2()
|
|
29057
|
+
});
|
|
29058
|
+
/**
|
|
29059
|
+
* What a billing command answers once its work with the provider, which runs
|
|
29060
|
+
* after the push commits, is done: its answer or the refusal. Neither when
|
|
29061
|
+
* that work failed some other way.
|
|
29062
|
+
*/
|
|
29063
|
+
const settledBilling = (answer) => object({
|
|
29064
|
+
answer: answer.optional(),
|
|
29065
|
+
refused: billingRefusalSchema.optional()
|
|
29066
|
+
});
|
|
29067
|
+
const billingRedirect = object({ url: url() });
|
|
29068
|
+
/** The organization's billing as Plan & usage reads it. */
|
|
29069
|
+
const tenantBillingSchema = object({
|
|
29070
|
+
checkoutPlans: planCatalogueSchema,
|
|
29071
|
+
auroraTopUp: object({
|
|
29072
|
+
min: number$1().int(),
|
|
29073
|
+
max: number$1().int(),
|
|
29074
|
+
presets: array(number$1().int()),
|
|
29075
|
+
unitPrice: object({
|
|
29076
|
+
amount: number$1().int(),
|
|
29077
|
+
currency: string$2()
|
|
29078
|
+
}).nullable()
|
|
29079
|
+
}).nullable(),
|
|
29080
|
+
autoTopUp: object({
|
|
29081
|
+
enabled: boolean(),
|
|
29082
|
+
below: number$1().int(),
|
|
29083
|
+
add: number$1().int(),
|
|
29084
|
+
monthlyMax: number$1().int(),
|
|
29085
|
+
card: object({ label: string$2() }).nullable(),
|
|
29086
|
+
boughtThisMonth: number$1(),
|
|
29087
|
+
lastFailure: object({
|
|
29088
|
+
at: string$2(),
|
|
29089
|
+
reason: _enum(AURORA_AUTO_TOP_UP_FAILURES)
|
|
29090
|
+
}).nullable(),
|
|
29091
|
+
limits: object({
|
|
29092
|
+
maxBelow: number$1().int(),
|
|
29093
|
+
maxMonthly: number$1().int()
|
|
29094
|
+
})
|
|
29095
|
+
}).nullable(),
|
|
29096
|
+
terms: object({
|
|
29097
|
+
url: string$2(),
|
|
29098
|
+
version: string$2()
|
|
29099
|
+
}).nullable(),
|
|
29100
|
+
subscription: object({
|
|
29101
|
+
provider: string$2(),
|
|
29102
|
+
planKey: string$2(),
|
|
29103
|
+
status: _enum(BILLING_SUBSCRIPTION_STATUSES),
|
|
29104
|
+
currentPeriodEnd: string$2().nullable(),
|
|
29105
|
+
cancelAtPeriodEnd: boolean(),
|
|
29106
|
+
manageable: boolean(),
|
|
29107
|
+
quantity: number$1().int()
|
|
29108
|
+
}).nullable(),
|
|
29109
|
+
repositories: object({
|
|
29110
|
+
price: object({
|
|
29111
|
+
currency: string$2(),
|
|
29112
|
+
mode: _enum(["volume", "graduated"]),
|
|
29113
|
+
tiers: array(object({
|
|
29114
|
+
upTo: number$1().int().nullable(),
|
|
29115
|
+
unitAmount: number$1().int(),
|
|
29116
|
+
flatAmount: number$1().int()
|
|
29117
|
+
}))
|
|
29118
|
+
}).nullable(),
|
|
29119
|
+
subscribed: object({
|
|
29120
|
+
count: number$1().int(),
|
|
29121
|
+
renews: string$2().nullable(),
|
|
29122
|
+
scheduled: object({
|
|
29123
|
+
count: number$1().int(),
|
|
29124
|
+
from: string$2()
|
|
29125
|
+
}).nullable()
|
|
29126
|
+
}).nullable()
|
|
29127
|
+
}).nullable()
|
|
29128
|
+
});
|
|
29129
|
+
object({
|
|
29130
|
+
left: number$1(),
|
|
29131
|
+
lasting: number$1(),
|
|
29132
|
+
monthly: object({
|
|
29133
|
+
left: number$1(),
|
|
29134
|
+
amount: number$1(),
|
|
29135
|
+
expiresAt: string$2()
|
|
29136
|
+
}).nullable(),
|
|
29137
|
+
usedThisMonth: number$1(),
|
|
29138
|
+
entries: array(object({
|
|
29139
|
+
source: _enum(AURORA_DEPOSIT_SOURCES),
|
|
29140
|
+
at: string$2(),
|
|
29141
|
+
amount: number$1(),
|
|
29142
|
+
withdrawn: number$1(),
|
|
29143
|
+
left: number$1(),
|
|
29144
|
+
expiresAt: string$2().nullable(),
|
|
29145
|
+
automatic: boolean()
|
|
29146
|
+
}))
|
|
28998
29147
|
});
|
|
28999
29148
|
object({
|
|
29000
29149
|
context: object({
|
|
@@ -29403,7 +29552,28 @@ const deriveSource = discriminatedUnion("kind", [
|
|
|
29403
29552
|
uploadId: uuid
|
|
29404
29553
|
})
|
|
29405
29554
|
]);
|
|
29406
|
-
strictObject({ regulationId }), strictObject({ regulationId }), strictObject({
|
|
29555
|
+
strictObject({ regulationId }), strictObject({ regulationId }), settledBilling(tenantBillingSchema), strictObject({
|
|
29556
|
+
repositories: number$1().int().min(1).max(50),
|
|
29557
|
+
returnPath: billingReturnPath,
|
|
29558
|
+
termsVersion: string$2().min(1).max(100).optional()
|
|
29559
|
+
}), settledBilling(object({ url: url().nullable() })), strictObject({ sessionId: billingSessionId.optional() }), settledBilling(object({ applied: boolean() })), strictObject({ returnPath: billingReturnPath }), settledBilling(billingRedirect), strictObject({
|
|
29560
|
+
auroras: number$1().int().positive().max(1e6),
|
|
29561
|
+
returnPath: billingReturnPath,
|
|
29562
|
+
termsVersion: string$2().min(1).max(100),
|
|
29563
|
+
termsAccepted: literal(true)
|
|
29564
|
+
}), settledBilling(billingRedirect), strictObject({ sessionId: billingSessionId }), settledBilling(object({
|
|
29565
|
+
deposited: boolean(),
|
|
29566
|
+
writeAccessNeeded: number$1().int().min(0)
|
|
29567
|
+
})), strictObject({
|
|
29568
|
+
enabled: boolean(),
|
|
29569
|
+
below: number$1().int().min(0).max(AUTO_TOP_UP_LIMITS.maxBelow),
|
|
29570
|
+
add: number$1().int().positive(),
|
|
29571
|
+
monthlyMax: number$1().int().positive().max(AUTO_TOP_UP_LIMITS.maxMonthly),
|
|
29572
|
+
termsVersion: string$2().min(1).max(100).optional()
|
|
29573
|
+
}), settledBilling(object({ done: literal(true) })), strictObject({ returnPath: billingReturnPath }), settledBilling(billingRedirect), strictObject({
|
|
29574
|
+
sessionId: billingSessionId,
|
|
29575
|
+
turnOn: strictObject({ termsVersion: string$2().min(1).max(100) }).optional()
|
|
29576
|
+
}), settledBilling(object({ done: literal(true) })), strictObject({
|
|
29407
29577
|
planKey: string$2().min(1).max(40),
|
|
29408
29578
|
reason: string$2().min(1).max(500)
|
|
29409
29579
|
}), object({ assigned: boolean() }), strictObject({ note: string$2().trim().max(1e3).optional() }), strictObject({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.37.0-dev.
|
|
3
|
+
"version": "0.37.0-dev.1096",
|
|
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",
|