@vfarcic/dot-ai 0.30.0 → 0.32.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vfarcic/dot-ai",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "description": "Universal Kubernetes application deployment agent with CLI and MCP interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,10 +10,12 @@ You are a Kubernetes expert helping to determine which resource(s) best meet a u
10
10
 
11
11
  ## Instructions
12
12
 
13
- Analyze the user's intent and determine the best solution(s). This could be:
13
+ Analyze the user's intent and determine the best solution(s). **Provide multiple alternative approaches** ranked by effectiveness, such as:
14
14
  - A single resource that fully addresses the need
15
15
  - A combination of resources that can actually integrate and work together to create a complete solution
16
- - Multiple alternative approaches ranked by effectiveness
16
+ - Different approaches with varying complexity and capabilities
17
+
18
+ **IMPORTANT**: Always provide at least 2-3 different solution alternatives when possible, even if some score lower than others. Users benefit from seeing multiple options to choose from.
17
19
 
18
20
  ## Validation Requirements
19
21
 
@@ -25,13 +27,23 @@ Analyze the user's intent and determine the best solution(s). This could be:
25
27
 
26
28
  ## Scoring Guidelines
27
29
 
28
- Score solutions based on completeness and schema validation:
30
+ **CRITICAL**: Identify whether each solution uses CRDs or standard Kubernetes resources, then apply the appropriate scoring range:
31
+
32
+ ### For CRD/Custom Resource Solutions:
33
+ - **90-100**: CRD that clearly addresses user intent - operators provide higher-level abstractions and automatic resource management
34
+ - **70-89**: CRD with partial relevance to user intent - may work but not ideal fit
35
+ - **30-69**: CRD with limited relevance - significant gaps for this use case
36
+ - **0-29**: CRD completely irrelevant to user intent
37
+
38
+ ### For Standard Kubernetes Resource Solutions:
39
+ - **80-89**: Standard resource combination that fully addresses user intent
40
+ - **60-79**: Standard resources with minor gaps or additional complexity
41
+ - **30-59**: Standard resources with significant limitations - major gaps in functionality
42
+ - **0-29**: Standard resources poorly suited for this intent
43
+
44
+ **Rationale**: CRDs get preference when relevant because operators provide domain expertise and simplified management. Standard resources remain reliable when no suitable CRDs exist.
29
45
 
30
- - **90-100**: Complete solution, schema fields directly support ALL requirements
31
- - **70-89**: Good solution, schema fields support most requirements with minor gaps
32
- - **50-69**: Partial solution, schema fields support some requirements but missing others
33
- - **30-49**: Incomplete solution, schema fields only partially support requirements
34
- - **0-29**: Poor fit, schema fields don't meaningfully support the requirements
46
+ **IMPORTANT**: Never score a CRD in the 80-89 range (reserved for standard resources) or standard resources in the 90-100 range (reserved for CRDs).
35
47
 
36
48
  ## Response Format
37
49
 
@@ -39,18 +51,37 @@ Score solutions based on completeness and schema validation:
39
51
  {
40
52
  "solutions": [
41
53
  {
42
- "type": "single|combination",
54
+ "type": "combination",
43
55
  "resources": [
44
56
  {
45
57
  "kind": "Deployment",
46
58
  "apiVersion": "apps/v1",
47
59
  "group": "apps"
60
+ },
61
+ {
62
+ "kind": "Service",
63
+ "apiVersion": "v1",
64
+ "group": ""
48
65
  }
49
66
  ],
50
- "score": 85,
51
- "description": "Brief description of this solution",
52
- "reasons": ["reason1", "reason2"],
67
+ "score": 95,
68
+ "description": "Complete application deployment with networking",
69
+ "reasons": ["Provides full application lifecycle", "Includes network access"],
53
70
  "analysis": "Detailed explanation of schema analysis and why this solution meets the user's needs"
71
+ },
72
+ {
73
+ "type": "single",
74
+ "resources": [
75
+ {
76
+ "kind": "Deployment",
77
+ "apiVersion": "apps/v1",
78
+ "group": "apps"
79
+ }
80
+ ],
81
+ "score": 75,
82
+ "description": "Basic application deployment",
83
+ "reasons": ["Simple deployment option", "Lower complexity"],
84
+ "analysis": "Alternative approach with reduced functionality but simpler setup"
54
85
  }
55
86
  ]
56
87
  }