contentrain 0.14.7 → 0.14.9

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`. Without these flags,
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) {
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.7";
5
+ var version = "0.14.9";
6
6
  //#endregion
7
7
  //#region src/utils/debug.ts
8
8
  /**
@@ -50,7 +50,7 @@ runMain(defineCommand({
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-BQMD4ux-.mjs").then((m) => m.default),
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.7",
3
+ "version": "0.14.9",
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.5",
51
- "@contentrain/query": "7.5.1",
50
+ "@contentrain/mcp": "3.6.7",
51
+ "@contentrain/query": "7.6.1",
52
52
  "@contentrain/rules": "0.7.2",
53
53
  "@contentrain/skills": "0.9.4",
54
- "@contentrain/types": "1.22.0",
55
- "@contentrain/wp-import": "0.5.7"
54
+ "@contentrain/types": "1.24.0",
55
+ "@contentrain/wp-import": "0.7.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/ws": "^8.5.0",