@cullit/config 1.10.1 → 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 +1 -6
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -53,10 +53,6 @@ interface JiraConfig {
|
|
|
53
53
|
interface LinearConfig {
|
|
54
54
|
apiKey?: string;
|
|
55
55
|
}
|
|
56
|
-
interface OpenClawConfig {
|
|
57
|
-
baseUrl?: string;
|
|
58
|
-
token?: string;
|
|
59
|
-
}
|
|
60
56
|
interface GitLabConfig {
|
|
61
57
|
domain?: string;
|
|
62
58
|
projectId: string;
|
|
@@ -89,7 +85,6 @@ interface CullConfig {
|
|
|
89
85
|
repos?: RepoSource[];
|
|
90
86
|
jira?: JiraConfig;
|
|
91
87
|
linear?: LinearConfig;
|
|
92
|
-
openclaw?: OpenClawConfig;
|
|
93
88
|
gitlab?: GitLabConfig;
|
|
94
89
|
bitbucket?: BitbucketConfig;
|
|
95
90
|
confluence?: ConfluenceConfig;
|
|
@@ -103,4 +98,4 @@ interface CullConfig {
|
|
|
103
98
|
*/
|
|
104
99
|
declare function loadConfig(cwdOrPath?: string): CullConfig;
|
|
105
100
|
|
|
106
|
-
export { type AIConfig, type AIProvider, type Audience, type BitbucketConfig, type ConfluenceConfig, type CullConfig, type EnrichmentType, type GitLabConfig, type JiraConfig, type LinearConfig, type NotionConfig, type
|
|
101
|
+
export { type AIConfig, type AIProvider, type Audience, type BitbucketConfig, type ConfluenceConfig, type CullConfig, type EnrichmentType, type GitLabConfig, type JiraConfig, type LinearConfig, type NotionConfig, type OutputFormat, type PublishTarget, type PublisherType, type RepoSource, type SourceConfig, type TemplateConfig, type TemplateProfile, type Tone, loadConfig };
|
package/dist/index.js
CHANGED
|
@@ -125,10 +125,12 @@ function parseValue(val) {
|
|
|
125
125
|
}
|
|
126
126
|
return val;
|
|
127
127
|
}
|
|
128
|
+
var SAFE_ENV_PREFIXES = ["CULLIT_", "JIRA_", "LINEAR_", "GITHUB_", "GITLAB_", "BITBUCKET_", "OPENAI_", "ANTHROPIC_", "GOOGLE_", "SLACK_", "CONFLUENCE_", "NOTION_"];
|
|
128
129
|
function resolveEnvVars(obj) {
|
|
129
130
|
if (typeof obj === "string") {
|
|
130
131
|
if (obj.startsWith("$")) {
|
|
131
132
|
const envKey = obj.startsWith("${") && obj.endsWith("}") ? obj.slice(2, -1) : obj.substring(1);
|
|
133
|
+
if (!SAFE_ENV_PREFIXES.some((p) => envKey.startsWith(p))) return obj;
|
|
132
134
|
return process.env[envKey] || obj;
|
|
133
135
|
}
|
|
134
136
|
}
|
|
@@ -158,7 +160,6 @@ function mergeWithDefaults(parsed) {
|
|
|
158
160
|
...normalizedTemplates.length ? { templates: normalizedTemplates } : {},
|
|
159
161
|
jira: parsed.jira,
|
|
160
162
|
linear: parsed.linear,
|
|
161
|
-
openclaw: parsed.openclaw,
|
|
162
163
|
gitlab: parsed.gitlab,
|
|
163
164
|
bitbucket: parsed.bitbucket,
|
|
164
165
|
confluence: parsed.confluence,
|