contentrain 0.14.6 → 0.14.8
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/README.md
CHANGED
|
@@ -97,7 +97,7 @@ Every read command supports `--json` for CI use; write commands surface `--watch
|
|
|
97
97
|
| `status` | `--json` |
|
|
98
98
|
| `doctor` | `--json`, `--usage` — non-zero exit on failure; includes a remote `cr/*` branch check |
|
|
99
99
|
| `validate` | `--json`, `--fix`, `--interactive`, `--watch`, `--model <id>` |
|
|
100
|
-
| `generate` | `--json`, `--watch`, `--published`, `--at <ISO timestamp
|
|
100
|
+
| `generate` | `--json`, `--watch`, `--published`, `--at <ISO timestamp>`, `--require-status` |
|
|
101
101
|
| `diff` | `--json` |
|
|
102
102
|
| `merge` | `--yes` (skip confirm) |
|
|
103
103
|
| `reconcile` | `--yes` (execute a clean plan without prompting), `--json` (dry-run plan) |
|
|
@@ -352,6 +352,8 @@ The command reads the store (`--store`, default: the current directory) and its
|
|
|
352
352
|
|
|
353
353
|
`contentrain generate --published` excludes drafts and content outside its
|
|
354
354
|
`publish_at`/`expire_at` window. `--at 2026-10-01T12:00:00Z` fixes the public build
|
|
355
|
-
clock for reproducible tests and implies `--published`.
|
|
355
|
+
clock for reproducible tests and implies `--published`. `--require-status` also
|
|
356
|
+
excludes entries with no status in meta, for projects where every entry has one
|
|
357
|
+
(a WordPress import); it implies `--published`. Without these flags,
|
|
356
358
|
editorial generation keeps its existing behavior. Watch mode observes metadata
|
|
357
359
|
edits; a scheduled static publication still needs a build/deploy trigger.
|
|
@@ -30,6 +30,11 @@ var generate_default = defineCommand({
|
|
|
30
30
|
description: "ISO publication timestamp for a reproducible public build (implies --published)",
|
|
31
31
|
required: false
|
|
32
32
|
},
|
|
33
|
+
requireStatus: {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
description: "Also hold back entries with no status in meta (implies --published)",
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
33
38
|
watch: {
|
|
34
39
|
type: "boolean",
|
|
35
40
|
description: "Watch for changes and regenerate",
|
|
@@ -65,7 +70,8 @@ var generate_default = defineCommand({
|
|
|
65
70
|
projectRoot,
|
|
66
71
|
mediaBaseUrl,
|
|
67
72
|
publishedOnly: args.published,
|
|
68
|
-
at: args.at
|
|
73
|
+
at: args.at,
|
|
74
|
+
requireStatus: args.requireStatus
|
|
69
75
|
});
|
|
70
76
|
s?.stop("SDK client generated");
|
|
71
77
|
if (useJson) {
|
|
@@ -102,7 +108,8 @@ var generate_default = defineCommand({
|
|
|
102
108
|
projectRoot,
|
|
103
109
|
mediaBaseUrl,
|
|
104
110
|
publishedOnly: args.published,
|
|
105
|
-
at: args.at
|
|
111
|
+
at: args.at,
|
|
112
|
+
requireStatus: args.requireStatus
|
|
106
113
|
});
|
|
107
114
|
log.success(`Regenerated: ${r.generatedFiles.length} files`);
|
|
108
115
|
} catch (err) {
|
|
@@ -96,6 +96,7 @@ var import_default = defineCommand({
|
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
for (const [id, m] of Object.entries(report.models)) log.message(`${pc.cyan(id.padEnd(16))} ${m.kind.padEnd(10)} ${String(m.fields).padStart(3)} fields ${String(m.entries).padStart(5)} entries`);
|
|
99
|
+
if (report.password_protected_drafts) log.warning(`${report.password_protected_drafts} password-protected posts brought in as drafts — their body is the protected text; publish one only after deciding what it should show`);
|
|
99
100
|
if (report.dropped_relations) log.warning(`${report.dropped_relations} relations pointed outside the import and were dropped (details in import-report.json)`);
|
|
100
101
|
for (const w of warnings) log.warning(w);
|
|
101
102
|
if (raw.comments?.length) log.info(`comments-export.json written (contentrain-comments@1) — ready for a comments-service intake`);
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { i as pc } from "./ui-B8l_LC36.mjs";
|
|
3
3
|
import { defineCommand, runMain } from "citty";
|
|
4
4
|
//#region package.json
|
|
5
|
-
var version = "0.14.
|
|
5
|
+
var version = "0.14.8";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/utils/debug.ts
|
|
8
8
|
/**
|
|
@@ -44,13 +44,13 @@ runMain(defineCommand({
|
|
|
44
44
|
},
|
|
45
45
|
subCommands: {
|
|
46
46
|
init: () => import("./init-_0Hp__pU.mjs").then((m) => m.default),
|
|
47
|
-
import: () => import("./import-
|
|
47
|
+
import: () => import("./import-D9TtmPgM.mjs").then((m) => m.default),
|
|
48
48
|
delta: () => import("./delta-D6Cp9BdP.mjs").then((m) => m.default),
|
|
49
49
|
status: () => import("./status-5RpF1q6y.mjs").then((m) => m.default),
|
|
50
50
|
doctor: () => import("./doctor-B9MJgRO5.mjs").then((m) => m.default),
|
|
51
51
|
validate: () => import("./validate-CiP3MkeV.mjs").then((m) => m.default),
|
|
52
52
|
serve: () => import("./serve-Cglzhom-.mjs").then((m) => m.default),
|
|
53
|
-
generate: () => import("./generate-
|
|
53
|
+
generate: () => import("./generate-Cd-4W6ja.mjs").then((m) => m.default),
|
|
54
54
|
diff: () => import("./diff-6EnRgpPR.mjs").then((m) => m.default),
|
|
55
55
|
merge: () => import("./merge-C8l80Cg-.mjs").then((m) => m.default),
|
|
56
56
|
reconcile: () => import("./reconcile-D1clXB6h.mjs").then((m) => m.default),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentrain",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "CLI for Contentrain — AI content governance infrastructure",
|
|
6
6
|
"type": "module",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"simple-git": "^3.27.0",
|
|
48
48
|
"ws": "^8.18.0",
|
|
49
49
|
"zod": "^3.24.0",
|
|
50
|
-
"@contentrain/mcp": "3.6.
|
|
51
|
-
"@contentrain/query": "7.5.1",
|
|
50
|
+
"@contentrain/mcp": "3.6.6",
|
|
52
51
|
"@contentrain/rules": "0.7.2",
|
|
53
52
|
"@contentrain/skills": "0.9.4",
|
|
54
|
-
"@contentrain/types": "1.
|
|
55
|
-
"@contentrain/
|
|
53
|
+
"@contentrain/types": "1.23.0",
|
|
54
|
+
"@contentrain/query": "7.6.0",
|
|
55
|
+
"@contentrain/wp-import": "0.6.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/ws": "^8.5.0",
|