feat: 更新端口默认值为51515,添加useKey以获取默认仓库ID,更新创建文件描述信息

This commit is contained in:
2026-03-06 02:39:45 +08:00
parent 841ed6ffa7
commit 8465ba7182
4 changed files with 7 additions and 5 deletions

View File

@@ -19,12 +19,12 @@ app.route({
title: '获取当前cnb工作空间的port代理uri',
summary: '获取当前cnb工作空间的port代理uri用于端口转发',
args: {
port: tool.schema.number().optional().describe('端口号,默认为4096'),
port: tool.schema.number().optional().describe('端口号,默认为51515'),
}
})
}
}).define(async (ctx) => {
const port = ctx.query?.port || 4096;
const port = ctx.query?.port || 51515;
const uri = CNB_ENV?.CNB_VSCODE_PROXY_URI as string || '';
const finalUri = uri.replace('{{port}}', port.toString());
let content = `