@dxtmisha/scripts 0.5.6 → 0.5.8

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.6",
4
+ "version": "0.5.8",
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
- const generate = await this.response(
171
- this.model,
172
- this.getMainContents(contents)
173
- )
174
-
175
- console.log(`[Ai] End (length: ${generate.length})`)
176
-
177
- return generate
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 ''
@@ -44,6 +44,7 @@ export class AiDoc {
44
44
  await AiDocType.make(item)
45
45
  } catch (e) {
46
46
  console.error(`Error processing file ${item}:`, e)
47
+ process.exit(602)
47
48
  }
48
49
  }
49
50
  }
@@ -87,6 +87,10 @@ export class BuildItem {
87
87
  this.resetViteConfig()
88
88
  this.readAndWriteALlFiles()
89
89
 
90
+ if (!status) {
91
+ process.exit(601)
92
+ }
93
+
90
94
  return status
91
95
  }
92
96