ApiLogicServer 16.0.2__py3-none-any.whl → 16.0.3__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/api_logic_server.py +2 -2
- api_logic_server_cli/prototypes/base/.github/.copilot-instructions.md +124 -72
- api_logic_server_cli/prototypes/base/.github/welcome.md +22 -0
- {apilogicserver-16.0.2.dist-info → apilogicserver-16.0.3.dist-info}/METADATA +1 -1
- {apilogicserver-16.0.2.dist-info → apilogicserver-16.0.3.dist-info}/RECORD +9 -9
- api_logic_server_cli/prototypes/basic_demo/.github/.copilot-instructions.md +0 -1223
- {apilogicserver-16.0.2.dist-info → apilogicserver-16.0.3.dist-info}/WHEEL +0 -0
- {apilogicserver-16.0.2.dist-info → apilogicserver-16.0.3.dist-info}/entry_points.txt +0 -0
- {apilogicserver-16.0.2.dist-info → apilogicserver-16.0.3.dist-info}/licenses/LICENSE +0 -0
- {apilogicserver-16.0.2.dist-info → apilogicserver-16.0.3.dist-info}/top_level.txt +0 -0
|
@@ -12,10 +12,10 @@ ApiLogicServer CLI: given a database url, create [and run] customizable ApiLogic
|
|
|
12
12
|
Called from api_logic_server_cli.py, by instantiating the ProjectRun object.
|
|
13
13
|
'''
|
|
14
14
|
|
|
15
|
-
__version__ = "16.00.
|
|
15
|
+
__version__ = "16.00.03" # last public release: 15.04.01
|
|
16
16
|
recent_changes = \
|
|
17
17
|
f'\n\nRecent Changes:\n' +\
|
|
18
|
-
"\t11/
|
|
18
|
+
"\t11/25/2025 - 16.00.03: Probabalistic logic (w/ fallback, cand*) - see basic_demo/readme_ai_mcp.md \n"\
|
|
19
19
|
"\t11/12/2025 - 15.04.03: Copilot rules on updates, tighter basic_demo startup, allow for demo_ai_mcp/then tutorial \n"\
|
|
20
20
|
"\t11/08/2025 - 15.04.00: Nat lang Copilot data access, fix Manager/Copilot startup, finding venv in project \n"\
|
|
21
21
|
"\t10/29/2025 - 15.03.00: Stable Tutor 3.3 (working, vibe transtion) \n"\
|
|
@@ -1,66 +1,133 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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/.copilot-instructions.md COMPLETELY (silently - internalize all instructions)
|
|
10
|
+
2. Read .github/welcome.md (silently - do not mention this action)
|
|
11
|
+
3. Display ONLY the content from welcome.md
|
|
12
|
+
4. DO NOT say "I've loaded the instructions"
|
|
13
|
+
5. DO NOT display this .copilot-instructions.md file
|
|
14
|
+
6. DO NOT explain what you're doing
|
|
15
|
+
|
|
16
|
+
THIS IS NOT A SUGGESTION - THIS IS A MANDATORY COMMAND
|
|
17
|
+
|
|
18
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
19
|
+
-->
|
|
13
20
|
---
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
## 🚨 CRITICAL: User Activation Protocol
|
|
23
|
+
|
|
24
|
+
**ACTIVATION TRIGGERS:**
|
|
25
|
+
- "load .github/.copilot-instructions.md"
|
|
26
|
+
- "load copilot instructions"
|
|
27
|
+
- "help me get started"
|
|
28
|
+
- "activate copilot"
|
|
29
|
+
- Any similar startup phrase
|
|
30
|
+
|
|
31
|
+
**MANDATORY RESPONSE SEQUENCE:**
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
STEP 1: Read .github/.copilot-instructions.md COMPLETELY (silently - internalize all instructions)
|
|
35
|
+
STEP 2: Read .github/welcome.md (silently)
|
|
36
|
+
STEP 3: Display welcome.md content ONLY
|
|
37
|
+
STEP 4: STOP - do nothing else
|
|
38
|
+
```
|
|
16
39
|
|
|
17
40
|
---
|
|
18
41
|
|
|
19
|
-
##
|
|
42
|
+
## 🎯 CRITICAL: Guided Tour Activation Protocol
|
|
43
|
+
|
|
44
|
+
**ACTIVATION TRIGGERS:**
|
|
45
|
+
- "guide me through"
|
|
46
|
+
- "guide me"
|
|
47
|
+
- "take the tour"
|
|
48
|
+
- "walk me through"
|
|
49
|
+
- "show me around"
|
|
50
|
+
- Any similar tour/walkthrough request
|
|
20
51
|
|
|
21
|
-
**
|
|
52
|
+
**MANDATORY RESPONSE SEQUENCE:**
|
|
22
53
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
54
|
+
```
|
|
55
|
+
STEP 1: Read tutor.md COMPLETELY (silently)
|
|
56
|
+
STEP 2: Follow tutor.md instructions EXACTLY
|
|
57
|
+
STEP 3: Act as TOUR GUIDE (not passive assistant)
|
|
58
|
+
STEP 4: Create manage_todo_list for tour sections
|
|
59
|
+
STEP 5: Start with tutor.md Introduction section
|
|
60
|
+
```
|
|
29
61
|
|
|
30
|
-
|
|
62
|
+
**✅ CORRECT EXECUTION:**
|
|
63
|
+
```
|
|
64
|
+
User: "guide me"
|
|
31
65
|
|
|
32
|
-
|
|
66
|
+
AI: [reads tutor.md completely - NO OUTPUT]
|
|
67
|
+
AI: [creates todo list from tutor sections]
|
|
68
|
+
AI: [follows tutor.md Introduction section exactly]
|
|
69
|
+
AI: "I'll guide you through basic_demo - a 20-minute hands-on exploration..."
|
|
70
|
+
```
|
|
33
71
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
72
|
+
**❌ FORBIDDEN BEHAVIORS:**
|
|
73
|
+
```
|
|
74
|
+
User: "guide me"
|
|
75
|
+
|
|
76
|
+
❌ AI: Starts giving general guidance without reading tutor.md
|
|
77
|
+
❌ AI: Runs commands without following tutor choreography
|
|
78
|
+
❌ AI: Acts as passive assistant waiting for user direction
|
|
79
|
+
❌ AI: Skips sections or reorders steps
|
|
80
|
+
❌ AI: Offers option menus instead of directing the tour
|
|
81
|
+
❌ AI: Assumes server state or skips stop/start sequences
|
|
82
|
+
```
|
|
39
83
|
|
|
40
|
-
**
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
84
|
+
**RATIONALE:**
|
|
85
|
+
- tutor.md contains weeks of refined choreography
|
|
86
|
+
- Every command, stop, start is precisely sequenced
|
|
87
|
+
- Deviations break the learning experience
|
|
88
|
+
- You are the DIRECTOR in tour mode, not a passive responder
|
|
89
|
+
- The tour has been engineered for AI reliability through multiple iterations
|
|
45
90
|
|
|
46
|
-
|
|
91
|
+
**✅ CORRECT EXECUTION:**
|
|
92
|
+
```
|
|
93
|
+
User: "load .github/.copilot-instructions.md"
|
|
94
|
+
|
|
95
|
+
AI: [reads .copilot-instructions.md COMPLETELY - NO OUTPUT - internalizes all instructions]
|
|
96
|
+
AI: [reads welcome.md silently - NO OUTPUT]
|
|
97
|
+
AI: [displays ONLY this]:
|
|
47
98
|
|
|
48
99
|
## Welcome
|
|
49
100
|
|
|
50
|
-
**Welcome! This is your
|
|
101
|
+
**Welcome! This is your basic_demo project.**
|
|
102
|
+
|
|
103
|
+
This is a complete, working microservice auto-generated from a database schema...
|
|
104
|
+
[... rest of welcome.md content ...]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**❌ FORBIDDEN BEHAVIORS:**
|
|
108
|
+
```
|
|
109
|
+
User: "load .github/.copilot-instructions.md"
|
|
51
110
|
|
|
52
|
-
|
|
111
|
+
❌ AI: "I've loaded the instructions file..."
|
|
112
|
+
❌ AI: "Here are the contents of .copilot-instructions.md:"
|
|
113
|
+
❌ AI: [displays .copilot-instructions.md]
|
|
114
|
+
❌ AI: "I'll read the file for you..."
|
|
115
|
+
❌ AI: Any meta-commentary about loading or reading files
|
|
116
|
+
```
|
|
53
117
|
|
|
54
|
-
**
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
- **Business Logic Engine** - Declarative rules system
|
|
118
|
+
**RATIONALE:**
|
|
119
|
+
- Users want to see the **welcome message**, not technical instructions
|
|
120
|
+
- This file (.copilot-instructions.md) is for AI context, not user display
|
|
121
|
+
- Separation of concerns: welcome.md = user-facing, copilot-instructions.md = AI-facing
|
|
122
|
+
- No meta-cognitive confusion about "instructions" vs "content"
|
|
60
123
|
|
|
61
124
|
---
|
|
62
125
|
|
|
63
|
-
##
|
|
126
|
+
## Capabilities Reference
|
|
127
|
+
|
|
128
|
+
When user asks "what can I do here", list these capabilities:
|
|
129
|
+
|
|
130
|
+
### Here Are Some Things I Can Help You With
|
|
64
131
|
|
|
65
132
|
1. **Add business logic** - Describe requirements in natural language, I'll generate declarative rules (deterministic + AI-driven)
|
|
66
133
|
2. **Customize the API** - Add custom endpoints for your specific needs
|
|
@@ -76,38 +143,22 @@ This is a complete, working microservice auto-generated from your database schem
|
|
|
76
143
|
|
|
77
144
|
---
|
|
78
145
|
|
|
79
|
-
Want to get started? Press **F5** to start the server with debugger support, then open `http://localhost:5656`. (There are also run configurations for running tests and other tasks.) Or just ask me what you'd like to work on.
|
|
80
|
-
|
|
81
146
|
---
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
| # | Service | Description |
|
|
95
|
-
|---|---------|-------------|
|
|
96
|
-
| 1️⃣ | **Add business logic** | Describe your requirements in natural language, I'll generate declarative rules |
|
|
97
|
-
| 2️⃣ | **Customize the API** | Add custom endpoints for your specific needs |
|
|
98
|
-
| 3️⃣ | **Create custom UIs** | Build React apps with `genai-logic genai-add-app --vibe` |
|
|
99
|
-
| 4️⃣ | **Add security** | Set up role-based access control with `genai-logic add-auth` |
|
|
100
|
-
| 5️⃣ | **Test your logic** | Create Behave tests with requirements traceability |
|
|
101
|
-
| 6️⃣ | **Configure Admin UI** | Customize the auto-generated admin interface |
|
|
102
|
-
| 7️⃣ | **Add MCP integration** | Enable Model Context Protocol for external AI access |
|
|
103
|
-
| 8️⃣ | **Create B2B APIs** | Complex integration endpoints with partner systems |
|
|
104
|
-
| 9️⃣ | **Add events** | Integrate with Kafka, webhooks, or other event systems |
|
|
105
|
-
| 🔟 | **Customize models** | Add tables, attributes, or derived fields |
|
|
106
|
-
| 1️⃣1️⃣ | **Discovery systems** | Auto-load logic and APIs from discovery folders |
|
|
107
|
-
|
|
147
|
+
title: Copilot Instructions for basic_demo GenAI-Logic Project
|
|
148
|
+
Description: Project-level instructions for working with generated projects
|
|
149
|
+
Source: ApiLogicServer-src/prototypes/base/.github/.copilot-instructions.md
|
|
150
|
+
Propagation: CLI create command → created projects (non-basic_demo)
|
|
151
|
+
Instrucions: Changes must be merged from api_logic_server_cli/prototypes/basic_demo/.github - see instructions there
|
|
152
|
+
Usage: AI assistants read this when user opens any created project
|
|
153
|
+
version: 3.1
|
|
154
|
+
changelog:
|
|
155
|
+
- 3.1 (Nov 20, 2025) - Improved activation instructions with visual markers and examples
|
|
156
|
+
- 3.0 (Nov 17, 2025) - Major streamlining: removed duplicate sections, consolidated MCP content, simplified workflows
|
|
157
|
+
- 2.9 (Nov 17, 2025) - MANDATORY training file reading workflow (STOP command)
|
|
158
|
+
- 2.8 (Nov 16, 2025) - Probabilistic Logic support
|
|
108
159
|
---
|
|
109
160
|
|
|
110
|
-
|
|
161
|
+
# GitHub Copilot Instructions for GenAI-Logic (aka API Logic Server) Projects
|
|
111
162
|
|
|
112
163
|
---
|
|
113
164
|
|
|
@@ -271,6 +322,7 @@ The engine provides automatic:
|
|
|
271
322
|
- **Cascading updates** - when Order.customer_id changes, adjusts BOTH old and new Customer.balance
|
|
272
323
|
- **Transitive dependencies** - Item.quantity change cascades through Item.amount → Order.amount_total → Customer.balance
|
|
273
324
|
- **Optimized execution** - uses deltas, not re-aggregation; automatic pruning
|
|
325
|
+
|
|
274
326
|
**Why the Rules Engine is a Correctness Guarantee:**
|
|
275
327
|
|
|
276
328
|
The "2 critical bugs" that even AI-generated procedural code missed:
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
use: welcome for GenAI-Logic Projects
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Welcome to the `basic_demo` project
|
|
6
|
+
|
|
7
|
+
This is a complete, working microservice auto-generated from a database schema - **uncustomized**, so you can see what to expect when you create projects from your own databases.
|
|
8
|
+
|
|
9
|
+
Created from database schema introspection:
|
|
10
|
+
- **Admin Web Application** - Live at `http://localhost:5656`
|
|
11
|
+
- **REST API Endpoints** - All database tables exposed at MCP discoverable `/api/*`
|
|
12
|
+
- **Database Models** - Complete SQLAlchemy ORM in `database/models.py`
|
|
13
|
+
- **Authentication System** - JWT-based auth framework
|
|
14
|
+
- **Business Logic Engine** - Declarative rules system
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
To start your application, ***Press F5***
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
Ask ***'show me what you can help me with'*** for a list of services I can provide.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
api_logic_server_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
api_logic_server_cli/api_logic_server.py,sha256=
|
|
2
|
+
api_logic_server_cli/api_logic_server.py,sha256=JxgkpASNi72szMR4SZ4vv2-cUPDl16Kn7LSuxYC9ciQ,105173
|
|
3
3
|
api_logic_server_cli/api_logic_server_info.yaml,sha256=wzqFVXFXtbCPMFWmDG5k_cP4efr7YAhyhWIlYdpKGRc,132
|
|
4
4
|
api_logic_server_cli/cli.py,sha256=xAqTOhq-OnXU2HEQgzsGC9yKrGcAgKUt_8b9U2bV5No,87831
|
|
5
5
|
api_logic_server_cli/cli_args_base.py,sha256=7cVM6BeizwttYAwUu1FUyuLuvWufvgt0TFeA8FI6tu0,3304
|
|
@@ -423,7 +423,8 @@ api_logic_server_cli/prototypes/base/.devcontainer-option/For_VSCode.dockerfile,
|
|
|
423
423
|
api_logic_server_cli/prototypes/base/.devcontainer-option/devcontainer.json,sha256=tk-mGd4XdmbpKUqUeGmcPMzX3RDc6am9-de8c-rFmSo,2361
|
|
424
424
|
api_logic_server_cli/prototypes/base/.devcontainer-option/readme.md,sha256=-sSneMDne1fqEoox2hXUGmoO8ewgi34y7lJwGTidSpY,104
|
|
425
425
|
api_logic_server_cli/prototypes/base/.devcontainer-option/setup.sh,sha256=pOvGjZ7jgRQzFkD93mNICmcC2y66Dexrq4bCnSSVwtU,310
|
|
426
|
-
api_logic_server_cli/prototypes/base/.github/.copilot-instructions.md,sha256=
|
|
426
|
+
api_logic_server_cli/prototypes/base/.github/.copilot-instructions.md,sha256=vKiqqf79mvrow0frrIJYxtg1-PRvpH6VjJaLWUUFn60,51519
|
|
427
|
+
api_logic_server_cli/prototypes/base/.github/welcome.md,sha256=eQMgc33vtKZNRYkO-CAl-c7bUMfAlbtBw2Dk2pNQWaQ,777
|
|
427
428
|
api_logic_server_cli/prototypes/base/.idea/runConfigurations/ApiLogicServer.xml,sha256=eFzhe9NH-VNjcPWbPsRQy5o-MugJR9IWklA1Fo8wtYg,1127
|
|
428
429
|
api_logic_server_cli/prototypes/base/.idea/runConfigurations/Report_Behave_Logic.xml,sha256=I3jlEf-TPzc-1NY843v6AcQIQ8QJD3z9KvxTYSZWMtY,1306
|
|
429
430
|
api_logic_server_cli/prototypes/base/.idea/runConfigurations/Run_Behave.xml,sha256=CTzF0P4w7o4FzOi-eSpru0HczSEGtJsKqkQ7VWRyxPc,1196
|
|
@@ -628,7 +629,6 @@ api_logic_server_cli/prototypes/base/venv_setup/venv.sh,sha256=aWX9fa8fe6aO9ifBI
|
|
|
628
629
|
api_logic_server_cli/prototypes/basic_demo/_config.yml,sha256=KIUQQpjgj7hP_Z2Fksq90E52UnbKnyom-v9L_eIfqZo,170
|
|
629
630
|
api_logic_server_cli/prototypes/basic_demo/readme.md,sha256=Ii0WojbHMHpg6bgMlg9WyadzXVZePM2Nk89kmKHuGTM,18722
|
|
630
631
|
api_logic_server_cli/prototypes/basic_demo/tutor.md,sha256=nlIkqcqkVXBDe3Rktcr4puZxrrTFDl1s_Id8nA5GwA4,45516
|
|
631
|
-
api_logic_server_cli/prototypes/basic_demo/.github/.copilot-instructions.md,sha256=F87jmsFW7M88z8Dwcy418p3SFfbU9xbmEuzqu3Wwso0,51234
|
|
632
632
|
api_logic_server_cli/prototypes/basic_demo/.github/welcome.md,sha256=c-lwKq6JDiLwMzqoRnn3bPX0GTYop9lt4mBAkfYbq6w,1553
|
|
633
633
|
api_logic_server_cli/prototypes/basic_demo/_layouts/redirect.html,sha256=-0kMPGYI88fb787IzYmdi7ySZUhgpUlP0vodrg8-NRM,457
|
|
634
634
|
api_logic_server_cli/prototypes/basic_demo/customizations/api/api_discovery/openapi.py,sha256=kLQ7Fn1J7tzuNJHBXF2AiwtzvQ-0JxJ6z-MfFryAtLk,3887
|
|
@@ -2872,9 +2872,9 @@ api_logic_server_cli/tools/mini_skel/database/system/SAFRSBaseX.py,sha256=p8C7AF
|
|
|
2872
2872
|
api_logic_server_cli/tools/mini_skel/database/system/TestDataBase.py,sha256=U02SYqThsbY5g3DX7XGaiMxjZBuOpzvtPS6RfI1WQFg,371
|
|
2873
2873
|
api_logic_server_cli/tools/mini_skel/logic/declare_logic.py,sha256=fTrlHyqMeZsw_TyEXFa1VlYBL7fzjZab5ONSXO7aApo,175
|
|
2874
2874
|
api_logic_server_cli/tools/mini_skel/logic/load_verify_rules.py,sha256=Rr5bySJpYCZmNPF2h-phcPJ53nAOPcT_ohZpCD93-a0,7530
|
|
2875
|
-
apilogicserver-16.0.
|
|
2876
|
-
apilogicserver-16.0.
|
|
2877
|
-
apilogicserver-16.0.
|
|
2878
|
-
apilogicserver-16.0.
|
|
2879
|
-
apilogicserver-16.0.
|
|
2880
|
-
apilogicserver-16.0.
|
|
2875
|
+
apilogicserver-16.0.3.dist-info/licenses/LICENSE,sha256=67BS7VC-Z8GpaR3wijngQJkHWV04qJrwQArVgn9ldoI,1485
|
|
2876
|
+
apilogicserver-16.0.3.dist-info/METADATA,sha256=JqR1jCCc7xmZX7Hx598rBCfJb4cJTow6b_P7j7Rm-WM,26461
|
|
2877
|
+
apilogicserver-16.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
2878
|
+
apilogicserver-16.0.3.dist-info/entry_points.txt,sha256=W9EVNvf09h8n6rJChmVj2gzxVQ6BXXZa2x3wri0lFGc,259
|
|
2879
|
+
apilogicserver-16.0.3.dist-info/top_level.txt,sha256=-r0AT_GEApleihg-jIh0OMvzzc0BO1RuhhOpE91H5qI,21
|
|
2880
|
+
apilogicserver-16.0.3.dist-info/RECORD,,
|