@vfarcic/dot-ai 0.27.0 → 0.29.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
|
@@ -15,73 +15,23 @@ Analyze the user's intent and determine the best solution(s). This could be:
|
|
|
15
15
|
- A combination of resources that can actually integrate and work together to create a complete solution
|
|
16
16
|
- Multiple alternative approaches ranked by effectiveness
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
1. A score from 0-100 for how well it meets the user's needs
|
|
20
|
-
2. Specific reasons why this solution addresses the intent
|
|
21
|
-
3. Whether it's a single resource or combination, and why
|
|
22
|
-
4. Production readiness and best practices
|
|
18
|
+
## Validation Requirements
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
- Semantic meaning and typical use cases
|
|
26
|
-
- Resource relationships and orchestration patterns
|
|
27
|
-
- Complete end-to-end solutions vs partial solutions
|
|
28
|
-
- Production patterns and best practices
|
|
29
|
-
- **Custom Resource Definitions (CRDs)** that may provide simpler, higher-level abstractions
|
|
30
|
-
- Platform operators (Crossplane, Knative, etc.) that might offer better user experience
|
|
31
|
-
- User experience - simpler declarative approaches often score higher than complex multi-resource solutions
|
|
32
|
-
- **Schema-based capability analysis**: Examine the actual resource schema fields to determine what capabilities each resource truly supports
|
|
33
|
-
- **Intent-solution alignment**: Ensure solutions directly fulfill the user's stated intent rather than just providing prerequisites or supporting infrastructure
|
|
34
|
-
- **Complete intent fulfillment**: Solutions must address ALL parts of the user's intent, not just some aspects
|
|
20
|
+
**Capability Verification**: For each resource in your solution, examine its schema fields to verify it can fulfill the user's requirements. Do not assume capabilities that aren't explicitly present in the schema fields.
|
|
35
21
|
|
|
36
|
-
|
|
22
|
+
**Complete Solutions**: Include ALL resource types needed for the solution to work. If your analysis mentions integration with other resources, include those resources in your resources array.
|
|
37
23
|
|
|
38
|
-
**
|
|
24
|
+
**Integration Validation**: For multi-resource solutions, verify that resources have schema fields to reference each other.
|
|
39
25
|
|
|
40
|
-
|
|
41
|
-
For each resource schema in the solution, examine field patterns that indicate capabilities:
|
|
42
|
-
- **Field names and types**: Look for schema fields whose names, descriptions, or types relate to the user's intent
|
|
43
|
-
- **Nested structures**: Check for complex objects that suggest advanced functionality
|
|
44
|
-
- **Reference patterns**: Identify fields that reference other resources or external systems
|
|
45
|
-
- **Configuration options**: Note fields that allow customization relevant to the user's needs
|
|
46
|
-
- **Capability precision**: Distinguish between similar but different capabilities (e.g., external connections vs direct integration, configuration vs execution, monitoring vs logging)
|
|
47
|
-
|
|
48
|
-
### Intent-Schema Matching Process
|
|
49
|
-
1. **Extract keywords** from user intent (e.g., "storage", "network", "scale", "database", "monitor")
|
|
50
|
-
2. **Search all schemas** in the solution for matching or related terminology in field names, descriptions, and types
|
|
51
|
-
3. **Evaluate field depth**: Complex nested structures often indicate more comprehensive capabilities
|
|
52
|
-
4. **Check for extension points**: Fields that allow custom configuration or references to external resources
|
|
53
|
-
|
|
54
|
-
### Solution Scoring Based on Schema Analysis
|
|
55
|
-
- **High relevance (80-100 points)**: Schemas contain multiple fields directly related to user intent
|
|
56
|
-
- **Medium relevance (50-79 points)**: Schemas contain some fields that could support user intent
|
|
57
|
-
- **Low relevance (20-49 points)**: Schemas have minimal or indirect support for user intent
|
|
58
|
-
- **Reject (0-19 points)**: Schemas lack any fields related to user intent - DO NOT include these solutions
|
|
59
|
-
|
|
60
|
-
## CRD Preference Guidelines
|
|
61
|
-
|
|
62
|
-
When evaluating CRDs vs standard Kubernetes resources:
|
|
63
|
-
- **Prefer CRDs with matching capabilities**: If a CRD's schemas directly address the user's specific needs, it should score higher than manually combining multiple standard resources
|
|
64
|
-
- **Favor purpose-built solutions**: CRDs designed for specific use cases should score higher than generic resource combinations when the use case aligns AND the schemas support the required capabilities
|
|
65
|
-
- **Value comprehensive functionality**: A single CRD that handles multiple related concerns should score higher than manually orchestrating separate resources for the same outcome
|
|
66
|
-
- **Consider operational simplicity**: CRDs that provide intuitive, domain-specific interfaces should be preferred over complex multi-resource configurations
|
|
67
|
-
- **Give preference to platform abstractions**: For application deployment scenarios, purpose-built CRDs with comprehensive application platform features should be weighted more favorably than basic resources requiring manual orchestration
|
|
68
|
-
- **Match scope to intent**: Only prefer CRDs when their schemas genuinely align with what the user is trying to achieve
|
|
69
|
-
|
|
70
|
-
## Resource Combination Validation
|
|
71
|
-
|
|
72
|
-
**CRITICAL**: When proposing combination solutions, verify schema-based integration compatibility:
|
|
73
|
-
|
|
74
|
-
- **Check integration fields**: For combinations, ensure one resource has schema fields that can reference or integrate with the other resource
|
|
75
|
-
- **Verify field compatibility**: Analyze schemas to confirm resources have compatible integration points before combining them
|
|
76
|
-
- **Reject incompatible combinations**: Do not suggest combinations where resource schemas lack the necessary fields to work together
|
|
26
|
+
## Scoring Guidelines
|
|
77
27
|
|
|
78
|
-
|
|
28
|
+
Score solutions based on completeness and schema validation:
|
|
79
29
|
|
|
80
|
-
**
|
|
81
|
-
- **
|
|
82
|
-
- **
|
|
83
|
-
- **
|
|
84
|
-
- **
|
|
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
|
|
85
35
|
|
|
86
36
|
## Response Format
|
|
87
37
|
|
|
@@ -100,21 +50,10 @@ When evaluating CRDs vs standard Kubernetes resources:
|
|
|
100
50
|
"score": 85,
|
|
101
51
|
"description": "Brief description of this solution",
|
|
102
52
|
"reasons": ["reason1", "reason2"],
|
|
103
|
-
"analysis": "Detailed explanation of why this solution meets the user's needs"
|
|
53
|
+
"analysis": "Detailed explanation of schema analysis and why this solution meets the user's needs"
|
|
104
54
|
}
|
|
105
55
|
]
|
|
106
56
|
}
|
|
107
57
|
```
|
|
108
58
|
|
|
109
|
-
|
|
110
|
-
- `kind`: The resource type (e.g., "Deployment", "Service", "AppClaim")
|
|
111
|
-
- `apiVersion`: The API version (e.g., "apps/v1", "v1")
|
|
112
|
-
- `group`: The API group (empty string for core resources, e.g., "apps", "devopstoolkit.live")
|
|
113
|
-
|
|
114
|
-
## Scoring Guidelines
|
|
115
|
-
|
|
116
|
-
- **90-100**: Complete solution, fully addresses ALL aspects of user intent
|
|
117
|
-
- **70-89**: Good solution, addresses most aspects of user intent with minor gaps
|
|
118
|
-
- **50-69**: Partial solution, addresses some aspects of user intent but requires additional work
|
|
119
|
-
- **30-49**: Incomplete solution, only addresses part of the user intent or provides supporting infrastructure without primary functionality
|
|
120
|
-
- **0-29**: Poor fit, doesn't meaningfully address the user's intent
|
|
59
|
+
**IMPORTANT**: In your analysis field, explicitly explain which schema fields enable each requirement from the user intent. If a requirement cannot be fulfilled by available schema fields, explain this and score accordingly.
|