codecane 1.0.298 → 1.0.300

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/menu.js CHANGED
@@ -31,7 +31,7 @@ exports.displayMenu = displayMenu;
31
31
  const fs = __importStar(require("fs"));
32
32
  const os_1 = __importDefault(require("os"));
33
33
  const path_1 = __importDefault(require("path"));
34
- const picocolors_1 = __importStar(require("picocolors"));
34
+ const picocolors_1 = require("picocolors");
35
35
  const project_files_1 = require("./project-files");
36
36
  const getRandomColors = () => {
37
37
  const allColors = ['red', 'green', 'yellow', 'blue', 'magenta', 'cyan'];
@@ -76,7 +76,7 @@ function displayMenu() {
76
76
  .split('')
77
77
  .map((char) => {
78
78
  const color = getRandomColor();
79
- return picocolors_1.default[color](char);
79
+ return color[char];
80
80
  })
81
81
  .join('');
82
82
  };
@@ -92,24 +92,33 @@ ${colorizeRandom('╚██████╗')}${colorizeRandom('╚████
92
92
  ${colorizeRandom(' ╚═════╝')}${colorizeRandom(' ╚═════╝ ')}${colorizeRandom(' ╚═════╝ ')}${colorizeRandom('╚══════╝')}${colorizeRandom('╚═════╝ ')}${colorizeRandom(' ╚═════╝ ')}${colorizeRandom('╚═╝ ')}${colorizeRandom('╚═╝ ')}
93
93
  `);
94
94
  // DIAGNOSTICS SECTION
95
+ // Define terminal width and layout preference before using it
96
+ const terminalWidth = process.stdout.columns || 80;
97
+ const useSimpleLayout = terminalWidth < 100;
95
98
  console.log(`
96
- ──────────────────────────────────────────────────────────────
99
+ ${useSimpleLayout ? '────────────────────────────────' : '──────────────────────────────────────────────────────────────'}
100
+ ${(0, picocolors_1.blueBright)('📂')} Current directory: ${(0, picocolors_1.blueBright)((0, project_files_1.getProjectRoot)())}
101
+ ${useSimpleLayout ? '────────────────────────────────' : '──────────────────────────────────────────────────────────────'}
102
+
97
103
  DIAGNOSTICS CHECK: ${(() => {
98
104
  const hasGitRepo = fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), '.git'));
99
105
  const hasGitIgnore = fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), '.gitignore'));
100
- const hasPackageJson = fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), 'package.json'));
106
+ const hasKnowledgeMd = fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), 'knowledge.md'));
107
+ const hasCodebuffJson = fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), 'codebuff.json'));
108
+ const isInitialized = hasKnowledgeMd && hasCodebuffJson;
101
109
  if (!hasGitRepo || !hasGitIgnore) {
102
- return (0, picocolors_1.yellow)(`⚠️ WARNING: Project setup may be incomplete`);
110
+ return (0, picocolors_1.yellow)(`⚠️ WARNING: Project setup may be incomplete. Please navigate to a working directory.`);
103
111
  }
104
- else {
105
- return (0, picocolors_1.green)(`🚀 Project looks good!`);
112
+ else if (!isInitialized) {
113
+ return (0, picocolors_1.yellow)(`⚠️ WARNING: Project not initialized. Run "init" command for better results.`);
106
114
  }
115
+ return "";
107
116
  })()}
108
- ${!fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), '.git')) ? '❌ Git repo: not found (version control recommended)' : (0, picocolors_1.green)('✅') + ' Git repo: detected'}
117
+ ${!fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), '.git')) ? '❌ Git repo: not found (please navigate to a working directory with version control)' : (0, picocolors_1.green)('✅') + ' Git repo: detected'}
109
118
  ${!fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), '.gitignore')) ? '❌ .gitignore: missing (use .codebuffignore to override)' : (0, picocolors_1.green)('✅') + ' .gitignore: detected'}
