@catchmexz/fedin-vibe-mcp-server 0.1.8 → 0.1.9

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.
@@ -250,45 +250,6 @@ export async function createFileFunc(organizationId, repositoryId, filePath, con
250
250
  });
251
251
  return CreateFileResponseSchema.parse(response);
252
252
  }
253
- async function getRepositoryDomain(projectId) {
254
- const query = `
255
- SELECT
256
- ch.id as id,
257
- ch.custom_domain as custom_domain,
258
- ch.domain_certificate as domain_certificate
259
- FROM
260
- public.chat_history AS ch
261
- WHERE
262
- ch.id = '${projectId}'
263
- `;
264
- try {
265
- const response = await fetch("https://ai.fedin.cn/api/supabase/query", {
266
- method: "post",
267
- body: JSON.stringify({
268
- query
269
- }),
270
- headers: {
271
- "Content-Type": "application/json"
272
- }
273
- });
274
- const data = await response.json();
275
- if (data.length > 0) {
276
- return {
277
- id: data[0].id,
278
- custom_domain: data[0].custom_domain,
279
- domain_certificate: data[0].domain_certificate
280
- };
281
- }
282
- else {
283
- console.error("项目ID无效:未找到对应的项目");
284
- return {};
285
- }
286
- }
287
- catch (error) {
288
- console.error("获取项目信息失败", error);
289
- return {};
290
- }
291
- }
292
253
  export async function pushFilesFunc(organizationId, repositoryId, commitMessage, projectPath, projectId) {
293
254
  // 读取 .gitignore 模式
294
255
  // const ignorePatterns = readGitignore(projectPath);
@@ -370,14 +331,6 @@ export async function pushFilesFunc(organizationId, repositoryId, commitMessage,
370
331
  organizationId: organizationId,
371
332
  token: process.env.YUNXIAO_ACCESS_TOKEN
372
333
  };
373
- const projectInfo = await getRepositoryDomain(projectId);
374
- if (projectInfo.custom_domain) {
375
- pipelineBody.customDomain = projectInfo.custom_domain;
376
- }
377
- // 如果配置了证书,添加到请求体中
378
- if (projectInfo.domain_certificate) {
379
- pipelineBody.certificate = projectInfo.domain_certificate;
380
- }
381
334
  const pipelineResponse = await fetch("https://ai.fedin.cn/api/alicloud/create-pipeline-run", {
382
335
  method: "POST",
383
336
  body: JSON.stringify(pipelineBody),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catchmexz/fedin-vibe-mcp-server",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"