guardian-framework 0.1.151 → 0.1.152

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/cli.js CHANGED
@@ -3206,7 +3206,7 @@ __export(exports_package, {
3206
3206
  bin: () => bin,
3207
3207
  author: () => author
3208
3208
  });
3209
- var name = "guardian-framework", version = "0.1.151", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
3209
+ var name = "guardian-framework", version = "0.1.152", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
3210
3210
  var init_package = __esm(() => {
3211
3211
  exports = {
3212
3212
  ".": {
@@ -3400,10 +3400,13 @@ function renderTemplate(content, context) {
3400
3400
  result = result.replaceAll(`[${alias}]`, value);
3401
3401
  }
3402
3402
  }
3403
- result = result.replace(/\$([A-Z_][A-Z0-9_]*)/g, (_match, varName) => {
3404
- const envVal = process.env[varName];
3405
- return envVal !== undefined ? envVal : `$${varName}`;
3406
- });
3403
+ for (const key of Object.keys(context)) {
3404
+ const value = context[key];
3405
+ if (value === undefined)
3406
+ continue;
3407
+ const envStyle = key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
3408
+ result = result.replaceAll(`$${envStyle}`, String(value));
3409
+ }
3407
3410
  return result;
3408
3411
  }
3409
3412
  function getDefaultContext(language, projectName, repoTool, buildTool, groupId) {
package/dist/exports.js CHANGED
@@ -1991,7 +1991,7 @@ __export(exports_package, {
1991
1991
  bin: () => bin,
1992
1992
  author: () => author
1993
1993
  });
1994
- var name = "guardian-framework", version = "0.1.151", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
1994
+ var name = "guardian-framework", version = "0.1.152", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
1995
1995
  var init_package = __esm(() => {
1996
1996
  exports = {
1997
1997
  ".": {
@@ -2185,10 +2185,13 @@ function renderTemplate(content, context) {
2185
2185
  result = result.replaceAll(`[${alias}]`, value);
2186
2186
  }
2187
2187
  }
2188
- result = result.replace(/\$([A-Z_][A-Z0-9_]*)/g, (_match, varName) => {
2189
- const envVal = process.env[varName];
2190
- return envVal !== undefined ? envVal : `$${varName}`;
2191
- });
2188
+ for (const key of Object.keys(context)) {
2189
+ const value = context[key];
2190
+ if (value === undefined)
2191
+ continue;
2192
+ const envStyle = key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
2193
+ result = result.replaceAll(`$${envStyle}`, String(value));
2194
+ }
2192
2195
  return result;
2193
2196
  }
2194
2197
  function getDefaultContext(language, projectName, repoTool, buildTool, groupId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guardian-framework",
3
- "version": "0.1.151",
3
+ "version": "0.1.152",
4
4
  "description": "Token-optimized agentic framework scaffolder with pi-first architecture",
5
5
  "type": "module",
6
6
  "main": "dist/exports.js",
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-11-13T16:31:02Z",
2
+ "timestamp": "2026-11-13T16:42:50Z",
3
3
  "mode": "all",
4
4
  "stages_run": [],
5
5
  "summary": {
@@ -154,8 +154,8 @@ if [ -z "$SELECTED" ]; then
154
154
  fi
155
155
 
156
156
  MODULES=()
157
- while IFS= read -r _line; do
158
- [ -n "$_line" ] && MODULES+=("$_line")
157
+ while IFS= read -r modline; do
158
+ [ -n "$modline" ] && MODULES+=("$modline")
159
159
  done <<<"$SELECTED"
160
160
 
161
161
  echo "============================================"