@getpochi/cli 0.5.44 → 0.5.46

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 +32 -35
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -46324,7 +46324,7 @@ var TypeId39, schemaBodyJson = (schema2, options) => {
46324
46324
  }, schemaHeaders = (schema2, options) => {
46325
46325
  const parse9 = decodeUnknown3(schema2, options);
46326
46326
  return (self2) => parse9(self2.headers);
46327
- }, MaxBodySize, withMaxBodySize, inspect2 = (self2, that) => {
46327
+ }, MaxBodySize, withMaxBodySize, inspect = (self2, that) => {
46328
46328
  const contentType = self2.headers["content-type"] ?? "";
46329
46329
  let body;
46330
46330
  if (contentType.includes("application/json")) {
@@ -46579,7 +46579,7 @@ var init_httpClientResponse = __esm(() => {
46579
46579
  this[TypeId41] = TypeId41;
46580
46580
  }
46581
46581
  toJSON() {
46582
- return inspect2(this, {
46582
+ return inspect(this, {
46583
46583
  _id: "@effect/platform/HttpClientResponse",
46584
46584
  request: this.request.toJSON(),
46585
46585
  status: this.status
@@ -54724,7 +54724,7 @@ var init_httpServerRequest = __esm(() => {
54724
54724
  this[TypeId39] = TypeId39;
54725
54725
  }
54726
54726
  toJSON() {
54727
- return inspect2(this, {
54727
+ return inspect(this, {
54728
54728
  _id: "@effect/platform/HttpServerRequest",
54729
54729
  method: this.method,
54730
54730
  url: this.originalUrl
@@ -92720,7 +92720,7 @@ var init_httpClient3 = __esm(() => {
92720
92720
  });
92721
92721
  }
92722
92722
  toJSON() {
92723
- return inspect2(this, {
92723
+ return inspect(this, {
92724
92724
  _id: "@effect/platform/HttpClientResponse",
92725
92725
  request: this.request.toJSON(),
92726
92726
  status: this.status
@@ -95948,7 +95948,7 @@ var require_data_url = __commonJS((exports, module) => {
95948
95948
 
95949
95949
  // ../../node_modules/@effect/platform-node/node_modules/undici/lib/web/webidl/index.js
95950
95950
  var require_webidl = __commonJS((exports, module) => {
95951
- var { types: types8, inspect: inspect3 } = __require("node:util");
95951
+ var { types: types8, inspect: inspect2 } = __require("node:util");
95952
95952
  var { markAsUncloneable } = __require("node:worker_threads");
95953
95953
  var UNDEFINED = 1;
95954
95954
  var BOOLEAN = 2;
@@ -96139,7 +96139,7 @@ var require_webidl = __commonJS((exports, module) => {
96139
96139
  case SYMBOL:
96140
96140
  return `Symbol(${V.description})`;
96141
96141
  case OBJECT:
96142
- return inspect3(V);
96142
+ return inspect2(V);
96143
96143
  case STRING:
96144
96144
  return `"${V}"`;
96145
96145
  case BIGINT:
@@ -112206,7 +112206,7 @@ var init_httpClientUndici = __esm(() => {
112206
112206
  }).pipe(cached4, runSync);
112207
112207
  }
112208
112208
  toJSON() {
112209
- return inspect2(this, {
112209
+ return inspect(this, {
112210
112210
  _id: "@effect/platform/HttpClientResponse",
112211
112211
  request: this.request.toJSON(),
112212
112212
  status: this.status
@@ -116546,7 +116546,7 @@ var init_httpServer2 = __esm(() => {
116546
116546
  return `ServerRequest(${this.method} ${this.url})`;
116547
116547
  }
116548
116548
  toJSON() {
116549
- return inspect2(this, {
116549
+ return inspect(this, {
116550
116550
  _id: "@effect/platform/HttpServerRequest",
116551
116551
  method: this.method,
116552
116552
  url: this.originalUrl
@@ -283562,7 +283562,7 @@ import fs9, { existsSync as existsSync5, promises as promises4, readFileSync as
283562
283562
  import path20, { basename as basename5, dirname as dirname8, extname as extname4, isAbsolute as isAbsolute6, join as join18, normalize as normalize4, posix as posix5, relative as relative6, resolve as resolve11, sep as sep3 } from "node:path";
283563
283563
  import fsp, { constants as constants6 } from "node:fs/promises";
283564
283564
  import { URL as URL$1, fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "node:url";
283565
- import { format as format10, inspect as inspect3, promisify as promisify3, stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
283565
+ import { format as format10, inspect as inspect2, promisify as promisify3, stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
283566
283566
  import { performance as performance$1 } from "node:perf_hooks";
283567
283567
  import crypto8 from "node:crypto";
283568
283568
  import os8 from "node:os";
@@ -288999,9 +288999,9 @@ function determineSpecificType(value$1) {
288999
288999
  if (typeof value$1 === "object") {
289000
289000
  if (value$1.constructor && value$1.constructor.name)
289001
289001
  return `an instance of ${value$1.constructor.name}`;
289002
- return `${inspect3(value$1, { depth: -1 })}`;
289002
+ return `${inspect2(value$1, { depth: -1 })}`;
289003
289003
  }
289004
- let inspected = inspect3(value$1, { colors: false });
289004
+ let inspected = inspect2(value$1, { colors: false });
289005
289005
  if (inspected.length > 28)
289006
289006
  inspected = `${inspected.slice(0, 25)}...`;
289007
289007
  return `type ${typeof value$1} (${inspected})`;
@@ -307264,7 +307264,7 @@ Error: ${e$1.message}`);
307264
307264
  return `Unknown file extension "${extension$1}" for ${path$13}`;
307265
307265
  }, TypeError);
307266
307266
  codes$1.ERR_INVALID_ARG_VALUE = createError("ERR_INVALID_ARG_VALUE", (name17, value$1, reason = "is invalid") => {
307267
- let inspected = inspect3(value$1);
307267
+ let inspected = inspect2(value$1);
307268
307268
  if (inspected.length > 128)
307269
307269
  inspected = `${inspected.slice(0, 128)}...`;
307270
307270
  const type3 = name17.includes(".") ? "property" : "argument";
@@ -354784,8 +354784,6 @@ var {
354784
354784
  updateConfig,
354785
354785
  getVendorConfig,
354786
354786
  updateVendorConfig,
354787
- inspect,
354788
- setWorkspacePath,
354789
354787
  getConfigFilePath,
354790
354788
  watchKeys
354791
354789
  } = new PochiConfigManager;
@@ -358595,8 +358593,8 @@ class QwenCode extends VendorBase {
358595
358593
  contextWindow: 1e6,
358596
358594
  useToolCallMiddleware: false
358597
358595
  },
358598
- "qwen3-coder": {
358599
- contextWindow: 256000,
358596
+ "qwen-vl-max": {
358597
+ contextWindow: 128000,
358600
358598
  useToolCallMiddleware: false
358601
358599
  }
358602
358600
  };
@@ -368348,15 +368346,19 @@ registerModel(VendorId6, createCopilotModel);
368348
368346
 
368349
368347
  // ../vendor-qwen-code/src/model.ts
368350
368348
  var BaseUrl2 = "https://portal.qwen.ai/v1";
368349
+ var ModelIdMap2 = {
368350
+ "qwen-vl-max": "vision-model"
368351
+ };
368351
368352
  function createQwenModel({
368352
368353
  modelId,
368353
368354
  getCredentials
368354
368355
  }) {
368356
+ const actualModelId = ModelIdMap2[modelId] || modelId;
368355
368357
  const qwenModel = createOpenAICompatible({
368356
368358
  name: "OpenAI",
368357
368359
  baseURL: BaseUrl2,
368358
368360
  fetch: createPatchedFetch4(getCredentials)
368359
- })(modelId);
368361
+ })(actualModelId);
368360
368362
  return wrapLanguageModel({
368361
368363
  model: qwenModel,
368362
368364
  middleware: {
@@ -368443,7 +368445,7 @@ var {
368443
368445
  // package.json
368444
368446
  var package_default = {
368445
368447
  name: "@getpochi/cli",
368446
- version: "0.5.44",
368448
+ version: "0.5.46",
368447
368449
  type: "module",
368448
368450
  bin: {
368449
368451
  pochi: "src/cli.ts"
@@ -370513,7 +370515,7 @@ function all15(values9, includeImageAlt, includeHtml) {
370513
370515
  function node(value9) {
370514
370516
  return Boolean(value9 && typeof value9 === "object");
370515
370517
  }
370516
- // ../../node_modules/decode-named-character-reference/node_modules/character-entities/index.js
370518
+ // ../../node_modules/character-entities/index.js
370517
370519
  var characterEntities = {
370518
370520
  AElig: "Æ",
370519
370521
  AMP: "&",
@@ -385878,13 +385880,9 @@ class McpHub {
385878
385880
  return addedNames;
385879
385881
  }
385880
385882
  async saveConfig(newConfig) {
385881
- for (const [name17, config4] of Object.entries(newConfig)) {
385882
- const { effectiveTargets } = inspect(`mcp.${name17}`);
385883
- const editTarget = effectiveTargets[0] || "user";
385884
- await updateConfig({ mcp: { [name17]: config4 } }, editTarget).catch((error42) => {
385885
- logger16.error("Failed to persist MCP configuration changes", error42);
385886
- });
385887
- }
385883
+ await updateConfig({ mcp: newConfig }).catch((error42) => {
385884
+ logger16.error("Failed to persist MCP configuration changes", error42);
385885
+ });
385888
385886
  }
385889
385887
  async onConfigChanged() {
385890
385888
  const newConfig = this.config.value;
@@ -396440,7 +396438,7 @@ async function initializeMcp(mcpHub) {
396440
396438
  const readyConnections = connections.filter((conn) => conn.status === "ready").length;
396441
396439
  const errorConnections = connections.filter((conn) => conn.status === "error").length;
396442
396440
  if (connections.length > 0) {
396443
- if (readyConnections + errorConnections >= connections.length && attempts > 3) {
396441
+ if (readyConnections + errorConnections >= connections.length) {
396444
396442
  break;
396445
396443
  }
396446
396444
  }
@@ -397982,7 +397980,7 @@ function stringify5(values10, options6) {
397982
397980
  return input2.join((settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")).trim();
397983
397981
  }
397984
397982
 
397985
- // ../../node_modules/hast-util-from-parse5/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.js
397983
+ // ../../node_modules/hast-util-parse-selector/lib/index.js
397986
397984
  var search2 = /[#.]/g;
397987
397985
  function parseSelector(selector, defaultTagName) {
397988
397986
  const value10 = selector || "";
@@ -398027,7 +398025,7 @@ function stringify6(values10) {
398027
398025
  return values10.join(" ").trim();
398028
398026
  }
398029
398027
 
398030
- // ../../node_modules/hast-util-from-parse5/node_modules/hastscript/lib/create-h.js
398028
+ // ../../node_modules/hastscript/lib/create-h.js
398031
398029
  function createH(schema7, defaultTagName, caseSensitive) {
398032
398030
  const adjust = caseSensitive ? createAdjustMap(caseSensitive) : undefined;
398033
398031
  function h11(selector, properties, ...children3) {
@@ -398167,7 +398165,7 @@ function createAdjustMap(values10) {
398167
398165
  return result2;
398168
398166
  }
398169
398167
 
398170
- // ../../node_modules/hast-util-from-parse5/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js
398168
+ // ../../node_modules/hastscript/lib/svg-case-sensitive-tag-names.js
398171
398169
  var svgCaseSensitiveTagNames = [
398172
398170
  "altGlyph",
398173
398171
  "altGlyphDef",
@@ -398210,7 +398208,7 @@ var svgCaseSensitiveTagNames = [
398210
398208
  "textPath"
398211
398209
  ];
398212
398210
 
398213
- // ../../node_modules/hast-util-from-parse5/node_modules/hastscript/lib/index.js
398211
+ // ../../node_modules/hastscript/lib/index.js
398214
398212
  var h11 = createH(html5, "div");
398215
398213
  var s13 = createH(svg2, "g", svgCaseSensitiveTagNames);
398216
398214
  // ../../node_modules/vfile-location/lib/index.js
@@ -406381,7 +406379,7 @@ function toDecimal(code3, next6, omit9) {
406381
406379
  return omit9 && next6 && !decimalRegex.test(String.fromCharCode(next6)) ? value10 : value10 + ";";
406382
406380
  }
406383
406381
 
406384
- // ../../node_modules/stringify-entities/node_modules/character-entities-legacy/index.js
406382
+ // ../../node_modules/character-entities-legacy/index.js
406385
406383
  var characterEntitiesLegacy = [
406386
406384
  "AElig",
406387
406385
  "AMP",
@@ -412362,13 +412360,13 @@ var program5 = new Command().name("pochi").description(`${source_default.bold("P
412362
412360
  });
412363
412361
  const renderer = new OutputRenderer(runner.state);
412364
412362
  await runner.run();
412363
+ renderer.shutdown();
412365
412364
  const shareId = runner.shareId;
412366
412365
  if (shareId) {
412367
412366
  const shareUrl = source_default.underline(`https://app.getpochi.com/share/${shareId}`);
412368
412367
  console.log(`
412369
412368
  ${source_default.bold("Task link: ")} ${shareUrl}`);
412370
412369
  }
412371
- renderer.shutdown();
412372
412370
  mcpHub.dispose();
412373
412371
  await waitForSync(store, "2 second").catch(console.error);
412374
412372
  await store.shutdownPromise();
@@ -412382,8 +412380,7 @@ program5.optionsGroup(otherOptionsGroup).version(package_default.version, "-V, -
412382
412380
  program5.hook("preAction", async () => {
412383
412381
  await Promise.all([
412384
412382
  checkForUpdates().catch(() => {}),
412385
- waitForSync().catch(console.error),
412386
- setWorkspacePath(process.cwd()).catch(() => {})
412383
+ waitForSync().catch(console.error)
412387
412384
  ]);
412388
412385
  });
412389
412386
  registerAuthCommand(program5);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.44",
3
+ "version": "0.5.46",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"