@techwavedev/agi-agent-kit 1.1.7 → 1.2.1

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.

Potentially problematic release.


This version of @techwavedev/agi-agent-kit might be problematic. Click here for more details.

Files changed (111) hide show
  1. package/CHANGELOG.md +82 -1
  2. package/README.md +190 -12
  3. package/bin/init.js +30 -2
  4. package/package.json +6 -3
  5. package/templates/base/AGENTS.md +54 -23
  6. package/templates/base/README.md +325 -0
  7. package/templates/base/directives/memory_integration.md +95 -0
  8. package/templates/base/execution/memory_manager.py +309 -0
  9. package/templates/base/execution/session_boot.py +218 -0
  10. package/templates/base/execution/session_init.py +320 -0
  11. package/templates/base/skill-creator/SKILL_skillcreator.md +23 -36
  12. package/templates/base/skill-creator/scripts/init_skill.py +18 -135
  13. package/templates/skills/ec/README.md +31 -0
  14. package/templates/skills/ec/aws/SKILL.md +1020 -0
  15. package/templates/skills/ec/aws/defaults.yaml +13 -0
  16. package/templates/skills/ec/aws/references/common_patterns.md +80 -0
  17. package/templates/skills/ec/aws/references/mcp_servers.md +98 -0
  18. package/templates/skills/ec/aws-terraform/SKILL.md +349 -0
  19. package/templates/skills/ec/aws-terraform/references/best_practices.md +394 -0
  20. package/templates/skills/ec/aws-terraform/references/checkov_reference.md +337 -0
  21. package/templates/skills/ec/aws-terraform/scripts/configure_mcp.py +150 -0
  22. package/templates/skills/ec/confluent-kafka/SKILL.md +655 -0
  23. package/templates/skills/ec/confluent-kafka/references/ansible_playbooks.md +792 -0
  24. package/templates/skills/ec/confluent-kafka/references/ec_deployment.md +579 -0
  25. package/templates/skills/ec/confluent-kafka/references/kraft_migration.md +490 -0
  26. package/templates/skills/ec/confluent-kafka/references/troubleshooting.md +778 -0
  27. package/templates/skills/ec/confluent-kafka/references/upgrade_7x_to_8x.md +488 -0
  28. package/templates/skills/ec/confluent-kafka/scripts/kafka_health_check.py +435 -0
  29. package/templates/skills/ec/confluent-kafka/scripts/upgrade_preflight.py +568 -0
  30. package/templates/skills/ec/confluent-kafka/scripts/validate_config.py +455 -0
  31. package/templates/skills/ec/consul/SKILL.md +427 -0
  32. package/templates/skills/ec/consul/references/acl_setup.md +168 -0
  33. package/templates/skills/ec/consul/references/ha_config.md +196 -0
  34. package/templates/skills/ec/consul/references/troubleshooting.md +267 -0
  35. package/templates/skills/ec/consul/references/upgrades.md +213 -0
  36. package/templates/skills/ec/consul/scripts/consul_health_report.py +530 -0
  37. package/templates/skills/ec/consul/scripts/consul_status.py +264 -0
  38. package/templates/skills/ec/consul/scripts/generate_values.py +170 -0
  39. package/templates/skills/ec/documentation/SKILL.md +351 -0
  40. package/templates/skills/ec/documentation/references/best_practices.md +201 -0
  41. package/templates/skills/ec/documentation/scripts/analyze_code.py +307 -0
  42. package/templates/skills/ec/documentation/scripts/detect_changes.py +460 -0
  43. package/templates/skills/ec/documentation/scripts/generate_changelog.py +312 -0
  44. package/templates/skills/ec/documentation/scripts/sync_docs.py +272 -0
  45. package/templates/skills/ec/documentation/scripts/update_skill_docs.py +366 -0
  46. package/templates/skills/ec/gitlab/SKILL.md +529 -0
  47. package/templates/skills/ec/gitlab/references/agent_installation.md +416 -0
  48. package/templates/skills/ec/gitlab/references/api_reference.md +508 -0
  49. package/templates/skills/ec/gitlab/references/gitops_flux.md +465 -0
  50. package/templates/skills/ec/gitlab/references/troubleshooting.md +518 -0
  51. package/templates/skills/ec/gitlab/scripts/generate_agent_values.py +329 -0
  52. package/templates/skills/ec/gitlab/scripts/gitlab_agent_status.py +414 -0
  53. package/templates/skills/ec/jira/SKILL.md +484 -0
  54. package/templates/skills/ec/jira/references/jql_reference.md +148 -0
  55. package/templates/skills/ec/jira/scripts/add_comment.py +91 -0
  56. package/templates/skills/ec/jira/scripts/bulk_log_work.py +124 -0
  57. package/templates/skills/ec/jira/scripts/create_ticket.py +162 -0
  58. package/templates/skills/ec/jira/scripts/get_ticket.py +191 -0
  59. package/templates/skills/ec/jira/scripts/jira_client.py +383 -0
  60. package/templates/skills/ec/jira/scripts/log_work.py +154 -0
  61. package/templates/skills/ec/jira/scripts/search_tickets.py +104 -0
  62. package/templates/skills/ec/jira/scripts/update_comment.py +67 -0
  63. package/templates/skills/ec/jira/scripts/update_ticket.py +161 -0
  64. package/templates/skills/ec/karpenter/SKILL.md +301 -0
  65. package/templates/skills/ec/karpenter/references/ec2nodeclasses.md +421 -0
  66. package/templates/skills/ec/karpenter/references/migration.md +396 -0
  67. package/templates/skills/ec/karpenter/references/nodepools.md +400 -0
  68. package/templates/skills/ec/karpenter/references/troubleshooting.md +359 -0
  69. package/templates/skills/ec/karpenter/scripts/generate_ec2nodeclass.py +187 -0
  70. package/templates/skills/ec/karpenter/scripts/generate_nodepool.py +245 -0
  71. package/templates/skills/ec/karpenter/scripts/karpenter_status.py +359 -0
  72. package/templates/skills/ec/opensearch/SKILL.md +720 -0
  73. package/templates/skills/ec/opensearch/references/ml_neural_search.md +576 -0
  74. package/templates/skills/ec/opensearch/references/operator.md +532 -0
  75. package/templates/skills/ec/opensearch/references/query_dsl.md +532 -0
  76. package/templates/skills/ec/opensearch/scripts/configure_mcp.py +148 -0
  77. package/templates/skills/ec/victoriametrics/SKILL.md +598 -0
  78. package/templates/skills/ec/victoriametrics/references/kubernetes.md +531 -0
  79. package/templates/skills/ec/victoriametrics/references/prometheus_migration.md +333 -0
  80. package/templates/skills/ec/victoriametrics/references/troubleshooting.md +442 -0
  81. package/templates/skills/knowledge/SKILLS_CATALOG.md +274 -4
  82. package/templates/skills/knowledge/intelligent-routing/SKILL.md +237 -164
  83. package/templates/skills/knowledge/parallel-agents/SKILL.md +345 -73
  84. package/templates/skills/knowledge/plugin-discovery/SKILL.md +582 -0
  85. package/templates/skills/knowledge/plugin-discovery/scripts/platform_setup.py +1083 -0
  86. package/templates/skills/knowledge/design-md/README.md +0 -34
  87. package/templates/skills/knowledge/design-md/SKILL.md +0 -193
  88. package/templates/skills/knowledge/design-md/examples/DESIGN.md +0 -154
  89. package/templates/skills/knowledge/notebooklm-mcp/SKILL.md +0 -71
  90. package/templates/skills/knowledge/notebooklm-mcp/assets/example_asset.txt +0 -24
  91. package/templates/skills/knowledge/notebooklm-mcp/references/api_reference.md +0 -34
  92. package/templates/skills/knowledge/notebooklm-mcp/scripts/example.py +0 -19
  93. package/templates/skills/knowledge/react-components/README.md +0 -36
  94. package/templates/skills/knowledge/react-components/SKILL.md +0 -53
  95. package/templates/skills/knowledge/react-components/examples/gold-standard-card.tsx +0 -80
  96. package/templates/skills/knowledge/react-components/package-lock.json +0 -231
  97. package/templates/skills/knowledge/react-components/package.json +0 -16
  98. package/templates/skills/knowledge/react-components/resources/architecture-checklist.md +0 -15
  99. package/templates/skills/knowledge/react-components/resources/component-template.tsx +0 -37
  100. package/templates/skills/knowledge/react-components/resources/stitch-api-reference.md +0 -14
  101. package/templates/skills/knowledge/react-components/resources/style-guide.json +0 -27
  102. package/templates/skills/knowledge/react-components/scripts/fetch-stitch.sh +0 -30
  103. package/templates/skills/knowledge/react-components/scripts/validate.js +0 -68
  104. package/templates/skills/knowledge/self-update/SKILL.md +0 -60
  105. package/templates/skills/knowledge/self-update/scripts/update_kit.py +0 -103
  106. package/templates/skills/knowledge/stitch-loop/README.md +0 -54
  107. package/templates/skills/knowledge/stitch-loop/SKILL.md +0 -235
  108. package/templates/skills/knowledge/stitch-loop/examples/SITE.md +0 -73
  109. package/templates/skills/knowledge/stitch-loop/examples/next-prompt.md +0 -25
  110. package/templates/skills/knowledge/stitch-loop/resources/baton-schema.md +0 -61
  111. package/templates/skills/knowledge/stitch-loop/resources/site-template.md +0 -104
