@staff0rd/assist 0.433.1 → 0.433.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/dist/commands/sessions/web/bundle.js +385 -385
- package/dist/index.js +32 -14
- 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.433.
|
|
9
|
+
version: "0.433.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -29461,7 +29461,21 @@ import { fileURLToPath as fileURLToPath9 } from "url";
|
|
|
29461
29461
|
// src/commands/sync/syncClaudeMd.ts
|
|
29462
29462
|
import * as fs42 from "fs";
|
|
29463
29463
|
import * as path61 from "path";
|
|
29464
|
+
import chalk208 from "chalk";
|
|
29465
|
+
|
|
29466
|
+
// src/commands/sync/printAutoConfirmHint.ts
|
|
29464
29467
|
import chalk207 from "chalk";
|
|
29468
|
+
var autoConfirmHintCommand = "assist config set sync.autoConfirm true --global";
|
|
29469
|
+
function printAutoConfirmHint() {
|
|
29470
|
+
console.log(
|
|
29471
|
+
chalk207.dim(
|
|
29472
|
+
`Tip: run \`${autoConfirmHintCommand}\` to overwrite automatically next time`
|
|
29473
|
+
)
|
|
29474
|
+
);
|
|
29475
|
+
console.log();
|
|
29476
|
+
}
|
|
29477
|
+
|
|
29478
|
+
// src/commands/sync/syncClaudeMd.ts
|
|
29465
29479
|
async function syncClaudeMd(claudeDir, targetBase, options2) {
|
|
29466
29480
|
const source = path61.join(claudeDir, "CLAUDE.md");
|
|
29467
29481
|
const target = path61.join(targetBase, "CLAUDE.md");
|
|
@@ -29470,17 +29484,20 @@ async function syncClaudeMd(claudeDir, targetBase, options2) {
|
|
|
29470
29484
|
const targetContent = fs42.readFileSync(target, "utf8");
|
|
29471
29485
|
if (sourceContent !== targetContent) {
|
|
29472
29486
|
console.log(
|
|
29473
|
-
|
|
29487
|
+
chalk208.yellow("\n\u26A0\uFE0F Warning: CLAUDE.md differs from existing file")
|
|
29474
29488
|
);
|
|
29475
29489
|
console.log();
|
|
29476
29490
|
printDiff(targetContent, sourceContent);
|
|
29477
|
-
|
|
29478
|
-
|
|
29479
|
-
|
|
29480
|
-
|
|
29481
|
-
|
|
29482
|
-
|
|
29483
|
-
|
|
29491
|
+
if (!options2?.yes) {
|
|
29492
|
+
printAutoConfirmHint();
|
|
29493
|
+
const confirm = await promptConfirm(
|
|
29494
|
+
chalk208.red("Overwrite existing CLAUDE.md?"),
|
|
29495
|
+
false
|
|
29496
|
+
);
|
|
29497
|
+
if (!confirm) {
|
|
29498
|
+
console.log("Skipped CLAUDE.md");
|
|
29499
|
+
return;
|
|
29500
|
+
}
|
|
29484
29501
|
}
|
|
29485
29502
|
}
|
|
29486
29503
|
}
|
|
@@ -29669,7 +29686,7 @@ function syncPi(claudeDir) {
|
|
|
29669
29686
|
// src/commands/sync/syncSettings.ts
|
|
29670
29687
|
import * as fs47 from "fs";
|
|
29671
29688
|
import * as path68 from "path";
|
|
29672
|
-
import
|
|
29689
|
+
import chalk209 from "chalk";
|
|
29673
29690
|
async function syncSettings(claudeDir, targetBase, options2) {
|
|
29674
29691
|
const source = path68.join(claudeDir, "settings.json");
|
|
29675
29692
|
const target = path68.join(targetBase, "settings.json");
|
|
@@ -29688,14 +29705,15 @@ async function syncSettings(claudeDir, targetBase, options2) {
|
|
|
29688
29705
|
if (mergedContent !== normalizedTarget) {
|
|
29689
29706
|
if (!options2?.yes) {
|
|
29690
29707
|
console.log(
|
|
29691
|
-
|
|
29708
|
+
chalk209.yellow(
|
|
29692
29709
|
"\n\u26A0\uFE0F Warning: settings.json differs from existing file"
|
|
29693
29710
|
)
|
|
29694
29711
|
);
|
|
29695
29712
|
console.log();
|
|
29696
29713
|
printDiff(targetContent, mergedContent);
|
|
29714
|
+
printAutoConfirmHint();
|
|
29697
29715
|
const confirm = await promptConfirm(
|
|
29698
|
-
|
|
29716
|
+
chalk209.red("Overwrite existing settings.json?"),
|
|
29699
29717
|
false
|
|
29700
29718
|
);
|
|
29701
29719
|
if (!confirm) {
|
|
@@ -29794,10 +29812,10 @@ async function update2() {
|
|
|
29794
29812
|
}
|
|
29795
29813
|
|
|
29796
29814
|
// src/reportCliError.ts
|
|
29797
|
-
import
|
|
29815
|
+
import chalk210 from "chalk";
|
|
29798
29816
|
function reportCliError(error) {
|
|
29799
29817
|
if (error instanceof InvalidItemIdError || error instanceof AmbiguousRepoConfigError || error instanceof UnknownRepoConfigError) {
|
|
29800
|
-
console.error(
|
|
29818
|
+
console.error(chalk210.red(error.message));
|
|
29801
29819
|
} else {
|
|
29802
29820
|
console.error(error);
|
|
29803
29821
|
}
|