@dxtmisha/scripts 0.5.6 → 0.5.7
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/scripts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Development scripts and CLI tools for DXT UI projects - automated component generation, library building and project management tools",
|
|
7
7
|
"keywords": [
|
|
@@ -167,14 +167,19 @@ export abstract class AiAbstract<AI = any> {
|
|
|
167
167
|
if (this.ai) {
|
|
168
168
|
console.log('[Ai] Generating')
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
this.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
try {
|
|
171
|
+
const generate = await this.response(
|
|
172
|
+
this.model,
|
|
173
|
+
this.getMainContents(contents)
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
console.log(`[Ai] End (length: ${generate.length})`)
|
|
177
|
+
|
|
178
|
+
return generate
|
|
179
|
+
} catch (error) {
|
|
180
|
+
console.error('[Ai] Generation error:', error)
|
|
181
|
+
process.exit(603)
|
|
182
|
+
}
|
|
178
183
|
}
|
|
179
184
|
|
|
180
185
|
return ''
|
package/src/classes/Ai/AiDoc.ts
CHANGED