-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
926 lines (926 loc) · 31.8 KB
/
Copy pathpackage.json
File metadata and controls
926 lines (926 loc) · 31.8 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
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
{
"name": "winccoa-project-admin",
"displayName": "WinCC OA Project Admin",
"description": "Central control and monitoring for WinCC OA projects - project management, system status, and manager control",
"publisher": "RichardJanisch",
"version": "2.5.0",
"author": "RichardJanisch",
"license": "MIT",
"icon": "resources/wincc_oa_control_512.png",
"repository": {
"type": "git",
"url": "https://github.com/winccoa-tools-pack/vscode-winccoa-project-admin"
},
"engines": {
"vscode": "^1.110.0"
},
"categories": [
"Other"
],
"keywords": [
"wincc-oa",
"winccoa",
"scada",
"hmi",
"siemens",
"core"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"private": false,
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "winccoa-project-admin",
"title": "WinCC OA Project Admin",
"icon": "resources/winccoa-icon.svg"
}
]
},
"views": {
"winccoa-project-admin": [
{
"id": "winccoa.systemView",
"name": "System Status",
"icon": "$(server)"
},
{
"id": "winccoa.managerView",
"name": "Managers",
"icon": "$(tools)"
}
]
},
"commands": [
{
"command": "winccoa.core.selectProject",
"title": "Select WinCC OA Project",
"category": "WinCC OA"
},
{
"command": "winccoa.core.refreshProjects",
"title": "Refresh WinCC OA Projects",
"category": "WinCC OA"
},
{
"command": "winccoa.core.showProjectInfo",
"title": "Show Current Project Info",
"category": "WinCC OA"
},
{
"command": "winccoa.manager.start",
"title": "Start Manager",
"category": "WinCC OA",
"icon": "$(play)"
},
{
"command": "winccoa.manager.stop",
"title": "Stop Manager",
"category": "WinCC OA",
"icon": "$(stop)"
},
{
"command": "winccoa.manager.restart",
"title": "Restart Manager",
"category": "WinCC OA",
"icon": "$(debug-restart)"
},
{
"command": "winccoa.manager.delete",
"title": "Delete Manager",
"category": "WinCC OA",
"icon": "$(trash)"
},
{
"command": "winccoa.manager.edit",
"title": "Edit Manager Settings",
"category": "WinCC OA",
"icon": "$(settings-gear)"
},
{
"command": "winccoa.manager.add",
"title": "Add Manager",
"category": "WinCC OA",
"icon": "$(add)"
},
{
"command": "winccoa.system.start",
"title": "Start PMON",
"category": "WinCC OA",
"icon": "$(play)"
},
{
"command": "winccoa.system.stop",
"title": "Stop PMON",
"category": "WinCC OA",
"icon": "$(stop)"
},
{
"command": "winccoa.system.restart",
"title": "Restart PMON",
"category": "WinCC OA",
"icon": "$(debug-restart)"
},
{
"command": "winccoa.project.start",
"title": "Start Project",
"category": "WinCC OA",
"icon": "$(play)"
},
{
"command": "winccoa.project.stop",
"title": "Stop Project",
"category": "WinCC OA",
"icon": "$(stop)"
},
{
"command": "winccoa.openConfig",
"title": "Open Config",
"category": "WinCC OA",
"icon": "$(settings-gear)"
},
{
"command": "winccoa.openLogViewer",
"title": "Open Log Viewer",
"category": "WinCC OA",
"icon": "$(output)"
},
{
"command": "winccoa.systemView.refresh",
"title": "Refresh",
"category": "WinCC OA",
"icon": "$(refresh)"
},
{
"command": "winccoa.managerView.refresh",
"title": "Refresh",
"category": "WinCC OA",
"icon": "$(refresh)"
},
{
"command": "winccoa.project.setActive",
"title": "Set as Active Project",
"category": "WinCC OA"
},
{
"command": "winccoa.project.addToWorkspace",
"title": "Add Project to Workspace",
"category": "WinCC OA"
},
{
"command": "winccoa.project.openInExplorer",
"title": "Open in Explorer",
"category": "WinCC OA"
},
{
"command": "winccoa.subproject.addToWorkspace",
"title": "Add Subproject to Workspace",
"category": "WinCC OA"
},
{
"command": "winccoa.subproject.openInExplorer",
"title": "Open in Explorer",
"category": "WinCC OA"
},
{
"command": "winccoa.project.register",
"title": "Register New Project",
"category": "WinCC OA",
"icon": "$(add)"
},
{
"command": "winccoa.project.unregister",
"title": "Unregister Project",
"category": "WinCC OA",
"icon": "$(trash)"
},
{
"command": "winccoa.explorer.registerProject",
"title": "Register as WinCC OA Project",
"category": "WinCC OA"
},
{
"command": "winccoa.project.addToFavorites",
"title": "Add to Favorites",
"category": "WinCC OA"
},
{
"command": "winccoa.project.removeFromFavorites",
"title": "Remove from Favorites",
"category": "WinCC OA"
},
{
"command": "winccoa.manager.toggleWatcher",
"title": "Toggle File Watcher",
"category": "WinCC OA",
"icon": "$(eye)"
},
{
"command": "winccoa.manager.configureWatcher",
"title": "Configure Watch Paths",
"category": "WinCC OA",
"icon": "$(gear)"
},
{
"command": "winccoa.manager.stopAllWatchers",
"title": "Stop All File Watchers",
"category": "WinCC OA"
}
],
"menus": {
"view/title": [
{
"command": "winccoa.systemView.refresh",
"when": "view == winccoa.systemView",
"group": "navigation"
},
{
"command": "winccoa.openConfig",
"when": "view == winccoa.systemView",
"group": "navigation@2"
},
{
"command": "winccoa.openLogViewer",
"when": "view == winccoa.systemView",
"group": "navigation@3"
},
{
"command": "winccoa.project.register",
"when": "view == winccoa.systemView",
"group": "navigation@4"
},
{
"command": "winccoa.managerView.refresh",
"when": "view == winccoa.managerView",
"group": "navigation"
},
{
"command": "winccoa.manager.add",
"when": "view == winccoa.managerView",
"group": "navigation@2"
}
],
"view/item/context": [
{
"command": "winccoa.manager.toggleWatcher",
"when": "view == winccoa.managerView && viewItem =~ /^manager/",
"group": "inline@1"
},
{
"command": "winccoa.manager.restart",
"when": "view == winccoa.managerView && viewItem == manager",
"group": "inline@2"
},
{
"command": "winccoa.manager.start",
"when": "view == winccoa.managerView && viewItem == manager",
"group": "inline@3"
},
{
"command": "winccoa.manager.stop",
"when": "view == winccoa.managerView && viewItem == manager",
"group": "inline@4"
},
{
"command": "winccoa.manager.delete",
"when": "view == winccoa.managerView && viewItem =~ /^manager/",
"group": "manager@2"
},
{
"command": "winccoa.manager.edit",
"when": "view == winccoa.managerView && viewItem =~ /^manager/",
"group": "manager@1"
},
{
"command": "winccoa.manager.configureWatcher",
"when": "view == winccoa.managerView && viewItem =~ /^manager/",
"group": "manager@3"
},
{
"command": "winccoa.manager.delete",
"when": "view == winccoa.managerView && viewItem == manager",
"group": "manager@2"
},
{
"command": "winccoa.manager.edit",
"when": "view == winccoa.managerView && viewItem == manager",
"group": "manager@1"
},
{
"command": "winccoa.project.start",
"when": "view == winccoa.systemView && viewItem =~ /^project(-favorite|-nonfavorite)?$/",
"group": "inline@1"
},
{
"command": "winccoa.project.stop",
"when": "view == winccoa.systemView && viewItem =~ /^project(-favorite|-nonfavorite)?$/",
"group": "inline@2"
},
{
"command": "winccoa.project.setActive",
"when": "view == winccoa.systemView && viewItem =~ /^project(-favorite|-nonfavorite)?$/",
"group": "1_project@1"
},
{
"command": "winccoa.project.addToFavorites",
"when": "view == winccoa.systemView && viewItem == project-nonfavorite",
"group": "1_project@2"
},
{
"command": "winccoa.project.removeFromFavorites",
"when": "view == winccoa.systemView && viewItem == project-favorite",
"group": "1_project@3"
},
{
"command": "winccoa.project.addToWorkspace",
"when": "view == winccoa.systemView && viewItem =~ /^project(-favorite|-nonfavorite)?$/",
"group": "1_project@4"
},
{
"command": "winccoa.project.openInExplorer",
"when": "view == winccoa.systemView && viewItem =~ /^project(-favorite|-nonfavorite)?$/",
"group": "2_open@1"
},
{
"command": "winccoa.project.unregister",
"when": "view == winccoa.systemView && viewItem =~ /^project(-favorite|-nonfavorite)?$/",
"group": "9_danger@1"
},
{
"command": "winccoa.subproject.addToWorkspace",
"when": "view == winccoa.systemView && viewItem == subproject",
"group": "1_workspace@1"
},
{
"command": "winccoa.subproject.openInExplorer",
"when": "view == winccoa.systemView && viewItem == subproject",
"group": "2_open@1"
}
],
"explorer/context": [
{
"command": "winccoa.explorer.registerProject",
"when": "explorerResourceIsFolder",
"group": "winccoa@1"
}
]
},
"languageModelTools": [
{
"name": "winccoa_list_projects",
"displayName": "List WinCC OA Projects",
"modelDescription": "Get all registered WinCC OA projects with their status (running/stopped/error). Use when the user asks about available projects, project lists, or which projects exist.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_projects",
"icon": "$(list-unordered)",
"userDescription": "List all WinCC OA projects with status information",
"inputSchema": {
"type": "object",
"properties": {
"statusFilter": {
"type": "string",
"enum": [
"all",
"running",
"stopped",
"error"
],
"description": "Filter projects by status (default: all)"
}
}
}
},
{
"name": "winccoa_get_project_info",
"displayName": "Get WinCC OA Project Information",
"modelDescription": "Get detailed information about a specific WinCC OA project including version, paths, and status. Use when the user asks for details about a specific project.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_project_details",
"icon": "$(info)",
"userDescription": "Get detailed information about a specific WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project ID/name to get information for"
}
},
"required": [
"projectId"
]
}
},
{
"name": "winccoa_set_active_project",
"displayName": "Set Active WinCC OA Project",
"modelDescription": "Set the currently active/selected WinCC OA project in VS Code. Use when the user wants to switch to a different project context or work with a specific project.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_select_project",
"icon": "$(target)",
"userDescription": "Set the active WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project ID/name to set as active"
}
},
"required": [
"projectId"
]
}
},
{
"name": "winccoa_start_project",
"displayName": "Start WinCC OA Project",
"modelDescription": "Start a WinCC OA project (starts PMON and all managers). Use when the user wants to start a project or run a project.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_start",
"icon": "$(play)",
"userDescription": "Start a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project ID/name to start"
},
"waitForStartup": {
"type": "boolean",
"description": "Wait for project to fully start (default: false)"
}
},
"required": [
"projectId"
]
}
},
{
"name": "winccoa_stop_project",
"displayName": "Stop WinCC OA Project",
"modelDescription": "Stop a running WinCC OA project (stops all managers and PMON). Use when the user wants to stop a project or shut down a project.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_stop",
"icon": "$(debug-stop)",
"userDescription": "Stop a running WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project ID/name to stop"
},
"timeout": {
"type": "number",
"description": "Timeout in seconds (default: 30)"
}
},
"required": [
"projectId"
]
}
},
{
"name": "winccoa_get_pmon_status",
"displayName": "Get WinCC OA PMON Status",
"modelDescription": "Get the PMON (Process Monitor) status for a WinCC OA project. PMON manages all project processes. Use when the user asks about project runtime status or if a project is running.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_pmon",
"icon": "$(pulse)",
"userDescription": "Get PMON status for a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project ID/name to check PMON status for"
}
},
"required": [
"projectId"
]
}
},
{
"name": "winccoa_project_managers",
"displayName": "List WinCC OA Managers",
"modelDescription": "List all managers (processes/components) running in a WinCC OA project. Managers include Event, Dist, DB, UI, etc. Use when the user asks about running components or processes.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_project_managers",
"icon": "$(server-process)",
"userDescription": "List all managers in a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
},
"statusFilter": {
"type": "string",
"enum": [
"all",
"running",
"stopped"
],
"description": "Filter managers by status (default: all)"
}
},
"required": []
}
},
{
"name": "winccoa_start_manager",
"displayName": "Start WinCC OA Manager",
"modelDescription": "Start a specific manager (process/component) in a WinCC OA project. Managers are identified by their number (e.g., 1 for DIST_1, 2 for EVENT_1). Use when the user wants to start a specific manager.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_manager_start",
"icon": "$(play)",
"userDescription": "Start a specific manager in a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"managerNum": {
"type": "number",
"description": "The manager number to start (e.g., 1 for DIST_1)"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
}
},
"required": [
"managerNum"
]
}
},
{
"name": "winccoa_stop_manager",
"displayName": "Stop WinCC OA Manager",
"modelDescription": "Stop a specific manager (process/component) in a WinCC OA project. Use when the user wants to stop a specific manager or troubleshoot a manager issue.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_manager_stop",
"icon": "$(stop)",
"userDescription": "Stop a specific manager in a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"managerNum": {
"type": "number",
"description": "The manager number to stop (e.g., 2 for EVENT_1)"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
}
},
"required": [
"managerNum"
]
}
},
{
"name": "winccoa_restart_manager",
"displayName": "Restart WinCC OA Manager",
"modelDescription": "Restart a specific manager (stop then start). Use when the user wants to restart a manager to apply changes or troubleshoot.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_manager_restart",
"icon": "$(debug-restart)",
"userDescription": "Restart a specific manager in a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"managerNum": {
"type": "number",
"description": "The manager number to restart"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
}
},
"required": [
"managerNum"
]
}
},
{
"name": "winccoa_add_manager",
"displayName": "Add WinCC OA Manager",
"modelDescription": "Add a new manager to a WinCC OA project. Opens the manager add wizard for user input. Use when the user wants to add or create a new manager component.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_manager_add",
"icon": "$(add)",
"userDescription": "Add a new manager to a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"component": {
"type": "string",
"description": "Manager component name (e.g., WCCOActrl, WCCOAui, WCCOAascii)"
},
"startMode": {
"type": "number",
"description": "Start mode: 0=Manual, 1=Once, 2=Always (default: 2)"
},
"startOptions": {
"type": "string",
"description": "Command-line options (e.g., '-num 1 -f script.ctl')"
},
"secondToKill": {
"type": "number",
"description": "Seconds to wait before force kill (default: 30)"
},
"resetMin": {
"type": "number",
"description": "Minutes before allowing restart (default: 1)"
},
"resetStartCounter": {
"type": "number",
"description": "Max restart attempts (default: 3)"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
}
},
"required": [
"component"
]
}
},
{
"name": "winccoa_delete_manager",
"displayName": "Delete WinCC OA Manager",
"modelDescription": "Delete a manager from a WinCC OA project. Cannot delete PMON or Data Manager (index 0-1). Use when the user wants to remove a manager.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_manager_delete",
"icon": "$(trash)",
"userDescription": "Delete a manager from a WinCC OA project",
"inputSchema": {
"type": "object",
"properties": {
"managerNum": {
"type": "number",
"description": "The manager number to delete (must be > 1, cannot delete PMON or Data Manager)"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
}
},
"required": [
"managerNum"
]
}
},
{
"name": "winccoa_configure_manager",
"displayName": "Configure WinCC OA Manager",
"modelDescription": "Configure manager settings (start mode, kill timeout, restart behavior). Opens the manager configuration panel for user input. Cannot configure PMON or Data Manager.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_manager_configure",
"icon": "$(settings-gear)",
"userDescription": "Configure settings for a WinCC OA manager",
"inputSchema": {
"type": "object",
"properties": {
"managerNum": {
"type": "number",
"description": "The manager number to configure (must be > 1)"
},
"startMode": {
"type": "number",
"description": "Start mode: 0=Manual, 1=Once, 2=Always"
},
"startOptions": {
"type": "string",
"description": "Command-line options"
},
"secondToKill": {
"type": "number",
"description": "Seconds to wait before force kill"
},
"resetMin": {
"type": "number",
"description": "Minutes before allowing restart"
},
"resetStartCounter": {
"type": "number",
"description": "Max restart attempts"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
}
},
"required": [
"managerNum"
]
}
},
{
"name": "winccoa_toggle_watcher",
"displayName": "Toggle File Watcher",
"modelDescription": "Toggle the file watcher for a specific WinCC OA manager. When active, the watcher monitors files and automatically restarts the manager when changes are detected. Use when the user wants to enable/disable auto-restart on file changes.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_watcher",
"icon": "$(eye)",
"userDescription": "Toggle file watcher for automatic manager restart",
"inputSchema": {
"type": "object",
"properties": {
"managerNum": {
"type": "number",
"description": "The manager number to toggle watcher for"
},
"projectId": {
"type": "string",
"description": "The project ID/name (optional - defaults to active project)"
},
"action": {
"type": "string",
"enum": [
"start",
"stop",
"toggle"
],
"description": "Action to perform: start, stop, or toggle (default: toggle)"
}
},
"required": [
"managerNum"
]
}
},
{
"name": "winccoa_watcher_status",
"displayName": "Get File Watcher Status",
"modelDescription": "Get the status of all active file watchers. Shows which managers have active watchers and their current state. Use when the user asks about watcher status or wants to see which managers are being watched.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "winccoa_watcher_status",
"icon": "$(list-unordered)",
"userDescription": "Get status of all active file watchers",
"inputSchema": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Filter by project ID (optional - shows all if not specified)"
}
}
}
}
],
"configuration": {
"title": "WinCC OA Project Admin",
"properties": {
"winccoaProjectAdmin.logLevel": {
"type": "string",
"enum": [
"ERROR",
"WARN",
"INFO",
"DEBUG",
"TRACE"
],
"default": "INFO",
"description": "Logging level for extension output",
"enumDescriptions": [
"Only critical errors",
"Errors and warnings",
"General information, errors and warnings (recommended)",
"Detailed debugging information",
"Very verbose trace information (for troubleshooting)"
]
},
"winccoaProjectAdmin.devWatcher.defaultPatterns": {
"type": "object",
"default": {
"node": [
"scripts/libs/**/*.ctl",
"javascript/**/*.js",
"javascript/**/*.ts",
"scripts/libs/**/*.ctl"
],
"WCCOAnode": [
"scripts/libs/**/*.ctl",
"javascript/**/*.js",
"javascript/**/*.ts",
"scripts/libs/**/*.ctl"
],
"CTRL": [
"scripts/**/*.ctl",
"scripts/libs/**/*.ctl"
],
"WCCOActrl": [
"scripts/**/*.ctl",
"scripts/libs/**/*.ctl"
],
"UI": [
"panels/**/*.xml",
"panels/**/*.pnl"
]
},
"description": "Default watch patterns by manager type. Keys are manager type prefixes (e.g., 'node', 'CTRL'), values are arrays of glob patterns relative to project root.",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"winccoaProjectAdmin.devWatcher.debounceMs": {
"type": "number",
"default": 500,
"minimum": 100,
"maximum": 5000,
"description": "Debounce delay in milliseconds before triggering manager restart after file changes"
},
"winccoaProjectAdmin.devWatcher.ignoredPatterns": {
"type": "array",
"default": [
"**/node_modules/**",
"**/dist/**",
"**/*.d.ts",
"**/.git/**"
],
"items": {
"type": "string"
},
"description": "Glob patterns to ignore when watching files"
},
"winccoaProjectAdmin.devWatcher.maxRetries": {
"type": "number",
"default": 3,
"minimum": 0,
"maximum": 10,
"description": "Maximum number of restart retries on failure"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "webpack",
"clean:out": "node -e \"require('fs').rmSync('out',{ recursive:true, force:true, maxRetries:10, retryDelay:200 })\"",
"clean:out-tests": "node -e \"try{require('fs').rmSync('out/test',{ recursive:true, force:true, maxRetries:10, retryDelay:200 })}catch(e){console.warn('clean:out-tests skipped:', e.message)}\"",
"clean:coverage": "node -e \"require('fs').rmSync('coverage',{ recursive:true, force:true, maxRetries:10, retryDelay:200 })\"",
"clean:coverage:unitTests": "node -e \"require('fs').rmSync('coverage/unitTests',{ recursive:true, force:true, maxRetries:10, retryDelay:200 })\"",
"clean:coverage:integrationTests": "node -e \"require('fs').rmSync('coverage/integrationTests',{ recursive:true, force:true, maxRetries:10, retryDelay:200 })\"",
"compile:tsc": "tsc -p ./ && npm run copy-fixtures",
"copy-fixtures": "copyfiles -u 1 \"src/test/fixtures/**/*\" out/",
"start": "code --extensionDevelopmentPath=.",
"start:insiders": "code-insiders --extensionDevelopmentPath=.",
"dev": "npm run watch",
"watch": "webpack --watch",
"pretest": "npm run compile:tsc && npm run lint",
"lint": "eslint \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" --fix",
"lint:md": "markdownlint \"**/*.md\" --ignore node_modules",
"lint:md:fix": "markdownlint \"**/*.md\" --ignore node_modules --fix",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "vscode-test --label unitTests",
"test:integration": "vscode-test --label integrationTests",
"test:unit:coverage": "npm run compile:tsc && npm run clean:coverage:unitTests && vscode-test --label unitTests --coverage --coverage-output coverage/unitTests --coverage-reporter lcov --coverage-reporter html --coverage-reporter json-summary --coverage-reporter text-summary",
"test:integration:coverage": "npm run compile:tsc && npm run clean:coverage:integrationTests && vscode-test --label integrationTests --coverage --coverage-output coverage/integrationTests --coverage-reporter lcov --coverage-reporter html --coverage-reporter json-summary --coverage-reporter text-summary",
"test:coverage": "npm run test:unit:coverage && npm run test:integration:coverage",
"ci:integration": "npm ci && npm run compile && npm run test:integration",
"style-check": "npm run format:check && npm run lint"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^25.5.0",
"@types/vscode": "^1.110.0",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.55.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"copyfiles": "^2.4.1",
"eslint": "^8.50.0",
"glob": "^13.0.6",
"markdownlint-cli": "^0.47.0",
"mocha": "^11.3.0",
"prettier": "^2.8.8",
"ts-loader": "^9.5.4",
"ts-node": "^10.9.2",
"typescript": "^5.2.0",
"webpack": "^5.105.2",
"webpack-cli": "^6.0.1"
},
"config": {
"winccoaImage": "mpokornyetm/winccoa-tools-pack-npm-winccoa-core:npm-winccoa-core"
},
"dependencies": {
"@winccoa-tools-pack/npm-winccoa-core": "0.2.6",
"chokidar": "^3.6.0"
}
}