@meltstudio/meltctl 4.15.0 → 4.16.0

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.
@@ -134,6 +134,22 @@ export async function initCommand(options) {
134
134
  process.exit(1);
135
135
  }
136
136
  const cwd = process.cwd();
137
+ // Warn if not in a git repository — likely the wrong directory
138
+ const isGitRepo = await fs.pathExists(path.join(cwd, '.git'));
139
+ if (!isGitRepo) {
140
+ console.log(chalk.yellow(`Warning: ${cwd} is not a git repository.`));
141
+ console.log(chalk.dim('meltctl init should be run from the root of your project.'));
142
+ console.log();
143
+ const proceed = await confirm({
144
+ message: 'Continue initializing here anyway?',
145
+ default: false,
146
+ });
147
+ if (!proceed) {
148
+ console.log(chalk.dim('Aborted. cd into your project root and try again.'));
149
+ return;
150
+ }
151
+ console.log();
152
+ }
137
153
  const alreadyInitialized = await fs.pathExists(path.join(cwd, 'AGENTS.md'));
138
154
  let isReInit = false;
139
155
  let tools;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "description": "AI-first development tools for teams - set up AGENTS.md, Claude Code, Cursor, and Copilot standards",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",