@mandujs/cli 0.18.0 → 0.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandujs/cli",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "Agent-Native Fullstack Framework - 에이전트가 코딩해도 아키텍처가 무너지지 않는 개발 OS",
5
5
  "type": "module",
6
6
  "main": "./src/main.ts",
@@ -32,8 +32,8 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@mandujs/core": "0.18.0",
36
- "@mandujs/ate": "0.17.0",
35
+ "@mandujs/core": "^0.18.2",
36
+ "@mandujs/ate": "^0.17.0",
37
37
  "cfonts": "^3.3.0"
38
38
  },
39
39
  "engines": {
@@ -284,24 +284,29 @@ async function showDiff(
284
284
  return false;
285
285
  }
286
286
 
287
- // 스냅샷이 없으면 diff 불가
287
+ // 스냅샷이 없으면 전체 설정을 변경사항으로 표시
288
288
  if (!lockfile.snapshot) {
289
289
  if (json) {
290
290
  console.log(
291
291
  JSON.stringify({
292
- success: false,
293
- error: "SNAPSHOT_MISSING",
294
- message:
295
- "Lockfile에 스냅샷이 없습니다. '--include-snapshot' 옵션으로 다시 생성하세요.",
292
+ success: true,
293
+ warning: "SNAPSHOT_MISSING",
294
+ message: "스냅샷이 없어 전체 설정을 변경사항으로 표시",
295
+ hasChanges: true,
296
296
  })
297
297
  );
298
298
  } else {
299
- console.error("Lockfile에 스냅샷이 없습니다.");
300
- console.error(
301
- " 'mandu lock --include-snapshot' 옵션으로 다시 생성하세요."
302
- );
299
+ console.log("⚠️ Lockfile에 스냅샷이 없습니다.");
300
+ console.log(" 전체 설정을 변경사항으로 표시합니다.");
301
+ console.log(" 정확한 diff를 보려면: mandu lock --include-snapshot\n");
303
302
  }
304
- return false;
303
+
304
+ // Show entire config as additions
305
+ const { mcpServers } = resolveMcpSources(config, mcpConfig);
306
+ const configForDiff = mcpServers ? { ...config, mcpServers } : config;
307
+ const fullDiff = diffConfig({}, configForDiff);
308
+ console.log(formatConfigDiff(fullDiff, { color: true, verbose: true, showSecrets }));
309
+ return true;
305
310
  }
306
311
 
307
312
  // diff 계산