@vfarcic/dot-ai 0.5.1 → 0.7.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.
Files changed (146) hide show
  1. package/dist/cli.d.ts +3 -0
  2. package/dist/cli.d.ts.map +1 -0
  3. package/{src/cli.ts → dist/cli.js} +19 -26
  4. package/dist/core/claude.d.ts +42 -0
  5. package/dist/core/claude.d.ts.map +1 -0
  6. package/dist/core/claude.js +229 -0
  7. package/dist/core/deploy-operation.d.ts +38 -0
  8. package/dist/core/deploy-operation.d.ts.map +1 -0
  9. package/dist/core/deploy-operation.js +101 -0
  10. package/dist/core/discovery.d.ts +162 -0
  11. package/dist/core/discovery.d.ts.map +1 -0
  12. package/dist/core/discovery.js +758 -0
  13. package/dist/core/error-handling.d.ts +167 -0
  14. package/dist/core/error-handling.d.ts.map +1 -0
  15. package/dist/core/error-handling.js +399 -0
  16. package/dist/core/index.d.ts +42 -0
  17. package/dist/core/index.d.ts.map +1 -0
  18. package/dist/core/index.js +123 -0
  19. package/dist/core/kubernetes-utils.d.ts +38 -0
  20. package/dist/core/kubernetes-utils.d.ts.map +1 -0
  21. package/dist/core/kubernetes-utils.js +177 -0
  22. package/dist/core/memory.d.ts +45 -0
  23. package/dist/core/memory.d.ts.map +1 -0
  24. package/dist/core/memory.js +113 -0
  25. package/dist/core/schema.d.ts +187 -0
  26. package/dist/core/schema.d.ts.map +1 -0
  27. package/dist/core/schema.js +655 -0
  28. package/dist/core/session-utils.d.ts +29 -0
  29. package/dist/core/session-utils.d.ts.map +1 -0
  30. package/dist/core/session-utils.js +121 -0
  31. package/dist/core/workflow.d.ts +70 -0
  32. package/dist/core/workflow.d.ts.map +1 -0
  33. package/dist/core/workflow.js +161 -0
  34. package/dist/index.d.ts +15 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +32 -0
  37. package/dist/interfaces/cli.d.ts +74 -0
  38. package/dist/interfaces/cli.d.ts.map +1 -0
  39. package/dist/interfaces/cli.js +769 -0
  40. package/dist/interfaces/mcp.d.ts +30 -0
  41. package/dist/interfaces/mcp.d.ts.map +1 -0
  42. package/dist/interfaces/mcp.js +105 -0
  43. package/dist/mcp/server.d.ts +9 -0
  44. package/dist/mcp/server.d.ts.map +1 -0
  45. package/dist/mcp/server.js +151 -0
  46. package/dist/tools/answer-question.d.ts +27 -0
  47. package/dist/tools/answer-question.d.ts.map +1 -0
  48. package/dist/tools/answer-question.js +696 -0
  49. package/dist/tools/choose-solution.d.ts +23 -0
  50. package/dist/tools/choose-solution.d.ts.map +1 -0
  51. package/dist/tools/choose-solution.js +171 -0
  52. package/dist/tools/deploy-manifests.d.ts +25 -0
  53. package/dist/tools/deploy-manifests.d.ts.map +1 -0
  54. package/dist/tools/deploy-manifests.js +74 -0
  55. package/dist/tools/generate-manifests.d.ts +23 -0
  56. package/dist/tools/generate-manifests.d.ts.map +1 -0
  57. package/dist/tools/generate-manifests.js +424 -0
  58. package/dist/tools/index.d.ts +11 -0
  59. package/dist/tools/index.d.ts.map +1 -0
  60. package/dist/tools/index.js +34 -0
  61. package/dist/tools/recommend.d.ts +23 -0
  62. package/dist/tools/recommend.d.ts.map +1 -0
  63. package/dist/tools/recommend.js +332 -0
  64. package/package.json +124 -2
  65. package/.claude/commands/context-load.md +0 -11
  66. package/.claude/commands/context-save.md +0 -16
  67. package/.claude/commands/prd-done.md +0 -115
  68. package/.claude/commands/prd-get.md +0 -25
  69. package/.claude/commands/prd-start.md +0 -87
  70. package/.claude/commands/task-done.md +0 -77
  71. package/.claude/commands/tests-reminder.md +0 -32
  72. package/.claude/settings.local.json +0 -20
  73. package/.eslintrc.json +0 -25
  74. package/.github/workflows/ci.yml +0 -170
  75. package/.prettierrc.json +0 -10
  76. package/.teller.yml +0 -8
  77. package/CLAUDE.md +0 -162
  78. package/assets/images/logo.png +0 -0
  79. package/bin/dot-ai.ts +0 -47
  80. package/bin.js +0 -19
  81. package/destroy.sh +0 -45
  82. package/devbox.json +0 -13
  83. package/devbox.lock +0 -225
  84. package/docs/API.md +0 -449
  85. package/docs/CONTEXT.md +0 -49
  86. package/docs/DEVELOPMENT.md +0 -203
  87. package/docs/NEXT_STEPS.md +0 -97
  88. package/docs/STAGE_BASED_API.md +0 -97
  89. package/docs/cli-guide.md +0 -798
  90. package/docs/design.md +0 -750
  91. package/docs/discovery-engine.md +0 -515
  92. package/docs/error-handling.md +0 -429
  93. package/docs/function-registration.md +0 -157
  94. package/docs/mcp-guide.md +0 -416
  95. package/renovate.json +0 -51
  96. package/setup.sh +0 -111
  97. package/src/core/claude.ts +0 -280
  98. package/src/core/deploy-operation.ts +0 -127
  99. package/src/core/discovery.ts +0 -900
  100. package/src/core/error-handling.ts +0 -562
  101. package/src/core/index.ts +0 -143
  102. package/src/core/kubernetes-utils.ts +0 -218
  103. package/src/core/memory.ts +0 -148
  104. package/src/core/schema.ts +0 -830
  105. package/src/core/session-utils.ts +0 -97
  106. package/src/core/workflow.ts +0 -234
  107. package/src/index.ts +0 -18
  108. package/src/interfaces/cli.ts +0 -872
  109. package/src/interfaces/mcp.ts +0 -183
  110. package/src/mcp/server.ts +0 -131
  111. package/src/tools/answer-question.ts +0 -807
  112. package/src/tools/choose-solution.ts +0 -169
  113. package/src/tools/deploy-manifests.ts +0 -94
  114. package/src/tools/generate-manifests.ts +0 -502
  115. package/src/tools/index.ts +0 -41
  116. package/src/tools/recommend.ts +0 -370
  117. package/tests/__mocks__/@kubernetes/client-node.ts +0 -106
  118. package/tests/build-system.test.ts +0 -345
  119. package/tests/configuration.test.ts +0 -226
  120. package/tests/core/deploy-operation.test.ts +0 -38
  121. package/tests/core/discovery.test.ts +0 -1648
  122. package/tests/core/error-handling.test.ts +0 -632
  123. package/tests/core/schema.test.ts +0 -1658
  124. package/tests/core/session-utils.test.ts +0 -245
  125. package/tests/core.test.ts +0 -439
  126. package/tests/fixtures/configmap-no-labels.yaml +0 -8
  127. package/tests/fixtures/crossplane-app-configuration.yaml +0 -6
  128. package/tests/fixtures/crossplane-providers.yaml +0 -45
  129. package/tests/fixtures/crossplane-rbac.yaml +0 -48
  130. package/tests/fixtures/invalid-configmap.yaml +0 -8
  131. package/tests/fixtures/invalid-deployment.yaml +0 -17
  132. package/tests/fixtures/test-deployment.yaml +0 -28
  133. package/tests/fixtures/valid-configmap.yaml +0 -15
  134. package/tests/infrastructure.test.ts +0 -426
  135. package/tests/interfaces/cli.test.ts +0 -1036
  136. package/tests/interfaces/mcp.test.ts +0 -139
  137. package/tests/kubernetes-utils.test.ts +0 -200
  138. package/tests/mcp/server.test.ts +0 -126
  139. package/tests/setup.ts +0 -31
  140. package/tests/tools/answer-question.test.ts +0 -367
  141. package/tests/tools/choose-solution.test.ts +0 -481
  142. package/tests/tools/deploy-manifests.test.ts +0 -185
  143. package/tests/tools/generate-manifests.test.ts +0 -441
  144. package/tests/tools/index.test.ts +0 -111
  145. package/tests/tools/recommend.test.ts +0 -180
  146. package/tsconfig.json +0 -34
