contentrain 0.4.0 → 0.4.1
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/{diff-Cq6iSnaD.mjs → diff--halNUpG.mjs} +1 -0
- package/dist/{generate-DDEDRLdy.mjs → generate-DrUojrk8.mjs} +1 -0
- package/dist/index.mjs +5 -5
- package/dist/{init-BARgfYUV.mjs → init-Q9B0iYtu.mjs} +3 -0
- package/dist/{status-Bi9HYgcA.mjs → status-BmQZGdZX.mjs} +1 -0
- package/package.json +3 -3
|
@@ -141,6 +141,7 @@ var diff_default = defineCommand({
|
|
|
141
141
|
log.error(`Delete failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
+
log.message(pc.dim(`\n Tip: ${pc.cyan("contentrain studio branches")} — visual review and approval in ${pc.bold("Contentrain Studio")} → ${pc.underline("https://studio.contentrain.io")}`));
|
|
144
145
|
outro("");
|
|
145
146
|
}
|
|
146
147
|
});
|
|
@@ -41,6 +41,7 @@ var generate_default = defineCommand({
|
|
|
41
41
|
log.message(` Types: ${result.typesCount}`);
|
|
42
42
|
log.message(` Data: ${result.dataModulesCount} modules`);
|
|
43
43
|
if (result.packageJsonUpdated) log.info(`${pc.cyan("#contentrain")} imports added to package.json`);
|
|
44
|
+
log.message(pc.dim(`\n Tip: ${pc.cyan("contentrain studio cdn-init")} — deliver content via ${pc.bold("Contentrain Studio")} CDN → ${pc.underline("https://studio.contentrain.io")}`));
|
|
44
45
|
if (args.watch) {
|
|
45
46
|
log.info("Watching for changes... (Ctrl+C to stop)");
|
|
46
47
|
const crDir = contentrainDir(projectRoot);
|
package/dist/index.mjs
CHANGED
|
@@ -5,17 +5,17 @@ import { defineCommand, runMain } from "citty";
|
|
|
5
5
|
runMain(defineCommand({
|
|
6
6
|
meta: {
|
|
7
7
|
name: "contentrain",
|
|
8
|
-
version: "0.4.
|
|
8
|
+
version: "0.4.1",
|
|
9
9
|
description: "Contentrain CLI — AI content governance infrastructure"
|
|
10
10
|
},
|
|
11
11
|
subCommands: {
|
|
12
|
-
init: () => import("./init-
|
|
13
|
-
status: () => import("./status-
|
|
12
|
+
init: () => import("./init-Q9B0iYtu.mjs").then((m) => m.default),
|
|
13
|
+
status: () => import("./status-BmQZGdZX.mjs").then((m) => m.default),
|
|
14
14
|
doctor: () => import("./doctor-DyKjAIKH.mjs").then((m) => m.default),
|
|
15
15
|
validate: () => import("./validate-DnVamp3p.mjs").then((m) => m.default),
|
|
16
16
|
serve: () => import("./serve-DL4LhWxl.mjs").then((m) => m.default),
|
|
17
|
-
generate: () => import("./generate-
|
|
18
|
-
diff: () => import("./diff
|
|
17
|
+
generate: () => import("./generate-DrUojrk8.mjs").then((m) => m.default),
|
|
18
|
+
diff: () => import("./diff--halNUpG.mjs").then((m) => m.default),
|
|
19
19
|
studio: () => import("./studio-B8lF0fQx.mjs").then((m) => m.default)
|
|
20
20
|
}
|
|
21
21
|
}));
|
|
@@ -278,6 +278,9 @@ var init_default = defineCommand({
|
|
|
278
278
|
log.message(` ${pc.cyan("contentrain doctor")} — verify setup health`);
|
|
279
279
|
if (templateChoice === "none") log.message(` ${pc.cyan("contentrain serve")} — open the local review and normalize UI`);
|
|
280
280
|
log.message(` ${pc.cyan("contentrain generate")} — generate SDK client`);
|
|
281
|
+
log.message("");
|
|
282
|
+
log.message(pc.dim(` Tip: ${pc.cyan("contentrain studio connect")} — link this project to ${pc.bold("Contentrain Studio")} for`));
|
|
283
|
+
log.message(pc.dim(` team review, CDN delivery, and collaboration → ${pc.underline("https://studio.contentrain.io")}`));
|
|
281
284
|
outro("");
|
|
282
285
|
}
|
|
283
286
|
});
|
|
@@ -148,6 +148,7 @@ var status_default = defineCommand({
|
|
|
148
148
|
if (result.summary.errors > 0) log.warning(`\n${formatCount(result.summary.errors, "validation error")}. Run ${pc.cyan("contentrain validate --fix")} to fix.`);
|
|
149
149
|
else log.success("\nValidation: clean");
|
|
150
150
|
} catch {}
|
|
151
|
+
log.message(pc.dim(`\n Tip: ${pc.cyan("contentrain studio status")} — team activity, usage, and CDN in ${pc.bold("Contentrain Studio")} → ${pc.underline("https://studio.contentrain.io")}`));
|
|
151
152
|
outro("");
|
|
152
153
|
}
|
|
153
154
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentrain",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "CLI for Contentrain — AI content governance infrastructure",
|
|
6
6
|
"type": "module",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"simple-git": "^3.27.0",
|
|
48
48
|
"ws": "^8.18.0",
|
|
49
49
|
"@contentrain/rules": "0.3.1",
|
|
50
|
-
"@contentrain/mcp": "1.1.2",
|
|
51
50
|
"@contentrain/query": "5.1.3",
|
|
52
|
-
"@contentrain/types": "0.4.1"
|
|
51
|
+
"@contentrain/types": "0.4.1",
|
|
52
|
+
"@contentrain/mcp": "1.1.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/ws": "^8.5.0",
|