@webhikers/cli 1.1.18 → 1.1.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webhikers/cli",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "CLI for creating and deploying webhikers projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -174,7 +174,7 @@ export async function createCommand(name) {
174
174
  });
175
175
  console.log(c.green(" ✓ Coolify project configured"));
176
176
 
177
- // --- 7. Write .deploy.json ---
177
+ // --- 7. Write .deploy.json + enable sync guard ---
178
178
  console.log(c.cyan("\n5/5 Writing .deploy.json..."));
179
179
  const deployConfig = {
180
180
  serverIp: config.serverIp,
@@ -187,7 +187,13 @@ export async function createCommand(name) {
187
187
  JSON.stringify(deployConfig, null, 2) + "\n",
188
188
  "utf-8"
189
189
  );
190
- console.log(c.green(" ✓ .deploy.json written"));
190
+ writeFileSync(
191
+ resolve(projectDir, ".claude-guard.json"),
192
+ JSON.stringify({ fileGuard: true, syncGuard: true, lastPull: null, allowedPaths: ["src/", "seed.ts"] }, null, 2) + "\n",
193
+ "utf-8"
194
+ );
195
+ run(`git add .deploy.json .claude-guard.json && git commit -m "Enable guards + deploy config" && git push`, { cwd: projectDir });
196
+ console.log(c.green(" ✓ .deploy.json + guards written"));
191
197
 
192
198
  // --- 8. Summary ---
193
199
  console.log("\n" + c.green("═══════════════════════════════════════════"));