@taskmagic/apps-hugging-face 0.0.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.
Files changed (35) hide show
  1. package/README.md +3 -0
  2. package/package.json +47 -0
  3. package/src/index.d.ts +1 -0
  4. package/src/index.js +64 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/chat-completion.d.ts +18 -0
  7. package/src/lib/actions/chat-completion.js +537 -0
  8. package/src/lib/actions/chat-completion.js.map +1 -0
  9. package/src/lib/actions/create-image.d.ts +14 -0
  10. package/src/lib/actions/create-image.js +423 -0
  11. package/src/lib/actions/create-image.js.map +1 -0
  12. package/src/lib/actions/document-question-answering.d.ts +11 -0
  13. package/src/lib/actions/document-question-answering.js +140 -0
  14. package/src/lib/actions/document-question-answering.js.map +1 -0
  15. package/src/lib/actions/image-classification.d.ts +13 -0
  16. package/src/lib/actions/image-classification.js +592 -0
  17. package/src/lib/actions/image-classification.js.map +1 -0
  18. package/src/lib/actions/language-translation.d.ts +11 -0
  19. package/src/lib/actions/language-translation.js +222 -0
  20. package/src/lib/actions/language-translation.js.map +1 -0
  21. package/src/lib/actions/object-detection.d.ts +9 -0
  22. package/src/lib/actions/object-detection.js +464 -0
  23. package/src/lib/actions/object-detection.js.map +1 -0
  24. package/src/lib/actions/text-classification.d.ts +12 -0
  25. package/src/lib/actions/text-classification.js +344 -0
  26. package/src/lib/actions/text-classification.js.map +1 -0
  27. package/src/lib/actions/text-summarization.d.ts +12 -0
  28. package/src/lib/actions/text-summarization.js +420 -0
  29. package/src/lib/actions/text-summarization.js.map +1 -0
  30. package/src/lib/auth.d.ts +1 -0
  31. package/src/lib/auth.js +10 -0
  32. package/src/lib/auth.js.map +1 -0
  33. package/src/lib/common/index.d.ts +36 -0
  34. package/src/lib/common/index.js +78 -0
  35. package/src/lib/common/index.js.map +1 -0
