@cullit/core 1.10.0 → 1.11.0

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import { EnrichmentType, OutputFormat, AIConfig, RepoSource, CullConfig } from '@cullit/config';
2
- export { AIConfig, AIProvider, Audience, BitbucketConfig, ConfluenceConfig, CullConfig, EnrichmentType, GitLabConfig, JiraConfig, LinearConfig, NotionConfig, OpenClawConfig, OutputFormat, PublishTarget, PublisherType, RepoSource, SourceConfig, TemplateConfig, TemplateProfile, Tone } from '@cullit/config';
2
+ export { AIConfig, AIProvider, Audience, BitbucketConfig, ConfluenceConfig, CullConfig, EnrichmentType, GitLabConfig, JiraConfig, LinearConfig, NotionConfig, OutputFormat, PublishTarget, PublisherType, RepoSource, SourceConfig, TemplateConfig, TemplateProfile, Tone } from '@cullit/config';
3
3
 
4
4
  interface GitCommit {
5
5
  hash: string;
@@ -71,10 +71,10 @@ interface PipelineResult {
71
71
  duration: number;
72
72
  }
73
73
 
74
- declare const VERSION = "1.10.0";
74
+ declare const VERSION = "1.11.0";
75
75
  declare const DEFAULT_CATEGORIES: string[];
76
76
  declare const DEFAULT_MODELS: Record<string, string>;
77
- declare const AI_PROVIDERS: readonly ["anthropic", "openai", "gemini", "ollama", "openclaw", "none"];
77
+ declare const AI_PROVIDERS: readonly ["anthropic", "openai", "gemini", "ollama", "none"];
78
78
  declare const OUTPUT_FORMATS: readonly ["markdown", "html", "html-dark", "html-minimal", "html-edgy", "json"];
79
79
  declare const PUBLISHER_TYPES: readonly ["stdout", "file", "slack", "discord", "github-release", "teams", "confluence", "notion", "gitlab-release", "changelog"];
80
80
  declare const ENRICHMENT_TYPES: readonly ["jira", "linear"];
package/dist/index.js CHANGED
@@ -1,14 +1,13 @@
1
1
  // src/constants.ts
2
- var VERSION = "1.10.0";
2
+ var VERSION = "1.11.0";
3
3
  var DEFAULT_CATEGORIES = ["features", "fixes", "breaking", "improvements", "chores"];
4
4
  var DEFAULT_MODELS = {
5
5
  anthropic: "claude-sonnet-4-20250514",
6
6
  openai: "gpt-4o",
7
- gemini: "gemini-2.0-flash",
8
- ollama: "llama3.1",
9
- openclaw: "anthropic/claude-sonnet-4-6"
7
+ gemini: "gemini-2.5-flash",
8
+ ollama: "llama3.3"
10
9
  };
11
- var AI_PROVIDERS = ["anthropic", "openai", "gemini", "ollama", "openclaw", "none"];
10
+ var AI_PROVIDERS = ["anthropic", "openai", "gemini", "ollama", "none"];
12
11
  var OUTPUT_FORMATS = ["markdown", "html", "html-dark", "html-minimal", "html-edgy", "json"];
13
12
  var PUBLISHER_TYPES = ["stdout", "file", "slack", "discord", "github-release", "teams", "confluence", "notion", "gitlab-release", "changelog"];
14
13
  var ENRICHMENT_TYPES = ["jira", "linear"];
@@ -281,9 +280,10 @@ var TemplateGenerator = class {
281
280
  const categoryOrder = ["breaking", "features", "improvements", "fixes", "chores", "other"];
282
281
  deduped.sort((a, b) => categoryOrder.indexOf(a.category) - categoryOrder.indexOf(b.category));
283
282
  const contributors = [...new Set(diff.commits.map((c) => c.author))];
283
+ const tagDate = diff.commits.length > 0 ? new Date(diff.commits[0].date).toISOString().split("T")[0] : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
284
284
  return {
285
285
  version: diff.to,
286
- date: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
286
+ date: tagDate,
287
287
  summary: this.buildSummary(deduped, diff.commits.length, config.tone),
288
288
  changes: deduped.slice(0, 20),
289
289
  contributors,
@@ -1026,7 +1026,6 @@ async function runPipeline(from, to, config, options = {}) {
1026
1026
  openai: "OpenAI",
1027
1027
  gemini: "Gemini",
1028
1028
  ollama: "Ollama",
1029
- openclaw: "OpenClaw",
1030
1029
  none: "Template"
1031
1030
  };
1032
1031
  const providerName = providerNames[config.ai.provider] || config.ai.provider;
@@ -1038,12 +1037,7 @@ async function runPipeline(from, to, config, options = {}) {
1038
1037
  `AI provider "${config.ai.provider}" is not available. ` + (config.ai.provider !== "none" ? "Install @cullit/licensed (private distribution) to use AI providers." : "")
1039
1038
  );
1040
1039
  }
1041
- let generator;
1042
- if (config.ai.provider === "none") {
1043
- generator = generatorFactory();
1044
- } else {
1045
- generator = generatorFactory(config.openclaw);
1046
- }
1040
+ const generator = generatorFactory();
1047
1041
  const notes = await generator.generate(context, config.ai);
1048
1042
  log.info(`\xBB Generated ${notes.changes.length} change entries`);
1049
1043
  const selectedTemplateName = options.templateProfile || config.template?.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cullit/core",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "type": "module",
5
5
  "description": "Core engine for Cullit — AI-powered release note generation.",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@cullit/config": "1.10.0"
41
+ "@cullit/config": "1.11.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup src/index.ts --format esm --dts --clean",