@sudosandwich/limps 2.13.3 → 3.1.0
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/README.md +168 -115
- package/dist/cli/config-cmd.d.ts +22 -194
- package/dist/cli/config-cmd.d.ts.map +1 -1
- package/dist/cli/config-cmd.js +92 -981
- package/dist/cli/config-cmd.js.map +1 -1
- package/dist/cli/index.d.ts +1 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init-project.d.ts +7 -3
- package/dist/cli/init-project.d.ts.map +1 -1
- package/dist/cli/init-project.js +43 -51
- package/dist/cli/init-project.js.map +1 -1
- package/dist/cli/mcp-client-adapter.d.ts +17 -48
- package/dist/cli/mcp-client-adapter.d.ts.map +1 -1
- package/dist/cli/mcp-client-adapter.js +29 -194
- package/dist/cli/mcp-client-adapter.js.map +1 -1
- package/dist/cli/mcp-clients.d.ts +2 -40
- package/dist/cli/mcp-clients.d.ts.map +1 -1
- package/dist/cli/mcp-clients.js +31 -92
- package/dist/cli/mcp-clients.js.map +1 -1
- package/dist/cli.js +18 -8
- package/dist/cli.js.map +1 -1
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +3 -12
- package/dist/commands/config/index.js.map +1 -1
- package/dist/commands/config/print.d.ts +20 -0
- package/dist/commands/config/print.d.ts.map +1 -0
- package/dist/commands/config/print.js +51 -0
- package/dist/commands/config/print.js.map +1 -0
- package/dist/commands/config/update.d.ts +3 -4
- package/dist/commands/config/update.d.ts.map +1 -1
- package/dist/commands/config/update.js +6 -5
- package/dist/commands/config/update.js.map +1 -1
- package/dist/commands/config/upgrade.d.ts +1 -1
- package/dist/commands/config/upgrade.js +2 -2
- package/dist/commands/config/upgrade.js.map +1 -1
- package/dist/commands/graph/check.d.ts +0 -1
- package/dist/commands/graph/check.d.ts.map +1 -1
- package/dist/commands/graph/check.js +4 -13
- package/dist/commands/graph/check.js.map +1 -1
- package/dist/commands/graph/entity.d.ts +0 -1
- package/dist/commands/graph/entity.d.ts.map +1 -1
- package/dist/commands/graph/entity.js +4 -13
- package/dist/commands/graph/entity.js.map +1 -1
- package/dist/commands/graph/health.d.ts +0 -1
- package/dist/commands/graph/health.d.ts.map +1 -1
- package/dist/commands/graph/health.js +4 -13
- package/dist/commands/graph/health.js.map +1 -1
- package/dist/commands/graph/index.d.ts.map +1 -1
- package/dist/commands/graph/index.js +1 -3
- package/dist/commands/graph/index.js.map +1 -1
- package/dist/commands/graph/overlap.d.ts +0 -1
- package/dist/commands/graph/overlap.d.ts.map +1 -1
- package/dist/commands/graph/overlap.js +3 -9
- package/dist/commands/graph/overlap.js.map +1 -1
- package/dist/commands/graph/reindex.d.ts +0 -1
- package/dist/commands/graph/reindex.d.ts.map +1 -1
- package/dist/commands/graph/reindex.js +3 -9
- package/dist/commands/graph/reindex.js.map +1 -1
- package/dist/commands/graph/search.d.ts +0 -1
- package/dist/commands/graph/search.d.ts.map +1 -1
- package/dist/commands/graph/search.js +3 -9
- package/dist/commands/graph/search.js.map +1 -1
- package/dist/commands/graph/suggest.d.ts +0 -1
- package/dist/commands/graph/suggest.d.ts.map +1 -1
- package/dist/commands/graph/suggest.js +4 -13
- package/dist/commands/graph/suggest.js.map +1 -1
- package/dist/commands/graph/trace.d.ts +0 -1
- package/dist/commands/graph/trace.d.ts.map +1 -1
- package/dist/commands/graph/trace.js +3 -9
- package/dist/commands/graph/trace.js.map +1 -1
- package/dist/commands/graph/watch.d.ts +0 -1
- package/dist/commands/graph/watch.d.ts.map +1 -1
- package/dist/commands/graph/watch.js +2 -5
- package/dist/commands/graph/watch.js.map +1 -1
- package/dist/commands/health/check.d.ts +0 -1
- package/dist/commands/health/check.d.ts.map +1 -1
- package/dist/commands/health/check.js +3 -9
- package/dist/commands/health/check.js.map +1 -1
- package/dist/commands/health/index.d.ts.map +1 -1
- package/dist/commands/health/index.js +1 -3
- package/dist/commands/health/index.js.map +1 -1
- package/dist/commands/health/inference.d.ts +0 -1
- package/dist/commands/health/inference.d.ts.map +1 -1
- package/dist/commands/health/inference.js +4 -10
- package/dist/commands/health/inference.js.map +1 -1
- package/dist/commands/health/staleness.d.ts +0 -1
- package/dist/commands/health/staleness.d.ts.map +1 -1
- package/dist/commands/health/staleness.js +3 -9
- package/dist/commands/health/staleness.js.map +1 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/init.d.ts +4 -6
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +8 -8
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list-agents.d.ts +0 -1
- package/dist/commands/list-agents.d.ts.map +1 -1
- package/dist/commands/list-agents.js +6 -17
- package/dist/commands/list-agents.js.map +1 -1
- package/dist/commands/list-plans.d.ts +0 -1
- package/dist/commands/list-plans.d.ts.map +1 -1
- package/dist/commands/list-plans.js +6 -12
- package/dist/commands/list-plans.js.map +1 -1
- package/dist/commands/next-task.d.ts +0 -1
- package/dist/commands/next-task.d.ts.map +1 -1
- package/dist/commands/next-task.js +7 -18
- package/dist/commands/next-task.js.map +1 -1
- package/dist/commands/proposals/apply-safe.d.ts +0 -1
- package/dist/commands/proposals/apply-safe.d.ts.map +1 -1
- package/dist/commands/proposals/apply-safe.js +4 -13
- package/dist/commands/proposals/apply-safe.js.map +1 -1
- package/dist/commands/proposals/apply.d.ts +0 -1
- package/dist/commands/proposals/apply.d.ts.map +1 -1
- package/dist/commands/proposals/apply.js +3 -9
- package/dist/commands/proposals/apply.js.map +1 -1
- package/dist/commands/proposals/index.d.ts +0 -1
- package/dist/commands/proposals/index.d.ts.map +1 -1
- package/dist/commands/proposals/index.js +4 -10
- package/dist/commands/proposals/index.js.map +1 -1
- package/dist/commands/reindex.d.ts +0 -1
- package/dist/commands/reindex.d.ts.map +1 -1
- package/dist/commands/reindex.js +4 -8
- package/dist/commands/reindex.js.map +1 -1
- package/dist/commands/repair-plans.d.ts +0 -1
- package/dist/commands/repair-plans.d.ts.map +1 -1
- package/dist/commands/repair-plans.js +3 -6
- package/dist/commands/repair-plans.js.map +1 -1
- package/dist/commands/reset.d.ts +13 -0
- package/dist/commands/reset.d.ts.map +1 -0
- package/dist/commands/reset.js +30 -0
- package/dist/commands/reset.js.map +1 -0
- package/dist/commands/score-all.d.ts +0 -1
- package/dist/commands/score-all.d.ts.map +1 -1
- package/dist/commands/score-all.js +7 -18
- package/dist/commands/score-all.js.map +1 -1
- package/dist/commands/score-task.d.ts +0 -1
- package/dist/commands/score-task.d.ts.map +1 -1
- package/dist/commands/score-task.js +7 -22
- package/dist/commands/score-task.js.map +1 -1
- package/dist/commands/start.d.ts +15 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +131 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/status-server.d.ts +13 -0
- package/dist/commands/status-server.d.ts.map +1 -0
- package/dist/commands/status-server.js +114 -0
- package/dist/commands/status-server.js.map +1 -0
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -9
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stop.d.ts +12 -0
- package/dist/commands/stop.d.ts.map +1 -0
- package/dist/commands/stop.js +87 -0
- package/dist/commands/stop.js.map +1 -0
- package/dist/config.d.ts +34 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +101 -0
- package/dist/config.js.map +1 -1
- package/dist/pidfile.d.ts +55 -0
- package/dist/pidfile.d.ts.map +1 -0
- package/dist/pidfile.js +103 -0
- package/dist/pidfile.js.map +1 -0
- package/dist/server-http-entry.d.ts +8 -0
- package/dist/server-http-entry.d.ts.map +1 -0
- package/dist/server-http-entry.js +42 -0
- package/dist/server-http-entry.js.map +1 -0
- package/dist/server-http.d.ts +19 -0
- package/dist/server-http.d.ts.map +1 -0
- package/dist/server-http.js +292 -0
- package/dist/server-http.js.map +1 -0
- package/dist/server-main.d.ts +3 -3
- package/dist/server-main.d.ts.map +1 -1
- package/dist/server-main.js +17 -111
- package/dist/server-main.js.map +1 -1
- package/dist/server-shared.d.ts +30 -0
- package/dist/server-shared.d.ts.map +1 -0
- package/dist/server-shared.js +110 -0
- package/dist/server-shared.js.map +1 -0
- package/dist/server.d.ts +2 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -3
- package/dist/server.js.map +1 -1
- package/dist/utils/cli-help.d.ts +0 -2
- package/dist/utils/cli-help.d.ts.map +1 -1
- package/dist/utils/cli-help.js +0 -6
- package/dist/utils/cli-help.js.map +1 -1
- package/dist/utils/config-resolver.d.ts +1 -11
- package/dist/utils/config-resolver.d.ts.map +1 -1
- package/dist/utils/config-resolver.js +2 -34
- package/dist/utils/config-resolver.js.map +1 -1
- package/dist/utils/http-client.d.ts +72 -0
- package/dist/utils/http-client.d.ts.map +1 -0
- package/dist/utils/http-client.js +160 -0
- package/dist/utils/http-client.js.map +1 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/rate-limiter.d.ts +18 -0
- package/dist/utils/rate-limiter.d.ts.map +1 -0
- package/dist/utils/rate-limiter.js +60 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/version-state.d.ts.map +1 -1
- package/dist/utils/version-state.js +20 -4
- package/dist/utils/version-state.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli/registry.d.ts +0 -94
- package/dist/cli/registry.d.ts.map +0 -1
- package/dist/cli/registry.js +0 -150
- package/dist/cli/registry.js.map +0 -1
- package/dist/commands/config/add.d.ts +0 -9
- package/dist/commands/config/add.d.ts.map +0 -1
- package/dist/commands/config/add.js +0 -20
- package/dist/commands/config/add.js.map +0 -1
- package/dist/commands/config/discover.d.ts +0 -3
- package/dist/commands/config/discover.d.ts.map +0 -1
- package/dist/commands/config/discover.js +0 -9
- package/dist/commands/config/discover.js.map +0 -1
- package/dist/commands/config/list.d.ts +0 -11
- package/dist/commands/config/list.d.ts.map +0 -1
- package/dist/commands/config/list.js +0 -28
- package/dist/commands/config/list.js.map +0 -1
- package/dist/commands/config/migrate.d.ts +0 -3
- package/dist/commands/config/migrate.d.ts.map +0 -1
- package/dist/commands/config/migrate.js +0 -14
- package/dist/commands/config/migrate.js.map +0 -1
- package/dist/commands/config/remove.d.ts +0 -9
- package/dist/commands/config/remove.d.ts.map +0 -1
- package/dist/commands/config/remove.js +0 -17
- package/dist/commands/config/remove.js.map +0 -1
- package/dist/commands/config/set.d.ts +0 -9
- package/dist/commands/config/set.d.ts.map +0 -1
- package/dist/commands/config/set.js +0 -17
- package/dist/commands/config/set.js.map +0 -1
- package/dist/commands/config/sync-mcp.d.ts +0 -26
- package/dist/commands/config/sync-mcp.d.ts.map +0 -1
- package/dist/commands/config/sync-mcp.js +0 -259
- package/dist/commands/config/sync-mcp.js.map +0 -1
- package/dist/commands/config/use.d.ts +0 -9
- package/dist/commands/config/use.d.ts.map +0 -1
- package/dist/commands/config/use.js +0 -17
- package/dist/commands/config/use.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -18
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -29
- package/dist/commands/serve.js.map +0 -1
- package/dist/utils/os-paths.d.ts +0 -34
- package/dist/utils/os-paths.d.ts.map +0 -1
- package/dist/utils/os-paths.js +0 -60
- package/dist/utils/os-paths.js.map +0 -1
package/dist/cli/config-cmd.d.ts
CHANGED
|
@@ -1,46 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Config subcommand handlers for limps CLI.
|
|
3
|
-
* Provides commands to
|
|
3
|
+
* Provides commands to view and update project configuration.
|
|
4
4
|
*/
|
|
5
5
|
import { type ScoringPreset, type ScoringWeights, type ScoringBiases } from '../config.js';
|
|
6
|
-
/**
|
|
7
|
-
* Project data for JSON output.
|
|
8
|
-
*/
|
|
9
|
-
export interface ProjectsData {
|
|
10
|
-
projects: {
|
|
11
|
-
name: string;
|
|
12
|
-
configPath: string;
|
|
13
|
-
current: boolean;
|
|
14
|
-
exists: boolean;
|
|
15
|
-
}[];
|
|
16
|
-
total: number;
|
|
17
|
-
usage: {
|
|
18
|
-
projectFlag: string;
|
|
19
|
-
configUse: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get projects data for JSON output.
|
|
24
|
-
*
|
|
25
|
-
* @returns Projects data object
|
|
26
|
-
*/
|
|
27
|
-
export declare function getProjectsData(): ProjectsData;
|
|
28
|
-
/**
|
|
29
|
-
* List all registered projects.
|
|
30
|
-
*
|
|
31
|
-
* @returns Formatted list of projects
|
|
32
|
-
*/
|
|
33
|
-
export declare function configList(): string;
|
|
34
|
-
/**
|
|
35
|
-
* Switch to a different project.
|
|
36
|
-
* If the name is not in the registry but exists in the default discovery location
|
|
37
|
-
* (Application Support/<name>/config.json), registers it and sets as current.
|
|
38
|
-
*
|
|
39
|
-
* @param name - Project name to switch to
|
|
40
|
-
* @returns Success message
|
|
41
|
-
* @throws Error if project not found
|
|
42
|
-
*/
|
|
43
|
-
export declare function configUse(name: string): string;
|
|
44
6
|
/**
|
|
45
7
|
* Configuration data for JSON output.
|
|
46
8
|
*/
|
|
@@ -72,12 +34,9 @@ export declare function configShow(resolveConfigPathFn: () => string): string;
|
|
|
72
34
|
* Upgrade config schema to the latest version.
|
|
73
35
|
*
|
|
74
36
|
* @param resolveConfigPathFn - Function to resolve config path
|
|
75
|
-
* @param options - Upgrade options
|
|
76
37
|
* @returns Formatted upgrade summary
|
|
77
38
|
*/
|
|
78
|
-
export declare function configUpgrade(resolveConfigPathFn: () => string
|
|
79
|
-
all?: boolean;
|
|
80
|
-
}): string;
|
|
39
|
+
export declare function configUpgrade(resolveConfigPathFn: () => string): string;
|
|
81
40
|
export interface ScoringConfigUpdateOptions {
|
|
82
41
|
preset?: ScoringPreset;
|
|
83
42
|
weights?: Partial<ScoringWeights>;
|
|
@@ -93,169 +52,39 @@ export declare function configScoringUpdate(resolveConfigPathFn: () => string, o
|
|
|
93
52
|
*/
|
|
94
53
|
export declare function configPath(resolveConfigPathFn: () => string): string;
|
|
95
54
|
/**
|
|
96
|
-
*
|
|
97
|
-
* If a directory is provided, looks for config.json inside it or creates one
|
|
98
|
-
* in the OS standard location (e.g., ~/Library/Application Support/limps/).
|
|
55
|
+
* Reset limps state for a single project: stop daemon, delete dataPath contents.
|
|
99
56
|
*
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
102
|
-
* @returns
|
|
103
|
-
* @throws Error if path doesn't exist
|
|
104
|
-
*/
|
|
105
|
-
export declare function configAdd(name: string, configFileOrDirPath: string): string;
|
|
106
|
-
/**
|
|
107
|
-
* Remove a project from the registry and delete its config file and project directory
|
|
108
|
-
* when the config lives under limps/projects (Application Support/limps/projects/).
|
|
109
|
-
* Accepts either a project name (exact match, no path chars) or a path to a config file.
|
|
110
|
-
* Paths are strictly validated: must be under limps/projects and end with config.json.
|
|
111
|
-
*
|
|
112
|
-
* @param nameOrPath - Project name or path to config.json
|
|
113
|
-
* @returns Success message
|
|
114
|
-
* @throws Error if project not found or path is invalid
|
|
115
|
-
*/
|
|
116
|
-
export declare function configRemove(nameOrPath: string): string;
|
|
117
|
-
/**
|
|
118
|
-
* Set the current project from an existing config file path.
|
|
119
|
-
* Auto-derives the project name from the parent directory.
|
|
120
|
-
* Registers the project if not already registered.
|
|
121
|
-
*
|
|
122
|
-
* @param configFilePath - Path to the config file
|
|
123
|
-
* @returns Success message
|
|
124
|
-
* @throws Error if config file doesn't exist or is invalid
|
|
57
|
+
* @param configPath - Path to the project's config.json
|
|
58
|
+
* @param options - Reset options (force must be true to proceed)
|
|
59
|
+
* @returns Log of actions taken
|
|
125
60
|
*/
|
|
126
|
-
export declare function
|
|
127
|
-
|
|
61
|
+
export declare function resetAll(configPath: string, options?: {
|
|
62
|
+
force?: boolean;
|
|
63
|
+
}): string[];
|
|
64
|
+
import { type McpClientAdapter, type McpServerConfig } from './mcp-client-adapter.js';
|
|
128
65
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* @returns Summary of discovered (unregistered) projects
|
|
133
|
-
*/
|
|
134
|
-
export declare function configDiscover(): string;
|
|
135
|
-
/**
|
|
136
|
-
* Migrate known (registered) configs and configs from old locations into limps/projects/
|
|
137
|
-
* so the limps root is not polluted. Ensures limps/projects exists, then:
|
|
138
|
-
* 1. For each registered project: if config is not under limps/projects/<name>/, copy it there and update registry.
|
|
139
|
-
* 2. Pull from old sibling layout (Application Support/<name>/config.json): copy to limps/projects/<name>/, register.
|
|
140
|
-
* 3. Pull from flat limps layout (limps/<name>/config.json): copy to limps/projects/<name>/, register if not already.
|
|
141
|
-
* Repairs all paths inside each config JSON (plansPath, dataPath, docsPaths) and MCP client references.
|
|
142
|
-
*
|
|
143
|
-
* @returns Summary of migration (migrated count and paths)
|
|
144
|
-
*/
|
|
145
|
-
/** One recorded move for migration reversal. */
|
|
146
|
-
export interface MigrationMove {
|
|
147
|
-
name: string;
|
|
148
|
-
sourcePath: string;
|
|
149
|
-
targetPath: string;
|
|
150
|
-
}
|
|
151
|
-
export declare function configMigrate(): string;
|
|
152
|
-
/**
|
|
153
|
-
* Generate MCP server configuration JSON for limps projects.
|
|
154
|
-
* Returns the JSON structure that should be added to the client config.
|
|
66
|
+
* Generate MCP server configuration JSON for a single limps project.
|
|
67
|
+
* Always generates HTTP transport configuration (limps v3 daemon mode).
|
|
155
68
|
*
|
|
156
69
|
* @param adapter - MCP client adapter
|
|
157
|
-
* @param
|
|
158
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
70
|
+
* @param configPath - Path to the limps config file
|
|
159
71
|
* @returns Object with servers key and the servers configuration
|
|
160
|
-
* @throws Error if
|
|
72
|
+
* @throws Error if config not found
|
|
161
73
|
*/
|
|
162
|
-
export declare function generateMcpClientConfig(adapter: McpClientAdapter,
|
|
74
|
+
export declare function generateMcpClientConfig(adapter: McpClientAdapter, configPath: string): {
|
|
163
75
|
serversKey: string;
|
|
164
76
|
servers: Record<string, McpServerConfig>;
|
|
165
77
|
fullConfig: Record<string, unknown>;
|
|
166
78
|
};
|
|
167
79
|
/**
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
export declare function previewMcpClientConfig(adapter: McpClientAdapter, resolveConfigPathFn: () => string, projectFilter?: string[]): {
|
|
172
|
-
hasChanges: boolean;
|
|
173
|
-
diffText: string;
|
|
174
|
-
addedServers: string[];
|
|
175
|
-
updatedServers: string[];
|
|
176
|
-
configPath: string;
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* Generate config JSON for printing (for unsupported clients).
|
|
180
|
-
*
|
|
181
|
-
* @param adapter - MCP client adapter
|
|
182
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
183
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
184
|
-
* @returns JSON string and instructions
|
|
185
|
-
*/
|
|
186
|
-
export declare function generateConfigForPrint(adapter: McpClientAdapter, resolveConfigPathFn: () => string, projectFilter?: string[]): string;
|
|
187
|
-
/**
|
|
188
|
-
* Add limps server configuration to Claude Desktop config.
|
|
189
|
-
* Creates the config file if it doesn't exist, or merges with existing config.
|
|
190
|
-
* Adds all registered projects as separate MCP servers.
|
|
191
|
-
*
|
|
192
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
193
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
194
|
-
* @returns Success message listing all added servers
|
|
195
|
-
* @throws Error if Claude Desktop config directory doesn't exist or can't be written
|
|
196
|
-
*/
|
|
197
|
-
export declare function configAddClaude(resolveConfigPathFn: () => string, projectFilter?: string[]): string;
|
|
198
|
-
/**
|
|
199
|
-
* Add limps server configuration to Cursor config.
|
|
200
|
-
* Creates the config file if it doesn't exist, or merges with existing config.
|
|
201
|
-
* Adds all registered projects as separate MCP servers.
|
|
202
|
-
*
|
|
203
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
204
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
205
|
-
* @returns Success message listing all added servers
|
|
206
|
-
* @throws Error if Cursor config directory doesn't exist or can't be written
|
|
80
|
+
* Generate config for printing.
|
|
81
|
+
* Always generates HTTP transport configuration (limps v3 daemon mode).
|
|
207
82
|
*/
|
|
208
|
-
export declare function
|
|
209
|
-
/**
|
|
210
|
-
* Add limps server configuration to Claude Code config.
|
|
211
|
-
* Creates the config file if it doesn't exist, or merges with existing config.
|
|
212
|
-
* Adds all registered projects as separate MCP servers.
|
|
213
|
-
*
|
|
214
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
215
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
216
|
-
* @returns Success message listing all added servers
|
|
217
|
-
* @throws Error if Claude Code config directory doesn't exist or can't be written
|
|
218
|
-
*/
|
|
219
|
-
export declare function configAddClaudeCode(resolveConfigPathFn: () => string, projectFilter?: string[]): string;
|
|
220
|
-
/**
|
|
221
|
-
* Add limps server configuration to OpenAI Codex config.
|
|
222
|
-
* Creates the config file if it doesn't exist, or merges with existing config.
|
|
223
|
-
* Adds all registered projects as separate MCP servers.
|
|
224
|
-
*
|
|
225
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
226
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
227
|
-
* @returns Success message listing all added servers
|
|
228
|
-
* @throws Error if Codex config directory doesn't exist or can't be written
|
|
229
|
-
*/
|
|
230
|
-
export declare function configAddCodex(resolveConfigPathFn: () => string, projectFilter?: string[]): string;
|
|
231
|
-
/**
|
|
232
|
-
* Add/update limps server configuration to local workspace MCP config file.
|
|
233
|
-
* Creates the config file if it doesn't exist, or merges with existing config.
|
|
234
|
-
* Adds all registered projects as separate MCP servers.
|
|
235
|
-
*
|
|
236
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
237
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
238
|
-
* @param adapterOrPath - Optional LocalMcpAdapter instance or path to the config file
|
|
239
|
-
* @returns Success message listing all added servers
|
|
240
|
-
* @throws Error if config directory doesn't exist or can't be written
|
|
241
|
-
*/
|
|
242
|
-
export declare function configAddLocalMcp(resolveConfigPathFn: () => string, projectFilter?: string[], adapterOrPath?: LocalMcpAdapter | string): string;
|
|
243
|
-
/**
|
|
244
|
-
* Check if a local .mcp.json file exists in the current directory or specified path.
|
|
245
|
-
*
|
|
246
|
-
* @param mcpJsonPath - Optional path to .mcp.json (defaults to .mcp.json in current directory)
|
|
247
|
-
* @returns True if the file exists, false otherwise
|
|
248
|
-
*/
|
|
249
|
-
export declare function hasLocalMcpJson(mcpJsonPath?: string): boolean;
|
|
83
|
+
export declare function generateConfigForPrint(adapter: McpClientAdapter, configPath: string): string;
|
|
250
84
|
/**
|
|
251
85
|
* Generate ChatGPT MCP connector setup instructions.
|
|
252
|
-
* ChatGPT does not read local config files, so we provide manual steps instead.
|
|
253
|
-
*
|
|
254
|
-
* @param resolveConfigPathFn - Function to resolve limps config path (used for validation)
|
|
255
|
-
* @param projectFilter - Optional array of project names to filter (if not provided, adds all)
|
|
256
|
-
* @returns Instruction text for ChatGPT custom connectors
|
|
257
86
|
*/
|
|
258
|
-
export declare function generateChatGptInstructions(
|
|
87
|
+
export declare function generateChatGptInstructions(configPath: string): string;
|
|
259
88
|
/**
|
|
260
89
|
* Update options for configUpdate.
|
|
261
90
|
*/
|
|
@@ -265,12 +94,11 @@ export interface ConfigUpdateOptions {
|
|
|
265
94
|
}
|
|
266
95
|
/**
|
|
267
96
|
* Update an existing project's configuration.
|
|
268
|
-
* Allows updating plansPath and docsPaths without recreating the config.
|
|
269
97
|
*
|
|
270
|
-
* @param
|
|
98
|
+
* @param configPath - Path to the config file to update
|
|
271
99
|
* @param options - Fields to update
|
|
272
100
|
* @returns Success message
|
|
273
|
-
* @throws Error if
|
|
101
|
+
* @throws Error if config file doesn't exist
|
|
274
102
|
*/
|
|
275
|
-
export declare function configUpdate(
|
|
103
|
+
export declare function configUpdate(configPath: string, options: ConfigUpdateOptions): string;
|
|
276
104
|
//# sourceMappingURL=config-cmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-cmd.d.ts","sourceRoot":"","sources":["../../src/cli/config-cmd.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"config-cmd.d.ts","sourceRoot":"","sources":["../../src/cli/config-cmd.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AAGtB;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;KAC3B,CAAC;CACH;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,mBAAmB,EAAE,MAAM,MAAM,GAAG,UAAU,CAkB3E;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,mBAAmB,EAAE,MAAM,MAAM,GAAG,MAAM,CA8FpE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,mBAAmB,EAAE,MAAM,MAAM,GAAG,MAAM,CAIvE;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACjC;AAED,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,MAAM,GAAG,MAAM,CA+C3E;AAED,wBAAgB,mBAAmB,CACjC,mBAAmB,EAAE,MAAM,MAAM,EACjC,OAAO,EAAE,0BAA0B,GAClC,MAAM,CAiGR;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,mBAAmB,EAAE,MAAM,MAAM,GAAG,MAAM,CAEpE;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,EAAE,CAwDxF;AAED,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEtF;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,MAAM,GACjB;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAsCA;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAgB5F;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA4BtE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAoCrF"}
|