@staff0rd/assist 0.348.0 → 0.349.1

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
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.348.0",
9
+ version: "0.349.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -23368,14 +23368,17 @@ async function syncSettings(claudeDir, targetBase, options2) {
23368
23368
  const source = path54.join(claudeDir, "settings.json");
23369
23369
  const target = path54.join(targetBase, "settings.json");
23370
23370
  const sourceContent = fs38.readFileSync(source, "utf8");
23371
- const mergedContent = JSON.stringify(JSON.parse(sourceContent), null, " ");
23372
- if (fs38.existsSync(target)) {
23373
- const targetContent = fs38.readFileSync(target, "utf8");
23374
- const normalizedTarget = JSON.stringify(
23375
- JSON.parse(targetContent),
23376
- null,
23377
- " "
23378
- );
23371
+ const sourceSettings = JSON.parse(sourceContent);
23372
+ const targetExists = fs38.existsSync(target);
23373
+ const targetContent = targetExists ? fs38.readFileSync(target, "utf8") : "";
23374
+ const preservedUserSettings = targetExists ? JSON.parse(targetContent) : {};
23375
+ const mergedContent = JSON.stringify(
23376
+ { ...preservedUserSettings, ...sourceSettings },
23377
+ null,
23378
+ " "
23379
+ );
23380
+ if (targetExists) {
23381
+ const normalizedTarget = JSON.stringify(preservedUserSettings, null, " ");
23379
23382
  if (mergedContent !== normalizedTarget) {
23380
23383
  if (!options2?.yes) {
23381
23384
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.348.0",
3
+ "version": "0.349.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {