@inkeep/create-agents 0.22.4 → 0.22.6

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.
Files changed (2) hide show
  1. package/dist/utils.js +17 -6
  2. package/package.json +2 -2
package/dist/utils.js CHANGED
@@ -255,11 +255,13 @@ async function createWorkspaceStructure() {
255
255
  await fs.ensureDir(`src`);
256
256
  }
257
257
  async function createEnvironmentFiles(config) {
258
+ // Convert to forward slashes for cross-platform SQLite URI compatibility
259
+ const dbPath = process.cwd().replace(/\\/g, '/');
258
260
  const envContent = `# Environment
259
261
  ENVIRONMENT=development
260
262
 
261
263
  # Database
262
- DB_FILE_NAME=file:${process.cwd()}/local.db
264
+ DB_FILE_NAME=file:${dbPath}/local.db
263
265
 
264
266
  # AI Provider Keys
265
267
  ANTHROPIC_API_KEY=${config.anthropicKey || 'your-anthropic-key-here'}
@@ -316,6 +318,8 @@ async function setupProjectInDatabase(config) {
316
318
  stdio: ['pipe', 'pipe', 'pipe'],
317
319
  detached: true,
318
320
  cwd: process.cwd(),
321
+ shell: true,
322
+ windowsHide: true,
319
323
  });
320
324
  await new Promise((resolve) => setTimeout(resolve, 5000));
321
325
  try {
@@ -326,12 +330,19 @@ async function setupProjectInDatabase(config) {
326
330
  finally {
327
331
  if (devProcess.pid) {
328
332
  try {
329
- process.kill(-devProcess.pid, 'SIGTERM');
330
- await new Promise((resolve) => setTimeout(resolve, 1000));
331
- try {
332
- process.kill(-devProcess.pid, 'SIGKILL');
333
+ if (process.platform === 'win32') {
334
+ // Windows: Use taskkill to kill process tree
335
+ await execAsync(`taskkill /pid ${devProcess.pid} /T /F`);
336
+ }
337
+ else {
338
+ // Unix: Use negative PID to kill process group
339
+ process.kill(-devProcess.pid, 'SIGTERM');
340
+ await new Promise((resolve) => setTimeout(resolve, 1000));
341
+ try {
342
+ process.kill(-devProcess.pid, 'SIGKILL');
343
+ }
344
+ catch { }
333
345
  }
334
- catch { }
335
346
  }
336
347
  catch (_error) {
337
348
  console.log('Note: Dev servers may still be running in background');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.22.4",
3
+ "version": "0.22.6",
4
4
  "description": "Create an Inkeep Agent Framework project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "fs-extra": "^11.0.0",
35
35
  "picocolors": "^1.0.0",
36
36
  "drizzle-kit": "^0.31.5",
37
- "@inkeep/agents-core": "0.22.4"
37
+ "@inkeep/agents-core": "0.22.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/degit": "^2.8.6",