Skip to content

Commit b7cc64d

Browse files
rguldenerclaude
andauthored
fix(cli): remove --ai variant from nango init command (#5867)
The --ai option generated a claude.md (or Cursor rules) file with outdated instructions. Removes the option, its handler, and the bundled instructions template. Solves NAN-5287 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bdbec8f commit b7cc64d

4 files changed

Lines changed: 1 addition & 184 deletions

File tree

packages/cli/lib/ai/init.ts

Lines changed: 0 additions & 90 deletions
This file was deleted.

packages/cli/lib/ai/instructions/basics.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

packages/cli/lib/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { Command } from 'commander';
1212
import * as dotenv from 'dotenv';
1313
import figlet from 'figlet';
1414

15-
import { initAI } from './ai/init.js';
1615
import { getVersionOutput } from './cli.js';
1716
import { migrateToZeroYaml } from './migrations/toZeroYaml.js';
1817
import { cloneTemplate } from './services/clone.service.js';
@@ -143,10 +142,9 @@ program
143142
.command('init')
144143
.argument('[path]', 'Optional: The path to initialize the Nango project in. Defaults to the current directory.')
145144
.description('Initialize a new Nango project')
146-
.option('--ai [claude|cursor...]', 'Optional: Setup AI agent instructions files. Supported: claude code, cursor', [])
147145
.option('--copy', 'Optional: Only copy files, will not npm install or pre-compile', false)
148146
.action(async function (this: Command) {
149-
const { debug, ai, copy, interactive, dependencyUpdate } = this.opts<GlobalOptions & { ai: string[]; copy: boolean }>();
147+
const { debug, copy, interactive, dependencyUpdate } = this.opts<GlobalOptions & { copy: boolean }>();
150148
let [projectPath] = this.args;
151149
const currentPath = process.cwd();
152150

@@ -160,16 +158,8 @@ program
160158

161159
const absolutePath = path.resolve(currentPath, projectPath);
162160

163-
const setupAI = async (): Promise<void> => {
164-
const ok = await initAI({ absolutePath, debug, aiOpts: ai });
165-
if (ok) {
166-
printDebug(`AI agent instructions files initialized in ${absolutePath}`, debug);
167-
}
168-
};
169-
170161
const check = await verificationService.preCheck({ fullPath: absolutePath, debug });
171162
if (check.isZeroYaml) {
172-
await setupAI();
173163
console.log(chalk.red(`The path provided is already a Nango integrations folder.`));
174164
return;
175165
}
@@ -180,7 +170,6 @@ program
180170
return;
181171
}
182172

183-
await setupAI();
184173
console.log(chalk.green(`Nango integrations initialized in ${absolutePath}`));
185174
return;
186175
});

packages/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
"example/**/*",
106106
"lib/nango.yaml.schema.v1.json",
107107
"lib/nango.yaml.schema.v2.json",
108-
"lib/ai/instructions/*",
109108
"scripts/v1-v2.js",
110109
"tsconfig.dev.json",
111110
"README.md"

0 commit comments

Comments
 (0)