@driftdev/cli 1.15.0 → 1.15.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/drift.js CHANGED
@@ -336,6 +336,16 @@ function validateConfig(raw) {
336
336
  }
337
337
  }
338
338
  }
339
+ if (obj.examples !== undefined) {
340
+ if (typeof obj.examples !== "object" || obj.examples === null) {
341
+ errors.push('"examples" must be an object');
342
+ } else {
343
+ const examples = obj.examples;
344
+ if (examples.run !== undefined && typeof examples.run !== "boolean") {
345
+ errors.push('"examples.run" must be a boolean');
346
+ }
347
+ }
348
+ }
339
349
  if (errors.length > 0)
340
350
  return { ok: false, errors };
341
351
  const { $schema: _schema, ...rest } = obj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driftdev/cli",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Drift CLI - detect when your docs drift from your code",
5
5
  "keywords": [
6
6
  "typescript",
@@ -47,9 +47,9 @@
47
47
  "dependencies": {
48
48
  "@driftdev/clarity-adapter": "^1.0.1",
49
49
  "@driftdev/openapi-adapter": "^1.0.1",
50
- "@driftdev/sdk": "^1.15.0",
50
+ "@driftdev/sdk": "^1.15.1",
51
51
  "@modelcontextprotocol/sdk": "^1.29.0",
52
- "@openpkg-ts/sdk": "^0.52.2",
52
+ "@openpkg-ts/sdk": "^0.53.0",
53
53
  "@openpkg-ts/spec": "^0.52.0",
54
54
  "@typesafe-ai/sdk": "^0.6.0",
55
55
  "chalk": "^5.4.1",
@@ -42,6 +42,17 @@
42
42
  }
43
43
  },
44
44
  "additionalProperties": false
45
+ },
46
+ "examples": {
47
+ "type": "object",
48
+ "description": "Example execution policy",
49
+ "properties": {
50
+ "run": {
51
+ "type": "boolean",
52
+ "description": "Allow --run in non-TTY (CI) without --yes"
53
+ }
54
+ },
55
+ "additionalProperties": false
45
56
  }
46
57
  },
47
58
  "additionalProperties": true