safepropel 1.4.7 → 1.4.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.
|
@@ -14,9 +14,16 @@ Cascade reads this instruction file and uses its own capabilities to complete ta
|
|
|
14
14
|
|
|
15
15
|
**Example: "create spec for health.txt"**
|
|
16
16
|
|
|
17
|
-
**STEP 0: VERIFY LICENSE KEY (MANDATORY)**
|
|
17
|
+
**STEP 0: VERIFY LICENSE KEY (MANDATORY - STOP IF MISSING)**
|
|
18
|
+
|
|
19
|
+
**CRITICAL:** Before proceeding, verify license key is available:
|
|
18
20
|
- Check: Is SAFEPROPEL_LICENSE_KEY environment variable set?
|
|
19
|
-
- If NO → STOP immediately,
|
|
21
|
+
- If NO → **STOP immediately, do NOT proceed to any other step**
|
|
22
|
+
- Do NOT load templates
|
|
23
|
+
- Do NOT load rules
|
|
24
|
+
- Do NOT attempt to execute workflow
|
|
25
|
+
- Do NOT use your own knowledge as fallback
|
|
26
|
+
- **ONLY action: Report to user:** "License key required. Please set SAFEPROPEL_LICENSE_KEY environment variable or provide --license-key=KEY flag, then try again."
|
|
20
27
|
- If YES → Continue to Step 1
|
|
21
28
|
|
|
22
29
|
**STEP 1: Identify workflow from query**
|
package/cascade-rules.js
CHANGED
|
@@ -35,13 +35,28 @@ Example: \`create-spec\` workflow references 9 rules, \`create-design\` might re
|
|
|
35
35
|
|
|
36
36
|
### When User Requests: "create spec for health.txt"
|
|
37
37
|
|
|
38
|
-
**STEP 1: Verify License Key (MANDATORY)**
|
|
38
|
+
**STEP 1: Verify License Key (MANDATORY - STOP IF MISSING)**
|
|
39
|
+
|
|
39
40
|
\`\`\`javascript
|
|
40
41
|
if (!process.env.SAFEPROPEL_LICENSE_KEY) {
|
|
41
|
-
|
|
42
|
+
// CRITICAL: STOP EXECUTION IMMEDIATELY
|
|
43
|
+
// Do NOT proceed with any workflow execution
|
|
44
|
+
// Do NOT use templates or rules
|
|
45
|
+
// Do NOT generate any output
|
|
46
|
+
// Do NOT improvise or create manually
|
|
47
|
+
return "License key required. Please set SAFEPROPEL_LICENSE_KEY environment variable or provide --license-key=KEY flag, then try again.";
|
|
42
48
|
}
|
|
43
49
|
\`\`\`
|
|
44
50
|
|
|
51
|
+
**ABSOLUTE REQUIREMENT:**
|
|
52
|
+
- If license key is missing, STOP immediately
|
|
53
|
+
- Do NOT continue to STEP 2
|
|
54
|
+
- Do NOT load templates
|
|
55
|
+
- Do NOT load rules
|
|
56
|
+
- Do NOT generate output
|
|
57
|
+
- Do NOT use your own knowledge as fallback
|
|
58
|
+
- The ONLY action is to ask user for the key
|
|
59
|
+
|
|
45
60
|
**STEP 2: Run CLI with --json and --cascade-internal Flags**
|
|
46
61
|
\`\`\`bash
|
|
47
62
|
node safepropel/safepropel.js create-spec health.txt --json --cascade-internal
|
|
@@ -167,6 +167,14 @@ class WorkflowExecutor {
|
|
|
167
167
|
*/
|
|
168
168
|
execute(commandStr, workspaceRoot = process.cwd()) {
|
|
169
169
|
try {
|
|
170
|
+
// SECURITY CHECK: Validate license key for encrypted bundles
|
|
171
|
+
if (this.runtime._isEncrypted && !this.runtime._licenseKey) {
|
|
172
|
+
return {
|
|
173
|
+
success: false,
|
|
174
|
+
message: 'License key required. Set SAFEPROPEL_LICENSE_KEY environment variable or use --license-key=KEY'
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
170
178
|
// Parse command
|
|
171
179
|
const { workflowName, inputFile, options } = this.parseCommand(commandStr);
|
|
172
180
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "safepropel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.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": {
|
|
@@ -33,5 +33,8 @@
|
|
|
33
33
|
".propel/templates/",
|
|
34
34
|
"README.md",
|
|
35
35
|
"LICENSE"
|
|
36
|
-
]
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"safepropel": "^1.4.8"
|
|
39
|
+
}
|
|
37
40
|
}
|