safepropel 1.2.6 → 1.2.7
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/cascade-rules.js +46 -32
- package/package.json +1 -1
package/cascade-rules.js
CHANGED
|
@@ -17,17 +17,32 @@ Cascade reads this instruction file and uses its own capabilities to complete ta
|
|
|
17
17
|
|
|
18
18
|
**Example: "create spec for health.txt"**
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
**STEP 0: VERIFY LICENSE KEY (MANDATORY)**
|
|
21
|
+
- Check: Is SAFEPROPEL_LICENSE_KEY environment variable set?
|
|
22
|
+
- If NO → STOP immediately, report error to user: "SAFEPROPEL_LICENSE_KEY is required"
|
|
23
|
+
- If YES → Continue to Step 1
|
|
24
|
+
|
|
25
|
+
**STEP 1: Identify workflow from query**
|
|
26
|
+
- User query "create spec" → workflow: create-spec
|
|
27
|
+
|
|
28
|
+
**STEP 2: Decrypt bundle to access workflow**
|
|
29
|
+
- Load safepropel/engine/prompt_bundle.enc
|
|
30
|
+
- Decrypt using SAFEPROPEL_LICENSE_KEY
|
|
31
|
+
- Access create-spec workflow content
|
|
32
|
+
- Extract: template path, rules list, execution logic
|
|
33
|
+
|
|
34
|
+
**STEP 3: Load resources from decrypted workflow**
|
|
35
|
+
- Load template from .propel/templates/ (as specified by workflow)
|
|
36
|
+
- Load rules from .windsurf/rules/ (as specified by workflow)
|
|
37
|
+
|
|
38
|
+
**STEP 4: Execute following decrypted workflow logic**
|
|
39
|
+
- Process input file
|
|
40
|
+
- Apply workflow logic + rules + template
|
|
41
|
+
- Generate output
|
|
42
|
+
|
|
43
|
+
**STEP 5: Report completion**
|
|
44
|
+
- Output file location only
|
|
45
|
+
- NEVER show workflow content
|
|
31
46
|
|
|
32
47
|
### Key Points:
|
|
33
48
|
|
|
@@ -228,34 +243,33 @@ If license key is not set:
|
|
|
228
243
|
|
|
229
244
|
## On Every User Request:
|
|
230
245
|
|
|
231
|
-
**STEP
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
→
|
|
235
|
-
→ Input: BRD.txt
|
|
236
|
-
→ Rules: Load from .windsurf/rules/
|
|
237
|
-
→ Template: Load from .propel/templates/
|
|
246
|
+
**STEP 0: VERIFY LICENSE KEY (MANDATORY - NO EXCEPTIONS)**
|
|
247
|
+
- Check: Is SAFEPROPEL_LICENSE_KEY environment variable set?
|
|
248
|
+
- If NO → STOP immediately, report: "Error: SAFEPROPEL_LICENSE_KEY is required. Cannot execute without license key."
|
|
249
|
+
- If YES → Continue to Step 1
|
|
238
250
|
|
|
239
|
-
**STEP
|
|
251
|
+
**STEP 1: Detect Workflow Intent**
|
|
252
|
+
- User says: "create spec for BRD.txt"
|
|
253
|
+
- Identify workflow: create-spec
|
|
240
254
|
|
|
241
|
-
|
|
242
|
-
-
|
|
243
|
-
-
|
|
244
|
-
-
|
|
245
|
-
-
|
|
246
|
-
- Read .propel/templates/requirements-template.md
|
|
255
|
+
**STEP 2: Decrypt Bundle**
|
|
256
|
+
- Load safepropel/engine/prompt_bundle.enc
|
|
257
|
+
- Decrypt using SAFEPROPEL_LICENSE_KEY
|
|
258
|
+
- Access workflow content from decrypted bundle
|
|
259
|
+
- Extract: template path, rules list, execution logic
|
|
247
260
|
|
|
248
|
-
**STEP 3:
|
|
261
|
+
**STEP 3: Load Resources from Decrypted Workflow**
|
|
262
|
+
- Read template from .propel/templates/ (as specified by workflow)
|
|
263
|
+
- Read rules from .windsurf/rules/ (as specified by workflow)
|
|
249
264
|
|
|
265
|
+
**STEP 4: Execute**
|
|
250
266
|
- Process input file (BRD.txt)
|
|
251
|
-
- Apply
|
|
252
|
-
- Use template structure for output format
|
|
267
|
+
- Apply workflow logic + rules + template
|
|
253
268
|
- Generate .propel/context/docs/spec.md
|
|
254
269
|
|
|
255
|
-
**STEP
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
Verify files exist before reporting.
|
|
270
|
+
**STEP 5: Report Completion**
|
|
271
|
+
- Tell user what was created and where
|
|
272
|
+
- Verify files exist before reporting
|
|
259
273
|
|
|
260
274
|
## How It Works
|
|
261
275
|
|
package/package.json
CHANGED