@pulsemcp/air-secrets-env 0.0.21 → 0.0.23
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/env-transform.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import type { McpConfig, TransformContext } from "@pulsemcp/air-core";
|
|
|
2
2
|
/**
|
|
3
3
|
* Transform that resolves ${VAR} and ${VAR:-default} patterns from process.env.
|
|
4
4
|
*
|
|
5
|
-
* Recursively walks all string values in
|
|
6
|
-
* ${VAR} patterns with the corresponding environment variable value.
|
|
5
|
+
* Recursively walks all string values in MCP server configs and hook configs,
|
|
6
|
+
* replacing ${VAR} patterns with the corresponding environment variable value.
|
|
7
7
|
* Supports bash-style defaults: ${VAR:-fallback} uses fallback when VAR is unset.
|
|
8
8
|
* For plain ${VAR}, unresolvable patterns are left as-is.
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-transform.d.ts","sourceRoot":"","sources":["../src/env-transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"env-transform.d.ts","sourceRoot":"","sources":["../src/env-transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,SAAS,CAAC,CAMpB"}
|
package/dist/env-transform.js
CHANGED
|
@@ -2,8 +2,8 @@ const ENV_VAR_PATTERN = /\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-(.*?))?\}/g;
|
|
|
2
2
|
/**
|
|
3
3
|
* Transform that resolves ${VAR} and ${VAR:-default} patterns from process.env.
|
|
4
4
|
*
|
|
5
|
-
* Recursively walks all string values in
|
|
6
|
-
* ${VAR} patterns with the corresponding environment variable value.
|
|
5
|
+
* Recursively walks all string values in MCP server configs and hook configs,
|
|
6
|
+
* replacing ${VAR} patterns with the corresponding environment variable value.
|
|
7
7
|
* Supports bash-style defaults: ${VAR:-fallback} uses fallback when VAR is unset.
|
|
8
8
|
* For plain ${VAR}, unresolvable patterns are left as-is.
|
|
9
9
|
*/
|
|
@@ -11,6 +11,7 @@ export async function envTransform(config, _context) {
|
|
|
11
11
|
return {
|
|
12
12
|
...config,
|
|
13
13
|
mcpServers: resolveObject(config.mcpServers),
|
|
14
|
+
...(config.hooks && { hooks: resolveObject(config.hooks) }),
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
function resolveObject(obj) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-transform.js","sourceRoot":"","sources":["../src/env-transform.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,6CAA6C,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,MAAiB,EACjB,QAA0B;IAE1B,OAAO;QACL,GAAG,MAAM;QACT,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"env-transform.js","sourceRoot":"","sources":["../src/env-transform.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,6CAA6C,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,MAAiB,EACjB,QAA0B;IAE1B,OAAO;QACL,GAAG,MAAM;QACT,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;QAC5C,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC,MA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AAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulsemcp/air-secrets-env",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lint": "tsc --noEmit"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@pulsemcp/air-core": "0.0.
|
|
32
|
+
"@pulsemcp/air-core": "0.0.23"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.10.0",
|