codeep 1.0.103 → 1.0.104
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/utils/project.js +5 -4
- package/package.json +1 -1
package/dist/utils/project.js
CHANGED
|
@@ -348,11 +348,10 @@ export function detectFilePaths(text, projectRoot = process.cwd()) {
|
|
|
348
348
|
* Get full project context for AI
|
|
349
349
|
*/
|
|
350
350
|
export function getProjectContext(dir = process.cwd()) {
|
|
351
|
-
if (!isProjectDirectory(dir))
|
|
352
|
-
return null;
|
|
353
351
|
try {
|
|
354
352
|
const files = scanDirectory(dir, 3);
|
|
355
|
-
const
|
|
353
|
+
const isProject = isProjectDirectory(dir);
|
|
354
|
+
const projectType = isProject ? getProjectType(dir) : 'generic';
|
|
356
355
|
const structure = generateTreeStructure(files, 25);
|
|
357
356
|
// Find key files that exist
|
|
358
357
|
const existingKeyFiles = KEY_FILES
|
|
@@ -370,7 +369,9 @@ export function getProjectContext(dir = process.cwd()) {
|
|
|
370
369
|
const codeFiles = files.filter(f => !f.isDirectory);
|
|
371
370
|
const fileCount = codeFiles.length;
|
|
372
371
|
// Generate summary
|
|
373
|
-
const summary =
|
|
372
|
+
const summary = isProject
|
|
373
|
+
? `${projectName} is a ${projectType} project with ${fileCount} code files.`
|
|
374
|
+
: `${projectName} is a folder with ${fileCount} files.`;
|
|
374
375
|
return {
|
|
375
376
|
root: dir,
|
|
376
377
|
name: projectName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.104",
|
|
4
4
|
"description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|