contentrain 0.4.3 → 0.4.4
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.
|
@@ -205,12 +205,10 @@ async function installIdeRulesAndSkills(projectRoot, ide, resolveRuleFile, resol
|
|
|
205
205
|
} catch {}
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
if (filesToAdd.length > 0) {
|
|
208
|
+
if (filesToAdd.length > 0) try {
|
|
209
209
|
await git.add(filesToAdd);
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
} catch {}
|
|
213
|
-
}
|
|
210
|
+
await git.commit(`[contentrain] install ${ide.name} rules and skills`);
|
|
211
|
+
} catch {}
|
|
214
212
|
return {
|
|
215
213
|
installed,
|
|
216
214
|
updated
|
|
@@ -232,15 +230,15 @@ async function addClaudeMdReference(projectRoot) {
|
|
|
232
230
|
if (await pathExists(claudeMdPath)) {
|
|
233
231
|
if (!(await readFile(claudeMdPath, "utf-8")).includes(marker)) {
|
|
234
232
|
await appendFile(claudeMdPath, `\n\n${reference}\n`);
|
|
235
|
-
await git.add(claudeMdPath);
|
|
236
233
|
try {
|
|
234
|
+
await git.add(claudeMdPath);
|
|
237
235
|
await git.commit("[contentrain] add CLAUDE.md reference");
|
|
238
236
|
} catch {}
|
|
239
237
|
}
|
|
240
238
|
} else {
|
|
241
239
|
await writeFile(claudeMdPath, `${reference}\n`, "utf-8");
|
|
242
|
-
await git.add(claudeMdPath);
|
|
243
240
|
try {
|
|
241
|
+
await git.add(claudeMdPath);
|
|
244
242
|
await git.commit("[contentrain] add CLAUDE.md reference");
|
|
245
243
|
} catch {}
|
|
246
244
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -5,19 +5,19 @@ import { defineCommand, runMain } from "citty";
|
|
|
5
5
|
runMain(defineCommand({
|
|
6
6
|
meta: {
|
|
7
7
|
name: "contentrain",
|
|
8
|
-
version: "0.4.
|
|
8
|
+
version: "0.4.4",
|
|
9
9
|
description: "Contentrain CLI — AI content governance infrastructure"
|
|
10
10
|
},
|
|
11
11
|
subCommands: {
|
|
12
|
-
init: () => import("./init-
|
|
12
|
+
init: () => import("./init-CqoDCSV5.mjs").then((m) => m.default),
|
|
13
13
|
status: () => import("./status-CoHgz6HN.mjs").then((m) => m.default),
|
|
14
14
|
doctor: () => import("./doctor-DyKjAIKH.mjs").then((m) => m.default),
|
|
15
15
|
validate: () => import("./validate-B10L7RL7.mjs").then((m) => m.default),
|
|
16
16
|
serve: () => import("./serve-CNeFIQ1i.mjs").then((m) => m.default),
|
|
17
17
|
generate: () => import("./generate-DrUojrk8.mjs").then((m) => m.default),
|
|
18
18
|
diff: () => import("./diff--halNUpG.mjs").then((m) => m.default),
|
|
19
|
-
setup: () => import("./setup-
|
|
20
|
-
skills: () => import("./skills-
|
|
19
|
+
setup: () => import("./setup-Y1LFQ9rZ.mjs").then((m) => m.default),
|
|
20
|
+
skills: () => import("./skills-Cp8KF1af.mjs").then((m) => m.default),
|
|
21
21
|
studio: () => import("./studio-CJUGiIMd.mjs").then((m) => m.default)
|
|
22
22
|
}
|
|
23
23
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as resolveProjectRoot, t as loadProjectContext } from "./context-An3xrvcP.mjs";
|
|
2
2
|
import { i as pc } from "./ui-B5mXontH.mjs";
|
|
3
|
-
import { a as createPackageResolver, c as writeMcpConfig, i as addClaudeMdReference, n as IDE_CONFIGS, o as detectIdes, s as installIdeRulesAndSkills } from "./ide-
|
|
3
|
+
import { a as createPackageResolver, c as writeMcpConfig, i as addClaudeMdReference, n as IDE_CONFIGS, o as detectIdes, s as installIdeRulesAndSkills } from "./ide-_C2gUPbQ.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { confirm, intro, isCancel, log, multiselect, outro, select, spinner } from "@clack/prompts";
|
|
6
6
|
import { simpleGit } from "simple-git";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as resolveProjectRoot, t as loadProjectContext } from "./context-An3xrvcP.mjs";
|
|
2
2
|
import { i as pc } from "./ui-B5mXontH.mjs";
|
|
3
|
-
import { a as createPackageResolver, c as writeMcpConfig, n as IDE_CONFIGS, o as detectIdes, r as MCP_CONFIGS, s as installIdeRulesAndSkills } from "./ide-
|
|
3
|
+
import { a as createPackageResolver, c as writeMcpConfig, n as IDE_CONFIGS, o as detectIdes, r as MCP_CONFIGS, s as installIdeRulesAndSkills } from "./ide-_C2gUPbQ.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { intro, log, outro, spinner } from "@clack/prompts";
|
|
6
6
|
//#region src/commands/setup.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as resolveProjectRoot } from "./context-An3xrvcP.mjs";
|
|
2
2
|
import { i as pc } from "./ui-B5mXontH.mjs";
|
|
3
|
-
import { a as createPackageResolver, n as IDE_CONFIGS, o as detectIdes, s as installIdeRulesAndSkills, t as AGENT_SKILL_NAMES } from "./ide-
|
|
3
|
+
import { a as createPackageResolver, n as IDE_CONFIGS, o as detectIdes, s as installIdeRulesAndSkills, t as AGENT_SKILL_NAMES } from "./ide-_C2gUPbQ.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { intro, log, outro, spinner } from "@clack/prompts";
|
|
6
6
|
import { join } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentrain",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "CLI for Contentrain — AI content governance infrastructure",
|
|
6
6
|
"type": "module",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"simple-git": "^3.27.0",
|
|
48
48
|
"ws": "^8.18.0",
|
|
49
49
|
"@contentrain/rules": "0.3.3",
|
|
50
|
-
"@contentrain/mcp": "1.2.0",
|
|
51
50
|
"@contentrain/skills": "0.3.0",
|
|
51
|
+
"@contentrain/mcp": "1.2.1",
|
|
52
52
|
"@contentrain/query": "5.1.4",
|
|
53
53
|
"@contentrain/types": "0.4.2"
|
|
54
54
|
},
|