@cullit/core 2.2.0 → 2.2.1
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.d.ts +3 -2
- package/dist/index.js +4 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ interface PipelineResult {
|
|
|
71
71
|
duration: number;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
declare const VERSION = "2.2.
|
|
74
|
+
declare const VERSION = "2.2.1";
|
|
75
75
|
declare const DEFAULT_CATEGORIES: string[];
|
|
76
76
|
declare const DEFAULT_MODELS: Record<string, string>;
|
|
77
77
|
declare const AI_PROVIDERS: readonly ["anthropic", "openai", "gemini", "ollama", "none"];
|
|
@@ -297,8 +297,9 @@ declare function isFeatureAllowed(feature: TeamFeature, tier: string, valid?: bo
|
|
|
297
297
|
declare function isPlanFeatureAllowed(feature: TeamFeature, plan: string, tier: string, valid?: boolean): boolean;
|
|
298
298
|
/**
|
|
299
299
|
* Build a gating summary for a tier — which features are unlocked.
|
|
300
|
+
* When plan is provided, uses plan-aware feature checks.
|
|
300
301
|
*/
|
|
301
|
-
declare function getFeatureGating(tier: string): Record<TeamFeature, boolean>;
|
|
302
|
+
declare function getFeatureGating(tier: string, plan?: string): Record<TeamFeature, boolean>;
|
|
302
303
|
/**
|
|
303
304
|
* Report a generation event to the metering service.
|
|
304
305
|
* Non-blocking — failures are logged but never block the pipeline.
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/constants.ts
|
|
2
|
-
var VERSION = "2.2.
|
|
2
|
+
var VERSION = "2.2.1";
|
|
3
3
|
var DEFAULT_CATEGORIES = ["features", "fixes", "breaking", "improvements", "chores"];
|
|
4
4
|
var DEFAULT_MODELS = {
|
|
5
5
|
anthropic: "claude-sonnet-4-20250514",
|
|
@@ -859,6 +859,7 @@ var TIER_LIMITS = {
|
|
|
859
859
|
enterprise: { generationsPerMonth: Infinity, maxProjects: Infinity }
|
|
860
860
|
};
|
|
861
861
|
var PLAN_LIMITS = {
|
|
862
|
+
"team-10": { generationsPerMonth: 4e3, maxProjects: 350 },
|
|
862
863
|
"team-25": { generationsPerMonth: 5e3, maxProjects: 500 }
|
|
863
864
|
};
|
|
864
865
|
function getTierLimits(tier) {
|
|
@@ -903,10 +904,10 @@ function isPlanFeatureAllowed(feature, plan, tier, valid = true) {
|
|
|
903
904
|
const tierSet = FEATURE_TIERS[feature];
|
|
904
905
|
return tierSet ? tierSet.has(tier) : false;
|
|
905
906
|
}
|
|
906
|
-
function getFeatureGating(tier) {
|
|
907
|
+
function getFeatureGating(tier, plan) {
|
|
907
908
|
const result = {};
|
|
908
909
|
for (const feature of Object.keys(FEATURE_TIERS)) {
|
|
909
|
-
result[feature] = isFeatureAllowed(feature, tier);
|
|
910
|
+
result[feature] = plan ? isPlanFeatureAllowed(feature, plan, tier) : isFeatureAllowed(feature, tier);
|
|
910
911
|
}
|
|
911
912
|
return result;
|
|
912
913
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cullit/core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core engine for Cullit — AI-powered release note generation.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@cullit/config": "2.2.
|
|
41
|
+
"@cullit/config": "2.2.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup src/index.ts --format esm --dts --clean",
|