@@ -0,0 +1,464 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.objectDetection = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const common_1 = require("../common");
9
+ exports.objectDetection = (0, pieces_framework_1.createAction)({
10
+ name: 'object_detection',
11
+ auth: auth_1.huggingFaceAuth,
12
+ displayName: 'Object Detection',
13
+ description: 'Detect and locate objects in images with precise bounding boxes - perfect for inventory management, content moderation, and automated tagging',
14
+ props: {
15
+ useCase: pieces_framework_1.Property.StaticDropdown({
16
+ displayName: 'Use Case',
17
+ description: 'What type of object detection do you need?',
18
+ required: true,
19
+ options: {
20
+ disabled: false,
21
+ options: [
22
+ {
23
+ label: '📋 General Objects (COCO Dataset)',
24
+ value: 'general',
25
+ },
26
+ {
27
+ label: '📊 Documents & Tables',
28
+ value: 'documents',
29
+ },
30
+ {
31
+ label: '🛡️ Security & Monitoring',
32
+ value: 'security',
33
+ },
34
+ {
35
+ label: '🏢 Business & Commerce',
36
+ value: 'business',
37
+ },
38
+ {
39
+ label: '🔍 Search All Models',
40
+ value: 'search',
41
+ },
42
+ ],
43
+ },
44
+ defaultValue: 'general',
45
+ }),
46
+ model: pieces_framework_1.Property.Dropdown({
47
+ displayName: 'Detection Model',
48
+ description: 'Select the best model for your detection task',
49
+ required: true,
50
+ refreshers: ['useCase'],
51
+ options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ useCase }) {
52
+ // Define model options based on use case
53
+ const getModelsByUseCase = (type) => {
54
+ switch (type) {
55
+ case 'general':
56
+ return [
57
+ {
58
+ label: 'DETR ResNet-50 (🏆 Industry Standard)',
59
+ value: 'facebook/detr-resnet-50',
60
+ description: '306K downloads | 80+ object classes',
61
+ },
62
+ {
63
+ label: 'YOLOS Small (⚡ Fast Detection)',
64
+ value: 'hustvl/yolos-small',
65
+ description: '756K downloads | Lightweight & efficient',
66
+ },
67
+ {
68
+ label: 'YOLOS Tiny (🚀 Ultra Fast)',
69
+ value: 'hustvl/yolos-tiny',
70
+ description: '128K downloads | Mobile-friendly',
71
+ },
72
+ {
73
+ label: 'YOLOv8 (🔬 Latest Technology)',
74
+ value: 'Ultralytics/YOLOv8',
75
+ description: '4.6K downloads | State-of-the-art accuracy',
76
+ },
77
+ ];
78
+ case 'documents':
79
+ return [
80
+ {
81
+ label: 'Table Transformer Detection (📊 Table Expert)',
82
+ value: 'microsoft/table-transformer-detection',
83
+ description: '2.3M downloads | Perfect for table detection',
84
+ },
85
+ {
86
+ label: 'Table Structure Recognition (🔍 Structure Analysis)',
87
+ value: 'microsoft/table-transformer-structure-recognition',
88
+ description: '1.2M downloads | Analyzes table structure',
89
+ },
90
+ {
91
+ label: 'Doc Table Detection (📋 Document Focus)',
92
+ value: 'TahaDouaji/detr-doc-table-detection',
93
+ description: '651K downloads | Document-specific tables',
94
+ },
95
+ ];
96
+ case 'security':
97
+ return [
98
+ {
99
+ label: 'License Plate Detection (🚗 Vehicle Focus)',
100
+ value: 'keremberke/yolov5n-license-plate',
101
+ description: '151K downloads | Vehicle identification',
102
+ },
103
+ {
104
+ label: 'CRAFT Text Detection (📝 Text Security)',
105
+ value: 'hezarai/CRAFT',
106
+ description: '101K downloads | Text content monitoring',
107
+ },
108
+ {
109
+ label: 'DETR ResNet-50 (👁️ General Security)',
110
+ value: 'facebook/detr-resnet-50',
111
+ description: '306K downloads | People & object detection',
112
+ },
113
+ ];
114
+ case 'business':
115
+ return [
116
+ {
117
+ label: 'Stock Pattern Detection (📈 Trading Analysis)',
118
+ value: 'foduucom/stockmarket-pattern-detection-yolov8',
119
+ description: '8.2K downloads | Financial chart analysis',
120
+ },
121
+ {
122
+ label: 'RT-DETR R101 (💼 Professional Quality)',
123
+ value: 'PekingU/rtdetr_r101vd_coco_o365',
124
+ description: '139K downloads | High-precision detection',
125
+ },
126
+ {
127
+ label: 'RT-DETR R50 (⚖️ Balanced Performance)',
128
+ value: 'PekingU/rtdetr_r50vd_coco_o365',
129
+ description: '84K downloads | Business-grade accuracy',
130
+ },
131
+ ];
132
+ default:
133
+ return [];
134
+ }
135
+ };
136
+ if (useCase === 'search') {
137
+ try {
138
+ const response = yield pieces_common_1.httpClient.sendRequest({
139
+ method: pieces_common_1.HttpMethod.GET,
140
+ url: 'https://huggingface.co/api/models?pipeline_tag=object-detection&sort=downloads&limit=50',
141
+ });
142
+ const models = response.body;
143
+ return {
144
+ disabled: false,
145
+ placeholder: 'Select from 50+ detection models...',
146
+ options: models
147
+ .filter((model) => model.downloads > 10000)
148
+ .slice(0, 25)
149
+ .map((model) => ({
150
+ label: `${model.id} (${(model.downloads / 1000).toFixed(0)}K downloads)`,
151
+ value: model.id,
152
+ })),
153
+ };
154
+ }
155
+ catch (error) {
156
+ return {
157
+ disabled: false,
158
+ options: getModelsByUseCase('general'),
159
+ };
160
+ }
161
+ }
162
+ return {
163
+ disabled: false,
164
+ options: getModelsByUseCase(useCase),
165
+ };
166
+ }),
167
+ }),
168
+ image: pieces_framework_1.Property.File({
169
+ displayName: 'Image to Analyze',
170
+ description: 'Upload an image for object detection. Supports JPG, PNG, WebP formats.',
171
+ required: true,
172
+ }),
173
+ confidenceThreshold: pieces_framework_1.Property.Number({
174
+ displayName: 'Confidence Threshold',
175
+ description: 'Minimum confidence score for detections (0.1-0.9). Higher values = fewer but more accurate detections.',
176
+ required: false,
177
+ defaultValue: 0.5,
178
+ }),
179
+ maxDetections: pieces_framework_1.Property.Number({
180
+ displayName: 'Max Detections',
181
+ description: 'Maximum number of objects to detect (1-100)',
182
+ required: false,
183
+ defaultValue: 50,
184
+ }),
185
+ filterSettings: pieces_framework_1.Property.StaticDropdown({
186
+ displayName: 'Detection Filter',
187
+ description: 'How to handle detection results',
188
+ required: false,
189
+ options: {
190
+ disabled: false,
191
+ options: [
192
+ { label: '🎯 High Confidence Only (>0.7)', value: 'high_confidence' },
193
+ { label: '⚖️ Balanced Results (>0.5)', value: 'balanced' },
194
+ { label: '📊 All Detections (>0.1)', value: 'all_results' },
195
+ { label: '⚙️ Custom Threshold', value: 'custom' },
196
+ ],
197
+ },
198
+ defaultValue: 'balanced',
199
+ }),
200
+ outputFormat: pieces_framework_1.Property.StaticDropdown({
201
+ displayName: 'Output Format',
202
+ description: 'How to structure the detection results',
203
+ required: false,
204
+ options: {
205
+ disabled: false,
206
+ options: [
207
+ { label: '📋 Business Summary', value: 'business' },
208
+ { label: '🔧 Technical Details', value: 'technical' },
209
+ { label: '📊 Statistical Analysis', value: 'analytics' },
210
+ { label: '🌐 All Information', value: 'comprehensive' },
211
+ ],
212
+ },
213
+ defaultValue: 'business',
214
+ }),
215
+ },
216
+ run(context) {
217
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
218
+ var _a;
219
+ const { useCase, model, image, confidenceThreshold, maxDetections, filterSettings, outputFormat, } = context.propsValue;
220
+ if (!(image === null || image === void 0 ? void 0 : image.data)) {
221
+ throw new Error('Please provide an image file for analysis');
222
+ }
223
+ // Determine actual confidence threshold
224
+ let actualThreshold;
225
+ switch (filterSettings) {
226
+ case 'high_confidence':
227
+ actualThreshold = 0.7;
228
+ break;
229
+ case 'balanced':
230
+ actualThreshold = 0.5;
231
+ break;
232
+ case 'all_results':
233
+ actualThreshold = 0.1;
234
+ break;
235
+ case 'custom':
236
+ actualThreshold = confidenceThreshold || 0.5;
237
+ break;
238
+ default:
239
+ actualThreshold = 0.5;
240
+ }
241
+ const mimeType = (0, common_1.getMimeType)(image.filename);
242
+ // Track detection start time
243
+ const startTime = Date.now();
244
+ try {
245
+ // Perform object detection
246
+ const detectionResults = yield (0, common_1.callBinaryTask)({
247
+ auth: context.auth,
248
+ model: model,
249
+ data: Buffer.from(image.data),
250
+ contentType: mimeType,
251
+ });
252
+ const filteredByThreshold = detectionResults.filter((d) => d.score >= actualThreshold);
253
+ // Calculate detection metrics
254
+ const detectionTime = (Date.now() - startTime) / 1000;
255
+ const totalDetections = filteredByThreshold.length;
256
+ const limitedResults = filteredByThreshold.slice(0, maxDetections || 50);
257
+ // Group detections by label
258
+ const labelCounts = limitedResults.reduce((acc, detection) => {
259
+ acc[detection.label] = (acc[detection.label] || 0) + 1;
260
+ return acc;
261
+ }, {});
262
+ // Calculate confidence statistics
263
+ const confidenceScores = limitedResults.map((d) => d.score);
264
+ const avgConfidence = confidenceScores.reduce((sum, score) => sum + score, 0) /
265
+ confidenceScores.length;
266
+ const maxConfidence = Math.max(...confidenceScores);
267
+ const minConfidence = Math.min(...confidenceScores);
268
+ // Prepare different output formats
269
+ const businessSummary = {
270
+ totalObjectsDetected: limitedResults.length,
271
+ objectCategories: Object.keys(labelCounts).length,
272
+ mostFrequentObject: (_a = Object.entries(labelCounts).sort(([, a], [, b]) => b - a)[0]) === null || _a === void 0 ? void 0 : _a[0],
273
+ averageConfidence: Math.round(avgConfidence * 100),
274
+ highConfidenceDetections: limitedResults.filter((d) => d.score > 0.8)
275
+ .length,
276
+ };
277
+ const technicalDetails = {
278
+ model: model,
279
+ threshold: actualThreshold,
280
+ processingTime: detectionTime,
281
+ imageFormat: mimeType,
282
+ detectionCount: limitedResults.length,
283
+ truncated: totalDetections > (maxDetections || 50),
284
+ };
285
+ const analytics = {
286
+ labelDistribution: labelCounts,
287
+ confidenceStatistics: {
288
+ average: avgConfidence,
289
+ maximum: maxConfidence,
290
+ minimum: minConfidence,
291
+ standardDeviation: calculateStandardDeviation(confidenceScores),
292
+ },
293
+ qualityMetrics: {
294
+ highQuality: limitedResults.filter((d) => d.score > 0.8).length,
295
+ mediumQuality: limitedResults.filter((d) => d.score > 0.5 && d.score <= 0.8).length,
296
+ lowQuality: limitedResults.filter((d) => d.score <= 0.5).length,
297
+ },
298
+ };
299
+ // Enhanced detection results with additional metadata
300
+ const enhancedDetections = limitedResults.map((detection, index) => {
301
+ const boxArea = (detection.box.xmax - detection.box.xmin) *
302
+ (detection.box.ymax - detection.box.ymin);
303
+ const boxCenter = {
304
+ x: (detection.box.xmin + detection.box.xmax) / 2,
305
+ y: (detection.box.ymin + detection.box.ymax) / 2,
306
+ };
307
+ return {
308
+ id: index + 1,
309
+ label: detection.label,
310
+ confidence: Math.round(detection.score * 100) / 100,
311
+ confidencePercent: Math.round(detection.score * 100),
312
+ boundingBox: detection.box,
313
+ metadata: {
314
+ area: Math.round(boxArea * 10000) / 10000,
315
+ center: {
316
+ x: Math.round(boxCenter.x * 1000) / 1000,
317
+ y: Math.round(boxCenter.y * 1000) / 1000,
318
+ },
319
+ width: Math.round((detection.box.xmax - detection.box.xmin) * 1000) /
320
+ 1000,
321
+ height: Math.round((detection.box.ymax - detection.box.ymin) * 1000) /
322
+ 1000,
323
+ },
324
+ };
325
+ });
326
+ // Build response based on output format
327
+ const baseResponse = {
328
+ detections: enhancedDetections,
329
+ summary: businessSummary,
330
+ };
331
+ if (outputFormat === 'technical') {
332
+ Object.assign(baseResponse, {
333
+ technical: technicalDetails,
334
+ });
335
+ }
336
+ else if (outputFormat === 'analytics') {
337
+ Object.assign(baseResponse, {
338
+ analytics: analytics,
339
+ });
340
+ }
341
+ else if (outputFormat === 'comprehensive') {
342
+ Object.assign(baseResponse, {
343
+ technical: technicalDetails,
344
+ analytics: analytics,
345
+ });
346
+ }
347
+ return Object.assign(Object.assign({}, baseResponse), { detection: {
348
+ useCase: useCase,
349
+ model: model,
350
+ imageFile: image.filename,
351
+ threshold: actualThreshold,
352
+ maxDetections: maxDetections || 50,
353
+ }, metrics: {
354
+ detectionTimeSeconds: detectionTime,
355
+ totalDetections: totalDetections,
356
+ displayedDetections: limitedResults.length,
357
+ averageConfidence: Math.round(avgConfidence * 100),
358
+ processingCost: calculateEstimatedCost(model, totalDetections),
359
+ }, businessInsights: {
360
+ useCase: getUseCaseDescription(useCase),
361
+ detectionTips: getDetectionTips(enhancedDetections, actualThreshold, useCase),
362
+ nextSteps: getNextSteps(useCase, limitedResults.length, Object.keys(labelCounts).length),
363
+ }, rawResults: detectionResults });
364
+ }
365
+ catch (error) {
366
+ const errorMessage = error instanceof Error ? error.message : String(error);
367
+ throw new Error(`Object detection failed: ${errorMessage}`);
368
+ }
369
+ });
370
+ },
371
+ });
372
+ // Helper function to calculate standard deviation
373
+ function calculateStandardDeviation(values) {
374
+ const avg = values.reduce((sum, val) => sum + val, 0) / values.length;
375
+ const squareDiffs = values.map((val) => Math.pow(val - avg, 2));
376
+ const variance = squareDiffs.reduce((sum, val) => sum + val, 0) / values.length;
377
+ return Math.sqrt(variance);
378
+ }
379
+ // Helper function to get use case descriptions
380
+ function getUseCaseDescription(useCase) {
381
+ const descriptions = {
382
+ general: 'Versatile object detection for everyday items and common objects',
383
+ documents: 'Specialized detection for tables, forms, and document structures',
384
+ security: 'Security-focused detection for monitoring and identification tasks',
385
+ business: 'Business-oriented detection for inventory, products, and commerce',
386
+ search: 'Custom model selection for specialized detection requirements',
387
+ };
388
+ return (descriptions[useCase] ||
389
+ 'AI-powered object detection');
390
+ }
391
+ // Helper function to provide detection tips
392
+ function getDetectionTips(detections, threshold, useCase) {
393
+ const tips = [];
394
+ if (detections.length === 0) {
395
+ tips.push('🔍 No objects detected - try lowering the confidence threshold');
396
+ tips.push('📸 Ensure image has clear, well-lit objects');
397
+ }
398
+ else if (detections.length < 3) {
399
+ tips.push('💡 Few objects detected - consider lowering threshold for more results');
400
+ }
401
+ else if (detections.length > 20) {
402
+ tips.push('📊 Many objects detected - consider higher threshold for quality');
403
+ }
404
+ if (threshold > 0.7) {
405
+ tips.push('🎯 High threshold set - only very confident detections shown');
406
+ }
407
+ else if (threshold < 0.3) {
408
+ tips.push('⚠️ Low threshold may include false positives');
409
+ }
410
+ const avgConfidence = detections.reduce((sum, d) => sum + d.confidence, 0) / detections.length;
411
+ if (avgConfidence < 0.6) {
412
+ tips.push('📈 Consider using a different model for better accuracy');
413
+ }
414
+ if (useCase === 'documents' &&
415
+ detections.some((d) => d.label.includes('table'))) {
416
+ tips.push('📋 Tables detected - great for document processing workflows');
417
+ }
418
+ if (tips.length === 0) {
419
+ tips.push('✅ Good detection results - objects identified successfully');
420
+ }
421
+ return tips;
422
+ }
423
+ // Helper function to suggest next steps
424
+ function getNextSteps(useCase, detectionCount, uniqueLabels) {
425
+ const steps = [];
426
+ if (useCase === 'business') {
427
+ steps.push('📊 Use detections to trigger inventory management workflows');
428
+ steps.push('🏷️ Implement automatic product tagging and categorization');
429
+ }
430
+ if (useCase === 'security') {
431
+ steps.push('🚨 Set up alerts for specific object types detected');
432
+ steps.push('📹 Integrate with monitoring systems for real-time analysis');
433
+ }
434
+ if (useCase === 'documents') {
435
+ steps.push('📄 Extract detected tables for data processing');
436
+ steps.push('🔍 Combine with OCR for complete document analysis');
437
+ }
438
+ if (detectionCount > 10) {
439
+ steps.push('📈 Consider batch processing for multiple images');
440
+ }
441
+ if (uniqueLabels > 5) {
442
+ steps.push('🏷️ Implement multi-category filtering and sorting');
443
+ }
444
+ steps.push('💾 Save successful detection settings for consistent results');
445
+ steps.push('🔄 Process similar images with the same model configuration');
446
+ return steps;
447
+ }
448
+ // Helper function to estimate costs (rough approximation)
449
+ function calculateEstimatedCost(model, detectionCount) {
450
+ const baseDetectionCost = 0.001; // Cost per detection
451
+ const modelMultiplier = model.includes('microsoft/table-transformer')
452
+ ? 1.5
453
+ : model.includes('yolov8') || model.includes('rtdetr')
454
+ ? 2.0
455
+ : model.includes('yolos-tiny')
456
+ ? 0.5
457
+ : 1.0;
458
+ const estimatedCost = baseDetectionCost * detectionCount * modelMultiplier;
459
+ if (estimatedCost < 0.001) {
460
+ return '< $0.001';
461
+ }
462
+ return `~$${estimatedCost.toFixed(4)}`;
463
+ }
464
+ //# sourceMappingURL=object-detection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-detection.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/hugging-face/src/lib/actions/object-detection.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,4DAAkE;AAClE,kCAA0C;AAC1C,sCAAwD;AAK3C,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EA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,IAAI,CAAC,6DAA6D,CAAC,CAAC;IAE1E,OAAO,KAAK,CAAC;AACf,CAAC;AAED,0DAA0D;AAC1D,SAAS,sBAAsB,CAAC,KAAa,EAAE,cAAsB;IACnE,MAAM,iBAAiB,GAAG,KAAK,CAAC,CAAC,qBAAqB;IACtD,MAAM,eAAe,GAAG,KAAK,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QACnE,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACtD,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC;gBAC9B,CAAC,CAAC,GAAG;gBACL,CAAC,CAAC,GAAG,CAAC;IAER,MAAM,aAAa,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,CAAC;IAE3E,IAAI,aAAa,GAAG,KAAK,EAAE,CAAC;QAC1B,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO,KAAK,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const textClassification: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").SecretTextProperty<true>, {
2
+ classificationMode: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
3
+ zeroShotModel: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
4
+ customLabels: import("@taskmagic/pieces-framework").LongTextProperty<false>;
5
+ pretrainedModel: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
6
+ searchModel: import("@taskmagic/pieces-framework").DropdownProperty<string, false>;
7
+ text: import("@taskmagic/pieces-framework").LongTextProperty<true>;
8
+ topK: import("@taskmagic/pieces-framework").NumberProperty<false>;
9
+ functionToApply: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
10
+ useCache: import("@taskmagic/pieces-framework").CheckboxProperty<false>;
11
+ waitForModel: import("@taskmagic/pieces-framework").CheckboxProperty<false>;
12
+ }>;