@difflab/difflab-cli 0.7.1-rc.62 → 0.7.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 +17 -22
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12793,7 +12793,7 @@ var init_registry = __esm(() => {
|
|
|
12793
12793
|
};
|
|
12794
12794
|
});
|
|
12795
12795
|
|
|
12796
|
-
// ../../libs/
|
|
12796
|
+
// ../../libs/utils/src/gitx.ts
|
|
12797
12797
|
import { execFileSync } from "child_process";
|
|
12798
12798
|
import { appendFile, readFile } from "fs/promises";
|
|
12799
12799
|
import { isAbsolute, resolve as resolve2 } from "path";
|
|
@@ -19440,7 +19440,7 @@ var init_src = __esm(() => {
|
|
|
19440
19440
|
});
|
|
19441
19441
|
|
|
19442
19442
|
// src/errors.ts
|
|
19443
|
-
var DifflabError, ConfigurationError, ProjectSetupError, RepoStoreError, MissingRepoConfig, InvalidRepoConfig, MissingGlobalConfig
|
|
19443
|
+
var DifflabError, ConfigurationError, ProjectSetupError, RepoStoreError, MissingRepoConfig, InvalidRepoConfig, MissingGlobalConfig;
|
|
19444
19444
|
var init_errors3 = __esm(() => {
|
|
19445
19445
|
DifflabError = class DifflabError extends Error {
|
|
19446
19446
|
constructor(message, options) {
|
|
@@ -19484,12 +19484,6 @@ var init_errors3 = __esm(() => {
|
|
|
19484
19484
|
this.name = "MissingGlobalConfig";
|
|
19485
19485
|
}
|
|
19486
19486
|
};
|
|
19487
|
-
CommandExecutionError = class CommandExecutionError extends DifflabError {
|
|
19488
|
-
constructor(command, message, options) {
|
|
19489
|
-
super(`Could not configure ${command}: ${message}`, options);
|
|
19490
|
-
this.name = "CommandExecutionError";
|
|
19491
|
-
}
|
|
19492
|
-
};
|
|
19493
19487
|
});
|
|
19494
19488
|
|
|
19495
19489
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
@@ -26628,12 +26622,7 @@ var init_user_store = __esm(() => {
|
|
|
26628
26622
|
};
|
|
26629
26623
|
});
|
|
26630
26624
|
|
|
26631
|
-
// src/
|
|
26632
|
-
var init_gitx2 = __esm(() => {
|
|
26633
|
-
init_gitx();
|
|
26634
|
-
});
|
|
26635
|
-
|
|
26636
|
-
// src/extensions/osx.ts
|
|
26625
|
+
// ../../libs/utils/src/osx.ts
|
|
26637
26626
|
import { homedir as homedir2 } from "os";
|
|
26638
26627
|
function resolveHomeDirectory(home) {
|
|
26639
26628
|
return home ?? homedir2();
|
|
@@ -26643,7 +26632,7 @@ function hasErrorCode(error, code) {
|
|
|
26643
26632
|
}
|
|
26644
26633
|
var init_osx = () => {};
|
|
26645
26634
|
|
|
26646
|
-
// src/
|
|
26635
|
+
// ../../libs/utils/src/pathx.ts
|
|
26647
26636
|
import { lstat as lstat4, realpath, stat } from "fs/promises";
|
|
26648
26637
|
import { isAbsolute as isAbsolute2, join as join3, relative, resolve as resolve4, sep } from "path";
|
|
26649
26638
|
async function resolvePath(cwd, path) {
|
|
@@ -26678,7 +26667,7 @@ var init_pathx = __esm(() => {
|
|
|
26678
26667
|
init_osx();
|
|
26679
26668
|
});
|
|
26680
26669
|
|
|
26681
|
-
// src/
|
|
26670
|
+
// ../../libs/utils/src/fsx.ts
|
|
26682
26671
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
26683
26672
|
import { lstat as lstat5, mkdir as mkdir2, readFile as readFile3, rename, rm, writeFile as writeFile2 } from "fs/promises";
|
|
26684
26673
|
import { dirname } from "path";
|
|
@@ -26789,7 +26778,7 @@ async function ensureRepoStore(root, target, excludePath) {
|
|
|
26789
26778
|
}
|
|
26790
26779
|
var init_repo_store = __esm(() => {
|
|
26791
26780
|
init_errors3();
|
|
26792
|
-
|
|
26781
|
+
init_gitx();
|
|
26793
26782
|
init_fsx();
|
|
26794
26783
|
});
|
|
26795
26784
|
|
|
@@ -48181,7 +48170,7 @@ var init_tools = __esm(() => {
|
|
|
48181
48170
|
];
|
|
48182
48171
|
});
|
|
48183
48172
|
|
|
48184
|
-
// src/
|
|
48173
|
+
// ../../libs/utils/src/zodx.ts
|
|
48185
48174
|
import { isAbsolute as isAbsolute4 } from "path";
|
|
48186
48175
|
var absolutePath, relativePath, fileName;
|
|
48187
48176
|
var init_zodx = __esm(() => {
|
|
@@ -49504,7 +49493,7 @@ var init_service = __esm(() => {
|
|
|
49504
49493
|
init_fsx();
|
|
49505
49494
|
init_osx();
|
|
49506
49495
|
init_pathx();
|
|
49507
|
-
|
|
49496
|
+
init_gitx();
|
|
49508
49497
|
init_config();
|
|
49509
49498
|
init_repo_store();
|
|
49510
49499
|
init_user_store();
|
|
@@ -49574,7 +49563,7 @@ var init_server3 = __esm(() => {
|
|
|
49574
49563
|
init_tools4();
|
|
49575
49564
|
});
|
|
49576
49565
|
|
|
49577
|
-
// src/
|
|
49566
|
+
// ../../libs/utils/src/processx.ts
|
|
49578
49567
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
49579
49568
|
function runCommand(command, args, cwd) {
|
|
49580
49569
|
try {
|
|
@@ -49583,8 +49572,14 @@ function runCommand(command, args, cwd) {
|
|
|
49583
49572
|
throw new CommandExecutionError(command, error instanceof Error ? error.message : String(error), { cause: error });
|
|
49584
49573
|
}
|
|
49585
49574
|
}
|
|
49575
|
+
var CommandExecutionError;
|
|
49586
49576
|
var init_processx = __esm(() => {
|
|
49587
|
-
|
|
49577
|
+
CommandExecutionError = class CommandExecutionError extends Error {
|
|
49578
|
+
constructor(command, message, options) {
|
|
49579
|
+
super(`Could not execute ${command}: ${message}`, options);
|
|
49580
|
+
this.name = "CommandExecutionError";
|
|
49581
|
+
}
|
|
49582
|
+
};
|
|
49588
49583
|
});
|
|
49589
49584
|
|
|
49590
49585
|
// src/agents/adapter.ts
|
|
@@ -51913,7 +51908,7 @@ function createProgram(write = console.log, version = "0.1.0", options = {}) {
|
|
|
51913
51908
|
|
|
51914
51909
|
// src/index.ts
|
|
51915
51910
|
init_errors3();
|
|
51916
|
-
var version2 = "0.7.1
|
|
51911
|
+
var version2 = "0.7.1";
|
|
51917
51912
|
try {
|
|
51918
51913
|
await createProgram(console.log, version2).parseAsync(process.argv);
|
|
51919
51914
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difflab/difflab-cli",
|
|
3
|
-
"version": "0.7.1
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A minimal Bun CLI starter built with Commander",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/bun": "1.4.2",
|
|
50
50
|
"difflab-db": "workspace:*",
|
|
51
|
-
"difflab-ts": "workspace:*",
|
|
52
51
|
"prettier": "3.9.8",
|
|
53
|
-
"typescript": "7.0.2"
|
|
52
|
+
"typescript": "7.0.2",
|
|
53
|
+
"utils": "workspace:*"
|
|
54
54
|
}
|
|
55
55
|
}
|