@@ -1,80 +0,0 @@
1
- /**
2
- * Copyright 2026 Google LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import React from 'react';
18
- // Note for Agent: The '@' alias refers to the target project's src directory.
19
- // Ensure src/data/mockData.ts is created before generating this component.
20
- import { cardData } from '../data/mockData';
21
-
22
- /**
23
- * Gold Standard: ActivityCard
24
- * This file serves as the definitive reference for the agent.
25
- */
26
- interface ActivityCardProps {
27
- readonly id: string;
28
- readonly username: string;
29
- readonly action: 'MERGED' | 'COMMIT';
30
- readonly timestamp: string;
31
- readonly avatarUrl: string;
32
- readonly repoName: string;
33
- }
34
-
35
- export const ActivityCard: React.FC<ActivityCardProps> = ({
36
- username,
37
- action,
38
- timestamp,
39
- avatarUrl,
40
- repoName,
41
- }) => {
42
- const isMerged = action === 'MERGED';
43
-
44
- return (
45
- <div className="flex items-center justify-between gap-4 rounded-lg bg-surface-dark p-4 min-h-14 shadow-sm ring-1 ring-white/10">
46
- <div className="flex items-center gap-4 overflow-hidden">
47
- <div
48
- className="aspect-square h-10 w-10 flex-shrink-0 rounded-full bg-cover bg-center bg-no-repeat"
49
- style={{ backgroundImage: `url(${avatarUrl})` }}
50
- aria-label={`Avatar for ${username}`}
51
- />
52
-
53
- <div className="flex flex-wrap items-center gap-x-2 gap-y-1 text-sm sm:text-base">
54
- <a href="#" className="font-semibold text-primary hover:underline truncate">
55
- {username}
56
- </a>
57
-
58
- <span className={`inline-block px-2 py-0.5 text-xs font-semibold rounded-full ${isMerged ? 'bg-purple-500/30 text-purple-300' : 'bg-primary/30 text-primary'
59
- }`}>
60
- {action}
61
- </span>
62
-
63
- <span className="text-white/60">in</span>
64
-
65
- <a href="#" className="text-primary hover:underline truncate">
66
- {repoName}
67
- </a>
68
- </div>
69
- </div>
70
-
71
- <div className="shrink-0">
72
- <p className="text-sm font-normal leading-normal text-white/50">
73
- {timestamp}
74
- </p>
75
- </div>
76
- </div>
77
- );
78
- };
79
-
80
- export default ActivityCard;
@@ -1,231 +0,0 @@
1
- {
2
- "name": "stitch-to-react-pro",
3
- "version": "1.0.0",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "stitch-to-react-pro",
9
- "version": "1.0.0",
10
- "dependencies": {
11
- "@swc/core": "^1.3.100"
12
- },
13
- "engines": {
14
- "node": ">=18.0.0"
15
- }
16
- },
17
- "node_modules/@swc/core": {
18
- "version": "1.15.8",
19
- "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.8.tgz",
20
- "integrity": "sha512-T8keoJjXaSUoVBCIjgL6wAnhADIb09GOELzKg10CjNg+vLX48P93SME6jTfte9MZIm5m+Il57H3rTSk/0kzDUw==",
21
- "hasInstallScript": true,
22
- "license": "Apache-2.0",
23
- "dependencies": {
24
- "@swc/counter": "^0.1.3",
25
- "@swc/types": "^0.1.25"
26
- },
27
- "engines": {
28
- "node": ">=10"
29
- },
30
- "funding": {
31
- "type": "opencollective",
32
- "url": "https://opencollective.com/swc"
33
- },
34
- "optionalDependencies": {
35
- "@swc/core-darwin-arm64": "1.15.8",
36
- "@swc/core-darwin-x64": "1.15.8",
37
- "@swc/core-linux-arm-gnueabihf": "1.15.8",
38
- "@swc/core-linux-arm64-gnu": "1.15.8",
39
- "@swc/core-linux-arm64-musl": "1.15.8",
40
- "@swc/core-linux-x64-gnu": "1.15.8",
41
- "@swc/core-linux-x64-musl": "1.15.8",
42
- "@swc/core-win32-arm64-msvc": "1.15.8",
43
- "@swc/core-win32-ia32-msvc": "1.15.8",
44
- "@swc/core-win32-x64-msvc": "1.15.8"
45
- },
46
- "peerDependencies": {
47
- "@swc/helpers": ">=0.5.17"
48
- },
49
- "peerDependenciesMeta": {
50
- "@swc/helpers": {
51
- "optional": true
52
- }
53
- }
54
- },
55
- "node_modules/@swc/core-darwin-arm64": {
56
- "version": "1.15.8",
57
- "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.8.tgz",
58
- "integrity": "sha512-M9cK5GwyWWRkRGwwCbREuj6r8jKdES/haCZ3Xckgkl8MUQJZA3XB7IXXK1IXRNeLjg6m7cnoMICpXv1v1hlJOg==",
59
- "cpu": [
60
- "arm64"
61
- ],
62
- "license": "Apache-2.0 AND MIT",
63
- "optional": true,
64
- "os": [
65
- "darwin"
66
- ],
67
- "engines": {
68
- "node": ">=10"
69
- }
70
- },
71
- "node_modules/@swc/core-darwin-x64": {
72
- "version": "1.15.8",
73
- "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.8.tgz",
74
- "integrity": "sha512-j47DasuOvXl80sKJHSi2X25l44CMc3VDhlJwA7oewC1nV1VsSzwX+KOwE5tLnfORvVJJyeiXgJORNYg4jeIjYQ==",
75
- "cpu": [
76
- "x64"
77
- ],
78
- "license": "Apache-2.0 AND MIT",
79
- "optional": true,
80
- "os": [
81
- "darwin"
82
- ],
83
- "engines": {
84
- "node": ">=10"
85
- }
86
- },
87
- "node_modules/@swc/core-linux-arm-gnueabihf": {
88
- "version": "1.15.8",
89
- "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.8.tgz",
90
- "integrity": "sha512-siAzDENu2rUbwr9+fayWa26r5A9fol1iORG53HWxQL1J8ym4k7xt9eME0dMPXlYZDytK5r9sW8zEA10F2U3Xwg==",
91
- "cpu": [
92
- "arm"
93
- ],
94
- "license": "Apache-2.0",
95
- "optional": true,
96
- "os": [
97
- "linux"
98
- ],
99
- "engines": {
100
- "node": ">=10"
101
- }
102
- },
103
- "node_modules/@swc/core-linux-arm64-gnu": {
104
- "version": "1.15.8",
105
- "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.8.tgz",
106
- "integrity": "sha512-o+1y5u6k2FfPYbTRUPvurwzNt5qd0NTumCTFscCNuBksycloXY16J8L+SMW5QRX59n4Hp9EmFa3vpvNHRVv1+Q==",
107
- "cpu": [
108
- "arm64"
109
- ],
110
- "license": "Apache-2.0 AND MIT",
111
- "optional": true,
112
- "os": [
113
- "linux"
114
- ],
115
- "engines": {
116
- "node": ">=10"
117
- }
118
- },
119
- "node_modules/@swc/core-linux-arm64-musl": {
120
- "version": "1.15.8",
121
- "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.8.tgz",
122
- "integrity": "sha512-koiCqL09EwOP1S2RShCI7NbsQuG6r2brTqUYE7pV7kZm9O17wZ0LSz22m6gVibpwEnw8jI3IE1yYsQTVpluALw==",
123
- "cpu": [
124
- "arm64"
125
- ],
126
- "license": "Apache-2.0 AND MIT",
127
- "optional": true,
128
- "os": [
129
- "linux"
130
- ],
131
- "engines": {
132
- "node": ">=10"
133
- }
134
- },
135
- "node_modules/@swc/core-linux-x64-gnu": {
136
- "version": "1.15.8",
137
- "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.8.tgz",
138
- "integrity": "sha512-4p6lOMU3bC+Vd5ARtKJ/FxpIC5G8v3XLoPEZ5s7mLR8h7411HWC/LmTXDHcrSXRC55zvAVia1eldy6zDLz8iFQ==",
139
- "cpu": [
140
- "x64"
141
- ],
142
- "license": "Apache-2.0 AND MIT",
143
- "optional": true,
144
- "os": [
145
- "linux"
146
- ],
147
- "engines": {
148
- "node": ">=10"
149
- }
150
- },
151
- "node_modules/@swc/core-linux-x64-musl": {
152
- "version": "1.15.8",
153
- "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.8.tgz",
154
- "integrity": "sha512-z3XBnbrZAL+6xDGAhJoN4lOueIxC/8rGrJ9tg+fEaeqLEuAtHSW2QHDHxDwkxZMjuF/pZ6MUTjHjbp8wLbuRLA==",
155
- "cpu": [
156
- "x64"
157
- ],
158
- "license": "Apache-2.0 AND MIT",
159
- "optional": true,
160
- "os": [
161
- "linux"
162
- ],
163
- "engines": {
164
- "node": ">=10"
165
- }
166
- },
167
- "node_modules/@swc/core-win32-arm64-msvc": {
168
- "version": "1.15.8",
169
- "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.8.tgz",
170
- "integrity": "sha512-djQPJ9Rh9vP8GTS/Df3hcc6XP6xnG5c8qsngWId/BLA9oX6C7UzCPAn74BG/wGb9a6j4w3RINuoaieJB3t+7iQ==",
171
- "cpu": [
172
- "arm64"
173
- ],
174
- "license": "Apache-2.0 AND MIT",
175
- "optional": true,
176
- "os": [
177
- "win32"
178
- ],
179
- "engines": {
180
- "node": ">=10"
181
- }
182
- },
183
- "node_modules/@swc/core-win32-ia32-msvc": {
184
- "version": "1.15.8",
185
- "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.8.tgz",
186
- "integrity": "sha512-/wfAgxORg2VBaUoFdytcVBVCgf1isWZIEXB9MZEUty4wwK93M/PxAkjifOho9RN3WrM3inPLabICRCEgdHpKKQ==",
187
- "cpu": [
188
- "ia32"
189
- ],
190
- "license": "Apache-2.0 AND MIT",
191
- "optional": true,
192
- "os": [
193
- "win32"
194
- ],
195
- "engines": {
196
- "node": ">=10"
197
- }
198
- },
199
- "node_modules/@swc/core-win32-x64-msvc": {
200
- "version": "1.15.8",
201
- "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.8.tgz",
202
- "integrity": "sha512-GpMePrh9Sl4d61o4KAHOOv5is5+zt6BEXCOCgs/H0FLGeii7j9bWDE8ExvKFy2GRRZVNR1ugsnzaGWHKM6kuzA==",
203
- "cpu": [
204
- "x64"
205
- ],
206
- "license": "Apache-2.0 AND MIT",
207
- "optional": true,
208
- "os": [
209
- "win32"
210
- ],
211
- "engines": {
212
- "node": ">=10"
213
- }
214
- },
215
- "node_modules/@swc/counter": {
216
- "version": "0.1.3",
217
- "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz",
218
- "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==",
219
- "license": "Apache-2.0"
220
- },
221
- "node_modules/@swc/types": {
222
- "version": "0.1.25",
223
- "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.25.tgz",
224
- "integrity": "sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==",
225
- "license": "Apache-2.0",
226
- "dependencies": {
227
- "@swc/counter": "^0.1.3"
228
- }
229
- }
230
- }
231
- }
@@ -1,16 +0,0 @@
1
- {
2
- "name": "react-components",
3
- "version": "1.0.0",
4
- "description": "Design-to-code prompt to React components for Stitch MCP",
5
- "type": "module",
6
- "scripts": {
7
- "validate": "node scripts/validate.js",
8
- "fetch": "bash scripts/fetch-stitch.sh"
9
- },
10
- "dependencies": {
11
- "@swc/core": "^1.3.100"
12
- },
13
- "engines": {
14
- "node": ">=18.0.0"
15
- }
16
- }
@@ -1,15 +0,0 @@
1
- # Architecture Quality Gate
2
-
3
- ### Structural integrity
4
- - [ ] Logic extracted to custom hooks in `src/hooks/`.
5
- - [ ] No monolithic files; strictly Atomic/Composite modularity.
6
- - [ ] All static text/URLs moved to `src/data/mockData.ts`.
7
-
8
- ### Type safety and syntax
9
- - [ ] Props use `Readonly<T>` interfaces.
10
- - [ ] File is syntactically valid TypeScript (no red squiggles).
11
- - [ ] Placeholders from templates (e.g., `StitchComponent`) have been replaced with actual names.
12
-
13
- ### Styling and theming
14
- - [ ] Dark mode (`dark:`) applied to all color classes.
15
- - [ ] No hardcoded hex values; use theme-mapped Tailwind classes.
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright 2026 Google LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import React from 'react';
18
-
19
- // Use a valid identifier like 'StitchComponent' as the placeholder
20
- interface StitchComponentProps {
21
- readonly children?: React.ReactNode;
22
- readonly className?: string;
23
- }
24
-
25
- export const StitchComponent: React.FC<StitchComponentProps> = ({
26
- children,
27
- className = '',
28
- ...props
29
- }) => {
30
- return (
31
- <div className={`relative ${className}`} {...props}>
32
- {children}
33
- </div>
34
- );
35
- };
36
-
37
- export default StitchComponent;
@@ -1,14 +0,0 @@
1
- # Stitch API reference
2
-
3
- This document describes the data structures returned by the Stitch MCP server to ensure accurate component mapping.
4
-
5
- ### Metadata schema
6
- When calling `get_screen`, the server returns a JSON object with these key properties:
7
- * **htmlCode**: Contains a `downloadUrl`. This is a signed URL that requires a system-level fetch (curl) to handle redirects and security handshakes.
8
- * **screenshot**: Includes a `downloadUrl` for the visual design. Use this to verify layout intent that might not be obvious in the raw HTML.
9
- * **deviceType**: Usually set to `DESKTOP`. All generated components should prioritize the corresponding viewport (2560px width) as the base layout.
10
-
11
- ### Technical mapping rules
12
- 1. **Element tracking**: Preserve `data-stitch-id` attributes as comments in the TSX to allow for future design synchronization.
13
- 2. **Asset handling**: Treat background images in the HTML as dynamic data. Extract the URLs into `mockData.ts` rather than hardcoding them into the component styles.
14
- 3. **Style extraction**: The HTML `<head>` contains a localized `tailwind.config`. This config must be merged with the local project theme to ensure colors like `primary` and `background-dark` render correctly.
@@ -1,27 +0,0 @@
1
- {
2
- "theme": {
3
- "colors": {
4
- "primary": "#19e66f",
5
- "background": {
6
- "light": "#f6f8f7",
7
- "dark": "#112118",
8
- "elevated": "#1A1A1A"
9
- },
10
- "accent": {
11
- "purple": "#8A2BE2",
12
- "lavender": "#D0A9F5"
13
- }
14
- },
15
- "typography": {
16
- "display": [
17
- "Space Grotesk",
18
- "sans-serif"
19
- ],
20
- "icons": "Material Symbols Outlined"
21
- },
22
- "spacing": {
23
- "header-h": "72px",
24
- "container-max": "960px"
25
- }
26
- }
27
- }
@@ -1,30 +0,0 @@
1
- #!/bin/bash
2
- # Copyright 2026 Google LLC
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- URL=$1
17
- OUTPUT=$2
18
- if [ -z "$URL" ] || [ -z "$OUTPUT" ]; then
19
- echo "Usage: $0 <url> <output_path>"
20
- exit 1
21
- fi
22
- echo "Initiating high-reliability fetch for Stitch HTML..."
23
- curl -L -f -sS --connect-timeout 10 --compressed "$URL" -o "$OUTPUT"
24
- if [ $? -eq 0 ]; then
25
- echo "✅ Successfully retrieved HTML at: $OUTPUT"
26
- exit 0
27
- else
28
- echo "❌ Error: Failed to retrieve content. Check TLS/SNI or URL expiration."
29
- exit 1
30
- fi
@@ -1,68 +0,0 @@
1
- /**
2
- * Copyright 2026 Google LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import swc from '@swc/core';
18
- import fs from 'node:fs';
19
- import path from 'node:path';
20
-
21
- async function validateComponent(filePath) {
22
- const code = fs.readFileSync(filePath, 'utf-8');
23
- const filename = path.basename(filePath);
24
- try {
25
- const ast = await swc.parse(code, { syntax: "typescript", tsx: true });
26
- let hasInterface = false;
27
- let tailwindIssues = [];
28
-
29
- console.log("🔍 Scanning AST...");
30
-
31
- const walk = (node) => {
32
- if (!node) return;
33
- if (node.type === 'TsInterfaceDeclaration' && node.id.value.endsWith('Props')) hasInterface = true;
34
- if (node.type === 'JSXAttribute' && node.name.name === 'className') {
35
- if (node.value?.value && /#[0-9A-Fa-f]{6}/.test(node.value.value)) tailwindIssues.push(node.value.value);
36
- }
37
- for (const key in node) { if (node[key] && typeof node[key] === 'object') walk(node[key]); }
38
- };
39
- walk(ast);
40
-
41
- console.log(`--- Validation for: ${filename} ---`);
42
- if (hasInterface) {
43
- console.log("✅ Props declaration found.");
44
- } else {
45
- console.error("❌ MISSING: Props interface (must end in 'Props').");
46
- }
47
-
48
- if (tailwindIssues.length === 0) {
49
- console.log("✅ No hardcoded hex values found.");
50
- } else {
51
- console.error(`❌ STYLE: Found ${tailwindIssues.length} hardcoded hex codes.`);
52
- tailwindIssues.forEach(hex => console.error(` - ${hex}`));
53
- }
54
-
55
- if (hasInterface && tailwindIssues.length === 0) {
56
- console.log("\n✨ COMPONENT VALID.");
57
- process.exit(0);
58
- } else {
59
- console.error("\n🚫 VALIDATION FAILED.");
60
- process.exit(1);
61
- }
62
- } catch (err) {
63
- console.error("❌ PARSE ERROR:", err.message);
64
- process.exit(1);
65
- }
66
- }
67
-
68
- validateComponent(process.argv[2]);
@@ -1,60 +0,0 @@
1
- ---
2
- name: self-update
3
- description: Update the AGI Agent Kit to the latest version from NPM
4
- version: 1.0.0
5
- ---
6
-
7
- # Self-Update Skill
8
-
9
- Updates the AGI Agent Kit framework components (skills, agents, workflows) to the latest published version.
10
-
11
- ## When to Use
12
-
13
- - When a new version of `@techwavedev/agi-agent-kit` is available
14
- - When you want to sync your local installation with the latest templates
15
- - After the user asks to "update", "upgrade", or "get latest skills"
16
-
17
- ## How It Works
18
-
19
- 1. **Check Current Version**: Reads `.agi.json` for installed version (if present)
20
- 2. **Fetch Latest**: Runs `npm view @techwavedev/agi-agent-kit version`
21
- 3. **Update**: Re-runs init with `--pack=full` to overlay new templates
22
-
23
- ## Quick Commands
24
-
25
- ```bash
26
- # Check installed version
27
- cat .agi.json 2>/dev/null || echo "No version metadata found"
28
-
29
- # Check latest NPM version
30
- npm view @techwavedev/agi-agent-kit version
31
-
32
- # Update to latest (re-init with full pack)
33
- npx @techwavedev/agi-agent-kit@latest init --pack=full
34
- ```
35
-
36
- ## Update Script
37
-
38
- Use the provided script for a guided update:
39
-
40
- ```bash
41
- python3 skills/self-update/scripts/update_kit.py
42
- ```
43
-
44
- ## What Gets Updated
45
-
46
- | Component | Updated? | Notes |
47
- | ----------------- | -------- | ------------------------- |
48
- | Skills | ✅ Yes | All skills from templates |
49
- | Agents | ✅ Yes | `.agent/` directory |
50
- | Workflows | ✅ Yes | `.agent/workflows/` |
51
- | Skill Creator | ✅ Yes | `skill-creator/` |
52
- | AGENTS.md | ✅ Yes | Overwrites with latest |
53
- | User's .env | ❌ No | Never touched |
54
- | User's directives | ❌ No | Preserved |
55
-
56
- ## Notes
57
-
58
- - The update process **overwrites** skill scripts. If you've customized them, back up first.
59
- - Your `.env` and custom directives are always preserved.
60
- - After updating, run `/checkup` to verify everything is working.