@github/copilot 0.0.340-12 → 0.0.340-13
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/index.js +45 -45
- package/package.json +2 -2
- package/sdk/index.d.ts +20 -1
- package/sdk/index.js +4 -4
- package/sdk/index.js.map +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/copilot",
|
|
3
3
|
"description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
|
|
4
|
-
"version": "0.0.340-
|
|
4
|
+
"version": "0.0.340-13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"sdk/**/*"
|
|
34
34
|
],
|
|
35
35
|
"buildMetadata": {
|
|
36
|
-
"gitCommit": "
|
|
36
|
+
"gitCommit": "acb0705"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"node-pty": "npm:@devm33/node-pty@^1.0.8",
|
package/sdk/index.d.ts
CHANGED
|
@@ -187,7 +187,26 @@ declare interface MCPLocalServerConfig extends MCPServerConfigBase {
|
|
|
187
187
|
command: string;
|
|
188
188
|
args: string[];
|
|
189
189
|
/**
|
|
190
|
-
* An object of the environment variables to pass to the server.
|
|
190
|
+
* An object of the environment variables to pass to the server.
|
|
191
|
+
*
|
|
192
|
+
* The interpretation of this object depends on the environment variable mode:
|
|
193
|
+
* - In 'indirect' mode (default): Hybrid approach for backward compatibility
|
|
194
|
+
* - If value contains $ or ${...}, tries variable substitution first
|
|
195
|
+
* - If substitution succeeds (changes the value), uses the resolved value
|
|
196
|
+
* - Otherwise, treats value as the name of an env var to read from current process
|
|
197
|
+
* Example: { "FOO": "BAR" } sets FOO=process.env.BAR (legacy)
|
|
198
|
+
* Example: { "FOO": "$BAR" } sets FOO=process.env.BAR (variable expansion)
|
|
199
|
+
* Example: { "FOO": "${BAR:-default}" } sets FOO=process.env.BAR or "default"
|
|
200
|
+
* - In 'direct' mode: Key is the env var name to set in the MCP server,
|
|
201
|
+
* Value is the literal value to set. Supports variable expansion:
|
|
202
|
+
* - $VAR or ${VAR}: expands to process.env.VAR
|
|
203
|
+
* - ${VAR:-default}: expands to process.env.VAR, or "default" if VAR is undefined
|
|
204
|
+
* Example: { "FOO": "bar" } sets FOO=bar
|
|
205
|
+
* Example: { "FOO": "${BAR}" } or { "FOO": "$BAR" } sets FOO=process.env.BAR
|
|
206
|
+
* Example: { "FOO": "${BAR:-fallback}" } sets FOO=process.env.BAR or "fallback"
|
|
207
|
+
* Example: { "URL": "https://${HOST}:${PORT}" } expands both variables
|
|
208
|
+
*
|
|
209
|
+
* Empty means no env vars passed.
|
|
191
210
|
*/
|
|
192
211
|
env?: Record<string, string>;
|
|
193
212
|
}
|