🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nimblebrain/mpak-sdk

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimblebrain/mpak-sdk - npm Package Compare versions

Comparing version
0.4.0
to
0.4.1
+12
-1
dist/index.cjs

@@ -1185,2 +1185,12 @@ "use strict";

* Substitute `${user_config.*}` placeholders in env vars.
*
* When a bundle maps the same field to multiple env vars, e.g.
* `{ "ANTHROPIC_API_KEY": "${user_config.key}",
* "CLAUDE_API_KEY": "${user_config.key}" }`
* every mapped var receives the resolved value on spawn, even if the
* env-alias tier in `gatherUserConfig` only matched one of them in the
* host process. That's intentional: once a field is resolved, all of
* the bundle's declared destinations for that field get populated —
* it's the bundle author's declaration of "these names mean this
* field to me." Tests pin this behavior down in mpak.test.ts.
*/

@@ -1191,2 +1201,3 @@ static substituteEnvVars(env, userConfigValues) {

for (const [key, value] of Object.entries(env)) {
if (typeof value !== "string") continue;
result[key] = value.replace(

@@ -1214,3 +1225,3 @@ /\$\{user_config\.([^}]+)\}/g,

if (!entries) return map;
const wholeSubstitution = /^\$\{user_config\.([A-Za-z_][A-Za-z0-9_]*)\}$/;
const wholeSubstitution = /^\$\{user_config\.([^}]+)\}$/;
for (const [envVar, template] of Object.entries(entries)) {

@@ -1217,0 +1228,0 @@ if (typeof template !== "string") continue;

@@ -541,2 +541,12 @@ import { BundleSearchParamsInput, BundleSearchResponse, BundleDetail, VersionsResponse, VersionDetail, PlatformInfo, DownloadInfo, SkillSearchParamsInput, SkillSearchResponse, SkillDetail, SkillDownloadInfo, CacheMetadata, McpbManifest, CachedBundleInfo } from '@nimblebrain/mpak-schemas';

* Substitute `${user_config.*}` placeholders in env vars.
*
* When a bundle maps the same field to multiple env vars, e.g.
* `{ "ANTHROPIC_API_KEY": "${user_config.key}",
* "CLAUDE_API_KEY": "${user_config.key}" }`
* every mapped var receives the resolved value on spawn, even if the
* env-alias tier in `gatherUserConfig` only matched one of them in the
* host process. That's intentional: once a field is resolved, all of
* the bundle's declared destinations for that field get populated —
* it's the bundle author's declaration of "these names mean this
* field to me." Tests pin this behavior down in mpak.test.ts.
*/

@@ -543,0 +553,0 @@ private static substituteEnvVars;

@@ -541,2 +541,12 @@ import { BundleSearchParamsInput, BundleSearchResponse, BundleDetail, VersionsResponse, VersionDetail, PlatformInfo, DownloadInfo, SkillSearchParamsInput, SkillSearchResponse, SkillDetail, SkillDownloadInfo, CacheMetadata, McpbManifest, CachedBundleInfo } from '@nimblebrain/mpak-schemas';

* Substitute `${user_config.*}` placeholders in env vars.
*
* When a bundle maps the same field to multiple env vars, e.g.
* `{ "ANTHROPIC_API_KEY": "${user_config.key}",
* "CLAUDE_API_KEY": "${user_config.key}" }`
* every mapped var receives the resolved value on spawn, even if the
* env-alias tier in `gatherUserConfig` only matched one of them in the
* host process. That's intentional: once a field is resolved, all of
* the bundle's declared destinations for that field get populated —
* it's the bundle author's declaration of "these names mean this
* field to me." Tests pin this behavior down in mpak.test.ts.
*/

@@ -543,0 +553,0 @@ private static substituteEnvVars;

@@ -1147,2 +1147,12 @@ // src/mpakSDK.ts

* Substitute `${user_config.*}` placeholders in env vars.
*
* When a bundle maps the same field to multiple env vars, e.g.
* `{ "ANTHROPIC_API_KEY": "${user_config.key}",
* "CLAUDE_API_KEY": "${user_config.key}" }`
* every mapped var receives the resolved value on spawn, even if the
* env-alias tier in `gatherUserConfig` only matched one of them in the
* host process. That's intentional: once a field is resolved, all of
* the bundle's declared destinations for that field get populated —
* it's the bundle author's declaration of "these names mean this
* field to me." Tests pin this behavior down in mpak.test.ts.
*/

@@ -1153,2 +1163,3 @@ static substituteEnvVars(env, userConfigValues) {

for (const [key, value] of Object.entries(env)) {
if (typeof value !== "string") continue;
result[key] = value.replace(

@@ -1176,3 +1187,3 @@ /\$\{user_config\.([^}]+)\}/g,

if (!entries) return map;
const wholeSubstitution = /^\$\{user_config\.([A-Za-z_][A-Za-z0-9_]*)\}$/;
const wholeSubstitution = /^\$\{user_config\.([^}]+)\}$/;
for (const [envVar, template] of Object.entries(entries)) {

@@ -1179,0 +1190,0 @@ if (typeof template !== "string") continue;

+1
-1
{
"name": "@nimblebrain/mpak-sdk",
"version": "0.4.0",
"version": "0.4.1",
"description": "TypeScript SDK for mpak registry - MCPB bundles and Agent Skills",

@@ -5,0 +5,0 @@ "author": "NimbleBrain Inc <engineering@mpak.dev>",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display