@codexa/cli 9.0.9 → 9.0.10
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/commands/discover.ts +38 -11
- package/commands/patterns.ts +29 -2
- package/commands/sync.ts +12 -1
- package/db/schema.ts +7 -0
- package/detectors/go.ts +55 -1
- package/detectors/node.ts +39 -1
- package/gates/standards-validator.ts +3 -2
- package/package.json +1 -1
- package/workflow.ts +26 -0
package/commands/discover.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
type UnifiedDetectionResult,
|
|
13
13
|
} from "../detectors/loader";
|
|
14
14
|
import { CodexaError } from "../errors";
|
|
15
|
+
import { getGrepaiWorkspace } from "./patterns";
|
|
15
16
|
|
|
16
17
|
interface StackDetection {
|
|
17
18
|
frontend?: string;
|
|
@@ -1123,19 +1124,36 @@ export function ensureDeepExploreAgent(): void {
|
|
|
1123
1124
|
console.warn(" Instale com: go install github.com/your-org/grepai@latest");
|
|
1124
1125
|
console.warn(" Sem grepai, o deep-explore usara apenas Grep (menos eficaz).\n");
|
|
1125
1126
|
} else {
|
|
1126
|
-
// Check if grepai index exists for this project
|
|
1127
|
+
// Check if grepai index exists for this project (local GOB or workspace)
|
|
1127
1128
|
const grepaiDir = join(process.cwd(), ".grepai");
|
|
1128
|
-
|
|
1129
|
+
const workspace = getGrepaiWorkspace();
|
|
1130
|
+
if (!existsSync(grepaiDir) && !workspace) {
|
|
1129
1131
|
console.warn("\n⚠ grepai index nao encontrado neste projeto.");
|
|
1130
|
-
console.warn(" Execute: grepai
|
|
1132
|
+
console.warn(" Execute: grepai init && grepai watch");
|
|
1133
|
+
console.warn(" Ou configure um workspace: codexa discover set-stack --grepai-workspace <nome>");
|
|
1131
1134
|
console.warn(" Sem o index, grepai search nao retornara resultados.\n");
|
|
1135
|
+
} else if (workspace) {
|
|
1136
|
+
console.log(`✓ grepai workspace configurado: ${workspace}`);
|
|
1132
1137
|
}
|
|
1133
1138
|
}
|
|
1134
1139
|
|
|
1135
1140
|
// Ensure grepai permissions in target project settings
|
|
1136
1141
|
ensureGrepaiPermissions();
|
|
1137
1142
|
|
|
1138
|
-
if
|
|
1143
|
+
// Check if workspace config changed — regenerate if needed
|
|
1144
|
+
const currentWorkspace = getGrepaiWorkspace();
|
|
1145
|
+
const wsFlag = currentWorkspace ? ` --workspace ${currentWorkspace}` : "";
|
|
1146
|
+
|
|
1147
|
+
if (existsSync(agentPath)) {
|
|
1148
|
+
const existing = readFileSync(agentPath, "utf-8");
|
|
1149
|
+
const hasWorkspace = existing.includes("--workspace ");
|
|
1150
|
+
if ((currentWorkspace && !hasWorkspace) || (!currentWorkspace && hasWorkspace)) {
|
|
1151
|
+
console.log("⟳ Atualizando deep-explore.md com config de workspace...");
|
|
1152
|
+
// Fall through to regenerate
|
|
1153
|
+
} else {
|
|
1154
|
+
return; // Already up to date
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1139
1157
|
|
|
1140
1158
|
const agentsDir = join(process.cwd(), ".claude", "agents");
|
|
1141
1159
|
if (!existsSync(agentsDir)) {
|
|
@@ -1165,7 +1183,7 @@ You are a semantic code exploration agent. Your primary tool is \\\`grepai\\\`
|
|
|
1165
1183
|
**IMPORTANT: Execute ONE grepai search per Bash call. Do NOT run multiple grepai commands in parallel — this causes "Sibling tool call errored". Run them SEQUENTIALLY, one at a time.**
|
|
1166
1184
|
|
|
1167
1185
|
\\\`\\\`\\\`bash
|
|
1168
|
-
grepai search "your query here" --json --compact
|
|
1186
|
+
grepai search "your query here" --json --compact${wsFlag}
|
|
1169
1187
|
\\\`\\\`\\\`
|
|
1170
1188
|
|
|
1171
1189
|
- Queries MUST be in English
|
|
@@ -1176,28 +1194,28 @@ grepai search "your query here" --json --compact
|
|
|
1176
1194
|
Examples (run each one SEPARATELY):
|
|
1177
1195
|
|
|
1178
1196
|
\\\`\\\`\\\`bash
|
|
1179
|
-
grepai search "authentication flow" --json --compact
|
|
1197
|
+
grepai search "authentication flow" --json --compact${wsFlag}
|
|
1180
1198
|
\\\`\\\`\\\`
|
|
1181
1199
|
|
|
1182
1200
|
\\\`\\\`\\\`bash
|
|
1183
|
-
grepai search "error handling middleware" --json --compact
|
|
1201
|
+
grepai search "error handling middleware" --json --compact${wsFlag}
|
|
1184
1202
|
\\\`\\\`\\\`
|
|
1185
1203
|
|
|
1186
1204
|
\\\`\\\`\\\`bash
|
|
1187
|
-
grepai search "database connection management" --json --compact
|
|
1205
|
+
grepai search "database connection management" --json --compact${wsFlag}
|
|
1188
1206
|
\\\`\\\`\\\`
|
|
1189
1207
|
|
|
1190
1208
|
### Step 2: Use grepai trace for relationships
|
|
1191
1209
|
|
|
1192
1210
|
\\\`\\\`\\\`bash
|
|
1193
1211
|
# Find all functions that call a symbol
|
|
1194
|
-
grepai trace callers "HandleRequest" --json
|
|
1212
|
+
grepai trace callers "HandleRequest" --json${wsFlag}
|
|
1195
1213
|
|
|
1196
1214
|
# Find all functions called by a symbol
|
|
1197
|
-
grepai trace callees "ProcessOrder" --json
|
|
1215
|
+
grepai trace callees "ProcessOrder" --json${wsFlag}
|
|
1198
1216
|
|
|
1199
1217
|
# Build complete call graph
|
|
1200
|
-
grepai trace graph "ValidateToken" --depth 3 --json
|
|
1218
|
+
grepai trace graph "ValidateToken" --depth 3 --json${wsFlag}
|
|
1201
1219
|
\\\`\\\`\\\`
|
|
1202
1220
|
|
|
1203
1221
|
### Step 3: Read files identified by grepai
|
|
@@ -1210,6 +1228,15 @@ Use Grep ONLY if you need exact string match (variable name, import path). Never
|
|
|
1210
1228
|
|
|
1211
1229
|
---
|
|
1212
1230
|
|
|
1231
|
+
### Workspace (cross-project search)
|
|
1232
|
+
|
|
1233
|
+
If \\\`--workspace\\\` flag is included in the commands above, this project uses a grepai workspace
|
|
1234
|
+
for cross-project semantic search. The flag was injected automatically by the Codexa CLI.
|
|
1235
|
+
|
|
1236
|
+
- With workspace: searches across ALL projects in the workspace
|
|
1237
|
+
- Without workspace: searches only the local project index
|
|
1238
|
+
- To filter by project: add \\\`--project <name>\\\`
|
|
1239
|
+
|
|
1213
1240
|
### FORBIDDEN
|
|
1214
1241
|
|
|
1215
1242
|
- **DO NOT** use \\\`find\\\` or \\\`ls\\\` to explore code — use \\\`grepai search\\\`
|
package/commands/patterns.ts
CHANGED
|
@@ -33,15 +33,42 @@ export function isGrepaiAvailable(): boolean {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
// ═══════════════════════════════════════════════════════════════
|
|
37
|
+
// WORKSPACE CONFIG
|
|
38
|
+
// ═══════════════════════════════════════════════════════════════
|
|
39
|
+
|
|
40
|
+
const WORKSPACE_NAME_REGEX = /^[a-zA-Z0-9_-]+$/;
|
|
41
|
+
|
|
42
|
+
export function isValidWorkspaceName(name: string): boolean {
|
|
43
|
+
return WORKSPACE_NAME_REGEX.test(name);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function getGrepaiWorkspace(): string | null {
|
|
47
|
+
try {
|
|
48
|
+
initSchema();
|
|
49
|
+
const db = getDb();
|
|
50
|
+
const project = db.query(
|
|
51
|
+
"SELECT grepai_workspace FROM project WHERE id = 'default'"
|
|
52
|
+
).get() as any;
|
|
53
|
+
return project?.grepai_workspace || null;
|
|
54
|
+
} catch {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
36
59
|
// ═══════════════════════════════════════════════════════════════
|
|
37
60
|
// BUSCA SEMÂNTICA
|
|
38
61
|
// ═══════════════════════════════════════════════════════════════
|
|
39
62
|
|
|
40
|
-
export function searchWithGrepai(query: string, topK: number = 10): GrepaiResult[] {
|
|
63
|
+
export function searchWithGrepai(query: string, topK: number = 10, workspace?: string): GrepaiResult[] {
|
|
41
64
|
try {
|
|
65
|
+
const args = ["search", query, "--top", topK.toString(), "--format", "json"];
|
|
66
|
+
if (workspace) {
|
|
67
|
+
args.push("--workspace", workspace);
|
|
68
|
+
}
|
|
42
69
|
const result = spawnSync(
|
|
43
70
|
"grepai",
|
|
44
|
-
|
|
71
|
+
args,
|
|
45
72
|
{ encoding: "utf-8", maxBuffer: 10 * 1024 * 1024 }
|
|
46
73
|
);
|
|
47
74
|
|
package/commands/sync.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { execSync } from "child_process";
|
|
2
|
-
import { existsSync, mkdirSync, copyFileSync, readdirSync, readFileSync } from "fs";
|
|
2
|
+
import { existsSync, mkdirSync, copyFileSync, readdirSync, readFileSync, writeFileSync } from "fs";
|
|
3
3
|
import { join } from "path";
|
|
4
4
|
import { CodexaError } from "../errors";
|
|
5
|
+
import { getGrepaiWorkspace } from "./patterns";
|
|
5
6
|
|
|
6
7
|
// Agents que sao referencias (nao spawnables como subagent_type)
|
|
7
8
|
const REFERENCE_FILES = new Set([
|
|
@@ -71,6 +72,16 @@ export function syncAgents(options: { force?: boolean } = {}): void {
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
copyFileSync(src, dst);
|
|
75
|
+
|
|
76
|
+
// Inject workspace flag in deep-explore if configured
|
|
77
|
+
if (file === "deep-explore.md") {
|
|
78
|
+
const workspace = getGrepaiWorkspace();
|
|
79
|
+
const wsFlag = workspace ? ` --workspace ${workspace}` : "";
|
|
80
|
+
let agentContent = readFileSync(dst, "utf-8");
|
|
81
|
+
agentContent = agentContent.replace(/\{\{GREPAI_WS_FLAG\}\}/g, wsFlag);
|
|
82
|
+
writeFileSync(dst, agentContent);
|
|
83
|
+
}
|
|
84
|
+
|
|
74
85
|
copied++;
|
|
75
86
|
}
|
|
76
87
|
|
package/db/schema.ts
CHANGED
|
@@ -480,6 +480,13 @@ const MIGRATIONS: Migration[] = [
|
|
|
480
480
|
db.exec(`ALTER TABLE project ADD COLUMN typecheck_command TEXT`);
|
|
481
481
|
},
|
|
482
482
|
},
|
|
483
|
+
{
|
|
484
|
+
version: "9.8.0",
|
|
485
|
+
description: "Adicionar grepai_workspace na tabela project para suporte a workspace cross-project",
|
|
486
|
+
up: (db) => {
|
|
487
|
+
db.exec(`ALTER TABLE project ADD COLUMN grepai_workspace TEXT`);
|
|
488
|
+
},
|
|
489
|
+
},
|
|
483
490
|
];
|
|
484
491
|
|
|
485
492
|
export function runMigrations(): void {
|
package/detectors/go.ts
CHANGED
|
@@ -55,6 +55,37 @@ function parseGoMod(content: string): GoMod {
|
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
interface GoWork {
|
|
59
|
+
goVersion?: string;
|
|
60
|
+
uses: string[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function parseGoWork(content: string): GoWork {
|
|
64
|
+
const result: GoWork = { uses: [] };
|
|
65
|
+
|
|
66
|
+
const goMatch = content.match(/^go\s+(\d+\.\d+(?:\.\d+)?)$/m);
|
|
67
|
+
if (goMatch) result.goVersion = goMatch[1];
|
|
68
|
+
|
|
69
|
+
// Parse use block: use ( ./path1 \n ./path2 )
|
|
70
|
+
const useBlockMatch = content.match(/use\s*\(([\s\S]*?)\)/);
|
|
71
|
+
if (useBlockMatch) {
|
|
72
|
+
for (const line of useBlockMatch[1].split("\n")) {
|
|
73
|
+
const trimmed = line.trim();
|
|
74
|
+
if (trimmed && !trimmed.startsWith("//")) {
|
|
75
|
+
result.uses.push(trimmed);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Parse single-line: use ./path
|
|
81
|
+
const singleUses = content.matchAll(/^use\s+(\S+)\s*$/gm);
|
|
82
|
+
for (const match of singleUses) {
|
|
83
|
+
result.uses.push(match[1].trim());
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
|
|
58
89
|
const goDetector: Detector = {
|
|
59
90
|
name: "go",
|
|
60
91
|
ecosystem: "go",
|
|
@@ -117,12 +148,35 @@ const goDetector: Detector = {
|
|
|
117
148
|
category: "runtime",
|
|
118
149
|
});
|
|
119
150
|
|
|
120
|
-
// Create dependency lookup
|
|
151
|
+
// Create dependency lookup from root go.mod
|
|
121
152
|
const deps = new Map<string, string>();
|
|
122
153
|
for (const req of goMod.require) {
|
|
123
154
|
deps.set(req.path, req.version);
|
|
124
155
|
}
|
|
125
156
|
|
|
157
|
+
// Merge workspace module dependencies from go.work
|
|
158
|
+
const goWorkPath = join(cwd, "go.work");
|
|
159
|
+
if (fileExists(goWorkPath)) {
|
|
160
|
+
const goWorkContent = readText(goWorkPath);
|
|
161
|
+
if (goWorkContent) {
|
|
162
|
+
const goWork = parseGoWork(goWorkContent);
|
|
163
|
+
for (const usePath of goWork.uses) {
|
|
164
|
+
const wsModPath = join(cwd, usePath, "go.mod");
|
|
165
|
+
if (fileExists(wsModPath)) {
|
|
166
|
+
const wsContent = readText(wsModPath);
|
|
167
|
+
if (wsContent) {
|
|
168
|
+
const wsMod = parseGoMod(wsContent);
|
|
169
|
+
for (const req of wsMod.require) {
|
|
170
|
+
if (!deps.has(req.path)) {
|
|
171
|
+
deps.set(req.path, req.version);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
126
180
|
// Web Framework Detection
|
|
127
181
|
const webFrameworks = [
|
|
128
182
|
{ paths: ["github.com/gin-gonic/gin"], name: "Gin", confidence: 1.0 },
|
package/detectors/node.ts
CHANGED
|
@@ -22,6 +22,32 @@ import {
|
|
|
22
22
|
readText,
|
|
23
23
|
} from "./index";
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Resolve workspace glob patterns from package.json workspaces or pnpm-workspace.yaml.
|
|
27
|
+
* Returns array of glob patterns (e.g. ["apps/*", "packages/*"]).
|
|
28
|
+
*/
|
|
29
|
+
function resolveWorkspacePatterns(cwd: string, pkg: PackageJson): string[] {
|
|
30
|
+
// npm/yarn: workspaces as array or { packages: [] }
|
|
31
|
+
if (pkg.workspaces) {
|
|
32
|
+
if (Array.isArray(pkg.workspaces)) return pkg.workspaces;
|
|
33
|
+
if (pkg.workspaces.packages) return pkg.workspaces.packages;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// pnpm: pnpm-workspace.yaml
|
|
37
|
+
const pnpmPath = join(cwd, "pnpm-workspace.yaml");
|
|
38
|
+
const content = readText(pnpmPath);
|
|
39
|
+
if (content) {
|
|
40
|
+
const patterns: string[] = [];
|
|
41
|
+
for (const line of content.split("\n")) {
|
|
42
|
+
const match = line.match(/^\s*-\s*['"]?([^'"#]+)['"]?\s*$/);
|
|
43
|
+
if (match) patterns.push(match[1].trim());
|
|
44
|
+
}
|
|
45
|
+
return patterns;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
|
|
25
51
|
interface PackageJson {
|
|
26
52
|
name?: string;
|
|
27
53
|
version?: string;
|
|
@@ -93,12 +119,24 @@ const nodeDetector: Detector = {
|
|
|
93
119
|
const pkg: PackageJson | null = readJson(pkgPath);
|
|
94
120
|
if (!pkg) return null;
|
|
95
121
|
|
|
96
|
-
const allDeps = {
|
|
122
|
+
const allDeps: Record<string, string> = {
|
|
97
123
|
...pkg.dependencies,
|
|
98
124
|
...pkg.devDependencies,
|
|
99
125
|
...pkg.peerDependencies,
|
|
100
126
|
};
|
|
101
127
|
|
|
128
|
+
// Merge workspace package dependencies
|
|
129
|
+
const workspacePatterns = resolveWorkspacePatterns(cwd, pkg);
|
|
130
|
+
for (const pattern of workspacePatterns) {
|
|
131
|
+
const pkgFiles = findFiles(cwd, `${pattern}/package.json`);
|
|
132
|
+
for (const relPath of pkgFiles) {
|
|
133
|
+
const wsPkg: PackageJson | null = readJson(join(cwd, relPath));
|
|
134
|
+
if (wsPkg) {
|
|
135
|
+
Object.assign(allDeps, wsPkg.dependencies, wsPkg.devDependencies);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
102
140
|
// Detect package manager from lock files
|
|
103
141
|
if (fileExists(join(cwd, "bun.lockb"))) {
|
|
104
142
|
technologies.push({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDb } from "../db/connection";
|
|
2
2
|
import { existsSync, readFileSync } from "fs";
|
|
3
3
|
import { basename, resolve } from "path";
|
|
4
|
-
import { isGrepaiAvailable, searchWithGrepai, type GrepaiResult } from "../commands/patterns";
|
|
4
|
+
import { isGrepaiAvailable, searchWithGrepai, getGrepaiWorkspace, type GrepaiResult } from "../commands/patterns";
|
|
5
5
|
|
|
6
6
|
// ═══════════════════════════════════════════════════════════════
|
|
7
7
|
// INTERFACES
|
|
@@ -119,10 +119,11 @@ function validateSemantic(
|
|
|
119
119
|
violations: Violation[],
|
|
120
120
|
warnings: Violation[]
|
|
121
121
|
): void {
|
|
122
|
+
const workspace = getGrepaiWorkspace() ?? undefined;
|
|
122
123
|
for (const std of standards) {
|
|
123
124
|
if (!std.semantic_query) continue;
|
|
124
125
|
|
|
125
|
-
const results = searchWithGrepai(std.semantic_query, 20);
|
|
126
|
+
const results = searchWithGrepai(std.semantic_query, 20, workspace);
|
|
126
127
|
|
|
127
128
|
// Filtrar: apenas arquivos sendo validados + score acima do threshold
|
|
128
129
|
const matchingFiles = results.filter(r => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexa/cli",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.10",
|
|
4
4
|
"description": "Orchestrated workflow system for Claude Code - manages feature development through parallel subagents with structured phases, gates, and quality enforcement.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/workflow.ts
CHANGED
|
@@ -23,7 +23,9 @@ import {
|
|
|
23
23
|
discoverRefreshPatterns,
|
|
24
24
|
discoverExportPatterns,
|
|
25
25
|
discoverIncremental,
|
|
26
|
+
ensureDeepExploreAgent,
|
|
26
27
|
} from "./commands/discover";
|
|
28
|
+
import { isValidWorkspaceName } from "./commands/patterns";
|
|
27
29
|
import { clearTasks, clearShow } from "./commands/clear";
|
|
28
30
|
import { standardsList, standardsAdd, standardsEdit, standardsRemove, standardsExport } from "./commands/standards";
|
|
29
31
|
import { productImport, productSet, productConfirm, productShow, productReset } from "./commands/product";
|
|
@@ -553,6 +555,7 @@ discoverCmd
|
|
|
553
555
|
.option("--auth <value>", "Auth (supabase, next-auth, clerk)")
|
|
554
556
|
.option("--testing <value>", "Testing (vitest, jest, playwright)")
|
|
555
557
|
.option("--typecheck-command <cmd>", "Comando custom de typecheck (ex: 'mypy --strict', 'go vet ./...'). Vazio para usar preset automatico.")
|
|
558
|
+
.option("--grepai-workspace <name>", "Nome do workspace grepai para busca semantica cross-project. Vazio para remover.")
|
|
556
559
|
.action((options) => {
|
|
557
560
|
// Tratar typecheck-command separadamente
|
|
558
561
|
if (options.typecheckCommand !== undefined) {
|
|
@@ -569,9 +572,32 @@ discoverCmd
|
|
|
569
572
|
}
|
|
570
573
|
console.log(" Sera usado no gate 4.5 (typecheck-pass) em cada task done.\n");
|
|
571
574
|
}
|
|
575
|
+
// Tratar grepai-workspace separadamente
|
|
576
|
+
if (options.grepaiWorkspace !== undefined) {
|
|
577
|
+
const { initSchema } = require("./db/schema");
|
|
578
|
+
const { getDb } = require("./db/connection");
|
|
579
|
+
initSchema();
|
|
580
|
+
const db = getDb();
|
|
581
|
+
const value = options.grepaiWorkspace === "" ? null : options.grepaiWorkspace;
|
|
582
|
+
if (value && !isValidWorkspaceName(value)) {
|
|
583
|
+
console.error(`\n[erro] Nome de workspace invalido: "${value}"`);
|
|
584
|
+
console.error(" Use apenas letras, numeros, hifens e underscores (ex: meu-workspace, dotnet_ws)\n");
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
db.run("UPDATE project SET grepai_workspace = ? WHERE id = 'default'", [value]);
|
|
588
|
+
if (value) {
|
|
589
|
+
console.log(`\n✓ Grepai workspace configurado: ${value}`);
|
|
590
|
+
console.log(" Sera usado em: semantic search (standards), deep-explore agent, grepai trace");
|
|
591
|
+
} else {
|
|
592
|
+
console.log(`\n✓ Grepai workspace removido (usando index local .grepai/)`);
|
|
593
|
+
}
|
|
594
|
+
// Auto-regenerate deep-explore agent with new workspace config
|
|
595
|
+
ensureDeepExploreAgent();
|
|
596
|
+
}
|
|
572
597
|
// Tratar stack options normalmente
|
|
573
598
|
const stackOptions = { ...options };
|
|
574
599
|
delete stackOptions.typecheckCommand;
|
|
600
|
+
delete stackOptions.grepaiWorkspace;
|
|
575
601
|
if (Object.keys(stackOptions).length > 0) {
|
|
576
602
|
discoverSetStack(stackOptions);
|
|
577
603
|
}
|