package/destroy.sh DELETED
@@ -1,45 +0,0 @@
1
- #!/bin/bash
2
-
3
- # destroy.sh - Cleanup script for DevOps AI Toolkit Kubernetes cluster
4
- # This script destroys the kind cluster and cleans up resources created by setup.sh
5
-
6
- set -e # Exit on any error
7
-
8
- KUBECONFIG_PATH="$PWD/kubeconfig.yaml"
9
- CLUSTER_NAME="dot-ai-test"
10
-
11
- echo "🧹 Destroying DevOps AI Toolkit Kubernetes cluster..."
12
-
13
- # Check if kind is available
14
- if ! command -v kind &> /dev/null; then
15
- echo "❌ Error: kind is not installed"
16
- echo "Cannot destroy cluster without kind CLI tool"
17
- exit 1
18
- fi
19
-
20
- # Delete the kind cluster
21
- echo "🗑️ Deleting kind cluster '$CLUSTER_NAME'..."
22
- if kind get clusters | grep -q "^$CLUSTER_NAME$"; then
23
- kind delete cluster --name "$CLUSTER_NAME"
24
- echo "✅ Cluster '$CLUSTER_NAME' deleted successfully"
25
- else
26
- echo "ℹ️ Cluster '$CLUSTER_NAME' not found (may already be deleted)"
27
- fi
28
-
29
- # Remove kubeconfig file
30
- if [ -f "$KUBECONFIG_PATH" ]; then
31
- echo "🗑️ Removing kubeconfig file..."
32
- rm -f "$KUBECONFIG_PATH"
33
- echo "✅ Kubeconfig file '$KUBECONFIG_PATH' removed"
34
- else
35
- echo "ℹ️ Kubeconfig file '$KUBECONFIG_PATH' not found"
36
- fi
37
-
38
- # Clean up any helm repositories that were added (optional cleanup)
39
- echo "🧹 Cleaning up helm repositories..."
40
- helm repo remove crossplane-stable 2>/dev/null || echo "ℹ️ crossplane-stable repo not found"
41
- helm repo remove crossplane-preview 2>/dev/null || echo "ℹ️ crossplane-preview repo not found"
42
-
43
- echo "🎉 Cleanup complete!"
44
- echo "💡 If you had KUBECONFIG exported, you may want to unset it:"
45
- echo " unset KUBECONFIG"
package/devbox.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
3
- "packages": [
4
- "kind@0.29.0",
5
- "git@2.49.0",
6
- "teller@2.0.7",
7
- "kubernetes-helm@3.18.3"
8
- ],
9
- "shell": {
10
- "init_hook": [],
11
- "scripts": {}
12
- }
13
- }
package/devbox.lock DELETED
@@ -1,225 +0,0 @@
1
- {
2
- "lockfile_version": "1",
3
- "packages": {
4
- "git@2.49.0": {
5
- "last_modified": "2025-06-20T02:24:11Z",
6
- "resolved": "github:NixOS/nixpkgs/076e8c6678d8c54204abcb4b1b14c366835a58bb#git",
7
- "source": "devbox-search",
8
- "version": "2.49.0",
9
- "systems": {
10
- "aarch64-darwin": {
11
- "outputs": [
12
- {
13
- "name": "out",
14
- "path": "/nix/store/ir2bhb7n3ngh0dg7p6jbhm1wa4d8gkb7-git-2.49.0",
15
- "default": true
16
- },
17
- {
18
- "name": "doc",
19
- "path": "/nix/store/f0bi1v08ki7pq6a4rzhjhnp5szj3940k-git-2.49.0-doc"
20
- }
21
- ],
22
- "store_path": "/nix/store/ir2bhb7n3ngh0dg7p6jbhm1wa4d8gkb7-git-2.49.0"
23
- },
24
- "aarch64-linux": {
25
- "outputs": [
26
- {
27
- "name": "out",
28
- "path": "/nix/store/5p8ljxbgnk31zxbz8hvrfkg1qfgiv3qi-git-2.49.0",
29
- "default": true
30
- },
31
- {
32
- "name": "debug",
33
- "path": "/nix/store/isw51rw1b78yw6k454m7h402k88n291w-git-2.49.0-debug"
34
- },
35
- {
36
- "name": "doc",
37
- "path": "/nix/store/hxw5vli42579b8bkxv6nq2p2z4vjvw97-git-2.49.0-doc"
38
- }
39
- ],
40
- "store_path": "/nix/store/5p8ljxbgnk31zxbz8hvrfkg1qfgiv3qi-git-2.49.0"
41
- },
42
- "x86_64-darwin": {
43
- "outputs": [
44
- {
45
- "name": "out",
46
- "path": "/nix/store/72qfjivfnm6kzdfbiavvici8bi3jzrs6-git-2.49.0",
47
- "default": true
48
- },
49
- {
50
- "name": "doc",
51
- "path": "/nix/store/900nidzjyaa0950wk104vzgb82h5wspi-git-2.49.0-doc"
52
- }
53
- ],
54
- "store_path": "/nix/store/72qfjivfnm6kzdfbiavvici8bi3jzrs6-git-2.49.0"
55
- },
56
- "x86_64-linux": {
57
- "outputs": [
58
- {
59
- "name": "out",
60
- "path": "/nix/store/rzqvhv48m3nh8g3j4k6jmz6yqy8apr95-git-2.49.0",
61
- "default": true
62
- },
63
- {
64
- "name": "debug",
65
- "path": "/nix/store/201xjz2py285323n3y7r30frdwbdnb6q-git-2.49.0-debug"
66
- },
67
- {
68
- "name": "doc",
69
- "path": "/nix/store/zcjdp82yx46w8yp1inxkkzb3a3k05a0m-git-2.49.0-doc"
70
- }
71
- ],
72
- "store_path": "/nix/store/rzqvhv48m3nh8g3j4k6jmz6yqy8apr95-git-2.49.0"
73
- }
74
- }
75
- },
76
- "github:NixOS/nixpkgs/nixpkgs-unstable": {
77
- "last_modified": "2025-06-01T15:36:18Z",
78
- "resolved": "github:NixOS/nixpkgs/5929de975bcf4c7c8d8b5ca65c8cd9ef9e44523e?lastModified=1748792178&narHash=sha256-BHmgfHlCJVNisJShVaEmfDIr%2FIp58i%2F4oFGlD1iK6lk%3D"
79
- },
80
- "kind@0.29.0": {
81
- "last_modified": "2025-06-20T02:24:11Z",
82
- "resolved": "github:NixOS/nixpkgs/076e8c6678d8c54204abcb4b1b14c366835a58bb#kind",
83
- "source": "devbox-search",
84
- "version": "0.29.0",
85
- "systems": {
86
- "aarch64-darwin": {
87
- "outputs": [
88
- {
89
- "name": "out",
90
- "path": "/nix/store/ndl4z2y9nsn7n5ii7hs49ddg79p2pb6a-kind-0.29.0",
91
- "default": true
92
- }
93
- ],
94
- "store_path": "/nix/store/ndl4z2y9nsn7n5ii7hs49ddg79p2pb6a-kind-0.29.0"
95
- },
96
- "aarch64-linux": {
97
- "outputs": [
98
- {
99
- "name": "out",
100
- "path": "/nix/store/j9sdb4vkf9ck1kvfy8vvn17cq3a21s6a-kind-0.29.0",
101
- "default": true
102
- }
103
- ],
104
- "store_path": "/nix/store/j9sdb4vkf9ck1kvfy8vvn17cq3a21s6a-kind-0.29.0"
105
- },
106
- "x86_64-darwin": {
107
- "outputs": [
108
- {
109
- "name": "out",
110
- "path": "/nix/store/161h1s9n2260g2lr3dsjmfczv8gjx5q9-kind-0.29.0",
111
- "default": true
112
- }
113
- ],
114
- "store_path": "/nix/store/161h1s9n2260g2lr3dsjmfczv8gjx5q9-kind-0.29.0"
115
- },
116
- "x86_64-linux": {
117
- "outputs": [
118
- {
119
- "name": "out",
120
- "path": "/nix/store/swafyrx3qn2xjdz3sp7dy8pg7bxpfn3h-kind-0.29.0",
121
- "default": true
122
- }
123
- ],
124
- "store_path": "/nix/store/swafyrx3qn2xjdz3sp7dy8pg7bxpfn3h-kind-0.29.0"
125
- }
126
- }
127
- },
128
- "kubernetes-helm@3.18.3": {
129
- "last_modified": "2025-06-22T15:15:55Z",
130
- "resolved": "github:NixOS/nixpkgs/3078b9a9e75f1790e6d6ef9955fdc6a2d1740cc6#kubernetes-helm",
131
- "source": "devbox-search",
132
- "version": "3.18.3",
133
- "systems": {
134
- "aarch64-darwin": {
135
- "outputs": [
136
- {
137
- "name": "out",
138
- "path": "/nix/store/pq4scdg2cz3pxv1v8l89xsbx5ca7i48d-kubernetes-helm-3.18.3",
139
- "default": true
140
- }
141
- ],
142
- "store_path": "/nix/store/pq4scdg2cz3pxv1v8l89xsbx5ca7i48d-kubernetes-helm-3.18.3"
143
- },
144
- "aarch64-linux": {
145
- "outputs": [
146
- {
147
- "name": "out",
148
- "path": "/nix/store/v4p0yq3dc21dhh8mlws3dwlqqk74a4f8-kubernetes-helm-3.18.3",
149
- "default": true
150
- }
151
- ],
152
- "store_path": "/nix/store/v4p0yq3dc21dhh8mlws3dwlqqk74a4f8-kubernetes-helm-3.18.3"
153
- },
154
- "x86_64-darwin": {
155
- "outputs": [
156
- {
157
- "name": "out",
158
- "path": "/nix/store/6000mdd9sz6yqax9wd2qz451qj13bmip-kubernetes-helm-3.18.3",
159
- "default": true
160
- }
161
- ],
162
- "store_path": "/nix/store/6000mdd9sz6yqax9wd2qz451qj13bmip-kubernetes-helm-3.18.3"
163
- },
164
- "x86_64-linux": {
165
- "outputs": [
166
- {
167
- "name": "out",
168
- "path": "/nix/store/r1r9fz9nf0yniwqc2b51zi36cz4d7ala-kubernetes-helm-3.18.3",
169
- "default": true
170
- }
171
- ],
172
- "store_path": "/nix/store/r1r9fz9nf0yniwqc2b51zi36cz4d7ala-kubernetes-helm-3.18.3"
173
- }
174
- }
175
- },
176
- "teller@2.0.7": {
177
- "last_modified": "2025-06-20T02:24:11Z",
178
- "resolved": "github:NixOS/nixpkgs/076e8c6678d8c54204abcb4b1b14c366835a58bb#teller",
179
- "source": "devbox-search",
180
- "version": "2.0.7",
181
- "systems": {
182
- "aarch64-darwin": {
183
- "outputs": [
184
- {
185
- "name": "out",
186
- "path": "/nix/store/7ri6fgskrzxxkzvxrqiarbica997zzlp-teller-2.0.7",
187
- "default": true
188
- }
189
- ],
190
- "store_path": "/nix/store/7ri6fgskrzxxkzvxrqiarbica997zzlp-teller-2.0.7"
191
- },
192
- "aarch64-linux": {
193
- "outputs": [
194
- {
195
- "name": "out",
196
- "path": "/nix/store/rzakhwmvhxf62aarw25281qrzpkvjqvw-teller-2.0.7",
197
- "default": true
198
- }
199
- ],
200
- "store_path": "/nix/store/rzakhwmvhxf62aarw25281qrzpkvjqvw-teller-2.0.7"
201
- },
202
- "x86_64-darwin": {
203
- "outputs": [
204
- {
205
- "name": "out",
206
- "path": "/nix/store/7n5i7rd8fdiv4kbfnbj44q6fc7m4sqic-teller-2.0.7",
207
- "default": true
208
- }
209
- ],
210
- "store_path": "/nix/store/7n5i7rd8fdiv4kbfnbj44q6fc7m4sqic-teller-2.0.7"
211
- },
212
- "x86_64-linux": {
213
- "outputs": [
214
- {
215
- "name": "out",
216
- "path": "/nix/store/25pl4iwnnv16dbdb6yir78p9ahjfj987-teller-2.0.7",
217
- "default": true
218
- }
219
- ],
220
- "store_path": "/nix/store/25pl4iwnnv16dbdb6yir78p9ahjfj987-teller-2.0.7"
221
- }
222
- }
223
- }
224
- }
225
- }