greptile 3.0.7 → 3.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greptile",
3
- "version": "3.0.7",
3
+ "version": "3.1.1",
4
4
  "type": "module",
5
5
  "description": "Greptile code review from your terminal",
6
6
  "bin": {
@@ -11,6 +11,7 @@
11
11
  "build": "bun scripts/bundle.ts",
12
12
  "postbuild": "bun scripts/link-dev.ts",
13
13
  "dev": "bun run src/main.ts",
14
+ "generate:schema": "bun scripts/generate-settings-schema.ts",
14
15
  "lint": "oxlint --type-aware src --ignore-pattern '**/__tests__/**' --ignore-pattern '**/*.test.ts' --ignore-pattern '**/*.test.tsx'",
15
16
  "format": "oxfmt src package.json tsconfig.json",
16
17
  "prepack": "bun scripts/bundle.ts",
@@ -18,27 +19,30 @@
18
19
  "typecheck": "tsc --noEmit"
19
20
  },
20
21
  "devDependencies": {
21
- "@clack/prompts": "^1.4.0",
22
22
  "@inkjs/ui": "^2.0.0",
23
23
  "@pierre/theme": "^1.0.3",
24
24
  "@types/bun": "^1.3.11",
25
25
  "@types/react": "^19.2.14",
26
- "citty": "^0.2.2",
27
26
  "cli-truncate": "^6.0.0",
27
+ "commander": "^15.0.0",
28
28
  "ink": "^7.0.3",
29
29
  "picocolors": "^1.1.1",
30
30
  "react": "^19.2.6",
31
31
  "shiki": "^4.1.0",
32
+ "ssh-config": "^5.1.0",
32
33
  "string-width": "^8.2.1",
33
34
  "strip-ansi": "^7.2.0",
34
35
  "terminal-link": "^5.0.0",
35
36
  "typescript": "^6.0.3",
36
37
  "wrap-ansi": "^9.0.2",
37
- "zod": "^3.25.76"
38
+ "zod": "^3.25.76",
39
+ "zod-to-json-schema": "^3.25.2"
38
40
  },
39
41
  "files": [
40
42
  "dist/greptile.js",
41
- "README.md"
43
+ "settings-schema.json",
44
+ "README.md",
45
+ "CHANGELOG.md"
42
46
  ],
43
47
  "engines": {
44
48
  "node": ">=22.0.0"
@@ -0,0 +1,47 @@
1
+ {
2
+ "$id": "https://cdn.jsdelivr.net/npm/greptile@3/settings-schema.json",
3
+ "title": "Greptile CLI settings",
4
+ "description": "Saved settings for the greptile CLI, normally managed with `greptile settings set`. See `greptile settings --help`.",
5
+ "type": "object",
6
+ "properties": {
7
+ "version": {
8
+ "type": "number",
9
+ "description": "Settings file format version, written by the CLI."
10
+ },
11
+ "color": {
12
+ "type": "boolean",
13
+ "description": "Color output. Set to false for the same effect as always passing --no-color."
14
+ },
15
+ "review": {
16
+ "type": "object",
17
+ "properties": {
18
+ "output": {
19
+ "type": "string",
20
+ "enum": ["auto", "text", "json"],
21
+ "description": "Default review output: auto (rich on a terminal, text when piped), text, or json."
22
+ },
23
+ "layout": {
24
+ "type": "string",
25
+ "enum": ["comments", "diff"],
26
+ "description": "Default review layout: comments, or diff to show findings beside the changed code."
27
+ },
28
+ "context": {
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "maximum": 60,
32
+ "description": "Lines of nearby code shown around findings, the same as passing --context."
33
+ },
34
+ "width": {
35
+ "type": "integer",
36
+ "minimum": 40,
37
+ "maximum": 240,
38
+ "description": "Review output width in columns, the same as passing --width."
39
+ }
40
+ },
41
+ "additionalProperties": true,
42
+ "description": "Settings for greptile review."
43
+ }
44
+ },
45
+ "additionalProperties": true,
46
+ "$schema": "http://json-schema.org/draft-07/schema#"
47
+ }