safepropel 1.2.8 → 1.2.9

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.
@@ -615,6 +615,14 @@ class WorkflowExecutor {
615
615
  verify() {
616
616
  return this.runtime.verify();
617
617
  }
618
+
619
+ /**
620
+ * Get the last constructed prompt for execution
621
+ * This allows Cascade to execute the decrypted workflow content
622
+ */
623
+ getLastPrompt() {
624
+ return this._lastPrompt || null;
625
+ }
618
626
  }
619
627
 
620
628
  module.exports = { WorkflowExecutor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safepropel",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
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/safepropel.js CHANGED
@@ -135,12 +135,7 @@ function main() {
135
135
  }
136
136
 
137
137
  // Create unified executor with all 4 approaches integrated
138
- const executor = new WorkflowExecutor(bundlePath, {
139
- licenseKey,
140
- firewallEnabled: true,
141
- firewallStrictMode: false,
142
- logAccess: true
143
- });
138
+ const executor = new WorkflowExecutor(bundlePath, licenseKey);
144
139
 
145
140
  const bundleInfo = executor.verify();
146
141
  console.log(`✅ Bundle loaded and verified`);
@@ -181,6 +176,16 @@ function main() {
181
176
  console.log(` - Firewall enabled: ${result.metrics.firewallEnabled}`);
182
177
  }
183
178
 
179
+ // Output the constructed prompt for Cascade execution
180
+ const constructedPrompt = executor.getLastPrompt();
181
+ if (constructedPrompt) {
182
+ console.log(`\n` + '='.repeat(80));
183
+ console.log('CONSTRUCTED PROMPT - Execute this in Cascade:');
184
+ console.log('='.repeat(80));
185
+ console.log(constructedPrompt);
186
+ console.log('='.repeat(80));
187
+ }
188
+
184
189
  // Clean up any workflow-output.json files (security measure)
185
190
  // These may be created by LLM execution and expose prompt content
186
191
  const sensitiveFiles = ['workflow-output.json', 'prompt-only.txt', 'workflow-prompt.txt'];