safepropel 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/safepropel.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safepropel",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "SafePropel Framework - Unified Protection System for AI Workflow Execution with 4-layer security (Compilation, Encryption, Runtime Engine, Firewall)",
5
5
  "main": "engine/workflow-executor.js",
6
6
  "bin": "./safepropel.js",
package/safepropel.js CHANGED
@@ -49,7 +49,7 @@ Unified Protection (All 4 Approaches Linked):
49
49
 
50
50
  Environment Variables:
51
51
  SAFEPROPEL_LICENSE_KEY License key for encrypted bundles
52
- SAFEPROPEL_BUNDLE_PATH Custom bundle path (default: ./engine/prompt_bundle.enc)
52
+ SAFEPROPEL_BUNDLE_PATH Custom bundle path (default: uses bundled engine/prompt_bundle.enc)
53
53
  `);
54
54
  }
55
55
 
@@ -65,7 +65,9 @@ function main() {
65
65
  let workflowName = args[0];
66
66
  let inputFile = null;
67
67
  let licenseKey = process.env.SAFEPROPEL_LICENSE_KEY || null;
68
- let bundlePath = process.env.SAFEPROPEL_BUNDLE_PATH || './engine/prompt_bundle.enc';
68
+ // Determine bundle path - use environment variable or resolve from script location
69
+ const defaultBundlePath = path.join(__dirname, 'engine', 'prompt_bundle.enc');
70
+ let bundlePath = process.env.SAFEPROPEL_BUNDLE_PATH || defaultBundlePath;
69
71
 
70
72
  // Parse remaining arguments
71
73
  const remainingArgs = [];