@getpochi/cli 0.5.54 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +24 -6
  2. 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/base/logger.ts
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.watch();
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 watch() {
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"));
@@ -360080,7 +360087,15 @@ function createGeminiCliModel({
360080
360087
  async transformParams({ params }) {
360081
360088
  return {
360082
360089
  ...params,
360083
- maxOutputTokens: 32768
360090
+ maxOutputTokens: 32768,
360091
+ providerOptions: {
360092
+ google: {
360093
+ thinkingConfig: {
360094
+ includeThoughts: true,
360095
+ thinkingBudget: 4096
360096
+ }
360097
+ }
360098
+ }
360084
360099
  };
360085
360100
  }
360086
360101
  }
@@ -368449,7 +368464,7 @@ var {
368449
368464
  // package.json
368450
368465
  var package_default = {
368451
368466
  name: "@getpochi/cli",
368452
- version: "0.5.54",
368467
+ version: "0.5.56",
368453
368468
  type: "module",
368454
368469
  bin: {
368455
368470
  pochi: "src/cli.ts"
@@ -412421,7 +412436,10 @@ var program5 = new Command().name("pochi").description(`${source_default.bold("P
412421
412436
  customAgents,
412422
412437
  mcpHub
412423
412438
  });
412424
- const renderer = options6.streamJson ? new JsonRenderer(runner.state) : new OutputRenderer(runner.state);
412439
+ const renderer = new OutputRenderer(runner.state);
412440
+ if (options6.streamJson) {
412441
+ new JsonRenderer(runner.state);
412442
+ }
412425
412443
  await runner.run();
412426
412444
  renderer.shutdown();
412427
412445
  mcpHub.dispose();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.54",
3
+ "version": "0.5.56",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"