@shaohui_jin/git-cockpit-mcp-server 0.1.15 → 0.1.16

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { c as createRuntime, d as disposeRuntime } from './runtime-B0PyJ-YT.js';
1
+ export { c as createRuntime, d as disposeRuntime } from './runtime-CtZr-J1V.js';
2
2
  import 'node:events';
3
3
  import 'node:sqlite';
4
4
  import '@shaohui_jin/git-cockpit-core';
package/dist/cli.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "./chunk-Q3ZIYY54.js";
4
+ } from "./chunk-SMZ3RJPR.js";
5
5
  import {
6
6
  createRuntime,
7
7
  disposeRuntime
8
- } from "./chunk-7ZLJEU2E.js";
9
- import "./chunk-4LUNMJTB.js";
8
+ } from "./chunk-L3C6BUHZ.js";
9
+ import "./chunk-UXORB6SE.js";
10
10
  export {
11
11
  createRuntime,
12
12
  disposeRuntime,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Runtime } from './runtime-B0PyJ-YT.js';
2
- export { C as ConfigStore, D as DeepPartial, a as RepoHandle, b as RepoManager, e as RuntimeOptions, c as createRuntime, d as disposeRuntime } from './runtime-B0PyJ-YT.js';
1
+ import { R as Runtime } from './runtime-CtZr-J1V.js';
2
+ export { C as ConfigStore, D as DeepPartial, a as RepoHandle, b as RepoManager, e as RuntimeOptions, c as createRuntime, d as disposeRuntime } from './runtime-CtZr-J1V.js';
3
3
  export { MCP_SERVER_INFO, McpHttpHandler, createMcpServer, startMcpStdio } from './mcpServer.js';
4
4
  export { WebServerHandle, createWebServer } from './webServer.js';
5
5
  import { z } from 'zod';
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "./chunk-Q3ZIYY54.js";
4
+ } from "./chunk-SMZ3RJPR.js";
5
5
  import {
6
6
  ConfigStore,
7
7
  RepoManager,
8
8
  createRuntime,
9
9
  createWebServer,
10
10
  disposeRuntime
11
- } from "./chunk-7ZLJEU2E.js";
11
+ } from "./chunk-L3C6BUHZ.js";
12
12
  import {
13
13
  MCP_SERVER_INFO,
14
14
  McpHttpHandler,
@@ -19,7 +19,7 @@ import {
19
19
  formatResultForMcp,
20
20
  startMcpStdio,
21
21
  toolSummaries
22
- } from "./chunk-4LUNMJTB.js";
22
+ } from "./chunk-UXORB6SE.js";
23
23
  export {
24
24
  ConfigStore,
25
25
  MCP_SERVER_INFO,
@@ -1,6 +1,6 @@
1
1
  import { IncomingMessage, ServerResponse } from 'node:http';
2
2
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
- import { R as Runtime } from './runtime-B0PyJ-YT.js';
3
+ import { R as Runtime } from './runtime-CtZr-J1V.js';
4
4
  import 'node:events';
5
5
  import 'node:sqlite';
6
6
  import '@shaohui_jin/git-cockpit-core';
package/dist/mcpServer.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  McpHttpHandler,
5
5
  createMcpServer,
6
6
  startMcpStdio
7
- } from "./chunk-4LUNMJTB.js";
7
+ } from "./chunk-UXORB6SE.js";
8
8
  export {
9
9
  MCP_SERVER_INFO,
10
10
  McpHttpHandler,
@@ -50,13 +50,14 @@ declare class RepoManager {
50
50
  list(): (OpenedRepo & {
51
51
  available: boolean;
52
52
  })[];
53
- /** 取最近打开的仓库(懒创建服务) */
53
+ /** 取最近打开的仓库(懒创建服务)。与工作台拖拽顺序无关。 */
54
54
  getCurrent(): Promise<RepoHandle | null>;
55
+ reorder(ids: number[]): OpenedRepo[];
55
56
  /** 按 id 取仓库(懒创建服务) */
56
57
  getById(id: number): Promise<RepoHandle | null>;
57
58
  /** 打开仓库:校验并记录;重复打开返回既有实例 */
58
59
  open(repoPath: string): Promise<RepoHandle>;
59
- /** 激活仓库:刷新最近打开时间,驱动「最近打开」列表重排到首位;仓库不存在返回 null */
60
+ /** 激活仓库:只刷新 last_opened_at,不改工作台拖拽顺序;仓库不存在返回 null */
60
61
  activate(id: number): OpenedRepo | null;
61
62
  /** 按路径取服务,未打开则报错(避免隐式副作用) */
62
63
  getByPath(repoPath: string): RepoHandle;