@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.6',
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,CA6EjE"}
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. Start with the Model
35
- - Define TypeScript interfaces for all data entities
36
- - Define DTOs for create/update operations
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. Then build the Service (Data Access Layer)
40
- - Stateless HTTP/data access methods only
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. Then build the Store (State Management Layer)
46
- - Single source of truth for the feature state
47
- - Must track: data, loading, error, loaded states
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. Finally build the Components (UI Layer)
53
- - Read ALL data from the store via reactive bindings
54
- - Dispatch ALL actions to the store
55
- - NO direct HTTP calls
56
- - NO business logic
57
- - Only ephemeral UI state (dropdown open, tab index)
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA4CwD;iBAChD;aACJ;SACJ;KACJ,CAAC,CACL,CAAC;AACN,CAAC"}
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.6",
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",