@inkeep/create-agents 0.24.1 → 0.24.2

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/index.js CHANGED
@@ -10,6 +10,7 @@ program
10
10
  .option('--openai-key <openai-key>', 'OpenAI API key')
11
11
  .option('--anthropic-key <anthropic-key>', 'Anthropic API key')
12
12
  .option('--custom-project-id <custom-project-id>', 'Custom project id for experienced users who want an empty project directory')
13
+ .option('--disable-git', 'Disable git initialization')
13
14
  .parse();
14
15
  async function main() {
15
16
  const options = program.opts();
@@ -21,6 +22,7 @@ async function main() {
21
22
  anthropicKey: options.anthropicKey,
22
23
  customProjectId: options.customProjectId,
23
24
  template: options.template,
25
+ disableGit: options.disableGit,
24
26
  });
25
27
  }
26
28
  catch (error) {
package/dist/utils.d.ts CHANGED
@@ -39,5 +39,6 @@ export declare const createAgents: (args?: {
39
39
  googleKey?: string;
40
40
  template?: string;
41
41
  customProjectId?: string;
42
+ disableGit?: boolean;
42
43
  }) => Promise<void>;
43
44
  export declare function createCommand(dirName?: string, options?: any): Promise<void>;
package/dist/utils.js CHANGED
@@ -41,7 +41,7 @@ export const defaultAnthropicModelConfigurations = {
41
41
  },
42
42
  };
43
43
  export const createAgents = async (args = {}) => {
44
- let { dirName, openAiKey, anthropicKey, googleKey, template, customProjectId } = args;
44
+ let { dirName, openAiKey, anthropicKey, googleKey, template, customProjectId, disableGit } = args;
45
45
  const tenantId = 'default';
46
46
  const manageApiPort = '3002';
47
47
  const runApiPort = '3003';
@@ -195,6 +195,7 @@ export const createAgents = async (args = {}) => {
195
195
  runApiPort: runApiPort || '3003',
196
196
  modelSettings: defaultModelSettings,
197
197
  customProject: !!customProjectId,
198
+ disableGit: disableGit,
198
199
  };
199
200
  s.message('Setting up project structure...');
200
201
  await createWorkspaceStructure();
@@ -221,6 +222,9 @@ export const createAgents = async (args = {}) => {
221
222
  await createInkeepConfig(config);
222
223
  s.message('Installing dependencies (this may take a while)...');
223
224
  await installDependencies();
225
+ if (!config.disableGit) {
226
+ await initializeGit();
227
+ }
224
228
  s.message('Setting up database...');
225
229
  await setupDatabase();
226
230
  s.message('Pushing project...');
@@ -311,6 +315,14 @@ export const myProject = project({
311
315
  async function installDependencies() {
312
316
  await execAsync('pnpm install');
313
317
  }
318
+ async function initializeGit() {
319
+ try {
320
+ await execAsync('git init');
321
+ }
322
+ catch (error) {
323
+ console.error('Error initializing git:', error instanceof Error ? error.message : 'Unknown error');
324
+ }
325
+ }
314
326
  async function setupProjectInDatabase(config) {
315
327
  const { spawn } = await import('node:child_process');
316
328
  const devProcess = spawn('pnpm', ['dev:apis'], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/create-agents",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
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.24.1"
37
+ "@inkeep/agents-core": "0.24.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/degit": "^2.8.6",