@staff0rd/assist 0.1092.3 → 0.1092.4

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.1092.3",
9
+ version: "0.1092.4",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -1450,26 +1450,35 @@ function stripLegacyReviewKeys(review2) {
1450
1450
  return { ...rest, highLevel: kept };
1451
1451
  }
1452
1452
 
1453
- // src/shared/stripLegacyConfigKeys.ts
1454
- var LEGACY_SESSIONS_KEYS = [
1455
- "windowsProjectsRoot",
1456
- "windowsDaemonHost",
1457
- "windowsDaemonPort",
1458
- "windowsVersionCheck",
1459
- "topBar",
1460
- "floatWaiting",
1461
- "floatWaitingAfterMs",
1462
- "parkWaitingAfterMs",
1463
- "askQuestionAutoApprove"
1464
- ];
1465
- var LEGACY_WORKTREE_KEYS = ["watcher", "includeDrafts"];
1466
- var LEGACY_DEVLOG_KEYS = ["skip"];
1453
+ // src/shared/stripLegacySectionKeys.ts
1454
+ var LEGACY_SECTION_KEYS = {
1455
+ sessions: [
1456
+ "windowsProjectsRoot",
1457
+ "windowsDaemonHost",
1458
+ "windowsDaemonPort",
1459
+ "windowsVersionCheck",
1460
+ "topBar",
1461
+ "floatWaiting",
1462
+ "floatWaitingAfterMs",
1463
+ "parkWaitingAfterMs",
1464
+ "askQuestionAutoApprove"
1465
+ ],
1466
+ worktree: ["watcher", "includeDrafts"],
1467
+ devlog: ["skip"],
1468
+ testflight: ["account"]
1469
+ };
1467
1470
  function withoutKeys(value, keys) {
1468
1471
  if (!value || typeof value !== "object") return value;
1469
1472
  const rest = { ...value };
1470
1473
  for (const key of keys) delete rest[key];
1471
1474
  return rest;
1472
1475
  }
1476
+ function stripLegacySectionKeys(config) {
1477
+ for (const [section2, keys] of Object.entries(LEGACY_SECTION_KEYS))
1478
+ if (config[section2]) config[section2] = withoutKeys(config[section2], keys);
1479
+ }
1480
+
1481
+ // src/shared/stripLegacyConfigKeys.ts
1473
1482
  function stripRepos(repos2) {
1474
1483
  if (!repos2 || typeof repos2 !== "object") return repos2;
1475
1484
  return Object.fromEntries(
@@ -1490,12 +1499,7 @@ function stripLegacyConfigKeys(config) {
1490
1499
  const { feeds: _feeds, ...rest } = news;
1491
1500
  stripped.news = rest;
1492
1501
  }
1493
- if (stripped.sessions)
1494
- stripped.sessions = withoutKeys(stripped.sessions, LEGACY_SESSIONS_KEYS);
1495
- if (stripped.worktree)
1496
- stripped.worktree = withoutKeys(stripped.worktree, LEGACY_WORKTREE_KEYS);
1497
- if (stripped.devlog)
1498
- stripped.devlog = withoutKeys(stripped.devlog, LEGACY_DEVLOG_KEYS);
1502
+ stripLegacySectionKeys(stripped);
1499
1503
  if (stripped.review) stripped.review = stripLegacyReviewKeys(stripped.review);
1500
1504
  return stripped;
1501
1505
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1092.3",
3
+ "version": "0.1092.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {