safepropel 1.4.3 → 1.4.5

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/README.md CHANGED
@@ -93,26 +93,28 @@ After installation, set your license key as an environment variable:
93
93
 
94
94
  ### Windows PowerShell
95
95
  ```powershell
96
- # Temporary (current session only)
97
- $env:SAFEPROPEL_LICENSE_KEY = "your-license-key-here"
96
+ # Session-scoped (RECOMMENDED - like npm login)
97
+ # Set once, use for entire terminal session, auto-clears on close
98
+ $env:SAFEPROPEL_LICENSE_KEY = "Pr0p3l-S3cur3-K3y-2026!@#"
98
99
 
99
- # Permanent (recommended - restart PowerShell after running this)
100
- [System.Environment]::SetEnvironmentVariable('SAFEPROPEL_LICENSE_KEY', 'your-license-key-here', 'User')
100
+ # Permanent (optional - survives terminal restart)
101
+ [System.Environment]::SetEnvironmentVariable('SAFEPROPEL_LICENSE_KEY', 'Pr0p3l-S3cur3-K3y-2026!@#', 'User')
101
102
  ```
102
- **Note:** After setting permanent variable, restart PowerShell for it to take effect.
103
+ **Note:** Session-scoped is recommended for security. Key is automatically cleared when you close the terminal.
103
104
 
104
105
  ### Windows CMD
105
106
  ```cmd
106
- set SAFEPROPEL_LICENSE_KEY=your-license-key-here
107
+ # Session-scoped only
108
+ set SAFEPROPEL_LICENSE_KEY=Pr0p3l-S3cur3-K3y-2026!@#
107
109
  ```
108
110
 
109
111
  ### Linux/Mac
110
112
  ```bash
111
- # Temporary (current session only)
112
- export SAFEPROPEL_LICENSE_KEY="your-license-key-here"
113
+ # Session-scoped (RECOMMENDED)
114
+ export SAFEPROPEL_LICENSE_KEY="Pr0p3l-S3cur3-K3y-2026!@#"
113
115
 
114
- # Permanent (add to ~/.bashrc or ~/.zshrc)
115
- echo 'export SAFEPROPEL_LICENSE_KEY="your-license-key-here"' >> ~/.bashrc
116
+ # Permanent (optional - add to ~/.bashrc or ~/.zshrc)
117
+ echo 'export SAFEPROPEL_LICENSE_KEY="Pr0p3l-S3cur3-K3y-2026!@#"' >> ~/.bashrc
116
118
  source ~/.bashrc
117
119
  ```
118
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safepropel",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "SafePropel Framework - Hybrid Security Model: Encrypted Workflows + Transparent Rules & Templates with Dynamic Loading",
5
5
  "main": "engine/workflow-executor.js",
6
6
  "scripts": {
package/postinstall.js CHANGED
@@ -177,19 +177,30 @@ console.log(`
177
177
  └── node_modules/ (hidden in IDE)
178
178
  └── safepropel/
179
179
 
180
- 📋 REQUIRED SETUP - Set License Key:
180
+ 📋 REQUIRED SETUP - Set License Key (Once Per Session):
181
181
 
182
- Windows PowerShell:
183
- $env:SAFEPROPEL_LICENSE_KEY = "your-license-key-here"
182
+ Session-Scoped (Recommended - like npm login):
183
+ Set once, use for entire terminal session:
184
184
 
185
- Windows CMD:
186
- set SAFEPROPEL_LICENSE_KEY=your-license-key-here
185
+ Windows PowerShell:
186
+ $env:SAFEPROPEL_LICENSE_KEY = "Pr0p3l-S3cur3-K3y-2026!@#"
187
+
188
+ Windows CMD:
189
+ set SAFEPROPEL_LICENSE_KEY=Pr0p3l-S3cur3-K3y-2026!@#
190
+
191
+ Linux/Mac:
192
+ export SAFEPROPEL_LICENSE_KEY="Pr0p3l-S3cur3-K3y-2026!@#"
193
+
194
+ ✅ Key persists for all commands in that session
195
+ ✅ Automatically cleared when terminal closes
196
+ ✅ No global exposure to other users/sessions
187
197
 
188
- Linux/Mac:
189
- export SAFEPROPEL_LICENSE_KEY="your-license-key-here"
190
-
191
- To make it permanent (Windows - restart PowerShell after):
192
- [System.Environment]::SetEnvironmentVariable('SAFEPROPEL_LICENSE_KEY', 'your-key', 'User')
198
+ 🔒 Permanent Setup (Optional - survives terminal restart):
199
+ Windows:
200
+ [System.Environment]::SetEnvironmentVariable('SAFEPROPEL_LICENSE_KEY', 'Pr0p3l-S3cur3-K3y-2026!@#', 'User')
201
+
202
+ Linux/Mac (add to ~/.bashrc or ~/.zshrc):
203
+ export SAFEPROPEL_LICENSE_KEY="Pr0p3l-S3cur3-K3y-2026!@#"
193
204
 
194
205
  🚀 Usage in Cascade IDE:
195
206
  Open this project in Cascade and use workflows:
package/safepropel.js CHANGED
@@ -234,8 +234,9 @@ function main() {
234
234
  // Get the constructed prompt for Cascade execution
235
235
  const constructedPrompt = executor.getLastPrompt();
236
236
 
237
- // Security validation: Only expose prompt to Cascade IDE
238
- const isAuthorizedCascade = cascadeInternal && isRunningFromCascade();
237
+ // Security validation: --cascade-internal flag is sufficient
238
+ // Only Cascade IDE should use this internal flag
239
+ const isAuthorizedCascade = cascadeInternal;
239
240
 
240
241
  // JSON output mode - output structured data for Cascade to parse
241
242
  if (jsonOutput) {
@@ -263,7 +264,7 @@ function main() {
263
264
  // Unauthorized access attempt - do not expose workflow
264
265
  jsonResult._security = {
265
266
  prompt_access: 'denied',
266
- reason: 'Requires --cascade-internal flag and must be called from Cascade IDE',
267
+ reason: 'Requires --cascade-internal flag (internal use only)',
267
268
  message: 'Workflow content is confidential and protected'
268
269
  };
269
270
  }
@@ -300,7 +301,7 @@ function main() {
300
301
  console.log('='.repeat(80));
301
302
  } else if (constructedPrompt) {
302
303
  console.log(`\n🔒 Workflow content is confidential and protected`);
303
- console.log(` Execution requires --cascade-internal flag and authorized IDE`);
304
+ console.log(` Use --cascade-internal flag for Cascade IDE execution`);
304
305
  }
305
306
 
306
307
  // Clean up any workflow-output.json files (security measure)