ApiLogicServer 15.4.3__py3-none-any.whl → 16.0.0__py3-none-any.whl
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.
- api_logic_server_cli/add_cust/add_cust.py +6 -2
- api_logic_server_cli/api_logic_server.py +2 -1
- api_logic_server_cli/database/basic_demo.sqlite +0 -0
- api_logic_server_cli/prototypes/base/.github/.copilot-instructions.md +228 -76
- api_logic_server_cli/prototypes/base/docs/training/OVERVIEW.md +64 -0
- api_logic_server_cli/prototypes/base/docs/training/README.md +140 -0
- api_logic_server_cli/prototypes/base/docs/training/genai_logic_patterns.md +443 -0
- api_logic_server_cli/prototypes/base/docs/training/logic_bank_api.prompt +22 -0
- api_logic_server_cli/prototypes/base/docs/training/logic_bank_patterns.prompt +445 -0
- api_logic_server_cli/prototypes/base/docs/training/probabilistic_logic.prompt +1074 -0
- api_logic_server_cli/prototypes/base/docs/training/probabilistic_logic_guide.md +444 -0
- api_logic_server_cli/prototypes/base/docs/training/probabilistic_template.py +326 -0
- api_logic_server_cli/prototypes/base/logic/logic_discovery/auto_discovery.py +8 -9
- api_logic_server_cli/prototypes/basic_demo/.github/.copilot-instructions.md +326 -142
- api_logic_server_cli/prototypes/basic_demo/.github/welcome.md +15 -1
- api_logic_server_cli/prototypes/basic_demo/customizations/database/db.sqlite +0 -0
- api_logic_server_cli/prototypes/basic_demo/iteration/database/db.sqlite +0 -0
- api_logic_server_cli/prototypes/manager/.github/.copilot-instructions.md +61 -155
- api_logic_server_cli/prototypes/manager/.github/welcome.md +43 -0
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/.github/.copilot-instructions.md +502 -76
- {apilogicserver-15.4.3.dist-info → apilogicserver-16.0.0.dist-info}/METADATA +1 -1
- {apilogicserver-15.4.3.dist-info → apilogicserver-16.0.0.dist-info}/RECORD +26 -18
- {apilogicserver-15.4.3.dist-info → apilogicserver-16.0.0.dist-info}/WHEEL +0 -0
- {apilogicserver-15.4.3.dist-info → apilogicserver-16.0.0.dist-info}/entry_points.txt +0 -0
- {apilogicserver-15.4.3.dist-info → apilogicserver-16.0.0.dist-info}/licenses/LICENSE +0 -0
- {apilogicserver-15.4.3.dist-info → apilogicserver-16.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
3
|
+
🚨 MANDATORY: READ THIS FIRST - NO EXCEPTIONS 🚨
|
|
4
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
5
|
+
|
|
6
|
+
⚠️ IF USER SAYS: "load .github/.copilot-instructions.md" OR ANY ACTIVATION PHRASE
|
|
7
|
+
⚠️ YOU MUST EXECUTE THIS EXACT SEQUENCE - NO DEVIATIONS:
|
|
8
|
+
|
|
9
|
+
1. Read .github/welcome.md (silently - do not mention this action)
|
|
10
|
+
2. Display ONLY the content from welcome.md
|
|
11
|
+
3. DO NOT say "I've loaded the instructions"
|
|
12
|
+
4. DO NOT display this .copilot-instructions.md file
|
|
13
|
+
5. DO NOT explain what you're doing
|
|
14
|
+
|
|
15
|
+
THIS IS NOT A SUGGESTION - THIS IS A MANDATORY COMMAND
|
|
16
|
+
|
|
17
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
18
|
+
-->
|
|
1
19
|
---
|
|
2
20
|
title: Copilot Instructions for Manager Workspace
|
|
3
21
|
Description: Manager-level instructions for creating projects
|
|
@@ -5,8 +23,12 @@ Source: ApiLogicServer-src/prototypes/manager/.github/.copilot-instructions.md
|
|
|
5
23
|
Propagation: BLT process → Manager workspace
|
|
6
24
|
Usage: AI assistants read this when user opens Manager workspace
|
|
7
25
|
User Activation: Say "What can I do here?" or "Help me get started"
|
|
8
|
-
version: 2.
|
|
26
|
+
version: 2.7
|
|
9
27
|
changelog:
|
|
28
|
+
- 2.7 (Nov 20 2025) - Reverted to simple single-file pattern from basic_demo (removed conditional logic and list_dir check)
|
|
29
|
+
- 2.6 (Nov 20 2025) - Applied proven OBX pattern from basic_demo (visual markers, separate welcome files, mandatory command language) - FAILED
|
|
30
|
+
- 2.5 (Nov 17 2025) - Strengthened basic_demo detection logic, mandatory list_dir check
|
|
31
|
+
- 2.4 (Nov 2025) - Simplified structure, removed redundant sections
|
|
10
32
|
- 2.3 (Nov 2025) - Added activation phrases, forcing welcome presentation
|
|
11
33
|
- 2.2 (Nov 2025) - Initial welcome instructions
|
|
12
34
|
- 2.1 (Oct 2025) - Added "What is the Project Manager?" orientation, friendly collaborative tone, conditional Quick Start for returning users
|
|
@@ -29,176 +51,60 @@ This will trigger the appropriate welcome message based on whether you're new or
|
|
|
29
51
|
|
|
30
52
|
---
|
|
31
53
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
**When user says "Please load .github/.copilot-instructions.md" or similar:**
|
|
35
|
-
|
|
36
|
-
**IMMEDIATELY do this (silently, no commentary):**
|
|
37
|
-
|
|
38
|
-
1. Check if `basic_demo/` folder exists in workspace root
|
|
39
|
-
2. Present ONLY the appropriate welcome below - start your response with "Welcome!"
|
|
40
|
-
|
|
41
|
-
**CRITICAL - Your response must START with "Welcome!" - NO preamble allowed:**
|
|
42
|
-
- ❌ "I've loaded the instructions"
|
|
43
|
-
- ❌ "Let me check if basic_demo exists"
|
|
44
|
-
- ❌ "I'll read the file"
|
|
45
|
-
- ✅ Start directly with: "Welcome! This is the **Project Manager**..."
|
|
46
|
-
|
|
47
|
-
**Which welcome to show:**
|
|
48
|
-
- If NO basic_demo folder → Present "First Time Welcome"
|
|
49
|
-
- If basic_demo EXISTS → Present "Returning User Welcome"
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
# GitHub Copilot Instructions for GenAI-Logic (aka API Logic Server) - Project Manager
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## ⚠️ INSTRUCTION FOR AI ASSISTANTS
|
|
58
|
-
|
|
59
|
-
**User activation phrases:**
|
|
60
|
-
- "What can I do here?"
|
|
61
|
-
- "What is this workspace?"
|
|
62
|
-
- "Help me get started"
|
|
63
|
-
- "What should I work on?"
|
|
64
|
-
- OR when user first opens workspace and greets you
|
|
65
|
-
|
|
66
|
-
**When you see these phrases (or when reading these instructions), IMMEDIATELY:**
|
|
67
|
-
|
|
68
|
-
1. **Check if `basic_demo/` folder exists** in the workspace root (use list_dir or file_search)
|
|
69
|
-
2. **Present the appropriate welcome below** - NO preamble, NO summary
|
|
70
|
-
- If NO basic_demo folder → Present "First Time Welcome"
|
|
71
|
-
- If basic_demo EXISTS → Present "Returning User Welcome"
|
|
72
|
-
|
|
73
|
-
**CRITICAL - Do NOT:**
|
|
74
|
-
- Say "I've read the instructions"
|
|
75
|
-
- Say "Would you like me to check..."
|
|
76
|
-
- Summarize or describe the instructions
|
|
77
|
-
- Ask permission to check for basic_demo
|
|
78
|
-
|
|
79
|
-
**CRITICAL - DO:**
|
|
80
|
-
- Check for basic_demo folder immediately and silently
|
|
81
|
-
- Present the appropriate welcome content directly as your response
|
|
82
|
-
- Act like you're naturally greeting the user
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## First Time Welcome (NO basic_demo folder)
|
|
87
|
-
|
|
88
|
-
Welcome! This is the **Project Manager** - your workspace for creating and managing API Logic Server projects.
|
|
89
|
-
|
|
90
|
-
**What's here:**
|
|
91
|
-
- Sample databases you can use to create projects (`samples/dbs/`)
|
|
92
|
-
- Training materials and examples (`system/genai/examples/`)
|
|
93
|
-
- A shared virtual environment for all your projects (`venv/`)
|
|
94
|
-
- A place to create new projects (they'll appear as subdirectories)
|
|
95
|
-
|
|
96
|
-
> Note: Your virtual environment is automatically configured in most cases; verify it with `genai-logic` - if it's not there, activate the `venv` in this project.
|
|
54
|
+
## 🚨 CRITICAL: User Activation Protocol
|
|
97
55
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
56
|
+
**ACTIVATION TRIGGERS:**
|
|
57
|
+
- "load .github/.copilot-instructions.md"
|
|
58
|
+
- "load copilot instructions"
|
|
59
|
+
- "help me get started"
|
|
60
|
+
- "what can I do here?"
|
|
61
|
+
- "what is this workspace?"
|
|
62
|
+
- "activate copilot"
|
|
63
|
+
- Any similar startup phrase
|
|
101
64
|
|
|
102
|
-
|
|
65
|
+
**MANDATORY RESPONSE SEQUENCE:**
|
|
103
66
|
|
|
104
|
-
```
|
|
105
|
-
|
|
67
|
+
```
|
|
68
|
+
STEP 1: Read .github/welcome.md (silently)
|
|
69
|
+
STEP 2: Display welcome.md content ONLY
|
|
70
|
+
STEP 3: STOP - do nothing else
|
|
106
71
|
```
|
|
107
72
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
## Returning User Welcome (basic_demo folder exists)
|
|
113
|
-
|
|
114
|
-
Welcome! This is the **Project Manager** - your workspace for creating and managing API Logic Server projects.
|
|
115
|
-
|
|
116
|
-
**What's here:**
|
|
117
|
-
- Sample databases you can use to create projects (`samples/dbs/`)
|
|
118
|
-
- Training materials and examples (`system/genai/examples/`)
|
|
119
|
-
- A shared virtual environment for all your projects (`venv/`)
|
|
120
|
-
- A place to create new projects (they'll appear as subdirectories)
|
|
121
|
-
|
|
122
|
-
> Note: Your virtual environment is automatically configured in most cases; verify it with `genai-logic` - if it's not there, activate the `venv` in this project.
|
|
73
|
+
**✅ CORRECT EXECUTION:**
|
|
74
|
+
```
|
|
75
|
+
User: "load .github/.copilot-instructions.md"
|
|
123
76
|
|
|
124
|
-
|
|
77
|
+
AI: [reads welcome.md silently - NO OUTPUT]
|
|
78
|
+
AI: [displays ONLY this]:
|
|
125
79
|
|
|
126
|
-
|
|
80
|
+
Welcome! This is the **Project Manager** - your workspace for...
|
|
81
|
+
[... rest of welcome.md content ...]
|
|
82
|
+
```
|
|
127
83
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
3. **Create manually** - I'll help you design and build a database, then generate the project
|
|
84
|
+
**❌ FORBIDDEN BEHAVIORS:**
|
|
85
|
+
```
|
|
86
|
+
User: "load .github/.copilot-instructions.md"
|
|
132
87
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
88
|
+
❌ AI: "I've loaded the instructions file..."
|
|
89
|
+
❌ AI: "Here are the contents of .copilot-instructions.md:"
|
|
90
|
+
❌ AI: [displays .copilot-instructions.md]
|
|
91
|
+
❌ AI: "I'll read the file for you..."
|
|
92
|
+
❌ AI: Any meta-commentary about loading or reading files
|
|
93
|
+
```
|
|
138
94
|
|
|
139
|
-
**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
95
|
+
**RATIONALE:**
|
|
96
|
+
- Users want to see the **welcome message**, not technical instructions
|
|
97
|
+
- This file (.copilot-instructions.md) is for AI context, not user display
|
|
98
|
+
- Separation of concerns: welcome.md = user-facing, copilot-instructions.md = AI-facing
|
|
99
|
+
- No meta-cognitive confusion about "instructions" vs "content"
|
|
100
|
+
- This pattern achieved ~100% success rate in basic_demo testing
|
|
143
101
|
|
|
144
|
-
**
|
|
102
|
+
**This is the FIRST SCREEN users see - get it right!**
|
|
145
103
|
|
|
146
104
|
---
|
|
147
105
|
|
|
148
106
|
## Technical Reference (For AI - Do Not Present Unless Asked)
|
|
149
107
|
|
|
150
|
-
Welcome! This is the **Project Manager** - your workspace for creating and managing API Logic Server projects.
|
|
151
|
-
|
|
152
|
-
**What's here:**
|
|
153
|
-
- Sample databases you can use to create projects (`samples/dbs/`)
|
|
154
|
-
- Training materials and examples (`system/genai/examples/`)
|
|
155
|
-
- A shared virtual environment for all your projects (`venv/`)
|
|
156
|
-
- A place to create new projects (they'll appear as subdirectories)
|
|
157
|
-
|
|
158
|
-
> Note: Your virtual environment is automatically configured in most cases; verify it with `genai-logic` - if it's not there, activate the `venv` in this project.
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## Getting Started
|
|
163
|
-
|
|
164
|
-
**🎯 ACTION REQUIRED**: Check if `basic_demo/` folder exists in this workspace, then respond appropriately:
|
|
165
|
-
|
|
166
|
-
### If NO basic_demo folder exists (First Time):
|
|
167
|
-
|
|
168
|
-
**Welcome! Let's start with the 20-minute basic_demo tutorial - it's the best way to see what GenAI-Logic can do.**
|
|
169
|
-
|
|
170
|
-
Run this command:
|
|
171
|
-
|
|
172
|
-
```bash
|
|
173
|
-
genai-logic create --project_name=basic_demo --db_url=basic_demo
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
After it runs, the project will auto-open with its own README and I'll guide you through a hands-on tour.
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
### If basic_demo folder EXISTS (Returning User):
|
|
181
|
-
|
|
182
|
-
**Welcome back! Here's what I can help you with in the Manager workspace:**
|
|
183
|
-
|
|
184
|
-
**Creating New Projects:**
|
|
185
|
-
1. **Create from existing database** - Generate project from your database schema
|
|
186
|
-
2. **Create with GenAI** - Describe database + logic in natural language, get complete working system
|
|
187
|
-
3. **Create manually** - I'll help you design and build a database, then generate the project
|
|
188
|
-
|
|
189
|
-
**Working with Existing Projects:**
|
|
190
|
-
4. **Guide through basic_demo** - Take the interactive 30-45 min hands-on tour
|
|
191
|
-
5. **Customize projects** - Add logic, security, custom APIs, React apps, tests
|
|
192
|
-
6. **Review project structure** - Understand what was auto-generated
|
|
193
|
-
7. **Debug issues** - Help troubleshoot problems in your projects
|
|
194
|
-
|
|
195
|
-
**Learning & Examples:**
|
|
196
|
-
8. **Explore sample databases** - See what's in `samples/dbs/`
|
|
197
|
-
9. **Review GenAI examples** - Learn from `system/genai/examples/`
|
|
198
|
-
10. **Understand architecture** - Explain how the system works
|
|
199
|
-
|
|
200
|
-
**What would you like to work on?**
|
|
201
|
-
|
|
202
108
|
<br>
|
|
203
109
|
|
|
204
110
|
## Creating Projects
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Welcome! This is the **Project Manager** - your workspace for creating and managing API Logic Server projects.
|
|
2
|
+
|
|
3
|
+
**What's here:**
|
|
4
|
+
- Sample databases you can use to create projects (`samples/dbs/`)
|
|
5
|
+
- Training materials and examples (`system/genai/examples/`)
|
|
6
|
+
- A shared virtual environment for all your projects (`venv/`)
|
|
7
|
+
- A place to create new projects (they'll appear as subdirectories)
|
|
8
|
+
|
|
9
|
+
> Note: Your virtual environment is automatically configured in most cases; verify it with `genai-logic` - if it's not there, activate the `venv` in this project.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Getting Started
|
|
14
|
+
|
|
15
|
+
**If you're new here**, start with the 20-minute basic_demo tutorial - it's the best way to see what GenAI-Logic can do:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
genai-logic create --project_name=basic_demo --db_url=basic_demo
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After it runs, the project will auto-open with its own README and I'll guide you through a hands-on tour.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
**If you're returning**, here's what I can help you with:
|
|
26
|
+
|
|
27
|
+
**Creating New Projects:**
|
|
28
|
+
1. **Create from existing database** - Generate project from your database schema
|
|
29
|
+
2. **Create with GenAI** - Describe database + logic in natural language, get complete working system
|
|
30
|
+
3. **Create manually** - I'll help you design and build a database, then generate the project
|
|
31
|
+
|
|
32
|
+
**Working with Existing Projects:**
|
|
33
|
+
4. **Guide through basic_demo** - Take the interactive 30-45 min hands-on tour
|
|
34
|
+
5. **Customize projects** - Add logic, security, custom APIs, React apps, tests
|
|
35
|
+
6. **Review project structure** - Understand what was auto-generated
|
|
36
|
+
7. **Debug issues** - Help troubleshoot problems in your projects
|
|
37
|
+
|
|
38
|
+
**Learning & Examples:**
|
|
39
|
+
8. **Explore sample databases** - See what's in `samples/dbs/`
|
|
40
|
+
9. **Review GenAI examples** - Learn from `system/genai/examples/`
|
|
41
|
+
10. **Understand architecture** - Explain how the system works
|
|
42
|
+
|
|
43
|
+
**What would you like to work on?**
|