@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/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +413 -413
- package/dist/index.js +25 -21
- package/package.json +1 -1
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.
|
|
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/
|
|
1454
|
-
var
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
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
|
-
|
|
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
|
}
|