-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
159 lines (159 loc) · 5.48 KB
/
package.json
File metadata and controls
159 lines (159 loc) · 5.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"name": "codex-commit-generator",
"displayName": "Codex Commit Generator",
"description": "Generate, review, commit, and optionally push Git changes in Source Control using a local Codex CLI.",
"version": "0.1.0",
"publisher": "local",
"license": "MIT",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"SCM Providers"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "codexCommit.generate",
"title": "Codex: Generate Commit Message",
"category": "Codex",
"icon": "$(sparkle)"
},
{
"command": "codexCommit.smartCommit",
"title": "Codex: Smart Commit",
"category": "Codex",
"icon": "$(check)"
},
{
"command": "codexCommit.smartCommitPush",
"title": "Codex: Smart Commit and Push",
"category": "Codex",
"icon": "$(cloud-upload)"
}
],
"menus": {
"scm/title": [
{
"command": "codexCommit.generate",
"group": "navigation",
"when": "scmProvider == git"
},
{
"command": "codexCommit.smartCommit",
"group": "navigation",
"when": "scmProvider == git"
},
{
"command": "codexCommit.smartCommitPush",
"group": "navigation",
"when": "scmProvider == git"
}
]
},
"configuration": {
"title": "Codex Commit Generator",
"properties": {
"codexCommit.cliCommand": {
"type": "string",
"default": "codex",
"description": "Codex CLI executable used to generate commit messages. Use a full path if codex is not on PATH."
},
"codexCommit.subcommand": {
"type": "string",
"default": "exec",
"description": "Codex CLI subcommand used for non-interactive execution."
},
"codexCommit.promptTransport": {
"type": "string",
"enum": ["argument", "stdin"],
"default": "argument",
"description": "How to pass the generated prompt to Codex exec. The argument mode runs codex exec \"<prompt>\" and is the default."
},
"codexCommit.extraArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional args passed to Codex exec, for example model or sandbox flags."
},
"codexCommit.promptTemplate": {
"type": "string",
"default": "Generate a concise git commit message from this diff. Return only the commit message text. Use conventional commits if appropriate.\n\n{{diff}}",
"description": "Prompt template sent to the local CLI. Supports {{diff}} and {{diffFile}} placeholders."
},
"codexCommit.useStagedOnly": {
"type": "boolean",
"default": true,
"description": "Use staged diff first when generating commit messages."
},
"codexCommit.fallbackToUnstaged": {
"type": "boolean",
"default": false,
"description": "When staged diff is empty, allow fallback to unstaged diff."
},
"codexCommit.onExistingMessage": {
"type": "string",
"enum": ["replace", "append", "prepend", "ask"],
"default": "replace",
"description": "How to handle an existing Source Control commit message."
},
"codexCommit.timeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"description": "Timeout in milliseconds for the local CLI process."
},
"codexCommit.maxDiffChars": {
"type": "number",
"default": 12000,
"minimum": 100,
"description": "Maximum number of diff characters sent to the CLI."
},
"codexCommit.confirmBeforeCommit": {
"type": "boolean",
"default": true,
"description": "Require an explicit review step before committing."
},
"codexCommit.confirmBeforePush": {
"type": "boolean",
"default": true,
"description": "Require an explicit confirmation before pushing after Smart Commit and Push."
},
"codexCommit.autoStageWhenNeeded": {
"type": "boolean",
"default": false,
"description": "When Smart Commit finds no staged changes, make Stage All the default action in the staging prompt. The extension still asks before staging."
},
"codexCommit.pushAfterCommitDefault": {
"type": "boolean",
"default": false,
"description": "Make Push the default action in the Smart Commit and Push confirmation. The extension still asks before pushing."
},
"codexCommit.stageScope": {
"type": "string",
"enum": ["all", "trackedOnly"],
"default": "all",
"description": "Controls what Smart Commit stages when staging is requested. all includes tracked and untracked changes; trackedOnly excludes untracked files."
},
"codexCommit.debug": {
"type": "boolean",
"default": false,
"description": "Enable verbose logging in the Codex Commit Generator output channel."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"vscode:prepublish": "npm run compile"
},
"devDependencies": {
"@types/node": "^20.14.10",
"@types/vscode": "^1.90.0",
"typescript": "^5.5.4"
}
}