aab-prompts 1.1.4__tar.gz → 1.1.6__tar.gz
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.
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/PKG-INFO +1 -1
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/aab_prompts.egg-info/PKG-INFO +1 -1
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/menu_navigations.py +5 -3
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/objects_fields.py +2 -2
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/pages.py +1 -1
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/planner.py +9 -4
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/solutions_applications.py +2 -2
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/views.py +3 -2
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/pyproject.toml +1 -1
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/aab_prompts.egg-info/SOURCES.txt +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/aab_prompts.egg-info/dependency_links.txt +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/aab_prompts.egg-info/top_level.txt +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/aab_service.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/__init__.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/breadcrumbs.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/constants.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/expressions.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/page_planner.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/router.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/view_filter_planner.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/view_links_planner.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/prompts/view_planner.py +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/setup.cfg +0 -0
- {aab_prompts-1.1.4 → aab_prompts-1.1.6}/tests/test_prompts.py +0 -0
|
@@ -33,13 +33,14 @@ SnapApp has 4 menu types (locations):
|
|
|
33
33
|
Within an application, there can only be one menu for each type.
|
|
34
34
|
|
|
35
35
|
When to create a menu:
|
|
36
|
-
- Always add a Menu if it is defined in the plan
|
|
36
|
+
- Always add a Menu if it is defined in the plan"
|
|
37
37
|
- When user intent indicates a new navigation area is needed.
|
|
38
38
|
- When an app section needs a dedicated placement (e.g., a new sidebar layout).
|
|
39
39
|
- When organizing large features requires isolated navigation groups.
|
|
40
40
|
|
|
41
41
|
When NOT to create a menu:
|
|
42
|
-
- If
|
|
42
|
+
- If the same menu already exists
|
|
43
|
+
- If a menu for the same location and the same application already exists.
|
|
43
44
|
- For workflow steps or temporary flows (those belong inside views).
|
|
44
45
|
- For pages that do not need a dedicated navigation region.
|
|
45
46
|
|
|
@@ -93,7 +94,7 @@ Footer menus only require the common metadata attributes.
|
|
|
93
94
|
- **Translations Switcher (`efdef1fa-fc39-4210-a800-04de50a4e3e5`)**: The Translations Switcher lets users switch between different languages within the application. This is typically in the default top menu, but when a custom top menu is created, it will be added to the custom top menu.
|
|
94
95
|
|
|
95
96
|
When navigations are used:
|
|
96
|
-
- Always add a navigation if it is defined in the plan
|
|
97
|
+
- Always add a navigation if it is defined in the plan"
|
|
97
98
|
- When adding links to objects:
|
|
98
99
|
e.g., “All Orders”, “Create Task”, “My Clients”.
|
|
99
100
|
- When linking pages or dashboards.
|
|
@@ -102,6 +103,7 @@ When navigations are used:
|
|
|
102
103
|
- CRM → Leads, Deals, Contacts
|
|
103
104
|
|
|
104
105
|
When NOT to use navigations:
|
|
106
|
+
- if the same navigation already exists.
|
|
105
107
|
- For form steps or workflow states.
|
|
106
108
|
- For view configuration logic (handled by the View Agent).
|
|
107
109
|
- For system-level features hidden from user navigation.
|
|
@@ -163,7 +163,7 @@ that you CAN'T use, which are listed below:
|
|
|
163
163
|
|
|
164
164
|
---
|
|
165
165
|
# Required Output
|
|
166
|
-
You must have an object for every object defined in the plan
|
|
166
|
+
You must have an object for every object defined in the plan
|
|
167
167
|
You must always have the Objects in this specific schema. Each Object must follow this exact structure.
|
|
168
168
|
For each key, read and follow its meaning and usage rules:
|
|
169
169
|
|
|
@@ -209,7 +209,7 @@ Key points
|
|
|
209
209
|
# When to Create a Field
|
|
210
210
|
Create a Field when:
|
|
211
211
|
- The user mentions a real property that must be saved with the object
|
|
212
|
-
- The field is defined in the plan
|
|
212
|
+
- The field is defined in the plan
|
|
213
213
|
|
|
214
214
|
Do NOT create an Field when:
|
|
215
215
|
- Something is already another field on this object
|
|
@@ -42,7 +42,7 @@ You are a specialized HTML Page Planner and Creator Agent for **Snapapp**, a Low
|
|
|
42
42
|
## ⚡ Dynamic Data & Object Association
|
|
43
43
|
|
|
44
44
|
### When to Create a page
|
|
45
|
-
Always add a Page if it is defined in the plan
|
|
45
|
+
Always add a Page if it is defined in the plan
|
|
46
46
|
Create a page for home pages
|
|
47
47
|
Create a page when you need to view more than one type of object at the same time
|
|
48
48
|
Create a page when you want to summarize data from records in the view
|
|
@@ -486,7 +486,9 @@ The following are key details to consider when creating a field. When making you
|
|
|
486
486
|
- Must incorporate conditional fields, validation logic, and process stage requirements, which are all configured at the field level
|
|
487
487
|
- Can be multi-record or single-record
|
|
488
488
|
- Business logic for filtering multi-record views
|
|
489
|
-
-
|
|
489
|
+
- When designing a detailed plan for views, you should remember the different view types and their properties.
|
|
490
|
+
{VIEW_TYPE_DETAILS_TEMPLATE}
|
|
491
|
+
|
|
490
492
|
|
|
491
493
|
### **8. Pages**
|
|
492
494
|
- Can be associated with an object
|
|
@@ -552,8 +554,11 @@ NOTE: Your behavior must follow the examples provided below.
|
|
|
552
554
|
Your only output should be the plan as plain text following the examples.
|
|
553
555
|
|
|
554
556
|
---
|
|
555
|
-
NEXT STEPS:
|
|
556
|
-
- Call the `generate_comprehensive_plan` tool to generate a comprehensive plan.
|
|
557
|
-
- Call the `save_generated_plan` tool to save the generated plan.
|
|
558
557
|
|
|
558
|
+
<IMPORTANT STEPS [ MANDATORY AND NON-NEGOTIABLE ]>
|
|
559
|
+
Call the `generate_comprehensive_plan` tool to generate a comprehensive plan. ALWAYS CALL THIS TOOL FIRST.
|
|
560
|
+
Make sure everything that you plan, each component, is very detailed, with all the proper details and context.
|
|
561
|
+
</IMPORTANT STEPS [ MANDATORY AND NON-NEGOTIABLE ]>
|
|
562
|
+
|
|
563
|
+
You will always use these tools in the order specified above. If you miss any of these steps, you will be penalized.
|
|
559
564
|
"""
|
|
@@ -36,7 +36,7 @@ You can create new solutions as per the users' requirements.
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
# When to Create a Solution
|
|
39
|
-
Always add a Solution if it is defined in the plan
|
|
39
|
+
Always add a Solution if it is defined in the plan
|
|
40
40
|
Create a Solution when:
|
|
41
41
|
- The user explicitly asks for one.
|
|
42
42
|
- The use-case clearly belongs to a new vertical/industry/domain.
|
|
@@ -79,7 +79,7 @@ Given a solution, there can be multiple applications within it.
|
|
|
79
79
|
---
|
|
80
80
|
|
|
81
81
|
# When to Create an Application
|
|
82
|
-
Always add an Application if it is defined in the plan
|
|
82
|
+
Always add an Application if it is defined in the plan
|
|
83
83
|
Create an Application when:
|
|
84
84
|
- The user explicitly asks for one.
|
|
85
85
|
- The user’s use-case requires a separate product experience.
|
|
@@ -156,13 +156,14 @@ Views do not define fields.
|
|
|
156
156
|
They only define how fields appear.
|
|
157
157
|
|
|
158
158
|
# When to Create a View
|
|
159
|
-
Always add a View if it is defined in the plan
|
|
159
|
+
Always add a View if it is defined in the plan
|
|
160
160
|
Create a View when:
|
|
161
161
|
- The user explicitly asks for one.
|
|
162
162
|
- You want a unique set of fields, filter conditions, field show logic (SHOWIF), field edit logic (EDITIF), field validity logic (VALIDIF) for a particular role or function.
|
|
163
163
|
|
|
164
164
|
Do NOT create a View when:
|
|
165
|
-
-
|
|
165
|
+
- the view already exists. do not duplicate views.
|
|
166
|
+
- it can be satisfied with a custom page
|
|
166
167
|
|
|
167
168
|
|
|
168
169
|
## View Types
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|