@gherk/reactive-architecture 1.4.6 → 1.4.7
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/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import { registerPlanFeaturePrompt } from './prompts/plan-feature.js';
|
|
|
29
29
|
// Create the MCP server
|
|
30
30
|
const server = new McpServer({
|
|
31
31
|
name: 'reactive-architecture',
|
|
32
|
-
version: '1.4.
|
|
32
|
+
version: '1.4.7',
|
|
33
33
|
});
|
|
34
34
|
// Register all tools
|
|
35
35
|
registerArchitectureGuideTool(server);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-feature.d.ts","sourceRoot":"","sources":["../../src/prompts/plan-feature.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGpE,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"plan-feature.d.ts","sourceRoot":"","sources":["../../src/prompts/plan-feature.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGpE,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuEjE"}
|
|
@@ -31,30 +31,24 @@ ${description}
|
|
|
31
31
|
## Architecture Requirements
|
|
32
32
|
Follow the **reactive Component → Store → Service** architecture pattern STRICTLY:
|
|
33
33
|
|
|
34
|
-
### 1.
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
- Models are the contract between all layers
|
|
34
|
+
### 1. Route (Entry Point)
|
|
35
|
+
- **Check/Create Route**: Define the URL first.
|
|
36
|
+
- If it's a routed feature, update \`bootstrap.routes.ts\` or the module routes.
|
|
38
37
|
|
|
39
|
-
### 2.
|
|
40
|
-
-
|
|
41
|
-
- Returns observables or promises
|
|
42
|
-
- No business logic, no state, no caching
|
|
43
|
-
- One method per API endpoint
|
|
38
|
+
### 2. Model (Contract)
|
|
39
|
+
- Define TypeScript interfaces/DTOs.
|
|
44
40
|
|
|
45
|
-
### 3.
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
- Contains all business logic (filtering, sorting, validation orchestration)
|
|
49
|
-
- Calls the service for data operations
|
|
50
|
-
- Exposes reactive selectors/computed values
|
|
41
|
+
### 3. Service (Data Layer)
|
|
42
|
+
- Stateless HTTP methods.
|
|
43
|
+
- No business logic.
|
|
51
44
|
|
|
52
|
-
### 4.
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
45
|
+
### 4. Store (Logic Layer)
|
|
46
|
+
- Single source of truth.
|
|
47
|
+
- Business logic & State.
|
|
48
|
+
|
|
49
|
+
### 5. Component (UI Layer)
|
|
50
|
+
- Visuals only.
|
|
51
|
+
- Connects to Store.
|
|
58
52
|
|
|
59
53
|
### 5. Plan Tests
|
|
60
54
|
- Service: mock HTTP, verify request configuration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-feature.js","sourceRoot":"","sources":["../../src/prompts/plan-feature.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,uBAAuB;AACvB,gFAAgF;AAChF,iEAAiE;AACjE,2EAA2E;AAC3E,gFAAgF;AAGhF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,yBAAyB,CAAC,MAAiB;IACvD,MAAM,CAAC,MAAM,CACT,cAAc,EACd,iEAAiE;QACjE,0EAA0E,EAC1E;QACI,YAAY,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACL,0EAA0E,CAC7E;QACL,SAAS,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,CAAC,gDAAgD,CAAC;QAC/D,WAAW,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,CAAC,iDAAiD,CAAC;KACnE,EACD,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;QACjD,QAAQ,EAAE;YACN;gBACI,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACL,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,mCAAmC,YAAY,mBAAmB,SAAS;;;EAGvG,WAAW
|
|
1
|
+
{"version":3,"file":"plan-feature.js","sourceRoot":"","sources":["../../src/prompts/plan-feature.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,uBAAuB;AACvB,gFAAgF;AAChF,iEAAiE;AACjE,2EAA2E;AAC3E,gFAAgF;AAGhF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,yBAAyB,CAAC,MAAiB;IACvD,MAAM,CAAC,MAAM,CACT,cAAc,EACd,iEAAiE;QACjE,0EAA0E,EAC1E;QACI,YAAY,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACL,0EAA0E,CAC7E;QACL,SAAS,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,CAAC,gDAAgD,CAAC;QAC/D,WAAW,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,CAAC,iDAAiD,CAAC;KACnE,EACD,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;QACjD,QAAQ,EAAE;YACN;gBACI,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACL,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,mCAAmC,YAAY,mBAAmB,SAAS;;;EAGvG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAsCwD;iBAChD;aACJ;SACJ;KACJ,CAAC,CACL,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gherk/reactive-architecture",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "MCP server that teaches AI assistants the reactive architecture philosophy: Component → Store → Service + Controller → Service → Repository",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|