interaqt 0.3.0 → 0.3.1
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/agent/.claude/agents/code-generation-handler.md +2 -0
- package/agent/.claude/agents/computation-generation-handler.md +1 -0
- package/agent/.claude/agents/implement-design-handler.md +4 -13
- package/agent/.claude/agents/requirements-analysis-handler.md +46 -14
- package/agent/agentspace/knowledge/generator/api-reference.md +3378 -0
- package/agent/agentspace/knowledge/generator/basic-interaction-generation.md +377 -0
- package/agent/agentspace/knowledge/generator/computation-analysis.md +307 -0
- package/agent/agentspace/knowledge/generator/computation-implementation.md +959 -0
- package/agent/agentspace/knowledge/generator/data-analysis.md +463 -0
- package/agent/agentspace/knowledge/generator/entity-relation-generation.md +395 -0
- package/agent/agentspace/knowledge/generator/permission-implementation.md +460 -0
- package/agent/agentspace/knowledge/generator/permission-test-implementation.md +870 -0
- package/agent/agentspace/knowledge/generator/test-implementation.md +674 -0
- package/agent/agentspace/knowledge/usage/00-mindset-shift.md +322 -0
- package/agent/agentspace/knowledge/usage/01-core-concepts.md +131 -0
- package/agent/agentspace/knowledge/usage/02-define-entities-properties.md +407 -0
- package/agent/agentspace/knowledge/usage/03-entity-relations.md +599 -0
- package/agent/agentspace/knowledge/usage/04-reactive-computations.md +2186 -0
- package/agent/agentspace/knowledge/usage/05-interactions.md +1411 -0
- package/agent/agentspace/knowledge/usage/06-attributive-permissions.md +10 -0
- package/agent/agentspace/knowledge/usage/07-payload-parameters.md +593 -0
- package/agent/agentspace/knowledge/usage/08-activities.md +863 -0
- package/agent/agentspace/knowledge/usage/09-filtered-entities.md +784 -0
- package/agent/agentspace/knowledge/usage/10-async-computations.md +734 -0
- package/agent/agentspace/knowledge/usage/11-global-dictionaries.md +942 -0
- package/agent/agentspace/knowledge/usage/12-data-querying.md +1033 -0
- package/agent/agentspace/knowledge/usage/13-testing.md +1201 -0
- package/agent/agentspace/knowledge/usage/14-api-reference.md +1606 -0
- package/agent/agentspace/knowledge/usage/15-entity-crud-patterns.md +1122 -0
- package/agent/agentspace/knowledge/usage/16-frontend-page-design-guide.md +485 -0
- package/agent/agentspace/knowledge/usage/17-performance-optimization.md +283 -0
- package/agent/agentspace/knowledge/usage/18-api-exports-reference.md +176 -0
- package/agent/agentspace/knowledge/usage/19-common-anti-patterns.md +563 -0
- package/agent/agentspace/knowledge/usage/README.md +148 -0
- package/package.json +1 -1
|
@@ -279,6 +279,8 @@ This task has its own dedicated sub-agent that handles the progressive implement
|
|
|
279
279
|
|
|
280
280
|
**🛑 STOP GATE: DO NOT proceed to Task 3.1.4.4 until ALL computations in `docs/computation-implementation-plan.json` are marked as complete with passing tests.**
|
|
281
281
|
|
|
282
|
+
** CRETICA:L use the specialized sub-agent `computation-generation-handler` until ALL computations in `docs/computation-implementation-plan.json` are marked as complete with passing tests.**
|
|
283
|
+
|
|
282
284
|
**✅ END Task 3.1.4.3: Update `docs/STATUS.json`:**
|
|
283
285
|
```json
|
|
284
286
|
{
|
|
@@ -59,6 +59,7 @@ color: blue
|
|
|
59
59
|
- You should modify the PARENT entity's computation, not the current entity
|
|
60
60
|
- Example: For `_parent:[User]`, modify the `User` entity's computation that creates Posts
|
|
61
61
|
- This typically occurs when a child entity needs to be created by a parent's Transform computation
|
|
62
|
+
- **📍 Finding the parent entity**: You can find the parent entity name in the current item's `lifecycle.creation.parent` field
|
|
62
63
|
- **How to create child entities**: Use the relation's source/target property name in the parent's Transform return value
|
|
63
64
|
- Example: If `OrderItemRelation` has `sourceProperty: 'items'`, then in Order's Transform:
|
|
64
65
|
```typescript
|
|
@@ -37,20 +37,11 @@ You are a honest software expert with the following capabilities:
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
**🔴 CRITICAL FOUNDATION:**
|
|
41
|
-
**📖 MUST READ FIRST: `requirements/detailed-requirements.json`**
|
|
42
|
-
- **Read the COMPLETE detailed requirements document thoroughly before starting data analysis**
|
|
43
|
-
- **This document is the ROOT SOURCE for all data analysis**
|
|
44
|
-
- **ALL data entities, properties, and relationships mentioned in the detailed requirements MUST be analyzed**
|
|
45
|
-
- **No data element from the requirements should be overlooked**
|
|
46
|
-
|
|
47
40
|
|
|
48
41
|
**Process:**
|
|
49
|
-
1. **
|
|
50
|
-
2. **
|
|
51
|
-
3. **
|
|
52
|
-
4. **DOCUMENT**: Use the Analysis Documentation Template from `data-analysis.md` to create your `docs/data-design.json`
|
|
53
|
-
5. **VERIFY**: Cross-check that ALL data from the detailed requirements has been included in your analysis
|
|
42
|
+
1. **ANALYZE**: Follow the systematic approach in `agentspace/knowledge/generator/data-analysis.md` for each identified data element
|
|
43
|
+
2. **DOCUMENT**: Use the Analysis Documentation Template from `agentspace/knowledge/generator/data-analysis.md` to create your `docs/data-design.json`
|
|
44
|
+
3. **VERIFY**: Cross-check that ALL data from the detailed requirements has been included in your analysis
|
|
54
45
|
|
|
55
46
|
**✅ END Task 2.1: Update `docs/STATUS.json`:**
|
|
56
47
|
```json
|
|
@@ -150,7 +141,7 @@ You are a honest software expert with the following capabilities:
|
|
|
150
141
|
- `docs/interaction-design.md` (from Task 2.2)
|
|
151
142
|
3. **ANALYZE**: For EVERY entity and EVERY property, follow the step-by-step analysis process
|
|
152
143
|
4. **DOCUMENT**: Create `docs/computation-analysis.json` documenting your analysis for each entity/property
|
|
153
|
-
5. **REFERENCE**: Use
|
|
144
|
+
5. **REFERENCE**: Use `./agentspace/knowledge/generator/computation-implementation.md` as a reference for syntax and examples
|
|
154
145
|
|
|
155
146
|
**Key Steps from computation-analysis.md:**
|
|
156
147
|
- [ ] Create analysis document at `docs/computation-analysis.json`
|
|
@@ -72,6 +72,11 @@ Constraints expressed on roles, interactions, and data in requirements.
|
|
|
72
72
|
|
|
73
73
|
### Analyze User Input
|
|
74
74
|
|
|
75
|
+
**🌐 Language Processing:**
|
|
76
|
+
- Translate user input to English if provided in other languages
|
|
77
|
+
- Use English consistently throughout all subsequent analysis and outputs
|
|
78
|
+
- Preserve original meaning and context during translation
|
|
79
|
+
|
|
75
80
|
User input may contain:
|
|
76
81
|
- Vague or incomplete goals
|
|
77
82
|
- Specific requirements mixed with goals
|
|
@@ -169,6 +174,34 @@ git commit -m "feat: Task 1.1 - Complete goal analysis and refinement"
|
|
|
169
174
|
|
|
170
175
|
We focus on data-centric requirements. Human software usage delegates unsuitable tasks (storage, computation) to support better decision-making. Since decisions require information, we start with **READ requirements** as the root.
|
|
171
176
|
|
|
177
|
+
### ⚠️ CRITICAL: Reactive Framework Principles
|
|
178
|
+
|
|
179
|
+
**DO NOT create "automatic system" requirements.** Our framework is reactive - avoid designing autonomous system behaviors.
|
|
180
|
+
|
|
181
|
+
**Transform "automatic" requirements into:**
|
|
182
|
+
|
|
183
|
+
1. **Reactive Data Requirements**:
|
|
184
|
+
- ❌ WRONG: "System automatically counts total books"
|
|
185
|
+
- ✅ CORRECT: "There is a `totalBookCount` data that represents the statistical result of total books"
|
|
186
|
+
|
|
187
|
+
2. **Interaction Constraint Conditions**:
|
|
188
|
+
- ❌ WRONG: "System automatically detects uniqueness"
|
|
189
|
+
- ✅ CORRECT: "Can only create unique XXX" (as constraint condition)
|
|
190
|
+
|
|
191
|
+
3. **Data Constraints on Write Operations**:
|
|
192
|
+
- ❌ WRONG: "System automatically creates uniform record when employee is created"
|
|
193
|
+
- ✅ CORRECT: "When creating employee, automatically create uniform record" (as data constraint)
|
|
194
|
+
|
|
195
|
+
**For unavoidable side-effect requirements** (e.g., "automatically send notification"):
|
|
196
|
+
- Design the requirement but explicitly mark as **"Currently Not Supported"**
|
|
197
|
+
- Document: "This requirement involves automatic side-effects which are not supported by the current reactive framework"
|
|
198
|
+
|
|
199
|
+
**Examples of Proper Transformation:**
|
|
200
|
+
- "Auto-calculate late fees" → "Late fee amount is computed based on overdue days and daily rate"
|
|
201
|
+
- "Auto-send reminders" → "Reminder needed status is computed based on due date" + "Send reminder interaction"
|
|
202
|
+
- "Auto-validate ISBN" → "Can only create books with valid ISBN format" (constraint)
|
|
203
|
+
- "Auto-update inventory" → "Available count is computed based on total copies minus borrowed copies"
|
|
204
|
+
|
|
172
205
|
### Step 1: Create Read Requirements from Goals
|
|
173
206
|
|
|
174
207
|
Read requirements express:
|
|
@@ -541,6 +574,7 @@ git commit -m "feat: Task 1.3 - Complete data concept extraction"
|
|
|
541
574
|
- Interactions fulfill requirements
|
|
542
575
|
- All data in interactions must reference concepts from Task 1.3
|
|
543
576
|
- **CRITICAL**: Inherit all data constraints from requirements
|
|
577
|
+
- **Interaction IDs must be semantic names** (e.g., "BorrowBook", "ViewAvailableBooks") not generic codes (e.g., "I001", "I002")
|
|
544
578
|
|
|
545
579
|
### Interaction Specification Format
|
|
546
580
|
|
|
@@ -569,8 +603,7 @@ Create `requirements/interactions-design.json`:
|
|
|
569
603
|
},
|
|
570
604
|
"interactions": [
|
|
571
605
|
{
|
|
572
|
-
"id": "
|
|
573
|
-
"name": "BorrowBook",
|
|
606
|
+
"id": "BorrowBook",
|
|
574
607
|
"fulfills_requirements": ["R101"],
|
|
575
608
|
"type": "create",
|
|
576
609
|
"specification": {
|
|
@@ -611,8 +644,7 @@ Create `requirements/interactions-design.json`:
|
|
|
611
644
|
]
|
|
612
645
|
},
|
|
613
646
|
{
|
|
614
|
-
"id": "
|
|
615
|
-
"name": "ViewAvailableBooks",
|
|
647
|
+
"id": "ViewAvailableBooks",
|
|
616
648
|
"fulfills_requirements": ["R001"],
|
|
617
649
|
"type": "read",
|
|
618
650
|
"specification": {
|
|
@@ -650,20 +682,20 @@ Create `requirements/interactions-design.json`:
|
|
|
650
682
|
],
|
|
651
683
|
"interaction_matrix": {
|
|
652
684
|
"by_requirement": {
|
|
653
|
-
"R001": ["
|
|
654
|
-
"R101": ["
|
|
655
|
-
"R102": ["
|
|
656
|
-
"R201": ["
|
|
685
|
+
"R001": ["ViewAvailableBooks"],
|
|
686
|
+
"R101": ["BorrowBook"],
|
|
687
|
+
"R102": ["ReturnBook"],
|
|
688
|
+
"R201": ["ValidateReaderStatus"]
|
|
657
689
|
},
|
|
658
690
|
"by_role": {
|
|
659
|
-
"Reader": ["
|
|
660
|
-
"Librarian": ["
|
|
661
|
-
"Administrator": ["
|
|
691
|
+
"Reader": ["BorrowBook", "ViewAvailableBooks"],
|
|
692
|
+
"Librarian": ["ReturnBook", "ValidateReaderStatus", "ManageBookInventory"],
|
|
693
|
+
"Administrator": ["CreateBook", "ManageReaderAccounts"]
|
|
662
694
|
},
|
|
663
695
|
"by_data_entity": {
|
|
664
|
-
"Book": ["
|
|
665
|
-
"Reader": ["
|
|
666
|
-
"BorrowRecord": ["
|
|
696
|
+
"Book": ["BorrowBook", "ViewAvailableBooks", "CreateBook"],
|
|
697
|
+
"Reader": ["BorrowBook", "ValidateReaderStatus"],
|
|
698
|
+
"BorrowRecord": ["BorrowBook", "ReturnBook", "ManageBookInventory"]
|
|
667
699
|
}
|
|
668
700
|
},
|
|
669
701
|
"coverage_analysis": {
|