Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
859 lines (859 loc) · 27 KB
/
Copy pathpackage.json
File metadata and controls
859 lines (859 loc) · 27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
{
"name": "xbridge",
"displayName": "XBridge",
"description": "Build, test, and run Xcode projects from VS Code—with simulator, device, Test Explorer, and AI agent tools.",
"version": "1.4.2",
"publisher": "chaiwithcode",
"author": {
"name": "Deepak Sharma"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/chaiwithcode/Xbridge.git"
},
"bugs": {
"url": "https://github.com/chaiwithcode/Xbridge/issues"
},
"homepage": "https://github.com/chaiwithcode/Xbridge#readme",
"icon": "resources/icon.png",
"galleryBanner": {
"color": "#0A84FF",
"theme": "dark"
},
"preview": false,
"pricing": "Free",
"qna": "marketplace",
"extensionKind": [
"workspace"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "XBridge executes xcodebuild and xcrun commands from the current workspace."
},
"virtualWorkspaces": {
"supported": false,
"description": "Xcode projects, build products and simulators require a local macOS file system."
}
},
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"Programming Languages",
"Testing",
"Other"
],
"keywords": [
"swift",
"ios",
"xcode",
"xcodebuild",
"simulator",
"simctl",
"swiftui",
"xctest",
"swift-testing",
"ios-development",
"mobile-development",
"copilot-tools",
"ai-agent"
],
"activationEvents": [
"workspaceContains:**/*.xcodeproj",
"workspaceContains:**/*.xcworkspace",
"workspaceContains:**/Package.swift",
"onLanguage:swift"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "XBridge",
"properties": {
"xbridge.projectPath": {
"type": "string",
"default": "",
"description": "Path to the .xcodeproj or .xcworkspace to use. Leave empty to auto-detect."
},
"xbridge.scheme": {
"type": "string",
"default": "",
"description": "The default Xcode scheme to build/run/test."
},
"xbridge.configuration": {
"type": "string",
"default": "Debug",
"description": "Build configuration (e.g. Debug, Release)."
},
"xbridge.destination": {
"type": "string",
"default": "",
"description": "The selected simulator/device destination UDID. Leave empty to select interactively."
},
"xbridge.testPlan": {
"type": "string",
"default": "",
"description": "The selected test plan (.xctestplan base name) to run. Leave empty to use the scheme's default."
},
"xbridge.testTarget": {
"type": "string",
"default": "",
"description": "The selected test target to run. Leave empty to run all tests."
},
"xbridge.derivedDataPath": {
"type": "string",
"default": "",
"scope": "machine-overridable",
"description": "Custom derivedData path. Leave empty to use the default under the workspace (.build/DerivedData)."
},
"xbridge.extraBuildArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Extra arguments appended to every xcodebuild invocation."
},
"xbridge.streamAppLogs": {
"type": "boolean",
"default": true,
"description": "Stream the launched app's console output into the 'XBridge App' output channel."
},
"xbridge.openSimulatorOnRun": {
"type": "boolean",
"default": true,
"description": "Bring Simulator.app to the front when the app is launched."
},
"xbridge.autoRevealBuildLog": {
"type": "boolean",
"default": false,
"description": "Open the build log panel automatically whenever a build, test or clean starts."
}
}
},
"commands": [
{
"command": "xbridge.build",
"title": "Build",
"category": "XBridge",
"icon": "$(tools)"
},
{
"command": "xbridge.clean",
"title": "Clean Build Folder",
"category": "XBridge",
"icon": "$(trash)"
},
{
"command": "xbridge.run",
"title": "Build & Run",
"category": "XBridge",
"icon": "$(play)"
},
{
"command": "xbridge.stop",
"title": "Stop",
"category": "XBridge",
"icon": "$(debug-stop)"
},
{
"command": "xbridge.stopApp",
"title": "Stop Running App",
"category": "XBridge",
"icon": "$(debug-stop)"
},
{
"command": "xbridge.test",
"title": "Run Tests",
"category": "XBridge",
"icon": "$(beaker)"
},
{
"command": "xbridge.selectScheme",
"title": "Select Scheme",
"category": "XBridge"
},
{
"command": "xbridge.selectConfiguration",
"title": "Select Build Configuration",
"category": "XBridge"
},
{
"command": "xbridge.selectDestination",
"title": "Select Destination (Simulator/Device)",
"category": "XBridge"
},
{
"command": "xbridge.bootSimulator",
"title": "Boot Simulator",
"category": "XBridge",
"icon": "$(vm-running)"
},
{
"command": "xbridge.shutdownSimulator",
"title": "Shutdown Simulator",
"category": "XBridge",
"icon": "$(vm-outline)"
},
{
"command": "xbridge.openSimulatorApp",
"title": "Open Simulator.app",
"category": "XBridge",
"icon": "$(device-mobile)"
},
{
"command": "xbridge.eraseSimulator",
"title": "Erase Simulator Content",
"category": "XBridge"
},
{
"command": "xbridge.refreshSimulators",
"title": "Refresh Simulators",
"category": "XBridge",
"icon": "$(refresh)"
},
{
"command": "xbridge.refreshSchemes",
"title": "Refresh Schemes",
"category": "XBridge",
"icon": "$(refresh)"
},
{
"command": "xbridge.showOutput",
"title": "Show Build Output",
"category": "XBridge",
"icon": "$(output)"
},
{
"command": "xbridge.selectTarget",
"title": "Select Scheme, Configuration or Destination",
"category": "XBridge",
"icon": "$(target)"
},
{
"command": "xbridge.selectProject",
"title": "Select Xcode Project or Workspace",
"category": "XBridge",
"icon": "$(folder-opened)"
},
{
"command": "xbridge.selectTestPlan",
"title": "Select Test Plan",
"category": "XBridge",
"icon": "$(checklist)"
},
{
"command": "xbridge.selectTestTarget",
"title": "Select Test Target",
"category": "XBridge",
"icon": "$(beaker)"
},
{
"command": "xbridge.showIssues",
"title": "Show Build Issues",
"category": "XBridge",
"icon": "$(list-flat)"
},
{
"command": "xbridge.showAppLog",
"title": "Show App Console",
"category": "XBridge",
"icon": "$(terminal)"
},
{
"command": "xbridge.setDestination",
"title": "Set as Destination",
"category": "XBridge",
"icon": "$(pass)"
},
{
"command": "xbridge.copySimulatorUdid",
"title": "Copy Simulator UDID",
"category": "XBridge",
"icon": "$(copy)"
},
{
"command": "xbridge.openUrlOnSimulator",
"title": "Open URL or Deep Link…",
"category": "XBridge",
"icon": "$(link)"
},
{
"command": "xbridge.screenshotSimulator",
"title": "Take Screenshot",
"category": "XBridge",
"icon": "$(device-camera)"
},
{
"command": "xbridge.toggleRecording",
"title": "Start / Stop Screen Recording",
"category": "XBridge",
"icon": "$(record)"
},
{
"command": "xbridge.toggleAppearance",
"title": "Toggle Light / Dark Appearance",
"category": "XBridge",
"icon": "$(color-mode)"
},
{
"command": "xbridge.openAppContainer",
"title": "Open App Data Container",
"category": "XBridge",
"icon": "$(folder-opened)"
},
{
"command": "xbridge.uninstallApp",
"title": "Uninstall App from Simulator",
"category": "XBridge",
"icon": "$(trash)"
},
{
"command": "xbridge.resolvePackages",
"title": "Resolve Package Dependencies",
"category": "XBridge",
"icon": "$(package)"
},
{
"command": "xbridge.openInXcode",
"title": "Open in Xcode",
"category": "XBridge",
"icon": "$(link-external)"
},
{
"command": "xbridge.refreshDevices",
"title": "Refresh Devices & Simulators",
"category": "XBridge",
"icon": "$(refresh)"
},
{
"command": "xbridge.openWalkthrough",
"title": "Getting Started",
"category": "XBridge",
"icon": "$(book)"
}
],
"keybindings": [
{
"command": "xbridge.build",
"key": "ctrl+cmd+b",
"mac": "ctrl+cmd+b",
"when": "xbridge.hasProject && !xbridge.running"
},
{
"command": "xbridge.run",
"key": "ctrl+cmd+r",
"mac": "ctrl+cmd+r",
"when": "xbridge.hasProject && !xbridge.running"
},
{
"command": "xbridge.test",
"key": "ctrl+cmd+u",
"mac": "ctrl+cmd+u",
"when": "xbridge.hasProject && !xbridge.running"
},
{
"command": "xbridge.clean",
"key": "ctrl+cmd+k",
"mac": "ctrl+cmd+k",
"when": "xbridge.hasProject && !xbridge.running"
},
{
"command": "xbridge.stop",
"key": "ctrl+cmd+.",
"mac": "ctrl+cmd+.",
"when": "xbridge.running || xbridge.appRunning"
},
{
"command": "xbridge.selectDestination",
"key": "ctrl+cmd+d",
"mac": "ctrl+cmd+d",
"when": "xbridge.hasProject"
},
{
"command": "xbridge.resolvePackages",
"key": "ctrl+cmd+p",
"mac": "ctrl+cmd+p",
"when": "xbridge.hasProject && !xbridge.running"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "xbridge",
"title": "XBridge",
"icon": "resources/activity.svg"
}
]
},
"views": {
"xbridge": [
{
"id": "xbridge.schemes",
"name": "Build & Run",
"icon": "$(target)",
"contextualTitle": "XBridge"
},
{
"id": "xbridge.simulators",
"name": "Destinations",
"icon": "$(device-mobile)",
"contextualTitle": "XBridge"
}
]
},
"viewsWelcome": [
{
"view": "xbridge.schemes",
"when": "!xbridge.hasProject",
"contents": "No Xcode project or workspace was found in this folder.\n\n[Select Xcode Project…](command:xbridge.selectProject)\n\nOpen a folder that contains an `.xcodeproj`, `.xcworkspace`, or `Package.swift`, or pick one manually above.\n\n[Take the tour](command:xbridge.openWalkthrough)"
}
],
"menus": {
"commandPalette": [
{
"command": "xbridge.setDestination",
"when": "false"
}
],
"view/title": [
{
"command": "xbridge.run",
"when": "view == xbridge.schemes && !xbridge.running",
"group": "navigation@1"
},
{
"command": "xbridge.stop",
"when": "view == xbridge.schemes && xbridge.running",
"group": "navigation@1"
},
{
"command": "xbridge.build",
"when": "view == xbridge.schemes && !xbridge.running",
"group": "navigation@2"
},
{
"command": "xbridge.test",
"when": "view == xbridge.schemes && !xbridge.running",
"group": "navigation@3"
},
{
"command": "xbridge.stopApp",
"when": "view == xbridge.schemes && xbridge.appRunning",
"group": "navigation@4"
},
{
"command": "xbridge.refreshSchemes",
"when": "view == xbridge.schemes",
"group": "navigation@5"
},
{
"command": "xbridge.clean",
"when": "view == xbridge.schemes && !xbridge.running",
"group": "1_build@1"
},
{
"command": "xbridge.showOutput",
"when": "view == xbridge.schemes",
"group": "1_build@2"
},
{
"command": "xbridge.showAppLog",
"when": "view == xbridge.schemes",
"group": "1_build@3"
},
{
"command": "xbridge.showIssues",
"when": "view == xbridge.schemes",
"group": "1_build@4"
},
{
"command": "xbridge.selectScheme",
"when": "view == xbridge.schemes",
"group": "2_config@1"
},
{
"command": "xbridge.selectConfiguration",
"when": "view == xbridge.schemes",
"group": "2_config@2"
},
{
"command": "xbridge.selectDestination",
"when": "view == xbridge.schemes",
"group": "2_config@3"
},
{
"command": "xbridge.selectTestPlan",
"when": "view == xbridge.schemes",
"group": "2_config@4"
},
{
"command": "xbridge.selectTestTarget",
"when": "view == xbridge.schemes",
"group": "2_config@5"
},
{
"command": "xbridge.resolvePackages",
"when": "view == xbridge.schemes && !xbridge.running",
"group": "1_build@5"
},
{
"command": "xbridge.selectProject",
"when": "view == xbridge.schemes",
"group": "3_project@1"
},
{
"command": "xbridge.openInXcode",
"when": "view == xbridge.schemes",
"group": "3_project@2"
},
{
"command": "xbridge.refreshSimulators",
"when": "view == xbridge.simulators",
"group": "navigation@1"
},
{
"command": "xbridge.openSimulatorApp",
"when": "view == xbridge.simulators",
"group": "navigation@2"
}
],
"view/item/context": [
{
"command": "xbridge.bootSimulator",
"when": "view == xbridge.simulators && viewItem =~ /\\.shutdown\\./",
"group": "inline@1"
},
{
"command": "xbridge.shutdownSimulator",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "inline@1"
},
{
"command": "xbridge.screenshotSimulator",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "inline@2"
},
{
"command": "xbridge.setDestination",
"when": "view == xbridge.simulators && viewItem =~ /\\.unselected\\./",
"group": "1_destination@1"
},
{
"command": "xbridge.bootSimulator",
"when": "view == xbridge.simulators && viewItem =~ /\\.shutdown\\./",
"group": "1_destination@2"
},
{
"command": "xbridge.shutdownSimulator",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "1_destination@2"
},
{
"command": "xbridge.openUrlOnSimulator",
"when": "view == xbridge.simulators && viewItem =~ /^simulator\\./",
"group": "2_device@1"
},
{
"command": "xbridge.screenshotSimulator",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "2_device@2"
},
{
"command": "xbridge.toggleRecording",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "2_device@3"
},
{
"command": "xbridge.toggleAppearance",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "2_device@4"
},
{
"command": "xbridge.openAppContainer",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "3_app@1"
},
{
"command": "xbridge.uninstallApp",
"when": "view == xbridge.simulators && viewItem =~ /\\.booted\\./",
"group": "3_app@2"
},
{
"command": "xbridge.copySimulatorUdid",
"when": "view == xbridge.simulators && viewItem =~ /^simulator\\./",
"group": "8_copy@1"
},
{
"command": "xbridge.eraseSimulator",
"when": "view == xbridge.simulators && viewItem =~ /^simulator\\./",
"group": "9_danger@1"
}
]
},
"languageModelTools": [
{
"name": "xbridge_build",
"displayName": "Build iOS Project",
"modelDescription": "Builds the current Xcode project or workspace using xcodebuild for a given scheme and destination. Returns the build status and any compiler errors/warnings. Use this to verify that Swift/Objective-C code compiles.",
"userDescription": "Build the iOS project with xcodebuild",
"toolReferenceName": "iosBuild",
"canBeReferencedInPrompt": true,
"icon": "$(tools)",
"tags": [
"ios",
"xcode",
"build"
],
"inputSchema": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"description": "The Xcode scheme to build. Optional; defaults to the currently selected scheme."
},
"configuration": {
"type": "string",
"description": "Build configuration such as Debug or Release. Optional."
},
"destinationId": {
"type": "string",
"description": "Simulator/device UDID to build for. Optional; defaults to the selected destination."
}
}
}
},
{
"name": "xbridge_test",
"displayName": "Run iOS Tests",
"modelDescription": "Runs the unit/UI tests of the current Xcode project using 'xcodebuild test'. Returns pass/fail summary and failing test details. Optionally filter to a specific test target, class, or method via testIdentifier (e.g. 'MyAppTests/LoginTests/testValidLogin').",
"userDescription": "Run iOS tests with xcodebuild",
"toolReferenceName": "iosTest",
"canBeReferencedInPrompt": true,
"icon": "$(beaker)",
"tags": [
"ios",
"xcode",
"test"
],
"inputSchema": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"description": "The scheme whose tests to run. Optional; defaults to the selected scheme."
},
"destinationId": {
"type": "string",
"description": "Simulator UDID to run tests on. Optional; defaults to the selected destination."
},
"testIdentifier": {
"type": "string",
"description": "Optional single test/target/class identifier to run, e.g. 'MyAppTests/LoginTests/testValidLogin'."
}
}
}
},
{
"name": "xbridge_run",
"displayName": "Run iOS App on Simulator",
"modelDescription": "Builds the app, installs it on the selected iOS simulator (booting it if needed), and launches it. Returns the launch status and the app bundle identifier.",
"userDescription": "Build, install and launch the app on a simulator",
"toolReferenceName": "iosRun",
"canBeReferencedInPrompt": true,
"icon": "$(play)",
"tags": [
"ios",
"xcode",
"simulator",
"run"
],
"inputSchema": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"description": "The scheme to run. Optional; defaults to the selected scheme."
},
"destinationId": {
"type": "string",
"description": "Simulator UDID to run on. Optional; defaults to the selected destination."
}
}
}
},
{
"name": "xbridge_listSchemes",
"displayName": "List Xcode Schemes",
"modelDescription": "Lists all schemes, targets and configurations available in the current Xcode project or workspace. Use this to discover valid scheme names before building, running or testing.",
"userDescription": "List available Xcode schemes and targets",
"toolReferenceName": "iosSchemes",
"canBeReferencedInPrompt": true,
"icon": "$(target)",
"tags": [
"ios",
"xcode"
],
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "xbridge_listSimulators",
"displayName": "List iOS Simulators",
"modelDescription": "Lists available iOS simulators grouped by runtime, including their name, UDID and boot state. Use this to discover valid destination UDIDs.",
"userDescription": "List available iOS simulators",
"toolReferenceName": "iosSimulators",
"canBeReferencedInPrompt": true,
"icon": "$(device-mobile)",
"tags": [
"ios",
"simulator"
],
"inputSchema": {
"type": "object",
"properties": {
"availableOnly": {
"type": "boolean",
"description": "If true, only include simulators that are currently available. Defaults to true."
}
}
}
},
{
"name": "xbridge_bootSimulator",
"displayName": "Boot iOS Simulator",
"modelDescription": "Boots an iOS simulator by UDID (or the selected destination) so that apps can be installed and launched on it.",
"userDescription": "Boot an iOS simulator",
"toolReferenceName": "iosBoot",
"canBeReferencedInPrompt": true,
"icon": "$(vm-running)",
"tags": [
"ios",
"simulator"
],
"inputSchema": {
"type": "object",
"properties": {
"udid": {
"type": "string",
"description": "UDID of the simulator to boot. Optional; defaults to the selected destination."
}
}
}
},
{
"name": "xbridge_readDiagnostics",
"displayName": "Read Build Diagnostics",
"modelDescription": "Returns the errors, warnings and test failures from the most recent build or test run without re-building. Use this to check the current state of the project after code changes, before deciding whether to rebuild.",
"userDescription": "Read errors and warnings from the last build",
"toolReferenceName": "iosDiagnostics",
"canBeReferencedInPrompt": true,
"icon": "$(list-flat)",
"tags": [
"ios",
"xcode",
"diagnostics"
],
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "xbridge_clean",
"displayName": "Clean Build Folder",
"modelDescription": "Cleans the Xcode build folder (DerivedData) so the next build starts completely fresh. Use this when builds produce stale or inconsistent results, or after significant project structure changes.",
"userDescription": "Clean the Xcode build folder",
"toolReferenceName": "iosClean",
"canBeReferencedInPrompt": true,
"icon": "$(trash)",
"tags": [
"ios",
"xcode",
"clean"
],
"inputSchema": {
"type": "object",
"properties": {}
}
}
],
"walkthroughs": [
{
"id": "xbridge.welcome",
"title": "Get started with XBridge",
"description": "Build, run and test your iOS app on a simulator without leaving VS Code.",
"when": "isMac",
"steps": [
{
"id": "xbridge.walkthrough.project",
"title": "Pick your project",
"description": "XBridge auto-detects an .xcodeproj, .xcworkspace or Package.swift in your folder. If you have several, choose one.\n[Select Xcode Project](command:xbridge.selectProject)",
"media": {
"markdown": "resources/walkthrough/project.md"
},
"completionEvents": [
"onCommand:xbridge.selectProject"
]
},
{
"id": "xbridge.walkthrough.destination",
"title": "Choose a simulator",
"description": "Open the XBridge view in the Activity Bar and click any simulator to make it your run destination — booted devices are listed first.\n[Select Destination](command:xbridge.selectDestination)",
"media": {
"markdown": "resources/walkthrough/destination.md"
},
"completionEvents": [
"onCommand:xbridge.selectDestination",
"onCommand:xbridge.setDestination"
]
},
{
"id": "xbridge.walkthrough.run",
"title": "Build and run",
"description": "Hit Run to build, install and launch on the simulator. The app's console streams into the XBridge App output channel.\n[Build & Run](command:xbridge.run)",
"media": {
"markdown": "resources/walkthrough/run.md"
},
"completionEvents": [
"onCommand:xbridge.run"
]
},
{
"id": "xbridge.walkthrough.ai",
"title": "Let Copilot drive Xcode",
"description": "Reference #iosBuild, #iosTest or #iosRun in Copilot Chat and the agent can compile your Swift code, run tests and read back the failures.\n[Open Chat](command:workbench.action.chat.open)",
"media": {
"markdown": "resources/walkthrough/ai.md"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && node esbuild.js --production",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts",
"test": "tsx --test test/*.test.ts"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"esbuild": "^0.21.5",
"eslint": "^8.57.0",
"npm-run-all": "^4.1.5",
"tsx": "^4.23.12",
"typescript": "^5.5.2"
}
}