@wireweave/sdk 0.1.0-beta.0 → 0.1.0-beta.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.
package/dist/index.js CHANGED
@@ -152,153 +152,137 @@ var tools = [
152
152
  name: "wireweave_parse",
153
153
  description: "Parse Wireweave DSL source code into an AST (Abstract Syntax Tree)",
154
154
  inputSchema: {
155
- "type": "object",
156
- "properties": {
157
- "source": {
158
- "type": "string",
159
- "description": "The Wireweave DSL source code to parse"
155
+ type: "object",
156
+ properties: {
157
+ source: {
158
+ type: "string",
159
+ description: "The Wireweave DSL source code to parse"
160
160
  }
161
161
  },
162
- "required": [
163
- "source"
164
- ]
162
+ required: ["source"]
165
163
  }
166
164
  },
167
165
  {
168
166
  name: "wireweave_validate",
169
167
  description: "Validate Wireweave DSL syntax without generating output. Use strict mode to also check for unknown attributes.",
170
168
  inputSchema: {
171
- "type": "object",
172
- "properties": {
173
- "source": {
174
- "type": "string",
175
- "description": "The Wireweave DSL source code to validate"
169
+ type: "object",
170
+ properties: {
171
+ source: {
172
+ type: "string",
173
+ description: "The Wireweave DSL source code to validate"
176
174
  },
177
- "strict": {
178
- "type": "boolean",
179
- "description": "Enable strict mode to also validate that only known attributes are used. Recommended for catching typos and incorrect attribute names.",
180
- "default": false
175
+ strict: {
176
+ type: "boolean",
177
+ description: "Enable strict mode to also validate that only known attributes are used. Recommended for catching typos and incorrect attribute names.",
178
+ default: false
181
179
  }
182
180
  },
183
- "required": [
184
- "source"
185
- ]
181
+ required: ["source"]
186
182
  }
187
183
  },
188
184
  {
189
185
  name: "wireweave_grammar",
190
186
  description: "Get the Wireweave DSL grammar documentation and syntax reference",
191
187
  inputSchema: {
192
- "type": "object",
193
- "properties": {},
194
- "required": []
188
+ type: "object",
189
+ properties: {},
190
+ required: []
195
191
  }
196
192
  },
197
193
  {
198
194
  name: "wireweave_guide",
199
195
  description: "Get the comprehensive LLM guide for Wireweave DSL. This is the PRIMARY resource for learning the language - includes syntax, components, patterns, and best practices. Call this FIRST before generating wireframes.",
200
196
  inputSchema: {
201
- "type": "object",
202
- "properties": {},
203
- "required": []
197
+ type: "object",
198
+ properties: {},
199
+ required: []
204
200
  }
205
201
  },
206
202
  {
207
203
  name: "wireweave_patterns",
208
204
  description: "Get common layout patterns for wireframes including headers, sidebars, forms, cards, and more. Use these as building blocks.",
209
205
  inputSchema: {
210
- "type": "object",
211
- "properties": {},
212
- "required": []
206
+ type: "object",
207
+ properties: {},
208
+ required: []
213
209
  }
214
210
  },
215
211
  {
216
212
  name: "wireweave_examples",
217
213
  description: "Get Wireweave code examples. Use this to learn patterns and best practices for different UI types.",
218
214
  inputSchema: {
219
- "type": "object",
220
- "properties": {
221
- "category": {
222
- "type": "string",
223
- "enum": [
224
- "all",
225
- "basic",
226
- "layout",
227
- "navigation",
228
- "form",
229
- "dashboard"
230
- ],
231
- "description": 'Filter examples by category. Use "all" to get all examples. Categories cover generic component compositions (basic, layout, navigation, form) and a domain-agnostic dashboard shell.',
232
- "default": "all"
215
+ type: "object",
216
+ properties: {
217
+ category: {
218
+ type: "string",
219
+ enum: ["all", "basic", "layout", "navigation", "form", "dashboard"],
220
+ description: 'Filter examples by category. Use "all" to get all examples. Categories cover generic component compositions (basic, layout, navigation, form) and a domain-agnostic dashboard shell.',
221
+ default: "all"
233
222
  },
234
- "limit": {
235
- "type": "number",
236
- "description": "Maximum number of examples to return",
237
- "default": 5
223
+ limit: {
224
+ type: "number",
225
+ description: "Maximum number of examples to return",
226
+ default: 5
238
227
  }
239
228
  },
240
- "required": []
229
+ required: []
241
230
  }
242
231
  },
243
232
  {
244
233
  name: "wireweave_list_components",
245
234
  description: "List Wireweave DSL components with their categories, attributes, and examples. Use this to discover available components for wireframe generation. Filter by category (layout, navigation, form, etc.) when narrowing the search.",
246
235
  inputSchema: {
247
- "type": "object",
248
- "properties": {
249
- "category": {
250
- "type": "string",
251
- "description": 'Filter components by category (e.g., "layout", "navigation", "form", "content", "interaction"). Omit to return all components.'
236
+ type: "object",
237
+ properties: {
238
+ category: {
239
+ type: "string",
240
+ description: 'Filter components by category (e.g., "layout", "navigation", "form", "content", "interaction"). Omit to return all components.'
252
241
  }
253
242
  },
254
- "required": []
243
+ required: []
255
244
  }
256
245
  },
257
246
  {
258
247
  name: "wireweave_render_html_code",
259
248
  description: "Render Wireweave DSL to HTML code. Returns the HTML content directly. This is an alias for wireweave_render_html with explicit naming.",
260
249
  inputSchema: {
261
- "type": "object",
262
- "properties": {
263
- "source": {
264
- "type": "string",
265
- "description": "The Wireweave DSL source code to render"
250
+ type: "object",
251
+ properties: {
252
+ source: {
253
+ type: "string",
254
+ description: "The Wireweave DSL source code to render"
266
255
  },
267
- "theme": {
268
- "type": "string",
269
- "enum": [
270
- "light",
271
- "dark"
272
- ],
273
- "description": "Color theme for rendering",
274
- "default": "light"
256
+ theme: {
257
+ type: "string",
258
+ enum: ["light", "dark"],
259
+ description: "Color theme for rendering",
260
+ default: "light"
275
261
  },
276
- "fullDocument": {
277
- "type": "boolean",
278
- "description": "Return a complete HTML document instead of fragment",
279
- "default": false
262
+ fullDocument: {
263
+ type: "boolean",
264
+ description: "Return a complete HTML document instead of fragment",
265
+ default: false
280
266
  }
281
267
  },
282
- "required": [
283
- "source"
284
- ]
268
+ required: ["source"]
285
269
  }
286
270
  },
287
271
  {
288
272
  name: "wireweave_validate_ux",
289
273
  description: "Validate Wireweave DSL for UX best practices. Returns issues with severity levels and actionable recommendations.",
290
274
  inputSchema: {
291
- "type": "object",
292
- "properties": {
293
- "source": {
294
- "type": "string",
295
- "description": "The Wireweave DSL source code to validate"
275
+ type: "object",
276
+ properties: {
277
+ source: {
278
+ type: "string",
279
+ description: "The Wireweave DSL source code to validate"
296
280
  },
297
- "categories": {
298
- "type": "array",
299
- "items": {
300
- "type": "string",
301
- "enum": [
281
+ categories: {
282
+ type: "array",
283
+ items: {
284
+ type: "string",
285
+ enum: [
302
286
  "accessibility",
303
287
  "usability",
304
288
  "form",
@@ -311,558 +295,510 @@ var tools = [
311
295
  "interaction"
312
296
  ]
313
297
  },
314
- "description": "UX rule categories to check. If not specified, all categories are checked."
298
+ description: "UX rule categories to check. If not specified, all categories are checked."
315
299
  },
316
- "minSeverity": {
317
- "type": "string",
318
- "enum": [
319
- "error",
320
- "warning",
321
- "info"
322
- ],
323
- "description": "Minimum severity level to report",
324
- "default": "info"
300
+ minSeverity: {
301
+ type: "string",
302
+ enum: ["error", "warning", "info"],
303
+ description: "Minimum severity level to report",
304
+ default: "info"
325
305
  },
326
- "maxIssues": {
327
- "type": "number",
328
- "description": "Maximum number of issues to return"
306
+ maxIssues: {
307
+ type: "number",
308
+ description: "Maximum number of issues to return"
329
309
  },
330
- "disabledRules": {
331
- "type": "array",
332
- "items": {
333
- "type": "string"
310
+ disabledRules: {
311
+ type: "array",
312
+ items: {
313
+ type: "string"
334
314
  },
335
- "description": 'List of rule IDs to disable (e.g., ["a11y-input-label", "form-submit-button"])'
315
+ description: 'List of rule IDs to disable (e.g., ["a11y-input-label", "form-submit-button"])'
336
316
  }
337
317
  },
338
- "required": [
339
- "source"
340
- ]
318
+ required: ["source"]
341
319
  }
342
320
  },
343
321
  {
344
322
  name: "wireweave_ux_rules",
345
323
  description: "Get available UX rule categories and their descriptions",
346
324
  inputSchema: {
347
- "type": "object",
348
- "properties": {},
349
- "required": []
325
+ type: "object",
326
+ properties: {},
327
+ required: []
350
328
  }
351
329
  },
352
330
  {
353
331
  name: "wireweave_diff",
354
332
  description: "Compare two Wireweave DSL sources and return the differences between them",
355
333
  inputSchema: {
356
- "type": "object",
357
- "properties": {
358
- "oldSource": {
359
- "type": "string",
360
- "description": "The original Wireweave DSL source code"
334
+ type: "object",
335
+ properties: {
336
+ oldSource: {
337
+ type: "string",
338
+ description: "The original Wireweave DSL source code"
361
339
  },
362
- "newSource": {
363
- "type": "string",
364
- "description": "The modified Wireweave DSL source code"
340
+ newSource: {
341
+ type: "string",
342
+ description: "The modified Wireweave DSL source code"
365
343
  },
366
- "ignoreAttributes": {
367
- "type": "boolean",
368
- "description": "Ignore attribute changes, only compare structure",
369
- "default": false
344
+ ignoreAttributes: {
345
+ type: "boolean",
346
+ description: "Ignore attribute changes, only compare structure",
347
+ default: false
370
348
  },
371
- "ignoreOrder": {
372
- "type": "boolean",
373
- "description": "Ignore the order of children when comparing",
374
- "default": false
349
+ ignoreOrder: {
350
+ type: "boolean",
351
+ description: "Ignore the order of children when comparing",
352
+ default: false
375
353
  }
376
354
  },
377
- "required": [
378
- "oldSource",
379
- "newSource"
380
- ]
355
+ required: ["oldSource", "newSource"]
381
356
  }
382
357
  },
383
358
  {
384
359
  name: "wireweave_export_json",
385
360
  description: "Export Wireweave DSL to JSON format",
386
361
  inputSchema: {
387
- "type": "object",
388
- "properties": {
389
- "source": {
390
- "type": "string",
391
- "description": "The Wireweave DSL source code to export"
362
+ type: "object",
363
+ properties: {
364
+ source: {
365
+ type: "string",
366
+ description: "The Wireweave DSL source code to export"
392
367
  },
393
- "includeLocations": {
394
- "type": "boolean",
395
- "description": "Include source location information in output",
396
- "default": false
368
+ includeLocations: {
369
+ type: "boolean",
370
+ description: "Include source location information in output",
371
+ default: false
397
372
  },
398
- "prettyPrint": {
399
- "type": "boolean",
400
- "description": "Format JSON with indentation",
401
- "default": true
373
+ prettyPrint: {
374
+ type: "boolean",
375
+ description: "Format JSON with indentation",
376
+ default: true
402
377
  }
403
378
  },
404
- "required": [
405
- "source"
406
- ]
379
+ required: ["source"]
407
380
  }
408
381
  },
409
382
  {
410
383
  name: "wireweave_export_figma",
411
384
  description: "Export Wireweave DSL to Figma-compatible format",
412
385
  inputSchema: {
413
- "type": "object",
414
- "properties": {
415
- "source": {
416
- "type": "string",
417
- "description": "The Wireweave DSL source code to export"
386
+ type: "object",
387
+ properties: {
388
+ source: {
389
+ type: "string",
390
+ description: "The Wireweave DSL source code to export"
418
391
  }
419
392
  },
420
- "required": [
421
- "source"
422
- ]
393
+ required: ["source"]
423
394
  }
424
395
  },
425
396
  {
426
397
  name: "wireweave_analyze",
427
398
  description: "Analyze Wireweave DSL for statistics and metrics including component usage, tree structure, accessibility score, and complexity",
428
399
  inputSchema: {
429
- "type": "object",
430
- "properties": {
431
- "source": {
432
- "type": "string",
433
- "description": "The Wireweave DSL source code to analyze"
400
+ type: "object",
401
+ properties: {
402
+ source: {
403
+ type: "string",
404
+ description: "The Wireweave DSL source code to analyze"
434
405
  },
435
- "includeComponentBreakdown": {
436
- "type": "boolean",
437
- "description": "Include detailed component usage breakdown",
438
- "default": true
406
+ includeComponentBreakdown: {
407
+ type: "boolean",
408
+ description: "Include detailed component usage breakdown",
409
+ default: true
439
410
  },
440
- "includeAccessibility": {
441
- "type": "boolean",
442
- "description": "Include accessibility analysis",
443
- "default": true
411
+ includeAccessibility: {
412
+ type: "boolean",
413
+ description: "Include accessibility analysis",
414
+ default: true
444
415
  },
445
- "includeComplexity": {
446
- "type": "boolean",
447
- "description": "Include complexity metrics",
448
- "default": true
416
+ includeComplexity: {
417
+ type: "boolean",
418
+ description: "Include complexity metrics",
419
+ default: true
449
420
  },
450
- "includeLayout": {
451
- "type": "boolean",
452
- "description": "Include layout pattern analysis",
453
- "default": true
421
+ includeLayout: {
422
+ type: "boolean",
423
+ description: "Include layout pattern analysis",
424
+ default: true
454
425
  },
455
- "includeContent": {
456
- "type": "boolean",
457
- "description": "Include content analysis",
458
- "default": true
426
+ includeContent: {
427
+ type: "boolean",
428
+ description: "Include content analysis",
429
+ default: true
459
430
  }
460
431
  },
461
- "required": [
462
- "source"
463
- ]
432
+ required: ["source"]
464
433
  }
465
434
  },
466
435
  {
467
436
  name: "wireweave_cloud_list_projects",
468
437
  description: "List all your Wireweave projects. Projects help organize your wireframes. WORKFLOW: Call this first before saving wireframes. If the list is empty, ask the user whether to create a new project (call wireweave_cloud_create_project) or use the default project.",
469
438
  inputSchema: {
470
- "type": "object",
471
- "properties": {
472
- "includeArchived": {
473
- "type": "boolean",
474
- "description": "Include archived projects",
475
- "default": false
439
+ type: "object",
440
+ properties: {
441
+ includeArchived: {
442
+ type: "boolean",
443
+ description: "Include archived projects",
444
+ default: false
476
445
  }
477
446
  },
478
- "required": []
447
+ required: []
479
448
  }
480
449
  },
481
450
  {
482
451
  name: "wireweave_cloud_create_project",
483
452
  description: "Create a new project to organize wireframes. Use this when the user wants to organize their wireframes into a specific project. The project can have a custom name, description, and color.",
484
453
  inputSchema: {
485
- "type": "object",
486
- "properties": {
487
- "name": {
488
- "type": "string",
489
- "description": "Project name"
454
+ type: "object",
455
+ properties: {
456
+ name: {
457
+ type: "string",
458
+ description: "Project name"
490
459
  },
491
- "description": {
492
- "type": "string",
493
- "description": "Project description"
460
+ description: {
461
+ type: "string",
462
+ description: "Project description"
494
463
  },
495
- "color": {
496
- "type": "string",
497
- "description": "Project color (hex code, e.g., #6366f1)"
464
+ color: {
465
+ type: "string",
466
+ description: "Project color (hex code, e.g., #6366f1)"
498
467
  }
499
468
  },
500
- "required": [
501
- "name"
502
- ]
469
+ required: ["name"]
503
470
  }
504
471
  },
505
472
  {
506
473
  name: "wireweave_cloud_update_project",
507
474
  description: "Update an existing project",
508
475
  inputSchema: {
509
- "type": "object",
510
- "properties": {
511
- "id": {
512
- "type": "string",
513
- "description": "Project ID to update"
476
+ type: "object",
477
+ properties: {
478
+ id: {
479
+ type: "string",
480
+ description: "Project ID to update"
514
481
  },
515
- "name": {
516
- "type": "string",
517
- "description": "New project name"
482
+ name: {
483
+ type: "string",
484
+ description: "New project name"
518
485
  },
519
- "description": {
520
- "type": "string",
521
- "description": "New project description"
486
+ description: {
487
+ type: "string",
488
+ description: "New project description"
522
489
  },
523
- "color": {
524
- "type": "string",
525
- "description": "New project color (hex code)"
490
+ color: {
491
+ type: "string",
492
+ description: "New project color (hex code)"
526
493
  },
527
- "isArchived": {
528
- "type": "boolean",
529
- "description": "Archive or unarchive the project"
494
+ isArchived: {
495
+ type: "boolean",
496
+ description: "Archive or unarchive the project"
530
497
  }
531
498
  },
532
- "required": [
533
- "id"
534
- ]
499
+ required: ["id"]
535
500
  }
536
501
  },
537
502
  {
538
503
  name: "wireweave_cloud_list_wireframes",
539
504
  description: "List your saved wireframes. Optionally filter by project or tags.",
540
505
  inputSchema: {
541
- "type": "object",
542
- "properties": {
543
- "projectId": {
544
- "type": "string",
545
- "description": "Filter by project ID"
506
+ type: "object",
507
+ properties: {
508
+ projectId: {
509
+ type: "string",
510
+ description: "Filter by project ID"
546
511
  },
547
- "tags": {
548
- "type": "array",
549
- "items": {
550
- "type": "string"
512
+ tags: {
513
+ type: "array",
514
+ items: {
515
+ type: "string"
551
516
  },
552
- "description": "Filter by tags"
517
+ description: "Filter by tags"
553
518
  },
554
- "limit": {
555
- "type": "number",
556
- "description": "Maximum number of wireframes to return",
557
- "default": 20
519
+ limit: {
520
+ type: "number",
521
+ description: "Maximum number of wireframes to return",
522
+ default: 20
558
523
  },
559
- "offset": {
560
- "type": "number",
561
- "description": "Offset for pagination",
562
- "default": 0
524
+ offset: {
525
+ type: "number",
526
+ description: "Offset for pagination",
527
+ default: 0
563
528
  }
564
529
  },
565
- "required": []
530
+ required: []
566
531
  }
567
532
  },
568
533
  {
569
534
  name: "wireweave_cloud_get_wireframe",
570
535
  description: "Get a specific wireframe by ID, including its code and metadata",
571
536
  inputSchema: {
572
- "type": "object",
573
- "properties": {
574
- "id": {
575
- "type": "string",
576
- "description": "Wireframe ID"
537
+ type: "object",
538
+ properties: {
539
+ id: {
540
+ type: "string",
541
+ description: "Wireframe ID"
577
542
  }
578
543
  },
579
- "required": [
580
- "id"
581
- ]
544
+ required: ["id"]
582
545
  }
583
546
  },
584
547
  {
585
548
  name: "wireweave_cloud_save_wireframe",
586
549
  description: "Save a new wireframe to the cloud. Free (v2.0+).\n\nRECOMMENDED WORKFLOW:\n1. Call wireweave_cloud_list_projects to get available projects\n2. If projects exist: Ask user which project to save to\n3. If no projects: Ask user to (a) create a new project, or (b) save to default project\n4. Call this tool with the chosen projectId (or omit for default project)\n\nNote: If projectId is not provided, the wireframe will be saved to the user's default project.",
587
550
  inputSchema: {
588
- "type": "object",
589
- "properties": {
590
- "name": {
591
- "type": "string",
592
- "description": "Wireframe name"
551
+ type: "object",
552
+ properties: {
553
+ name: {
554
+ type: "string",
555
+ description: "Wireframe name"
593
556
  },
594
- "code": {
595
- "type": "string",
596
- "description": "Wireweave DSL code"
557
+ code: {
558
+ type: "string",
559
+ description: "Wireweave DSL code"
597
560
  },
598
- "description": {
599
- "type": "string",
600
- "description": "Wireframe description"
561
+ description: {
562
+ type: "string",
563
+ description: "Wireframe description"
601
564
  },
602
- "projectId": {
603
- "type": "string",
604
- "description": "Project ID to save to. Get available projects using wireweave_cloud_list_projects first."
565
+ projectId: {
566
+ type: "string",
567
+ description: "Project ID to save to. Get available projects using wireweave_cloud_list_projects first."
605
568
  },
606
- "tags": {
607
- "type": "array",
608
- "items": {
609
- "type": "string"
569
+ tags: {
570
+ type: "array",
571
+ items: {
572
+ type: "string"
610
573
  },
611
- "description": "Tags for categorization"
574
+ description: "Tags for categorization"
612
575
  },
613
- "isPublic": {
614
- "type": "boolean",
615
- "description": "Make wireframe publicly visible",
616
- "default": false
576
+ isPublic: {
577
+ type: "boolean",
578
+ description: "Make wireframe publicly visible",
579
+ default: false
617
580
  }
618
581
  },
619
- "required": [
620
- "name",
621
- "code"
622
- ]
582
+ required: ["name", "code"]
623
583
  }
624
584
  },
625
585
  {
626
586
  name: "wireweave_cloud_update_wireframe",
627
587
  description: "Update an existing wireframe. Creates a new version automatically. Free (v2.0+).",
628
588
  inputSchema: {
629
- "type": "object",
630
- "properties": {
631
- "id": {
632
- "type": "string",
633
- "description": "Wireframe ID to update"
589
+ type: "object",
590
+ properties: {
591
+ id: {
592
+ type: "string",
593
+ description: "Wireframe ID to update"
634
594
  },
635
- "name": {
636
- "type": "string",
637
- "description": "New name (optional)"
595
+ name: {
596
+ type: "string",
597
+ description: "New name (optional)"
638
598
  },
639
- "code": {
640
- "type": "string",
641
- "description": "New Wireweave DSL code (optional)"
599
+ code: {
600
+ type: "string",
601
+ description: "New Wireweave DSL code (optional)"
642
602
  },
643
- "description": {
644
- "type": "string",
645
- "description": "New description (optional)"
603
+ description: {
604
+ type: "string",
605
+ description: "New description (optional)"
646
606
  },
647
- "tags": {
648
- "type": "array",
649
- "items": {
650
- "type": "string"
607
+ tags: {
608
+ type: "array",
609
+ items: {
610
+ type: "string"
651
611
  },
652
- "description": "New tags (optional)"
612
+ description: "New tags (optional)"
653
613
  },
654
- "isPublic": {
655
- "type": "boolean",
656
- "description": "Update public visibility (optional)"
614
+ isPublic: {
615
+ type: "boolean",
616
+ description: "Update public visibility (optional)"
657
617
  }
658
618
  },
659
- "required": [
660
- "id"
661
- ]
619
+ required: ["id"]
662
620
  }
663
621
  },
664
622
  {
665
623
  name: "wireweave_cloud_delete_wireframe",
666
624
  description: "Delete a wireframe permanently",
667
625
  inputSchema: {
668
- "type": "object",
669
- "properties": {
670
- "id": {
671
- "type": "string",
672
- "description": "Wireframe ID to delete"
626
+ type: "object",
627
+ properties: {
628
+ id: {
629
+ type: "string",
630
+ description: "Wireframe ID to delete"
673
631
  }
674
632
  },
675
- "required": [
676
- "id"
677
- ]
633
+ required: ["id"]
678
634
  }
679
635
  },
680
636
  {
681
637
  name: "wireweave_cloud_get_versions",
682
638
  description: "Get version history of a wireframe",
683
639
  inputSchema: {
684
- "type": "object",
685
- "properties": {
686
- "wireframeId": {
687
- "type": "string",
688
- "description": "Wireframe ID"
640
+ type: "object",
641
+ properties: {
642
+ wireframeId: {
643
+ type: "string",
644
+ description: "Wireframe ID"
689
645
  }
690
646
  },
691
- "required": [
692
- "wireframeId"
693
- ]
647
+ required: ["wireframeId"]
694
648
  }
695
649
  },
696
650
  {
697
651
  name: "wireweave_cloud_restore_version",
698
652
  description: "Restore a wireframe to a previous version. Free (v2.0+).",
699
653
  inputSchema: {
700
- "type": "object",
701
- "properties": {
702
- "wireframeId": {
703
- "type": "string",
704
- "description": "Wireframe ID"
654
+ type: "object",
655
+ properties: {
656
+ wireframeId: {
657
+ type: "string",
658
+ description: "Wireframe ID"
705
659
  },
706
- "version": {
707
- "type": "number",
708
- "description": "Version number to restore"
660
+ version: {
661
+ type: "number",
662
+ description: "Version number to restore"
709
663
  }
710
664
  },
711
- "required": [
712
- "wireframeId",
713
- "version"
714
- ]
665
+ required: ["wireframeId", "version"]
715
666
  }
716
667
  },
717
668
  {
718
669
  name: "wireweave_cloud_create_share_link",
719
670
  description: "Create a shareable link for a wireframe. Free (v2.0+).",
720
671
  inputSchema: {
721
- "type": "object",
722
- "properties": {
723
- "wireframeId": {
724
- "type": "string",
725
- "description": "Wireframe ID to share"
672
+ type: "object",
673
+ properties: {
674
+ wireframeId: {
675
+ type: "string",
676
+ description: "Wireframe ID to share"
726
677
  },
727
- "title": {
728
- "type": "string",
729
- "description": "Custom title for the shared view"
678
+ title: {
679
+ type: "string",
680
+ description: "Custom title for the shared view"
730
681
  },
731
- "allowCopy": {
732
- "type": "boolean",
733
- "description": "Allow viewers to copy the code",
734
- "default": false
682
+ allowCopy: {
683
+ type: "boolean",
684
+ description: "Allow viewers to copy the code",
685
+ default: false
735
686
  },
736
- "password": {
737
- "type": "string",
738
- "description": "Password protection (optional)"
687
+ password: {
688
+ type: "string",
689
+ description: "Password protection (optional)"
739
690
  },
740
- "expiresInDays": {
741
- "type": "number",
742
- "description": "Link expiration in days (optional, null = never)"
691
+ expiresInDays: {
692
+ type: "number",
693
+ description: "Link expiration in days (optional, null = never)"
743
694
  }
744
695
  },
745
- "required": [
746
- "wireframeId"
747
- ]
696
+ required: ["wireframeId"]
748
697
  }
749
698
  },
750
699
  {
751
700
  name: "wireweave_cloud_list_shares",
752
701
  description: "List share links for a wireframe",
753
702
  inputSchema: {
754
- "type": "object",
755
- "properties": {
756
- "wireframeId": {
757
- "type": "string",
758
- "description": "Wireframe ID"
703
+ type: "object",
704
+ properties: {
705
+ wireframeId: {
706
+ type: "string",
707
+ description: "Wireframe ID"
759
708
  }
760
709
  },
761
- "required": [
762
- "wireframeId"
763
- ]
710
+ required: ["wireframeId"]
764
711
  }
765
712
  },
766
713
  {
767
714
  name: "wireweave_cloud_diff_versions",
768
715
  description: "Compare two versions of a wireframe and return the differences. Useful for reviewing changes without loading full code.",
769
716
  inputSchema: {
770
- "type": "object",
771
- "properties": {
772
- "wireframeId": {
773
- "type": "string",
774
- "description": "Wireframe ID"
717
+ type: "object",
718
+ properties: {
719
+ wireframeId: {
720
+ type: "string",
721
+ description: "Wireframe ID"
775
722
  },
776
- "versionA": {
777
- "type": "number",
778
- "description": "First version number to compare"
723
+ versionA: {
724
+ type: "number",
725
+ description: "First version number to compare"
779
726
  },
780
- "versionB": {
781
- "type": "number",
782
- "description": "Second version number to compare"
727
+ versionB: {
728
+ type: "number",
729
+ description: "Second version number to compare"
783
730
  }
784
731
  },
785
- "required": [
786
- "wireframeId",
787
- "versionA",
788
- "versionB"
789
- ]
732
+ required: ["wireframeId", "versionA", "versionB"]
790
733
  }
791
734
  },
792
735
  {
793
736
  name: "wireweave_account_balance",
794
737
  description: "Check your current credit balance and subscription status",
795
738
  inputSchema: {
796
- "type": "object",
797
- "properties": {},
798
- "required": []
739
+ type: "object",
740
+ properties: {},
741
+ required: []
799
742
  }
800
743
  },
801
744
  {
802
745
  name: "wireweave_account_subscription",
803
746
  description: "Get detailed subscription information including plan features",
804
747
  inputSchema: {
805
- "type": "object",
806
- "properties": {},
807
- "required": []
748
+ type: "object",
749
+ properties: {},
750
+ required: []
808
751
  }
809
752
  },
810
753
  {
811
754
  name: "wireweave_account_transactions",
812
755
  description: "View your credit transaction history",
813
756
  inputSchema: {
814
- "type": "object",
815
- "properties": {
816
- "limit": {
817
- "type": "number",
818
- "description": "Number of transactions to return",
819
- "default": 20
757
+ type: "object",
758
+ properties: {
759
+ limit: {
760
+ type: "number",
761
+ description: "Number of transactions to return",
762
+ default: 20
820
763
  },
821
- "type": {
822
- "type": "string",
823
- "enum": [
824
- "purchase",
825
- "subscription",
826
- "usage",
827
- "refund",
828
- "bonus",
829
- "admin"
830
- ],
831
- "description": "Filter by transaction type"
764
+ type: {
765
+ type: "string",
766
+ enum: ["purchase", "subscription", "usage", "refund", "bonus", "admin"],
767
+ description: "Filter by transaction type"
832
768
  }
833
769
  },
834
- "required": []
770
+ required: []
835
771
  }
836
772
  },
837
773
  {
838
774
  name: "wireweave_pricing",
839
775
  description: "Get current pricing information for plans, credit packs, and feature costs",
840
776
  inputSchema: {
841
- "type": "object",
842
- "properties": {},
843
- "required": []
777
+ type: "object",
778
+ properties: {},
779
+ required: []
844
780
  }
845
781
  },
846
782
  {
847
783
  name: "wireweave_gallery",
848
784
  description: "Browse public wireframe gallery for inspiration",
849
785
  inputSchema: {
850
- "type": "object",
851
- "properties": {
852
- "tags": {
853
- "type": "array",
854
- "items": {
855
- "type": "string"
786
+ type: "object",
787
+ properties: {
788
+ tags: {
789
+ type: "array",
790
+ items: {
791
+ type: "string"
856
792
  },
857
- "description": "Filter by tags"
793
+ description: "Filter by tags"
858
794
  },
859
- "limit": {
860
- "type": "number",
861
- "description": "Number of wireframes to return",
862
- "default": 20
795
+ limit: {
796
+ type: "number",
797
+ description: "Number of wireframes to return",
798
+ default: 20
863
799
  }
864
800
  },
865
- "required": []
801
+ required: []
866
802
  }
867
803
  }
868
804
  ];
@@ -883,17 +819,53 @@ var toolEndpoints = {
883
819
  wireweave_analyze: { method: "POST", path: "/tools/analyze" },
884
820
  wireweave_cloud_list_projects: { method: "GET", path: "/cloud/projects" },
885
821
  wireweave_cloud_create_project: { method: "POST", path: "/cloud/projects" },
886
- wireweave_cloud_update_project: { method: "PATCH", path: "/cloud/projects/:id", pathParams: ["id"] },
822
+ wireweave_cloud_update_project: {
823
+ method: "PATCH",
824
+ path: "/cloud/projects/:id",
825
+ pathParams: ["id"]
826
+ },
887
827
  wireweave_cloud_list_wireframes: { method: "GET", path: "/cloud/wireframes" },
888
- wireweave_cloud_get_wireframe: { method: "GET", path: "/cloud/wireframes/:id", pathParams: ["id"] },
828
+ wireweave_cloud_get_wireframe: {
829
+ method: "GET",
830
+ path: "/cloud/wireframes/:id",
831
+ pathParams: ["id"]
832
+ },
889
833
  wireweave_cloud_save_wireframe: { method: "POST", path: "/cloud/wireframes" },
890
- wireweave_cloud_update_wireframe: { method: "PATCH", path: "/cloud/wireframes/:id", pathParams: ["id"] },
891
- wireweave_cloud_delete_wireframe: { method: "DELETE", path: "/cloud/wireframes/:id", pathParams: ["id"] },
892
- wireweave_cloud_get_versions: { method: "GET", path: "/cloud/wireframes/:wireframeId/versions", pathParams: ["wireframeId"] },
893
- wireweave_cloud_restore_version: { method: "POST", path: "/cloud/wireframes/:wireframeId/versions/:version/restore", pathParams: ["wireframeId", "version"] },
894
- wireweave_cloud_create_share_link: { method: "POST", path: "/cloud/wireframes/:wireframeId/shares", pathParams: ["wireframeId"] },
895
- wireweave_cloud_list_shares: { method: "GET", path: "/cloud/wireframes/:wireframeId/shares", pathParams: ["wireframeId"] },
896
- wireweave_cloud_diff_versions: { method: "GET", path: "/cloud/wireframes/:wireframeId/diff", pathParams: ["wireframeId"] },
834
+ wireweave_cloud_update_wireframe: {
835
+ method: "PATCH",
836
+ path: "/cloud/wireframes/:id",
837
+ pathParams: ["id"]
838
+ },
839
+ wireweave_cloud_delete_wireframe: {
840
+ method: "DELETE",
841
+ path: "/cloud/wireframes/:id",
842
+ pathParams: ["id"]
843
+ },
844
+ wireweave_cloud_get_versions: {
845
+ method: "GET",
846
+ path: "/cloud/wireframes/:wireframeId/versions",
847
+ pathParams: ["wireframeId"]
848
+ },
849
+ wireweave_cloud_restore_version: {
850
+ method: "POST",
851
+ path: "/cloud/wireframes/:wireframeId/versions/:version/restore",
852
+ pathParams: ["wireframeId", "version"]
853
+ },
854
+ wireweave_cloud_create_share_link: {
855
+ method: "POST",
856
+ path: "/cloud/wireframes/:wireframeId/shares",
857
+ pathParams: ["wireframeId"]
858
+ },
859
+ wireweave_cloud_list_shares: {
860
+ method: "GET",
861
+ path: "/cloud/wireframes/:wireframeId/shares",
862
+ pathParams: ["wireframeId"]
863
+ },
864
+ wireweave_cloud_diff_versions: {
865
+ method: "GET",
866
+ path: "/cloud/wireframes/:wireframeId/diff",
867
+ pathParams: ["wireframeId"]
868
+ },
897
869
  wireweave_account_balance: { method: "GET", path: "/billing/balance" },
898
870
  wireweave_account_subscription: { method: "GET", path: "/billing/subscription" },
899
871
  wireweave_account_transactions: { method: "GET", path: "/billing/transactions" },