@vfarcic/dot-ai 0.1.0 → 0.3.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/README.md +64 -52
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -30,15 +30,20 @@ DevOps AI Toolkit discovers your cluster's capabilities and uses AI to recommend
|
|
|
30
30
|
|
|
31
31
|
### Installation
|
|
32
32
|
|
|
33
|
+
**For CLI usage:**
|
|
33
34
|
```bash
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
npm install && npm run build
|
|
35
|
+
# Install globally for command-line usage
|
|
36
|
+
npm install -g @vfarcic/dot-ai
|
|
37
37
|
|
|
38
38
|
# Required: Set up Claude API key
|
|
39
39
|
export ANTHROPIC_API_KEY=your_api_key_here
|
|
40
|
+
|
|
41
|
+
# Verify installation
|
|
42
|
+
dot-ai --version
|
|
40
43
|
```
|
|
41
44
|
|
|
45
|
+
**For MCP/AI Agent usage:** No installation needed - uses npx automatically
|
|
46
|
+
|
|
42
47
|
### Choose Your Usage Path
|
|
43
48
|
|
|
44
49
|
#### Option A: AI Agent Integration (Claude Code Example)
|
|
@@ -49,9 +54,8 @@ Perfect for conversational deployments with AI agents:
|
|
|
49
54
|
{
|
|
50
55
|
"mcpServers": {
|
|
51
56
|
"dot-ai": {
|
|
52
|
-
"command": "
|
|
53
|
-
"args": ["run", "start:mcp"],
|
|
54
|
-
"cwd": "/path/to/dot-ai",
|
|
57
|
+
"command": "npx",
|
|
58
|
+
"args": ["--package=@vfarcic/dot-ai", "npm", "run", "start:mcp"],
|
|
55
59
|
"env": {
|
|
56
60
|
"ANTHROPIC_API_KEY": "your_key_here",
|
|
57
61
|
"DOT_AI_SESSION_DIR": "./tmp/sessions",
|
|
@@ -97,84 +101,92 @@ Agent: ✅ Successfully deployed! Your application is running.
|
|
|
97
101
|
📖 **[Complete MCP Setup Guide →](docs/mcp-guide.md)** - Detailed configuration, troubleshooting, and examples
|
|
98
102
|
|
|
99
103
|
#### Option B: Command Line Interface
|
|
100
|
-
For scripting and direct usage:
|
|
104
|
+
For scripting and direct usage (requires global installation):
|
|
101
105
|
|
|
102
106
|
```bash
|
|
103
107
|
# 1. Get AI recommendations (includes cluster discovery)
|
|
104
|
-
|
|
108
|
+
dot-ai recommend --intent "deploy a web application" --session-dir ./tmp
|
|
105
109
|
|
|
106
110
|
# 2. Choose a solution
|
|
107
|
-
|
|
111
|
+
dot-ai choose-solution --solution-id sol_xxx --session-dir ./tmp
|
|
108
112
|
|
|
109
113
|
# 3. Configure step-by-step (all stages required)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
dot-ai answer-question --solution-id sol_xxx --stage required --answers {...}
|
|
115
|
+
dot-ai answer-question --solution-id sol_xxx --stage basic --answers {}
|
|
116
|
+
dot-ai answer-question --solution-id sol_xxx --stage advanced --answers {}
|
|
117
|
+
dot-ai answer-question --solution-id sol_xxx --stage open --answers {"open":"N/A"}
|
|
114
118
|
|
|
115
119
|
# 4. Generate manifests
|
|
116
|
-
|
|
120
|
+
dot-ai generate-manifests --solution-id sol_xxx --session-dir ./tmp
|
|
117
121
|
|
|
118
122
|
# 5. Deploy to cluster
|
|
119
|
-
|
|
123
|
+
dot-ai deploy-manifests --solution-id sol_xxx --session-dir ./tmp
|
|
120
124
|
```
|
|
121
125
|
|
|
122
126
|
📖 **[Complete CLI Guide →](docs/cli-guide.md)** - Detailed command-line interface documentation
|
|
123
127
|
|
|
124
|
-
##
|
|
128
|
+
## Troubleshooting
|
|
125
129
|
|
|
126
|
-
|
|
130
|
+
### Installation Issues
|
|
127
131
|
|
|
132
|
+
**Package not found:**
|
|
133
|
+
```bash
|
|
134
|
+
# If you get "package not found" errors:
|
|
135
|
+
npm cache clean --force
|
|
136
|
+
npm install -g @vfarcic/dot-ai
|
|
128
137
|
```
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
│
|
|
139
|
-
├── 🏗️ Architecture
|
|
140
|
-
│ ├── Design Overview ───────── Technical design & principles
|
|
141
|
-
│ ├── Stage-Based API ──────── Workflow stages & API design
|
|
142
|
-
│ └── Discovery Engine ─────── Cluster resource discovery
|
|
143
|
-
│
|
|
144
|
-
├── 🤖 AI & Integration
|
|
145
|
-
│ ├── Agent Patterns ───────── AI agent integration patterns
|
|
146
|
-
│ ├── Error Handling ───────── Error management & debugging
|
|
147
|
-
│ └── Function Registration ── Tool & function management
|
|
148
|
-
│
|
|
149
|
-
└── 📋 Reference
|
|
150
|
-
├── Context & Background ──── Project context & inspiration
|
|
151
|
-
├── Next Steps & Roadmap ──── Planned features & future vision
|
|
152
|
-
└── Complete Index ──────── Full documentation listing
|
|
138
|
+
|
|
139
|
+
**Permission errors on global install:**
|
|
140
|
+
```bash
|
|
141
|
+
# Use npm's recommended approach for global packages:
|
|
142
|
+
mkdir ~/.npm-global
|
|
143
|
+
npm config set prefix '~/.npm-global'
|
|
144
|
+
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
|
145
|
+
source ~/.bashrc
|
|
146
|
+
npm install -g @vfarcic/dot-ai
|
|
153
147
|
```
|
|
154
148
|
|
|
149
|
+
### CLI Issues
|
|
150
|
+
|
|
151
|
+
**"dot-ai: command not found":**
|
|
152
|
+
- Ensure global installation: `npm install -g @vfarcic/dot-ai`
|
|
153
|
+
- Check PATH includes npm global bin: `npm config get prefix`
|
|
154
|
+
- Verify installation: `npm list -g @vfarcic/dot-ai`
|
|
155
|
+
|
|
156
|
+
### MCP Issues
|
|
157
|
+
|
|
158
|
+
**MCP server won't start:**
|
|
159
|
+
- Verify environment variables are set in `.mcp.json`
|
|
160
|
+
- Check session directory exists and is writable
|
|
161
|
+
- Ensure `ANTHROPIC_API_KEY` is valid
|
|
162
|
+
|
|
163
|
+
**"No active cluster" errors:**
|
|
164
|
+
- Verify kubectl connectivity: `kubectl cluster-info`
|
|
165
|
+
- Check KUBECONFIG path in environment variables
|
|
166
|
+
- Test cluster access: `kubectl get nodes`
|
|
167
|
+
|
|
168
|
+
## Documentation
|
|
169
|
+
|
|
155
170
|
### 🚀 Getting Started
|
|
156
|
-
- **[CLI Guide](docs/cli-guide.md)** - Complete command-line usage
|
|
157
|
-
- **[MCP Integration Guide](docs/mcp-guide.md)** -
|
|
171
|
+
- **[CLI Guide](docs/cli-guide.md)** - Complete command-line usage and examples
|
|
172
|
+
- **[MCP Integration Guide](docs/mcp-guide.md)** - AI tools integration (Claude Code, Cursor)
|
|
158
173
|
|
|
159
|
-
### 👩💻 Development
|
|
174
|
+
### 👩💻 Development
|
|
160
175
|
- **[API Reference](docs/API.md)** - TypeScript interfaces and programmatic usage
|
|
161
|
-
- **[Development Guide](docs/DEVELOPMENT.md)** - Contributing,
|
|
162
|
-
- **[Manual Testing Guide](docs/MANUAL_TESTING.md)** - Testing procedures and examples
|
|
176
|
+
- **[Development Guide](docs/DEVELOPMENT.md)** - Contributing, setup, and testing
|
|
163
177
|
|
|
164
178
|
### 🏗️ Architecture
|
|
165
|
-
- **[Design Overview](docs/design.md)** - Technical design
|
|
179
|
+
- **[Design Overview](docs/design.md)** - Technical design and principles
|
|
166
180
|
- **[Stage-Based API](docs/STAGE_BASED_API.md)** - Workflow stages and API design
|
|
167
|
-
- **[Discovery Engine](docs/discovery-engine.md)** - Cluster resource discovery
|
|
181
|
+
- **[Discovery Engine](docs/discovery-engine.md)** - Cluster resource discovery
|
|
168
182
|
|
|
169
183
|
### 🤖 AI & Integration
|
|
170
|
-
- **[Agent Integration](docs/AGENTS.md)** - AI agent patterns and integration
|
|
171
184
|
- **[Error Handling](docs/error-handling.md)** - Error management and debugging
|
|
172
185
|
- **[Function Registration](docs/function-registration.md)** - Tool and function management
|
|
173
186
|
|
|
174
187
|
### 📋 Reference
|
|
175
|
-
- **[Context
|
|
176
|
-
- **[Next Steps](docs/NEXT_STEPS.md)** -
|
|
177
|
-
- **[Complete Documentation Index](docs/README.md)** - Full listing of all documentation
|
|
188
|
+
- **[Context & Background](docs/CONTEXT.md)** - Project context and inspiration
|
|
189
|
+
- **[Next Steps & Roadmap](docs/NEXT_STEPS.md)** - Planned features and future vision
|
|
178
190
|
|
|
179
191
|
**Quick Navigation:**
|
|
180
192
|
- **New to DevOps AI Toolkit?** → Start with [CLI Guide](docs/cli-guide.md) or [MCP Guide](docs/mcp-guide.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vfarcic/dot-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
"start:mcp": "node dist/mcp/server.js",
|
|
31
31
|
"lint": "eslint src/ --ext .ts",
|
|
32
32
|
"format": "prettier --write src/",
|
|
33
|
-
"ci": "npm run lint && npm run ci:build && npm run ci:test && npm
|
|
33
|
+
"ci": "npm run lint && npm run ci:build && npm run ci:test && npm audit --audit-level moderate",
|
|
34
34
|
"ci:test": "npm run test",
|
|
35
35
|
"ci:build": "npm run build:prod",
|
|
36
|
-
"ci:security": "npm audit --audit-level moderate",
|
|
37
36
|
"audit": "npm audit",
|
|
38
37
|
"version:dev": "npm version patch --preid=devel --prerelease",
|
|
39
38
|
"version:prod": "npm version patch"
|
|
@@ -119,6 +118,8 @@
|
|
|
119
118
|
"moduleNameMapper": {
|
|
120
119
|
"@kubernetes/client-node": "<rootDir>/tests/__mocks__/@kubernetes/client-node.ts"
|
|
121
120
|
},
|
|
122
|
-
"setupFilesAfterEnv": [
|
|
121
|
+
"setupFilesAfterEnv": [
|
|
122
|
+
"<rootDir>/tests/setup.ts"
|
|
123
|
+
]
|
|
123
124
|
}
|
|
124
125
|
}
|