@getpochi/cli 0.5.83 → 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 +12 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -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);
|
|
@@ -404618,7 +404618,7 @@ var {
|
|
|
404618
404618
|
// package.json
|
|
404619
404619
|
var package_default = {
|
|
404620
404620
|
name: "@getpochi/cli",
|
|
404621
|
-
version: "0.5.
|
|
404621
|
+
version: "0.5.84",
|
|
404622
404622
|
type: "module",
|
|
404623
404623
|
bin: {
|
|
404624
404624
|
pochi: "src/cli.ts"
|
|
@@ -431027,8 +431027,9 @@ async function initializeMcp(program5) {
|
|
|
431027
431027
|
const status3 = mcpHub.status.value;
|
|
431028
431028
|
const connections = Object.values(status3.connections);
|
|
431029
431029
|
const readyConnections = connections.filter((conn) => conn.status === "ready").length;
|
|
431030
|
+
const stoppedConnections = connections.filter((conn) => conn.status === "stopped").length;
|
|
431030
431031
|
const errorConnections = connections.filter((conn) => conn.status === "error").length;
|
|
431031
|
-
if (readyConnections >= connections.length) {
|
|
431032
|
+
if (readyConnections + stoppedConnections >= connections.length) {
|
|
431032
431033
|
break;
|
|
431033
431034
|
}
|
|
431034
431035
|
if (errorConnections > 0) {
|
|
@@ -445481,7 +445482,12 @@ var proxedFetch = async (input2, init4) => {
|
|
|
445481
445482
|
// ../common/src/google-vertex-utils.ts
|
|
445482
445483
|
function createPatchedFetchForFinetune(accessToken) {
|
|
445483
445484
|
function patchString(str) {
|
|
445484
|
-
|
|
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;
|
|
445485
445491
|
}
|
|
445486
445492
|
return (requestInfo, requestInit) => {
|
|
445487
445493
|
const headers = new Headers(requestInit?.headers);
|
|
@@ -445530,7 +445536,7 @@ function createVertexModel(vertex2, modelId) {
|
|
|
445530
445536
|
privateKeyId: service_account_key.private_key_id,
|
|
445531
445537
|
privateKey: service_account_key.private_key
|
|
445532
445538
|
},
|
|
445533
|
-
fetch:
|
|
445539
|
+
fetch: createPatchedFetchForFinetune()
|
|
445534
445540
|
})(modelId);
|
|
445535
445541
|
}
|
|
445536
445542
|
if ("accessToken" in vertex2) {
|
|
@@ -445539,7 +445545,7 @@ function createVertexModel(vertex2, modelId) {
|
|
|
445539
445545
|
project: projectId,
|
|
445540
445546
|
location: location3,
|
|
445541
445547
|
baseURL: getBaseURL2(location3, projectId),
|
|
445542
|
-
fetch:
|
|
445548
|
+
fetch: createPatchedFetchForFinetune(accessToken)
|
|
445543
445549
|
})(modelId);
|
|
445544
445550
|
}
|
|
445545
445551
|
if ("issueUrl" in vertex2) {
|