@cms-lab/cli 1.0.5 → 1.0.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
@@ -3,7 +3,7 @@
3
3
  CLI for catching CMS-driven Next.js failures before deploy.
4
4
 
5
5
  ```sh
6
- npx cms-lab scan
6
+ npx @cms-lab/cli scan
7
7
  ```
8
8
 
9
9
  ## Commands
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-BQIQ53GI.js";
4
+ } from "./chunk-N5Q575NL.js";
5
5
 
6
6
  // src/bin.ts
7
7
  var exitCode = await runCli(process.argv.slice(2));
@@ -119,7 +119,7 @@ function plural(value, singular) {
119
119
 
120
120
  // src/agent-context.ts
121
121
  var GITHUB_URL = "https://github.com/i-afaqrashid/cms-lab";
122
- var NPM_URL = "https://www.npmjs.com/package/cms-lab";
122
+ var NPM_URL = "https://www.npmjs.com/package/@cms-lab/cli";
123
123
  var DOCS_URL = "https://cmslab.afaqrashid.com/docs";
124
124
  function renderAgentContextFiles(options) {
125
125
  const outputDir = trimSlashes(options.outputDir || ".cms-lab") || ".cms-lab";
@@ -182,9 +182,9 @@ Before changing code for CMS-related failures:
182
182
  - GitHub: ${GITHUB_URL}
183
183
  - npm: ${NPM_URL}
184
184
  - Docs: ${DOCS_URL}
185
- 4. Run \`npx cms-lab doctor\` before a first scan.
186
- 5. Run \`npx cms-lab scan --ci --report\` to reproduce diagnostics.
187
- 6. Use \`npx cms-lab explain <CODE>\` for diagnostic details.
185
+ 4. Run \`npx @cms-lab/cli doctor\` before a first scan.
186
+ 5. Run \`npx @cms-lab/cli scan --ci --report\` to reproduce diagnostics.
187
+ 6. Use \`npx @cms-lab/cli explain <CODE>\` for diagnostic details.
188
188
 
189
189
  Do not print or commit CMS tokens, webhook URLs, private site URLs, raw CMS payloads, or local absolute paths.
190
190
  `;
@@ -195,7 +195,7 @@ function renderClaudeMd(contextPath, promptPath) {
195
195
  @${contextPath}
196
196
  @${promptPath}
197
197
 
198
- Use these cms-lab files before changing code for CMS route, field, SEO, or report diagnostics. Run \`npx cms-lab doctor\` first when connecting a project, then run \`npx cms-lab scan --ci --report\` to reproduce the current diagnostics.
198
+ Use these cms-lab files before changing code for CMS route, field, SEO, or report diagnostics. Run \`npx @cms-lab/cli doctor\` first when connecting a project, then run \`npx @cms-lab/cli scan --ci --report\` to reproduce the current diagnostics.
199
199
 
200
200
  Do not print or commit CMS tokens, webhook URLs, private site URLs, raw CMS payloads, or local absolute paths.
201
201
  `;
@@ -206,7 +206,7 @@ function renderGeminiMd(contextPath, promptPath) {
206
206
  @${contextPath}
207
207
  @${promptPath}
208
208
 
209
- Use these cms-lab files before changing code for CMS route, field, SEO, or report diagnostics. Run \`npx cms-lab doctor\` first when connecting a project, then run \`npx cms-lab scan --ci --report\` to reproduce the current diagnostics.
209
+ Use these cms-lab files before changing code for CMS route, field, SEO, or report diagnostics. Run \`npx @cms-lab/cli doctor\` first when connecting a project, then run \`npx @cms-lab/cli scan --ci --report\` to reproduce the current diagnostics.
210
210
 
211
211
  Do not print or commit CMS tokens, webhook URLs, private site URLs, raw CMS payloads, or local absolute paths.
212
212
  `;
@@ -218,8 +218,8 @@ This project uses cms-lab to check CMS content against the routes and fields the
218
218
 
219
219
  - Read \`${contextPath}\` before changing code for CMS diagnostics.
220
220
  - Use \`${promptPath}\` when asked to investigate a cms-lab failure.
221
- - Prefer reproducing with \`npx cms-lab scan --ci --report\` before editing application code.
222
- - Use \`npx cms-lab explain <CODE>\` before deciding where a diagnostic should be fixed.
221
+ - Prefer reproducing with \`npx @cms-lab/cli scan --ci --report\` before editing application code.
222
+ - Use \`npx @cms-lab/cli explain <CODE>\` before deciding where a diagnostic should be fixed.
223
223
  - Do not print or commit CMS tokens, webhook URLs, private site URLs, raw CMS payloads, or local absolute paths.
224
224
  `;
225
225
  }
@@ -230,9 +230,9 @@ Use this prompt when investigating cms-lab diagnostics in this repository.
230
230
 
231
231
  1. Read \`${contextPath}\`.
232
232
  2. Read \`${promptPath}\`.
233
- 3. Run \`npx cms-lab doctor\`.
234
- 4. Run \`npx cms-lab scan --ci --report\`.
235
- 5. For each diagnostic code, run \`npx cms-lab explain <CODE>\`.
233
+ 3. Run \`npx @cms-lab/cli doctor\`.
234
+ 4. Run \`npx @cms-lab/cli scan --ci --report\`.
235
+ 5. For each diagnostic code, run \`npx @cms-lab/cli explain <CODE>\`.
236
236
  6. Decide whether the fix belongs in CMS content, cms-lab route mapping, or application code.
237
237
  7. Make the smallest verifiable change and rerun cms-lab.
238
238
 
@@ -270,10 +270,10 @@ ${checksSummary(options.config)}
270
270
  ## Recommended commands
271
271
 
272
272
  \`\`\`sh
273
- npx cms-lab doctor
274
- npx cms-lab scan --ci --report
275
- npx cms-lab scan --json
276
- npx cms-lab explain CMS-ROUTE-404
273
+ npx @cms-lab/cli doctor
274
+ npx @cms-lab/cli scan --ci --report
275
+ npx @cms-lab/cli scan --json
276
+ npx @cms-lab/cli explain CMS-ROUTE-404
277
277
  \`\`\`
278
278
 
279
279
  ## Agent workflow
@@ -301,8 +301,8 @@ Start here:
301
301
  5. Run:
302
302
 
303
303
  \`\`\`sh
304
- npx cms-lab doctor
305
- npx cms-lab scan --ci --report
304
+ npx @cms-lab/cli doctor
305
+ npx @cms-lab/cli scan --ci --report
306
306
  \`\`\`
307
307
 
308
308
  Project facts:
@@ -311,7 +311,7 @@ Project facts:
311
311
  - CMS provider: ${options.config.cms.provider}
312
312
  - Route mappings: ${options.config.routes.map((route) => `${route.type} -> ${route.pattern}`).join(", ")}
313
313
 
314
- When diagnostics appear, use \`npx cms-lab explain <CODE>\` before deciding whether the fix belongs in CMS content, route mapping, or application code.
314
+ When diagnostics appear, use \`npx @cms-lab/cli explain <CODE>\` before deciding whether the fix belongs in CMS content, route mapping, or application code.
315
315
 
316
316
  Never reveal CMS tokens, private site URLs, webhook URLs, raw CMS payloads, or local absolute paths in commits, issues, pull requests, logs, or summaries.
317
317
  `;
@@ -513,7 +513,7 @@ var noColor = {
513
513
  // src/index.ts
514
514
  async function runCli(argv, dependencies = {}) {
515
515
  let exitCode = 0;
516
- const program = new Command().name("cms-lab").description("Catch CMS bugs before deploy.").version("1.0.5").exitOverride().configureOutput({
516
+ const program = new Command().name("cms-lab").description("Catch CMS bugs before deploy.").version("1.0.8").exitOverride().configureOutput({
517
517
  writeOut: (text) => writeStdout(dependencies, text),
518
518
  writeErr: (text) => writeStderr(dependencies, text)
519
519
  });
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runCli
3
- } from "./chunk-BQIQ53GI.js";
3
+ } from "./chunk-N5Q575NL.js";
4
4
  export {
5
5
  runCli
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cms-lab/cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "Catch CMS bugs before deploy.",
6
6
  "license": "MIT",
@@ -47,15 +47,15 @@
47
47
  "dependencies": {
48
48
  "commander": "^14.0.2",
49
49
  "picocolors": "^1.1.1",
50
- "@cms-lab/contentful": "1.0.5",
51
- "@cms-lab/directus": "1.0.5",
52
- "@cms-lab/core": "1.0.5",
53
- "@cms-lab/next": "1.0.5",
54
- "@cms-lab/prismic": "1.0.5",
55
- "@cms-lab/sanity": "1.0.5",
56
- "@cms-lab/wordpress": "1.0.5",
57
- "@cms-lab/strapi": "1.0.5",
58
- "@cms-lab/reporter": "1.0.5"
50
+ "@cms-lab/contentful": "1.0.8",
51
+ "@cms-lab/directus": "1.0.8",
52
+ "@cms-lab/next": "1.0.8",
53
+ "@cms-lab/prismic": "1.0.8",
54
+ "@cms-lab/core": "1.0.8",
55
+ "@cms-lab/sanity": "1.0.8",
56
+ "@cms-lab/strapi": "1.0.8",
57
+ "@cms-lab/reporter": "1.0.8",
58
+ "@cms-lab/wordpress": "1.0.8"
59
59
  },
60
60
  "author": "Afaq Rashid",
61
61
  "scripts": {