delimit-cli 3.14.32 → 3.14.34
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/bin/delimit-setup.js +31 -0
- package/package.json +1 -1
package/bin/delimit-setup.js
CHANGED
|
@@ -214,6 +214,25 @@ async function main() {
|
|
|
214
214
|
copyDir(gatewaySource, path.join(DELIMIT_HOME, 'server'));
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
+
// Remove stale .so binaries that shadow updated .py source files
|
|
218
|
+
// Python loads .so before .py, so old compiled stubs block new source
|
|
219
|
+
const aiDir = path.join(DELIMIT_HOME, 'server', 'ai');
|
|
220
|
+
if (fs.existsSync(aiDir)) {
|
|
221
|
+
try {
|
|
222
|
+
const soFiles = fs.readdirSync(aiDir).filter(f => f.endsWith('.so'));
|
|
223
|
+
for (const so of soFiles) {
|
|
224
|
+
const pyName = so.replace(/\.cpython-\d+-.+\.so$/, '.py');
|
|
225
|
+
const pyPath = path.join(aiDir, pyName);
|
|
226
|
+
if (fs.existsSync(pyPath)) {
|
|
227
|
+
fs.unlinkSync(path.join(aiDir, so));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (soFiles.length > 0) {
|
|
231
|
+
await logp(` ${green('✓')} Cleaned ${soFiles.length} stale compiled modules`);
|
|
232
|
+
}
|
|
233
|
+
} catch { /* ignore cleanup errors */ }
|
|
234
|
+
}
|
|
235
|
+
|
|
217
236
|
// Install Python deps into isolated venv with pinned versions
|
|
218
237
|
log(` ${dim(' Installing Python dependencies...')}`);
|
|
219
238
|
const venvDir = path.join(DELIMIT_HOME, 'venv');
|
|
@@ -279,6 +298,18 @@ async function main() {
|
|
|
279
298
|
|
|
280
299
|
// Step 3b: Configure Codex MCP (if installed)
|
|
281
300
|
const CODEX_CONFIG = path.join(os.homedir(), '.codex', 'config.toml');
|
|
301
|
+
// Create config.toml if .codex dir exists or codex is in PATH
|
|
302
|
+
if (!fs.existsSync(CODEX_CONFIG)) {
|
|
303
|
+
const codexDir = path.join(os.homedir(), '.codex');
|
|
304
|
+
let hasCodex = fs.existsSync(codexDir);
|
|
305
|
+
if (!hasCodex) {
|
|
306
|
+
try { execSync('which codex 2>/dev/null', { stdio: 'pipe' }); hasCodex = true; } catch {}
|
|
307
|
+
}
|
|
308
|
+
if (hasCodex) {
|
|
309
|
+
fs.mkdirSync(codexDir, { recursive: true });
|
|
310
|
+
fs.writeFileSync(CODEX_CONFIG, '');
|
|
311
|
+
}
|
|
312
|
+
}
|
|
282
313
|
if (fs.existsSync(CODEX_CONFIG)) {
|
|
283
314
|
try {
|
|
284
315
|
let toml = fs.readFileSync(CODEX_CONFIG, 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delimit-cli",
|
|
3
3
|
"mcpName": "io.github.delimit-ai/delimit-mcp-server",
|
|
4
|
-
"version": "3.14.
|
|
4
|
+
"version": "3.14.34",
|
|
5
5
|
"description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|