@getpochi/cli 0.5.82 → 0.5.84
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 +20 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -388087,7 +388087,7 @@ var AnthropicModelSettings = ExtendedModelSettings.extend({
|
|
|
388087
388087
|
});
|
|
388088
388088
|
var GoogleVertexModel = v4_default.union([
|
|
388089
388089
|
v4_default.object({
|
|
388090
|
-
serviceAccountKey: v4_default.string(),
|
|
388090
|
+
serviceAccountKey: v4_default.string().default(process.env.POCHI_VERTEX_SERVICE_ACCOUNT_KEY ?? ""),
|
|
388091
388091
|
location: v4_default.string()
|
|
388092
388092
|
}),
|
|
388093
388093
|
v4_default.object({
|
|
@@ -388096,8 +388096,8 @@ var GoogleVertexModel = v4_default.union([
|
|
|
388096
388096
|
location: v4_default.string()
|
|
388097
388097
|
}),
|
|
388098
388098
|
v4_default.object({
|
|
388099
|
-
issueUrl: v4_default.string().
|
|
388100
|
-
modelUrl: v4_default.string().
|
|
388099
|
+
issueUrl: v4_default.string().default(process.env.POCHI_VERTEX_ISSUE_URL ?? ""),
|
|
388100
|
+
modelUrl: v4_default.string().default(process.env.POCHI_VERTEX_MODEL_URL ?? "")
|
|
388101
388101
|
})
|
|
388102
388102
|
]);
|
|
388103
388103
|
var GoogleVertexTuningModelSettings = BaseModelSettings.extend({
|
|
@@ -388256,7 +388256,7 @@ function prop(data, ...keys) {
|
|
|
388256
388256
|
}
|
|
388257
388257
|
return output;
|
|
388258
388258
|
}
|
|
388259
|
-
var AllowedWorkspaceConfigKeys = ["mcp"];
|
|
388259
|
+
var AllowedWorkspaceConfigKeys = ["mcp", "providers"];
|
|
388260
388260
|
var configFileName = isDev ? "dev-config.jsonc" : "config.jsonc";
|
|
388261
388261
|
var pochiConfigRelativePath = path3.join(".pochi", configFileName);
|
|
388262
388262
|
var UserConfigFilePath = path3.join(os.homedir(), pochiConfigRelativePath);
|
|
@@ -404498,6 +404498,10 @@ async function processContentOutput(store, output2, signal2) {
|
|
|
404498
404498
|
content: await Promise.all(content)
|
|
404499
404499
|
};
|
|
404500
404500
|
}
|
|
404501
|
+
if (typeof output2 === "object" && output2 !== null && "toolResult" in output2) {
|
|
404502
|
+
const { toolResult, ...rest } = output2;
|
|
404503
|
+
return rest;
|
|
404504
|
+
}
|
|
404501
404505
|
return output2;
|
|
404502
404506
|
}
|
|
404503
404507
|
var ContentOutput = zod_default.object({
|
|
@@ -404614,7 +404618,7 @@ var {
|
|
|
404614
404618
|
// package.json
|
|
404615
404619
|
var package_default = {
|
|
404616
404620
|
name: "@getpochi/cli",
|
|
404617
|
-
version: "0.5.
|
|
404621
|
+
version: "0.5.84",
|
|
404618
404622
|
type: "module",
|
|
404619
404623
|
bin: {
|
|
404620
404624
|
pochi: "src/cli.ts"
|
|
@@ -431023,8 +431027,9 @@ async function initializeMcp(program5) {
|
|
|
431023
431027
|
const status3 = mcpHub.status.value;
|
|
431024
431028
|
const connections = Object.values(status3.connections);
|
|
431025
431029
|
const readyConnections = connections.filter((conn) => conn.status === "ready").length;
|
|
431030
|
+
const stoppedConnections = connections.filter((conn) => conn.status === "stopped").length;
|
|
431026
431031
|
const errorConnections = connections.filter((conn) => conn.status === "error").length;
|
|
431027
|
-
if (readyConnections >= connections.length) {
|
|
431032
|
+
if (readyConnections + stoppedConnections >= connections.length) {
|
|
431028
431033
|
break;
|
|
431029
431034
|
}
|
|
431030
431035
|
if (errorConnections > 0) {
|
|
@@ -445477,7 +445482,12 @@ var proxedFetch = async (input2, init4) => {
|
|
|
445477
445482
|
// ../common/src/google-vertex-utils.ts
|
|
445478
445483
|
function createPatchedFetchForFinetune(accessToken) {
|
|
445479
445484
|
function patchString(str) {
|
|
445480
|
-
|
|
445485
|
+
const matches2 = str.match(/models\/([^:]+)/);
|
|
445486
|
+
const modelId = matches2 ? matches2[1] : undefined;
|
|
445487
|
+
if (modelId && isEndpointModelId(modelId)) {
|
|
445488
|
+
return str.replace("/publishers/google/models", "/endpoints");
|
|
445489
|
+
}
|
|
445490
|
+
return str;
|
|
445481
445491
|
}
|
|
445482
445492
|
return (requestInfo, requestInit) => {
|
|
445483
445493
|
const headers = new Headers(requestInit?.headers);
|
|
@@ -445567,6 +445577,9 @@ function createVertexModel(vertex2, modelId) {
|
|
|
445567
445577
|
}
|
|
445568
445578
|
return;
|
|
445569
445579
|
}
|
|
445580
|
+
function isEndpointModelId(modelId) {
|
|
445581
|
+
return /^\d+$/.test(modelId);
|
|
445582
|
+
}
|
|
445570
445583
|
|
|
445571
445584
|
// ../livekit/src/chat/models/google-vertex-tuning.ts
|
|
445572
445585
|
function createGoogleVertexTuningModel(llm) {
|