@getpochi/cli 0.5.55 → 0.5.56
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/cli.js +11 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -338965,7 +338965,7 @@ class Logger extends BaseLogger {
|
|
|
338965
338965
|
}
|
|
338966
338966
|
}
|
|
338967
338967
|
|
|
338968
|
-
// ../common/src/
|
|
338968
|
+
// ../common/src/env-utils.ts
|
|
338969
338969
|
var isVSCodeEnvironment = () => {
|
|
338970
338970
|
if (typeof process !== "undefined") {
|
|
338971
338971
|
if (process.env.VSCODE_PID) {
|
|
@@ -338980,6 +338980,8 @@ var isVSCodeEnvironment = () => {
|
|
|
338980
338980
|
}
|
|
338981
338981
|
return false;
|
|
338982
338982
|
};
|
|
338983
|
+
|
|
338984
|
+
// ../common/src/base/logger.ts
|
|
338983
338985
|
var isConsoleLogDisabled = () => {
|
|
338984
338986
|
return typeof process !== "undefined" && !!process.env.POCHI_LOG_DISABLE_CONSOLE;
|
|
338985
338987
|
};
|
|
@@ -354565,7 +354567,7 @@ class PochiConfigFile {
|
|
|
354565
354567
|
constructor(configFilePath) {
|
|
354566
354568
|
this.configFilePath = configFilePath;
|
|
354567
354569
|
this.cfg.value = this.load();
|
|
354568
|
-
this.
|
|
354570
|
+
this.init();
|
|
354569
354571
|
}
|
|
354570
354572
|
load() {
|
|
354571
354573
|
try {
|
|
@@ -354583,8 +354585,13 @@ class PochiConfigFile {
|
|
|
354583
354585
|
return;
|
|
354584
354586
|
this.cfg.value = newValue;
|
|
354585
354587
|
};
|
|
354586
|
-
async
|
|
354588
|
+
async init() {
|
|
354587
354589
|
await this.ensureFileExists();
|
|
354590
|
+
if (isVSCodeEnvironment()) {
|
|
354591
|
+
this.watch();
|
|
354592
|
+
}
|
|
354593
|
+
}
|
|
354594
|
+
watch() {
|
|
354588
354595
|
this.events.addEventListener("change", this.onChange);
|
|
354589
354596
|
const debouncer = T(() => {
|
|
354590
354597
|
this.events.dispatchEvent(new Event("change"));
|
|
@@ -368457,7 +368464,7 @@ var {
|
|
|
368457
368464
|
// package.json
|
|
368458
368465
|
var package_default = {
|
|
368459
368466
|
name: "@getpochi/cli",
|
|
368460
|
-
version: "0.5.
|
|
368467
|
+
version: "0.5.56",
|
|
368461
368468
|
type: "module",
|
|
368462
368469
|
bin: {
|
|
368463
368470
|
pochi: "src/cli.ts"
|