110
- ${!fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), 'package.json')) ? '❌ package.json: missing (required for npm/yarn projects)' : (0, picocolors_1.green)('✅') + ' package.json: detected'}
111
- ${(0, picocolors_1.blueBright)('📂')} Current directory: ${(0, picocolors_1.blueBright)((0, project_files_1.getProjectRoot)())}
112
- ──────────────────────────────────────────────────────────────
119
+ ${!fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), 'knowledge.md')) ? '❌ knowledge.md: missing (run "init" command to create this file for project knowledge)' : (0, picocolors_1.green)('✅') + ' knowledge.md: detected'}
120
+ ${!fs.existsSync(path_1.default.join((0, project_files_1.getProjectRoot)(), 'codebuff.json')) ? '❌ codebuff.json: missing (run "init" command to initialize project)' : (0, picocolors_1.green)('✅') + ' codebuff.json: detected'}
121
+ ${useSimpleLayout ? '────────────────────────────────' : '────────────────────────────────────────'}
113
122
  `);
114
123
  // COMMUNITY & FEEDBACK SECTION
115
124
  console.log(`
@@ -120,69 +129,148 @@ ${colorizeRandom(' ╚═════╝')}${colorizeRandom(' ╚═════
120
129
  OUR DISCORD: ${(0, picocolors_1.blueBright)('https://codebuff.com/discord')} ${(0, picocolors_1.yellow)('(Ctrl/Cmd+Click to open)')}
121
130
  `);
122
131
  // COMMANDS SECTION
123
- console.log(`
124
- ┌──────────────────────┬─────────────────────────────────────────┐
125
- │ COMMAND │ DESCRIPTION │
126
- ├──────────────────────┼─────────────────────────────────────────┤
127
- "login"Authenticate your session
128
- ├──────────────────────┼─────────────────────────────────────────┤
129
- "diff" or "d"Show last assistant change diff
130
- ├──────────────────────┼─────────────────────────────────────────┤
131
- "undo"/"redo" or "u"Revert or re-apply last change
132
- ├──────────────────────┼─────────────────────────────────────────┤
133
- "checkpoint list"List all checkpoints
134
- ├──────────────────────┼─────────────────────────────────────────┤
135
- "checkpoint <id>"Restore to a specific checkpoint
136
- ├──────────────────────┼─────────────────────────────────────────┤
137
- "usage"/"credits"View remaining/bonus AI credits
138
- ├──────────────────────┼─────────────────────────────────────────┤
139
- "init"Configure project for better results
140
- ├──────────────────────┼─────────────────────────────────────────┤
141
- "exit" or Ctrl-C x2Quit Codebuff
142
- ├──────────────────────┼─────────────────────────────────────────┤
143
- "!<cmd>"Run shell command directly
144
- ├──────────────────────┼─────────────────────────────────────────┤
145
- ESC keyCancel generation
146
- └──────────────────────┴─────────────────────────────────────────┘
147
- `);
132
+ console.log(`\n COMMANDS:`);
133
+ if (useSimpleLayout) {
134
+ // Clean, aligned format for commands in narrow terminals
135
+ console.log(`
136
+ "login" Authenticate your session
137
+ ────────────────────────────────────────────────
138
+ "diff" or "d" Show last assistant change diff
139
+ ────────────────────────────────────────────────
140
+ "undo"/"redo" or "u" Revert or re-apply last change
141
+ ────────────────────────────────────────────────
142
+ "checkpoint list" List all checkpoints
143
+ ────────────────────────────────────────────────
144
+ "checkpoint <id>" Restore to a specific checkpoint
145
+ ────────────────────────────────────────────────
146
+ "usage"/"credits" View remaining/bonus AI credits
147
+ ────────────────────────────────────────────────
148
+ "init" Configure project for better results
149
+ ────────────────────────────────────────────────
150
+ "exit" or Ctrl-C x2 Quit Codebuff
151
+ ────────────────────────────────────────────────
152
+ "!<cmd>" Run shell command directly
153
+ ────────────────────────────────────────────────
154
+ ESC key Cancel generation
155
+ `);
156
+ }
157
+ else {
158
+ // Original table format for larger terminals
159
+ console.log(`
160
+ ${(0, picocolors_1.bold)('COMMAND')} ${(0, picocolors_1.bold)('DESCRIPTION')}
161
+ ────────────────────────────────────────────────────────────
162
+ "login" Authenticate your session
163
+ ────────────────────────────────────────────────────────────
164
+ "diff" or "d" Show last assistant change diff
165
+ ────────────────────────────────────────────────────────────
166
+ "undo"/"redo" or "u" Revert or re-apply last change
167
+ ────────────────────────────────────────────────────────────
168
+ "checkpoint list" List all checkpoints
169
+ ────────────────────────────────────────────────────────────
170
+ "checkpoint <id>" Restore to a specific checkpoint
171
+ ────────────────────────────────────────────────────────────
172
+ "usage"/"credits" View remaining/bonus AI credits
173
+ ────────────────────────────────────────────────────────────
174
+ "init" Configure project for better results
175
+ ────────────────────────────────────────────────────────────
176
+ "exit" or Ctrl-C x2 Quit Codebuff
177
+ ────────────────────────────────────────────────────────────
178
+ "!<cmd>" Run shell command directly
179
+ ────────────────────────────────────────────────────────────
180
+ ESC key Cancel generation
181
+ `);
182
+ }
148
183
  // CODEBUFF USE CASES AND FEATURES SECTION
149
- console.log(`
150
- ${(0, picocolors_1.blueBright)(' SAMPLE USE CASES AND PROMPTS ')}
184
+ if (useSimpleLayout) {
185
+ console.log(`\n ${(0, picocolors_1.blueBright)((0, picocolors_1.underline)('SAMPLE USE CASES AND PROMPTS:'))}`);
186
+ }
187
+ else {
188
+ console.log(`
189
+ ${(0, picocolors_1.blueBright)((0, picocolors_1.underline)(' SAMPLE USE CASES AND PROMPTS '))}
190
+ `);
191
+ }
192
+ if (useSimpleLayout) {
193
+ // Simple linear layout for narrow terminals
194
+ console.log(`
195
+ ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Code Transformation'))}
196
+ |
197
+ ├── Refactoring
198
+ │ └── "Refactor this function to use async/await"
199
+ |
200
+ ├── Conversion
201
+ │ └── "Convert this JavaScript to TypeScript"
202
+ |
203
+ └── Optimization
204
+ └── "Optimize this function for better performance"
151
205
 
152
- ┌──────────────────────────────────────────────────────────────────────────┐
153
- │ │
154
- │ ● Code Transformation ● Documentation & Understanding │
155
- │ │ │
156
- │ ├── Refactoring ├── Explanation │
157
- │ │ └─ "Refactor this function │ └─ "Explain how this code │
158
- │ to use async/await" │ works in simple terms"
159
- │ │ │ │
160
- │ ├── Conversion ├── Documentation │
161
- │ │ └─ "Convert this JavaScript │ └─ "Generate JSDoc for │
162
- │ │ to TypeScript" │ this module" │
163
- │ │ │ │
164
- │ └── Optimization └── Architecture │
165
- │ └─ "Optimize this function │ └─ "Explain the design │
166
- for better performance" │ pattern used here"
167
- │ │ │
168
- ├──────────────────────────────────────────────────────────────────────────┤
169
-
170
- │ ● Testing & Quality ● Development Tools │
171
- │ │ │ │
172
- │ ├── Unit Tests ├── CLI Tools │
173
- │ │ └─ "Create unit tests for │ └─ "Build a CLI command │
174
- │ │ this API endpoint" │ to process these files" │
175
- │ │ │ │
176
- ├── Integration ├── Data Processing │
177
- │ └─ "Set up CI/CD workflow │ └─ "Parse this JSON data │
178
- │ │ for this project" │ and extract values" │
179
- │ │ │ │
180
- └── Code Quality └── Schema Design │
181
- │ └─ "Improve error handling │ └─ "Create a database │
182
- │ in this function" │ schema for this model" │
183
- │ │ │
184
- └──────────────────────────────────────────────────────────────────────────┘
185
- `);
186
- console.log(`\nThanks for using Codebuff - ↓ Start prompting now ↓`);
206
+ ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Documentation & Understanding'))}
207
+ |
208
+ ├── Explanation
209
+ └── "Explain how this code works in simple terms"
210
+ |
211
+ ├── Documentation
212
+ └── "Generate JSDoc for this module"
213
+ |
214
+ └── Architecture
215
+ └── "Explain the design pattern used here"
216
+
217
+ ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Testing & Quality'))}
218
+ |
219
+ ├── Unit Tests
220
+ └── "Create unit tests for this API endpoint"
221
+ |
222
+ ├── Integration
223
+ └── "Set up CI/CD workflow for this project"
224
+ |
225
+ └── Code Quality
226
+ └── "Improve error handling in this function"
227
+
228
+ ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Development Tools'))}
229
+ |
230
+ ├── CLI Tools
231
+ └── "Build a CLI command to process these files"
232
+ |
233
+ ├── Data Processing
234
+ └── "Parse this JSON data and extract values"
235
+ |
236
+ └── Schema Design
237
+ └── "Create a database schema for this model"
238
+ `);
239
+ }
240
+ else {
241
+ // Original wide layout for larger terminals
242
+ console.log(`
243
+ ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Code Transformation'))} ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Documentation & Understanding'))}
244
+ │ │
245
+ ├── Refactoring ├── Explanation
246
+ │ └─ "Refactor this function │ └─ "Explain how this code
247
+ │ to use async/await" │ works in simple terms"
248
+ │ │
249
+ ├── Conversion ├── Documentation
250
+ │ └─ "Convert this JavaScript │ └─ "Generate JSDoc for
251
+ │ to TypeScript" │ this module"
252
+ │ │
253
+ └── Optimization └── Architecture
254
+ └─ "Optimize this function └─ "Explain the design
255
+ for better performance" pattern used here"
256
+
257
+ ────────────────────────────────────────────────────────────────────────
258
+
259
+ ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Testing & Quality'))} ${(0, picocolors_1.bold)((0, picocolors_1.underline)('Development Tools'))}
260
+ │ │
261
+ ├── Unit Tests ├── CLI Tools
262
+ │ └─ "Create unit tests for │ └─ "Build a CLI command
263
+ │ this API endpoint" │ to process these files"
264
+ │ │
265
+ ├── Integration ├── Data Processing
266
+ │ └─ "Set up CI/CD workflow │ └─ "Parse this JSON data
267
+ │ for this project" │ and extract values"
268
+ │ │
269
+ └── Code Quality └── Schema Design
270
+ └─ "Improve error handling └─ "Create a database
271
+ in this function" schema for this model"
272
+ `);
273
+ }
274
+ console.log(`\nThanks for using Codebuff - ${(0, picocolors_1.green)('↓ Start prompting now ↓')}`);
187
275
  }
188
276
  //# sourceMappingURL=menu.js.map
package/dist/menu.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"menu.js","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,0CAkCC;AAED,kCAkIC;AAjMD,uCAAwB;AACxB,4CAAmB;AACnB,gDAAuB;AAGvB,yDAMmB;AAEnB,mDAAgD;AAEhD,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACvE,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC;IAC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;;;;;;;;;IAWhD,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,mBAAmB,CAAC,CAAC;;;;;;;;;;;IAWpC,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,mBAAmB,CAAC,CAAC;;;;;;;;;;KAUnC,CAAC,CAAA;IACJ,CAAC;SAAM,CAAC;QACN,4CAA4C;QAC5C,OAAO,CAAC,GAAG,CAAC;MACV,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,qBAAqB,CAAC,CAAC,yBAAyB,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,+BAA+B,CAAC,CAAC;;;;;;;;;;;;;;;;MAgB/G,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,mBAAmB,CAAC,CAAC,2BAA2B,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,mBAAmB,CAAC,CAAC;;;;;;;;;;;;;KAapG,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,iCAAiC,IAAA,kBAAK,EAAC,yBAAyB,CAAC,EAAE,CAAC,CAAA;AAClF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecane",
3
- "version": "1.0.298",
3
+ "version": "1.0.300",
4
4
  "description": "AI dev assistant",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",