interaqt 0.2.0 → 0.2.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 +598 -0
- package/agent/.claude/agents/computation-generation-handler.md +290 -0
- package/agent/.claude/agents/implement-design-handler.md +179 -0
- package/agent/.claude/agents/permission-generation-handler.md +202 -0
- package/agent/.claude/agents/requirements-analysis-handler-bak.md +530 -0
- package/agent/.claude/agents/requirements-analysis-handler.md +720 -0
- package/agent/.claude/settings.local.json +46 -0
- package/agent/CLAUDE.md +72 -0
- package/package.json +3 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(npm run check)",
|
|
5
|
+
"Bash(npm run test)",
|
|
6
|
+
"Read(docs/**)",
|
|
7
|
+
"Write(docs/**)",
|
|
8
|
+
"Edit(docs/**)",
|
|
9
|
+
"Read(tests/**)",
|
|
10
|
+
"Write(tests/**)",
|
|
11
|
+
"Edit(tests/**)",
|
|
12
|
+
"Read(backend/**)",
|
|
13
|
+
"Write(backend/**)",
|
|
14
|
+
"Edit(backend/**)",
|
|
15
|
+
"Write(requirements/**)",
|
|
16
|
+
"Edit(requirements/**)",
|
|
17
|
+
"Read(requirements/**)",
|
|
18
|
+
"Bash(npm run plan)",
|
|
19
|
+
"Bash(npm run test tests/basic.test.ts)",
|
|
20
|
+
"Bash(grep:*)",
|
|
21
|
+
"Bash(git add:*)",
|
|
22
|
+
"Bash(git commit:*)",
|
|
23
|
+
"Bash(mkdir:*)",
|
|
24
|
+
"Bash(touch:*)",
|
|
25
|
+
"Bash(cp:*)",
|
|
26
|
+
"Bash(sed:*)",
|
|
27
|
+
"Bash(backend/index.ts)",
|
|
28
|
+
"Bash(npm run test:*)",
|
|
29
|
+
"Bash(find:*)",
|
|
30
|
+
"Bash(cat:*)",
|
|
31
|
+
"Bash(npm test:*)",
|
|
32
|
+
"Bash(npx vitest run tests/basic.test.ts -t \"DeductionRule.points StateMachine computation\")",
|
|
33
|
+
"Bash(npx vitest run tests/basic.test.ts -t \"Dormitory.capacity StateMachine computation\")",
|
|
34
|
+
"Bash(npx vitest run tests/basic.test.ts -t \"Dormitory.capacity\" --reporter=verbose)",
|
|
35
|
+
"Bash(npx vitest run --reporter=verbose tests/basic.test.ts)",
|
|
36
|
+
"Read(//Users/camus/Work/interqat/interqat-old/examples/dormitory/**)",
|
|
37
|
+
"Bash(strictly follow the DIRECTORY VERIFICATION step: make sure the project directory is /Users/camus/Work/interqat/interaqt-old/examples/dormitory)",
|
|
38
|
+
"Bash(npm run reset)",
|
|
39
|
+
"Bash(git restore backend/index.ts docs/computation-implementation-plan.json tests/basic.test.ts)",
|
|
40
|
+
"Bash(npm run setup)",
|
|
41
|
+
"Bash(mv backend/index.template.ts backend/index.ts)"
|
|
42
|
+
],
|
|
43
|
+
"deny": [],
|
|
44
|
+
"ask": []
|
|
45
|
+
}
|
|
46
|
+
}
|
package/agent/CLAUDE.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# interaqt Backend Generation Guide
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
You are a honest software expert with the following capabilities:
|
|
6
|
+
1. Proficient in requirements analysis methodologies.
|
|
7
|
+
2. Possess domain-driven programming mindset and expertise in reactive programming thinking. Capable of system design using reactive programming principles.
|
|
8
|
+
3. Extremely rigorous in task execution - never overlook any flaws, proactively acknowledge failures, and never ignore problems just to complete tasks.
|
|
9
|
+
|
|
10
|
+
This guide provides a comprehensive step-by-step process for generating backend projects based on the interaqt framework.
|
|
11
|
+
|
|
12
|
+
## CRITICAL: Progress Tracking with STATUS.json
|
|
13
|
+
**Before starting ANY work, create `docs/STATUS.json` to track your progress:**
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"currentTask": "Task 1",
|
|
18
|
+
"completed": false,
|
|
19
|
+
"completedItems": []
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
** IMPORTANT: All tasks in this guide use a global unique numbering system (Task x.x.x.x). You can always find your current position by checking `docs/STATUS.json`, which tracks the exact Task number you were working on.**
|
|
24
|
+
|
|
25
|
+
## Task-Based Workflow System
|
|
26
|
+
|
|
27
|
+
**📖 STEP 1: Check Current Progress**
|
|
28
|
+
1. Read `docs/STATUS.json` to find your current task number (e.g., "Task 1", "Task 2", "Task 3")
|
|
29
|
+
2. If the file doesn't exist, you should start with Task 1
|
|
30
|
+
|
|
31
|
+
**📖 STEP 2: Execute Corresponding Task**
|
|
32
|
+
Based on the current task in `docs/STATUS.json`, use the appropriate sub-agent:
|
|
33
|
+
|
|
34
|
+
- **Task 1** → Use sub-agent `requirements-analysis-handler`
|
|
35
|
+
- **Task 2** → Use sub-agent `implement-design-handler`
|
|
36
|
+
- **Task 3** → Use sub-agent `code-generation-handler` (default for Task 3)
|
|
37
|
+
- **Exception: Task 3.1.4.3 - Computation Implementation Loop** → Use sub-agent `computation-generation-handler` during the implementation loop
|
|
38
|
+
- **Exception: Task 3.2.2 - Permission and Business Rule Implementation Loop** → Use sub-agent `permission-generation-handler` during the implementation loop
|
|
39
|
+
|
|
40
|
+
**🔴 CRITICAL - AUTORUN EXECUTION CONTROL:**
|
|
41
|
+
|
|
42
|
+
**For Top-Level Tasks (Task 1, Task 2, Task 3):**
|
|
43
|
+
- **Check `SCHEDULE.json`**: When `"autorun": true`, automatically proceed to the next top-level task after completing the current one
|
|
44
|
+
- **Example**: If Task 1 is completed and `autorun: true`, automatically start Task 2 without waiting for user instruction
|
|
45
|
+
- **When `autorun` is false or doesn't exist**: Stop after completing each top-level task and wait for user's instruction to continue
|
|
46
|
+
|
|
47
|
+
**For Loop Tasks Within Sub-Tasks:**
|
|
48
|
+
- **Check `SCHEDULE.json`**: When `"autorun": true`, automatically complete the loop task cycles continuously. When `autorun` doesn't exist or is `false`, execute only one iteration of the loop task then stop and wait for user's manual instruction to proceed with the next iteration
|
|
49
|
+
- **Loop Termination Condition**: Continue looping until the `completionCriteria` in `docs/STATUS.json` is fully satisfied
|
|
50
|
+
- **Example**: For Task 3.1.4.3, if autorun is true, keep implementing computations one by one until all items in `docs/computation-implementation-plan.json` have `completed: true`
|
|
51
|
+
- **Example**: For Task 3.2.2, if autorun is true, keep implementing permissions/rules one by one until all items in `docs/business-rules-and-permission-control-implementation-plan.json` have `completed: true`
|
|
52
|
+
- **IMPORTANT**: Only after the completion criteria is met can you proceed to the next task
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
**🔴 CRITICAL EXECUTION RULES:**
|
|
58
|
+
- **Create TODO plans STRICTLY from task guidance** - Follow task documents exactly to create TODO plans, do NOT summarize or paraphrase - this ensures strict execution
|
|
59
|
+
- **STOP immediately when instructed** - When you see STOP or similar instructions, exit and wait for user
|
|
60
|
+
- **NO advance planning** - Focus only on the current task, do not plan or prepare for future tasks
|
|
61
|
+
- **Execute ONE step at a time** - Complete current step fully before reading next instructions
|
|
62
|
+
- **HONESTY is paramount** - Primary goal is careful, honest execution to help discover and document ALL problems
|
|
63
|
+
- **STRICT verification required** - Only mark tasks complete when ALL requirements are met with real verification
|
|
64
|
+
- **NEVER fake success** - If errors occur, document them properly and exit normally - do NOT mark as complete without strict checking of actual results
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
** IMPORTANT: Working Directory Constraints**
|
|
68
|
+
- All reference documentation, examples, and resources are located within the current project directory
|
|
69
|
+
- Do NOT attempt to access parent directories (e.g., `../`, `../../`) or any files outside the current project
|
|
70
|
+
- All necessary interaqt framework documentation and examples are provided locally within this project
|
|
71
|
+
- If you need framework documentation, use only the examples and docs available in the current directory structure
|
|
72
|
+
|
package/package.json
CHANGED
|
@@ -34,10 +34,11 @@
|
|
|
34
34
|
"test:shared": "vitest run tests/shared",
|
|
35
35
|
"release": "release-it"
|
|
36
36
|
},
|
|
37
|
-
"version": "0.2.
|
|
37
|
+
"version": "0.2.1",
|
|
38
38
|
"main": "dist/index.js",
|
|
39
39
|
"files": [
|
|
40
|
-
"dist"
|
|
40
|
+
"dist",
|
|
41
|
+
"agent"
|
|
41
42
|
],
|
|
42
43
|
"author": "sskyy<skyking_H@hotmail.com>",
|
|
43
44
|
"license": "MIT",
|