@cullit/core 2.0.0 → 2.0.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 +8 -2
- package/dist/index.js +8 -4
- 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.0.
|
|
74
|
+
declare const VERSION = "2.0.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"];
|
|
@@ -253,8 +253,14 @@ declare function isProviderAllowed(provider: string, license: LicenseStatus): bo
|
|
|
253
253
|
declare function isPublisherAllowed(publisherType: string, license: LicenseStatus): boolean;
|
|
254
254
|
/**
|
|
255
255
|
* Check whether the current license allows enrichment (Jira/Linear).
|
|
256
|
+
* Requires Pro tier or above.
|
|
256
257
|
*/
|
|
257
258
|
declare function isEnrichmentAllowed(license: LicenseStatus): boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Check whether the current license allows audience & tone control.
|
|
261
|
+
* Requires Pro tier or above.
|
|
262
|
+
*/
|
|
263
|
+
declare function isAudienceToneAllowed(license: LicenseStatus): boolean;
|
|
258
264
|
/**
|
|
259
265
|
* Build a human-readable upgrade message for a gated feature.
|
|
260
266
|
*/
|
|
@@ -388,4 +394,4 @@ declare function runPipeline(from: string, to: string, config: CullConfig, optio
|
|
|
388
394
|
templateProfile?: string;
|
|
389
395
|
}): Promise<PipelineResult>;
|
|
390
396
|
|
|
391
|
-
export { AI_PROVIDERS, AUDIENCES, CHANGE_CATEGORIES, type ChangeCategory, type ChangeEntry, type Collector, type CollectorFactory, CoreErrorCode, type CoreErrorCodeValue, CullitError, DEFAULT_CATEGORIES, DEFAULT_MODELS, ENRICHMENT_TYPES, type EnrichedContext, type EnrichedTicket, type Enricher, type EnricherFactory, FilePublisher, type Generator, type GeneratorFactory, GitCollector, type GitCommit, type GitDiff, type LicenseStatus, type LicenseTier, type LogLevel, type Logger, MultiRepoCollector, OUTPUT_FORMATS, PAID_TIERS, PUBLISHER_TYPES, type PipelineResult, type Publisher, type PublisherFactory, type RateLimitResult, type RateLimiter, type RateLimiterOptions, type ReleaseAdvisory, type ReleaseNotes, SOURCE_TYPES, type SemverBump, StdoutPublisher, TEAM_PLANS, TEAM_PLAN_SEATS, TEAM_TIERS, TIERS, TONES, type TeamFeature, type TeamPlan, TemplateGenerator, type UsageLimits, VERSION, analyzeReleaseReadiness, createLogger, createRateLimiter, escapeHtml, fetchWithTimeout, formatNotes, getCollector, getEnricher, getFeatureGating, getFormatter, getGenerator, getLatestTag, getPublisher, getRecentTags, getTierLimits, hasCollector, hasEnricher, hasGenerator, hasPublisher, isEnrichmentAllowed, isFeatureAllowed, isProviderAllowed, isPublisherAllowed, listCollectors, listEnrichers, listFormatters, listGenerators, listPublishers, registerCollector, registerEnricher, registerFormatter, registerGenerator, registerPublisher, reportUsage, resolveLicense, runPipeline, upgradeMessage, validateLicense };
|
|
397
|
+
export { AI_PROVIDERS, AUDIENCES, CHANGE_CATEGORIES, type ChangeCategory, type ChangeEntry, type Collector, type CollectorFactory, CoreErrorCode, type CoreErrorCodeValue, CullitError, DEFAULT_CATEGORIES, DEFAULT_MODELS, ENRICHMENT_TYPES, type EnrichedContext, type EnrichedTicket, type Enricher, type EnricherFactory, FilePublisher, type Generator, type GeneratorFactory, GitCollector, type GitCommit, type GitDiff, type LicenseStatus, type LicenseTier, type LogLevel, type Logger, MultiRepoCollector, OUTPUT_FORMATS, PAID_TIERS, PUBLISHER_TYPES, type PipelineResult, type Publisher, type PublisherFactory, type RateLimitResult, type RateLimiter, type RateLimiterOptions, type ReleaseAdvisory, type ReleaseNotes, SOURCE_TYPES, type SemverBump, StdoutPublisher, TEAM_PLANS, TEAM_PLAN_SEATS, TEAM_TIERS, TIERS, TONES, type TeamFeature, type TeamPlan, TemplateGenerator, type UsageLimits, VERSION, analyzeReleaseReadiness, createLogger, createRateLimiter, escapeHtml, fetchWithTimeout, formatNotes, getCollector, getEnricher, getFeatureGating, getFormatter, getGenerator, getLatestTag, getPublisher, getRecentTags, getTierLimits, hasCollector, hasEnricher, hasGenerator, hasPublisher, isAudienceToneAllowed, isEnrichmentAllowed, isFeatureAllowed, isProviderAllowed, isPublisherAllowed, listCollectors, listEnrichers, listFormatters, listGenerators, listPublishers, registerCollector, registerEnricher, registerFormatter, registerGenerator, registerPublisher, reportUsage, resolveLicense, runPipeline, upgradeMessage, validateLicense };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/constants.ts
|
|
2
|
-
var VERSION = "2.0.
|
|
2
|
+
var VERSION = "2.0.1";
|
|
3
3
|
var DEFAULT_CATEGORIES = ["features", "fixes", "breaking", "improvements", "chores"];
|
|
4
4
|
var DEFAULT_MODELS = {
|
|
5
5
|
anthropic: "claude-sonnet-4-20250514",
|
|
@@ -838,11 +838,14 @@ function isPublisherAllowed(publisherType, license) {
|
|
|
838
838
|
return FREE_PUBLISHERS.has(publisherType);
|
|
839
839
|
}
|
|
840
840
|
function isEnrichmentAllowed(license) {
|
|
841
|
-
return license.tier
|
|
841
|
+
return (license.tier === "pro" || license.tier === "team" || license.tier === "enterprise") && license.valid;
|
|
842
|
+
}
|
|
843
|
+
function isAudienceToneAllowed(license) {
|
|
844
|
+
return (license.tier === "pro" || license.tier === "team" || license.tier === "enterprise") && license.valid;
|
|
842
845
|
}
|
|
843
846
|
function upgradeMessage(feature) {
|
|
844
|
-
return `\u{1F512} ${feature} requires a Cullit Pro
|
|
845
|
-
|
|
847
|
+
return `\u{1F512} ${feature} requires a Cullit Pro plan or above.
|
|
848
|
+
Upgrade at https://cullit.io/pricing
|
|
846
849
|
Then set CULLIT_API_KEY in your environment.`;
|
|
847
850
|
}
|
|
848
851
|
var TIER_LIMITS = {
|
|
@@ -1300,6 +1303,7 @@ export {
|
|
|
1300
1303
|
hasEnricher,
|
|
1301
1304
|
hasGenerator,
|
|
1302
1305
|
hasPublisher,
|
|
1306
|
+
isAudienceToneAllowed,
|
|
1303
1307
|
isEnrichmentAllowed,
|
|
1304
1308
|
isFeatureAllowed,
|
|
1305
1309
|
isProviderAllowed,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cullit/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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.0.
|
|
41
|
+
"@cullit/config": "2.0.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup src/index.ts --format esm --dts --clean",
|