cullit 0.4.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -8
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
- import { runPipeline, VERSION, createLogger, analyzeReleaseReadiness, resolveLicense } from "@cullit/core";
4
+ import { runPipeline, VERSION, createLogger, analyzeReleaseReadiness, resolveLicense, AI_PROVIDERS, AUDIENCES, TONES, SOURCE_TYPES } from "@cullit/core";
5
5
  import { loadConfig } from "@cullit/config";
6
6
  import { getRecentTags } from "@cullit/core";
7
7
  import { writeFileSync, readFileSync, existsSync } from "fs";
@@ -131,9 +131,9 @@ async function runGenerate(from, to, opts) {
131
131
  process.exitCode = 1;
132
132
  return;
133
133
  }
134
- const VALID_PROVIDERS = ["anthropic", "openai", "gemini", "ollama", "openclaw", "none"];
135
- const VALID_AUDIENCES = ["developer", "end-user", "executive"];
136
- const VALID_SOURCES = ["local", "jira", "linear"];
134
+ const VALID_PROVIDERS = AI_PROVIDERS;
135
+ const VALID_AUDIENCES = AUDIENCES;
136
+ const VALID_SOURCES = SOURCE_TYPES;
137
137
  if (opts.provider) {
138
138
  if (!VALID_PROVIDERS.includes(opts.provider)) {
139
139
  console.error(`
@@ -256,10 +256,10 @@ function ask(rl, question) {
256
256
  }
257
257
  async function interactiveInit() {
258
258
  const rl = createInterface({ input: process.stdin, output: process.stdout });
259
- const VALID_PROVIDERS = ["anthropic", "openai", "gemini", "ollama", "openclaw", "none"];
260
- const VALID_SOURCES = ["local", "jira", "linear"];
261
- const VALID_AUDIENCES = ["developer", "end-user", "executive"];
262
- const VALID_TONES = ["professional", "casual", "terse"];
259
+ const VALID_PROVIDERS = AI_PROVIDERS;
260
+ const VALID_SOURCES = SOURCE_TYPES;
261
+ const VALID_AUDIENCES = AUDIENCES;
262
+ const VALID_TONES = TONES;
263
263
  const VALID_ENRICHMENTS = ["jira", "linear", "both", "none"];
264
264
  console.log("\n Cullit \u2014 Project Setup\n");
265
265
  const provider = await ask(rl, " AI provider (anthropic/openai/gemini/ollama/openclaw/none) [anthropic]: ") || "anthropic";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cullit",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "Cull the noise from your releases. AI-powered release notes from the CLI.",
6
6
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  "node": ">=18"
30
30
  },
31
31
  "dependencies": {
32
- "@cullit/config": "0.4.0",
33
- "@cullit/core": "0.4.0"
32
+ "@cullit/core": "0.5.0",
33
+ "@cullit/config": "0.5.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup src/index.ts --format esm --clean",