@getpochi/cli 0.5.63 → 0.5.64

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 +9 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -353280,8 +353280,7 @@ var askFollowupQuestion = tool(toolDef2);
353280
353280
 
353281
353281
  // ../tools/src/attempt-completion.ts
353282
353282
  var attemptCompletionSchema = exports_external2.object({
353283
- result: exports_external2.string().describe("The result of the task. Formulate this result in a way that is final and does not require further input from the user."),
353284
- command: exports_external2.string().optional().describe("A CLI command to execute to show a live demo of the result to the user.")
353283
+ result: exports_external2.string().describe("The result of the task. Formulate this result in a way that is final and does not require further input from the user.")
353285
353284
  });
353286
353285
  var toolDef3 = {
353287
353286
  description: `After each tool use. Once you've received the results of tool uses and can confirm that the task is complete, use this tool to present the result of your work to the user.
@@ -368971,7 +368970,7 @@ var {
368971
368970
  // package.json
368972
368971
  var package_default = {
368973
368972
  name: "@getpochi/cli",
368974
- version: "0.5.63",
368973
+ version: "0.5.64",
368975
368974
  type: "module",
368976
368975
  bin: {
368977
368976
  pochi: "src/cli.ts"
@@ -396540,7 +396539,7 @@ class McpConnection {
396540
396539
  ready: {
396541
396540
  entry: (context15, event) => {
396542
396541
  if (event.type !== "connected") {
396543
- this.logger.debug(`Expected 'connected' event entry 'ready' state, got: ${event.type}`);
396542
+ this.logger.warn(`Expected 'connected' event entry 'ready' state, got: ${event.type}`);
396544
396543
  return;
396545
396544
  }
396546
396545
  context15.client = event.client;
@@ -396564,12 +396563,12 @@ class McpConnection {
396564
396563
  error: {
396565
396564
  entry: (context15, event) => {
396566
396565
  if (event.type !== "error") {
396567
- this.logger.debug(`Expected 'error' event entry 'error' state, got: ${event.type}`);
396566
+ this.logger.warn(`Expected 'error' event entry 'error' state, got: ${event.type}`);
396568
396567
  return;
396569
396568
  }
396570
396569
  context15.error = event.error;
396571
396570
  if (context15.autoReconnectAttempts < AutoReconnectMaxAttempts) {
396572
- this.logger.debug(`Auto reconnect in ${AutoReconnectDelay}ms`);
396571
+ this.logger.warn(`Auto reconnect in ${AutoReconnectDelay}ms`);
396573
396572
  context15.autoReconnectTimer = setTimeout(() => {
396574
396573
  this.fsm.send({ type: "restart" });
396575
396574
  }, AutoReconnectDelay);
@@ -396665,7 +396664,7 @@ class McpConnection {
396665
396664
  }
396666
396665
  return await tool2.execute(args2, options6);
396667
396666
  } catch (error46) {
396668
- this.logger.debug(`Error while executing tool ${name17}`, error46);
396667
+ this.logger.warn(`Error while executing tool ${name17}`, error46);
396669
396668
  this.handleError(error46);
396670
396669
  throw error46;
396671
396670
  }
@@ -396680,7 +396679,7 @@ class McpConnection {
396680
396679
  let client = undefined;
396681
396680
  try {
396682
396681
  const onUncaughtError = (error46) => {
396683
- this.logger.debug("Uncaught error.", error46);
396682
+ this.logger.error("Uncaught error.", error46);
396684
396683
  this.handleError(error46);
396685
396684
  };
396686
396685
  if (isStdioTransport(this.config)) {
@@ -396755,7 +396754,7 @@ class McpConnection {
396755
396754
  return;
396756
396755
  }
396757
396756
  const message = readableError(error46);
396758
- this.logger.debug("Error while connecting.", error46);
396757
+ this.logger.error("Error while connecting.", error46);
396759
396758
  this.fsm.send({ type: "error", error: message });
396760
396759
  }
396761
396760
  }
@@ -396763,7 +396762,7 @@ class McpConnection {
396763
396762
  try {
396764
396763
  await client.close();
396765
396764
  } catch (error46) {
396766
- this.logger.debug("Error while shutting down.", error46);
396765
+ this.logger.error("Error while shutting down.", error46);
396767
396766
  }
396768
396767
  }
396769
396768
  isToolDisabled(toolName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.63",
3
+ "version": "0.5.64",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"