@rolino/cli 0.6.0 → 0.7.1
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/CHANGELOG.md +29 -0
- package/README.md +43 -21
- package/dist/bin.cjs +213 -47
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-3WBZCTM5.js → chunk-KSPZKKBG.js} +198 -31
- package/dist/chunk-KSPZKKBG.js.map +1 -0
- package/dist/index.cjs +213 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -10
- package/dist/index.d.ts +21 -10
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-3WBZCTM5.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -36,6 +36,20 @@ type ExitCode = (typeof EXIT_CODES)[keyof typeof EXIT_CODES];
|
|
|
36
36
|
|
|
37
37
|
type McpClientName = "codex" | "claude-code";
|
|
38
38
|
type McpSetupScope = "user" | "project";
|
|
39
|
+
type McpSetupTransport = "auto" | "http" | "stdio";
|
|
40
|
+
type McpResolvedTransport = Exclude<McpSetupTransport, "auto">;
|
|
41
|
+
type McpServerConfiguration = {
|
|
42
|
+
transport: "http";
|
|
43
|
+
url: string;
|
|
44
|
+
auth: "oauth";
|
|
45
|
+
} | {
|
|
46
|
+
transport: "stdio";
|
|
47
|
+
command: string;
|
|
48
|
+
args: string[];
|
|
49
|
+
env: {
|
|
50
|
+
ROLINO_URL: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
39
53
|
type McpSetupResult = {
|
|
40
54
|
client: McpClientName;
|
|
41
55
|
scope: McpSetupScope;
|
|
@@ -43,13 +57,8 @@ type McpSetupResult = {
|
|
|
43
57
|
backupPath: string | null;
|
|
44
58
|
changed: boolean;
|
|
45
59
|
dryRun: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
args: string[];
|
|
49
|
-
env: {
|
|
50
|
-
ROLINO_URL: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
60
|
+
transport: McpResolvedTransport;
|
|
61
|
+
server: McpServerConfiguration;
|
|
53
62
|
};
|
|
54
63
|
type McpSetupOptions = {
|
|
55
64
|
client: McpClientName;
|
|
@@ -59,12 +68,14 @@ type McpSetupOptions = {
|
|
|
59
68
|
env: Record<string, string | undefined>;
|
|
60
69
|
nodePath: string;
|
|
61
70
|
cliEntryPath: string;
|
|
71
|
+
transport?: McpSetupTransport;
|
|
62
72
|
serverPath?: string;
|
|
63
73
|
dryRun?: boolean;
|
|
64
74
|
force?: boolean;
|
|
75
|
+
fetch?: typeof globalThis.fetch;
|
|
65
76
|
};
|
|
66
|
-
declare function updateCodexConfig(source: string, server:
|
|
67
|
-
declare function updateClaudeProjectConfig(source: string, server:
|
|
77
|
+
declare function updateCodexConfig(source: string, server: McpServerConfiguration): string;
|
|
78
|
+
declare function updateClaudeProjectConfig(source: string, server: McpServerConfiguration): string;
|
|
68
79
|
declare function setupMcp(options: McpSetupOptions): Promise<McpSetupResult>;
|
|
69
80
|
|
|
70
|
-
export { EXIT_CODES, type ExitCode, type McpClientName, type McpSetupOptions, type McpSetupResult, type McpSetupScope, type OutputFormat, ROLINO_CLI_VERSION, runCli, setupMcp, updateClaudeProjectConfig, updateCodexConfig };
|
|
81
|
+
export { EXIT_CODES, type ExitCode, type McpClientName, type McpResolvedTransport, type McpServerConfiguration, type McpSetupOptions, type McpSetupResult, type McpSetupScope, type McpSetupTransport, type OutputFormat, ROLINO_CLI_VERSION, runCli, setupMcp, updateClaudeProjectConfig, updateCodexConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,20 @@ type ExitCode = (typeof EXIT_CODES)[keyof typeof EXIT_CODES];
|
|
|
36
36
|
|
|
37
37
|
type McpClientName = "codex" | "claude-code";
|
|
38
38
|
type McpSetupScope = "user" | "project";
|
|
39
|
+
type McpSetupTransport = "auto" | "http" | "stdio";
|
|
40
|
+
type McpResolvedTransport = Exclude<McpSetupTransport, "auto">;
|
|
41
|
+
type McpServerConfiguration = {
|
|
42
|
+
transport: "http";
|
|
43
|
+
url: string;
|
|
44
|
+
auth: "oauth";
|
|
45
|
+
} | {
|
|
46
|
+
transport: "stdio";
|
|
47
|
+
command: string;
|
|
48
|
+
args: string[];
|
|
49
|
+
env: {
|
|
50
|
+
ROLINO_URL: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
39
53
|
type McpSetupResult = {
|
|
40
54
|
client: McpClientName;
|
|
41
55
|
scope: McpSetupScope;
|
|
@@ -43,13 +57,8 @@ type McpSetupResult = {
|
|
|
43
57
|
backupPath: string | null;
|
|
44
58
|
changed: boolean;
|
|
45
59
|
dryRun: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
args: string[];
|
|
49
|
-
env: {
|
|
50
|
-
ROLINO_URL: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
60
|
+
transport: McpResolvedTransport;
|
|
61
|
+
server: McpServerConfiguration;
|
|
53
62
|
};
|
|
54
63
|
type McpSetupOptions = {
|
|
55
64
|
client: McpClientName;
|
|
@@ -59,12 +68,14 @@ type McpSetupOptions = {
|
|
|
59
68
|
env: Record<string, string | undefined>;
|
|
60
69
|
nodePath: string;
|
|
61
70
|
cliEntryPath: string;
|
|
71
|
+
transport?: McpSetupTransport;
|
|
62
72
|
serverPath?: string;
|
|
63
73
|
dryRun?: boolean;
|
|
64
74
|
force?: boolean;
|
|
75
|
+
fetch?: typeof globalThis.fetch;
|
|
65
76
|
};
|
|
66
|
-
declare function updateCodexConfig(source: string, server:
|
|
67
|
-
declare function updateClaudeProjectConfig(source: string, server:
|
|
77
|
+
declare function updateCodexConfig(source: string, server: McpServerConfiguration): string;
|
|
78
|
+
declare function updateClaudeProjectConfig(source: string, server: McpServerConfiguration): string;
|
|
68
79
|
declare function setupMcp(options: McpSetupOptions): Promise<McpSetupResult>;
|
|
69
80
|
|
|
70
|
-
export { EXIT_CODES, type ExitCode, type McpClientName, type McpSetupOptions, type McpSetupResult, type McpSetupScope, type OutputFormat, ROLINO_CLI_VERSION, runCli, setupMcp, updateClaudeProjectConfig, updateCodexConfig };
|
|
81
|
+
export { EXIT_CODES, type ExitCode, type McpClientName, type McpResolvedTransport, type McpServerConfiguration, type McpSetupOptions, type McpSetupResult, type McpSetupScope, type McpSetupTransport, type OutputFormat, ROLINO_CLI_VERSION, runCli, setupMcp, updateClaudeProjectConfig, updateCodexConfig };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolino/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Agent-friendly command-line interface for Rolino",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"dev": "tsx src/bin.ts"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@rolino/contracts": "0.
|
|
61
|
-
"@rolino/local-auth": "0.
|
|
62
|
-
"@rolino/sdk": "0.
|
|
60
|
+
"@rolino/contracts": "0.7.1",
|
|
61
|
+
"@rolino/local-auth": "0.7.1",
|
|
62
|
+
"@rolino/sdk": "0.7.1",
|
|
63
63
|
"commander": "^15.0.0",
|
|
64
64
|
"open": "^11.0.0"
|
|
65
65
|
},
|