cullit 2.9.1 → 2.10.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.js +19 -1
- 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, reportUsage, AI_PROVIDERS, AUDIENCES, TONES, SOURCE_TYPES, OUTPUT_FORMATS } from "@cullit/core";
|
|
4
|
+
import { runPipeline, VERSION, createLogger, analyzeReleaseReadiness, resolveLicense, reportUsage, verifyIntegrations, formatVerifyResults, AI_PROVIDERS, AUDIENCES, TONES, SOURCE_TYPES, OUTPUT_FORMATS } 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";
|
|
@@ -40,6 +40,7 @@ var HELP = `
|
|
|
40
40
|
COMMANDS
|
|
41
41
|
generate Generate release notes from git or licensed sources
|
|
42
42
|
status Release readiness check \u2014 should you release?
|
|
43
|
+
verify Probe every configured integration (no publish)
|
|
43
44
|
init Create a .cullit.yml config file
|
|
44
45
|
tags List recent tags in the current repo
|
|
45
46
|
|
|
@@ -101,6 +102,23 @@ async function main() {
|
|
|
101
102
|
}
|
|
102
103
|
process.exit(0);
|
|
103
104
|
}
|
|
105
|
+
if (command === "verify") {
|
|
106
|
+
const opts = parseArgs(args.slice(1));
|
|
107
|
+
const configPath = opts.config || opts.c || ".cullit.yml";
|
|
108
|
+
let config;
|
|
109
|
+
try {
|
|
110
|
+
config = await loadConfig(configPath);
|
|
111
|
+
} catch (err) {
|
|
112
|
+
console.error(`\u2717 Could not load ${configPath}: ${err.message}`);
|
|
113
|
+
process.exit(1);
|
|
114
|
+
}
|
|
115
|
+
console.log(`Probing every integration declared in ${configPath}...`);
|
|
116
|
+
const only = opts.only ? String(opts.only).split(",").map((s) => s.trim()) : void 0;
|
|
117
|
+
const results = await verifyIntegrations(config, { only });
|
|
118
|
+
console.log(formatVerifyResults(results));
|
|
119
|
+
const failed = results.filter((r) => r.status === "unreachable" || r.status === "auth-failed");
|
|
120
|
+
process.exit(failed.length > 0 ? 1 : 0);
|
|
121
|
+
}
|
|
104
122
|
if (command === "generate") {
|
|
105
123
|
const opts = parseArgs(args.slice(1));
|
|
106
124
|
const from = opts.from || opts.f;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cullit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Public Cullit CLI for local, template-based release notes. Licensed AI and integrations are delivered separately.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"node": ">=22"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@cullit/core": "2.
|
|
38
|
-
"@cullit/config": "2.
|
|
37
|
+
"@cullit/core": "2.10.0",
|
|
38
|
+
"@cullit/config": "2.10.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup src/index.ts --format esm --clean",
|