@mainwp/control 1.1.0-beta.1 → 2.0.0
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/CHANGELOG.md +177 -0
- package/README.md +162 -518
- package/dist/chat/chat-engine.d.ts +24 -54
- package/dist/chat/chat-engine.d.ts.map +1 -1
- package/dist/chat/chat-engine.js +367 -166
- package/dist/chat/chat-engine.js.map +1 -1
- package/dist/chat/context-window.d.ts +57 -0
- package/dist/chat/context-window.d.ts.map +1 -0
- package/dist/chat/context-window.js +94 -0
- package/dist/chat/context-window.js.map +1 -0
- package/dist/chat/providers/anthropic.d.ts +0 -4
- package/dist/chat/providers/anthropic.d.ts.map +1 -1
- package/dist/chat/providers/anthropic.js +67 -45
- package/dist/chat/providers/anthropic.js.map +1 -1
- package/dist/chat/providers/gemini.d.ts +2 -2
- package/dist/chat/providers/gemini.d.ts.map +1 -1
- package/dist/chat/providers/gemini.js +67 -43
- package/dist/chat/providers/gemini.js.map +1 -1
- package/dist/chat/providers/openai-compatible.d.ts +1 -1
- package/dist/chat/providers/openai-compatible.d.ts.map +1 -1
- package/dist/chat/providers/openai-compatible.js +91 -29
- package/dist/chat/providers/openai-compatible.js.map +1 -1
- package/dist/chat/providers/provider-fetch.d.ts +11 -0
- package/dist/chat/providers/provider-fetch.d.ts.map +1 -1
- package/dist/chat/providers/provider-fetch.js +86 -4
- package/dist/chat/providers/provider-fetch.js.map +1 -1
- package/dist/chat/providers/provider.d.ts +74 -1
- package/dist/chat/providers/provider.d.ts.map +1 -1
- package/dist/chat/providers/provider.js +112 -2
- package/dist/chat/providers/provider.js.map +1 -1
- package/dist/chat/providers/sse-reader.d.ts +3 -0
- package/dist/chat/providers/sse-reader.d.ts.map +1 -1
- package/dist/chat/providers/sse-reader.js +75 -15
- package/dist/chat/providers/sse-reader.js.map +1 -1
- package/dist/chat/system-prompt.d.ts +0 -2
- package/dist/chat/system-prompt.d.ts.map +1 -1
- package/dist/chat/system-prompt.js +10 -6
- package/dist/chat/system-prompt.js.map +1 -1
- package/dist/chat/tool-envelope.d.ts +3 -0
- package/dist/chat/tool-envelope.d.ts.map +1 -1
- package/dist/chat/tool-envelope.js +156 -10
- package/dist/chat/tool-envelope.js.map +1 -1
- package/dist/commands/abilities/info.d.ts.map +1 -1
- package/dist/commands/abilities/info.js +6 -3
- package/dist/commands/abilities/info.js.map +1 -1
- package/dist/commands/abilities/list.js +2 -2
- package/dist/commands/abilities/list.js.map +1 -1
- package/dist/commands/abilities/run.d.ts.map +1 -1
- package/dist/commands/abilities/run.js +147 -48
- package/dist/commands/abilities/run.js.map +1 -1
- package/dist/commands/chat.d.ts +12 -0
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +67 -42
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/config/show.d.ts.map +1 -1
- package/dist/commands/config/show.js +59 -47
- package/dist/commands/config/show.js.map +1 -1
- package/dist/commands/doctor.d.ts +0 -8
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +22 -36
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/jobs/watch.d.ts +4 -0
- package/dist/commands/jobs/watch.d.ts.map +1 -1
- package/dist/commands/jobs/watch.js +66 -27
- package/dist/commands/jobs/watch.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +59 -10
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/profile/delete.d.ts.map +1 -1
- package/dist/commands/profile/delete.js +19 -3
- package/dist/commands/profile/delete.js.map +1 -1
- package/dist/commands/profile/list.d.ts.map +1 -1
- package/dist/commands/profile/list.js +6 -2
- package/dist/commands/profile/list.js.map +1 -1
- package/dist/commands/profile/use.d.ts.map +1 -1
- package/dist/commands/profile/use.js +4 -1
- package/dist/commands/profile/use.js.map +1 -1
- package/dist/config/fs-utils.d.ts.map +1 -1
- package/dist/config/fs-utils.js +19 -6
- package/dist/config/fs-utils.js.map +1 -1
- package/dist/config/keychain.d.ts +78 -6
- package/dist/config/keychain.d.ts.map +1 -1
- package/dist/config/keychain.js +194 -27
- package/dist/config/keychain.js.map +1 -1
- package/dist/config/profile-store.d.ts +11 -3
- package/dist/config/profile-store.d.ts.map +1 -1
- package/dist/config/profile-store.js +53 -19
- package/dist/config/profile-store.js.map +1 -1
- package/dist/core/abilities-executor.d.ts +42 -6
- package/dist/core/abilities-executor.d.ts.map +1 -1
- package/dist/core/abilities-executor.js +264 -67
- package/dist/core/abilities-executor.js.map +1 -1
- package/dist/core/batch-manager.d.ts +10 -5
- package/dist/core/batch-manager.d.ts.map +1 -1
- package/dist/core/batch-manager.js +78 -22
- package/dist/core/batch-manager.js.map +1 -1
- package/dist/core/execute-ability-with-policy.d.ts +8 -0
- package/dist/core/execute-ability-with-policy.d.ts.map +1 -0
- package/dist/core/execute-ability-with-policy.js +19 -0
- package/dist/core/execute-ability-with-policy.js.map +1 -0
- package/dist/core/http-client.d.ts +5 -1
- package/dist/core/http-client.d.ts.map +1 -1
- package/dist/core/http-client.js +118 -46
- package/dist/core/http-client.js.map +1 -1
- package/dist/core/job-id.d.ts +2 -0
- package/dist/core/job-id.d.ts.map +1 -0
- package/dist/core/job-id.js +22 -0
- package/dist/core/job-id.js.map +1 -0
- package/dist/core/preview-plan.d.ts +5 -0
- package/dist/core/preview-plan.d.ts.map +1 -0
- package/dist/core/preview-plan.js +247 -0
- package/dist/core/preview-plan.js.map +1 -0
- package/dist/core/safety-controller.d.ts +29 -10
- package/dist/core/safety-controller.d.ts.map +1 -1
- package/dist/core/safety-controller.js +154 -41
- package/dist/core/safety-controller.js.map +1 -1
- package/dist/lib/base-command.d.ts +20 -0
- package/dist/lib/base-command.d.ts.map +1 -1
- package/dist/lib/base-command.js +92 -35
- package/dist/lib/base-command.js.map +1 -1
- package/dist/output/formatter.d.ts +37 -1
- package/dist/output/formatter.d.ts.map +1 -1
- package/dist/output/formatter.js +111 -16
- package/dist/output/formatter.js.map +1 -1
- package/dist/output/json-envelope.d.ts.map +1 -1
- package/dist/output/json-envelope.js +8 -5
- package/dist/output/json-envelope.js.map +1 -1
- package/dist/utils/audit-logger.d.ts +26 -8
- package/dist/utils/audit-logger.d.ts.map +1 -1
- package/dist/utils/audit-logger.js +93 -20
- package/dist/utils/audit-logger.js.map +1 -1
- package/dist/utils/error-sanitizer.d.ts +6 -0
- package/dist/utils/error-sanitizer.d.ts.map +1 -0
- package/dist/utils/error-sanitizer.js +120 -0
- package/dist/utils/error-sanitizer.js.map +1 -0
- package/dist/utils/errors.d.ts +12 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +14 -0
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/format.d.ts +68 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +668 -0
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/prompt.d.ts.map +1 -1
- package/dist/utils/prompt.js +28 -23
- package/dist/utils/prompt.js.map +1 -1
- package/dist/utils/redaction.d.ts +21 -0
- package/dist/utils/redaction.d.ts.map +1 -0
- package/dist/utils/redaction.js +85 -0
- package/dist/utils/redaction.js.map +1 -0
- package/dist/utils/retry.d.ts +0 -4
- package/dist/utils/retry.d.ts.map +1 -1
- package/dist/utils/retry.js +0 -9
- package/dist/utils/retry.js.map +1 -1
- package/dist/utils/terminal-sanitizer.d.ts +21 -0
- package/dist/utils/terminal-sanitizer.d.ts.map +1 -1
- package/dist/utils/terminal-sanitizer.js +80 -14
- package/dist/utils/terminal-sanitizer.js.map +1 -1
- package/dist/validation/input-sanitizer.d.ts +0 -4
- package/dist/validation/input-sanitizer.d.ts.map +1 -1
- package/dist/validation/input-sanitizer.js +15 -64
- package/dist/validation/input-sanitizer.js.map +1 -1
- package/dist/validation/sanitize-schema.d.ts +31 -0
- package/dist/validation/sanitize-schema.d.ts.map +1 -0
- package/dist/validation/sanitize-schema.js +158 -0
- package/dist/validation/sanitize-schema.js.map +1 -0
- package/dist/validation/schema-validator.d.ts +10 -0
- package/dist/validation/schema-validator.d.ts.map +1 -1
- package/dist/validation/schema-validator.js +50 -5
- package/dist/validation/schema-validator.js.map +1 -1
- package/oclif.manifest.json +96 -74
- package/package.json +25 -8
package/oclif.manifest.json
CHANGED
|
@@ -121,6 +121,8 @@
|
|
|
121
121
|
"pluginName": "@mainwp/control",
|
|
122
122
|
"pluginType": "core",
|
|
123
123
|
"strict": true,
|
|
124
|
+
"enableJsonFlag": false,
|
|
125
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
124
126
|
"isESM": true,
|
|
125
127
|
"relativePath": [
|
|
126
128
|
"dist",
|
|
@@ -185,6 +187,8 @@
|
|
|
185
187
|
"pluginName": "@mainwp/control",
|
|
186
188
|
"pluginType": "core",
|
|
187
189
|
"strict": true,
|
|
190
|
+
"enableJsonFlag": false,
|
|
191
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
188
192
|
"isESM": true,
|
|
189
193
|
"relativePath": [
|
|
190
194
|
"dist",
|
|
@@ -273,6 +277,8 @@
|
|
|
273
277
|
"pluginName": "@mainwp/control",
|
|
274
278
|
"pluginType": "core",
|
|
275
279
|
"strict": true,
|
|
280
|
+
"enableJsonFlag": false,
|
|
281
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
276
282
|
"isESM": true,
|
|
277
283
|
"relativePath": [
|
|
278
284
|
"dist",
|
|
@@ -330,6 +336,8 @@
|
|
|
330
336
|
"pluginName": "@mainwp/control",
|
|
331
337
|
"pluginType": "core",
|
|
332
338
|
"strict": true,
|
|
339
|
+
"enableJsonFlag": false,
|
|
340
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
333
341
|
"isESM": true,
|
|
334
342
|
"relativePath": [
|
|
335
343
|
"dist",
|
|
@@ -391,6 +399,8 @@
|
|
|
391
399
|
"pluginName": "@mainwp/control",
|
|
392
400
|
"pluginType": "core",
|
|
393
401
|
"strict": true,
|
|
402
|
+
"enableJsonFlag": false,
|
|
403
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
394
404
|
"isESM": true,
|
|
395
405
|
"relativePath": [
|
|
396
406
|
"dist",
|
|
@@ -516,6 +526,8 @@
|
|
|
516
526
|
"pluginName": "@mainwp/control",
|
|
517
527
|
"pluginType": "core",
|
|
518
528
|
"strict": true,
|
|
529
|
+
"enableJsonFlag": false,
|
|
530
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
519
531
|
"isESM": true,
|
|
520
532
|
"relativePath": [
|
|
521
533
|
"dist",
|
|
@@ -585,6 +597,8 @@
|
|
|
585
597
|
"pluginName": "@mainwp/control",
|
|
586
598
|
"pluginType": "core",
|
|
587
599
|
"strict": true,
|
|
600
|
+
"enableJsonFlag": false,
|
|
601
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
588
602
|
"isESM": true,
|
|
589
603
|
"relativePath": [
|
|
590
604
|
"dist",
|
|
@@ -593,21 +607,19 @@
|
|
|
593
607
|
"show.js"
|
|
594
608
|
]
|
|
595
609
|
},
|
|
596
|
-
"
|
|
610
|
+
"profile:delete": {
|
|
597
611
|
"aliases": [],
|
|
598
612
|
"args": {
|
|
599
|
-
"
|
|
600
|
-
"description": "
|
|
601
|
-
"name": "
|
|
613
|
+
"name": {
|
|
614
|
+
"description": "Profile name to delete",
|
|
615
|
+
"name": "name",
|
|
602
616
|
"required": true
|
|
603
617
|
}
|
|
604
618
|
},
|
|
605
|
-
"description": "
|
|
619
|
+
"description": "Delete a Dashboard profile",
|
|
606
620
|
"examples": [
|
|
607
|
-
"<%= config.bin %>
|
|
608
|
-
"<%= config.bin %>
|
|
609
|
-
"<%= config.bin %> jobs watch sync_abc123 --json",
|
|
610
|
-
"<%= config.bin %> jobs watch sync_abc123 --initial-delay 2000 --max-delay 60000"
|
|
621
|
+
"<%= config.bin %> profile delete staging",
|
|
622
|
+
"<%= config.bin %> profile delete old-profile --json"
|
|
611
623
|
],
|
|
612
624
|
"flags": {
|
|
613
625
|
"json": {
|
|
@@ -636,67 +648,32 @@
|
|
|
636
648
|
"name": "debug",
|
|
637
649
|
"allowNo": false,
|
|
638
650
|
"type": "boolean"
|
|
639
|
-
},
|
|
640
|
-
"timeout": {
|
|
641
|
-
"char": "t",
|
|
642
|
-
"description": "Maximum wait time in seconds (default: 300)",
|
|
643
|
-
"name": "timeout",
|
|
644
|
-
"default": 300,
|
|
645
|
-
"hasDynamicHelp": false,
|
|
646
|
-
"multiple": false,
|
|
647
|
-
"type": "option"
|
|
648
|
-
},
|
|
649
|
-
"initial-delay": {
|
|
650
|
-
"description": "Initial poll delay in milliseconds",
|
|
651
|
-
"name": "initial-delay",
|
|
652
|
-
"default": 1000,
|
|
653
|
-
"hasDynamicHelp": false,
|
|
654
|
-
"multiple": false,
|
|
655
|
-
"type": "option"
|
|
656
|
-
},
|
|
657
|
-
"max-delay": {
|
|
658
|
-
"description": "Maximum poll delay in milliseconds",
|
|
659
|
-
"name": "max-delay",
|
|
660
|
-
"default": 30000,
|
|
661
|
-
"hasDynamicHelp": false,
|
|
662
|
-
"multiple": false,
|
|
663
|
-
"type": "option"
|
|
664
|
-
},
|
|
665
|
-
"no-progress": {
|
|
666
|
-
"description": "Disable progress output (only show final result)",
|
|
667
|
-
"name": "no-progress",
|
|
668
|
-
"allowNo": false,
|
|
669
|
-
"type": "boolean"
|
|
670
651
|
}
|
|
671
652
|
},
|
|
672
653
|
"hasDynamicHelp": false,
|
|
673
654
|
"hiddenAliases": [],
|
|
674
|
-
"id": "
|
|
655
|
+
"id": "profile:delete",
|
|
675
656
|
"pluginAlias": "@mainwp/control",
|
|
676
657
|
"pluginName": "@mainwp/control",
|
|
677
658
|
"pluginType": "core",
|
|
678
659
|
"strict": true,
|
|
660
|
+
"enableJsonFlag": false,
|
|
661
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
679
662
|
"isESM": true,
|
|
680
663
|
"relativePath": [
|
|
681
664
|
"dist",
|
|
682
665
|
"commands",
|
|
683
|
-
"
|
|
684
|
-
"
|
|
666
|
+
"profile",
|
|
667
|
+
"delete.js"
|
|
685
668
|
]
|
|
686
669
|
},
|
|
687
|
-
"profile:
|
|
670
|
+
"profile:list": {
|
|
688
671
|
"aliases": [],
|
|
689
|
-
"args": {
|
|
690
|
-
|
|
691
|
-
"description": "Profile name to delete",
|
|
692
|
-
"name": "name",
|
|
693
|
-
"required": true
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
"description": "Delete a Dashboard profile",
|
|
672
|
+
"args": {},
|
|
673
|
+
"description": "List saved Dashboard profiles",
|
|
697
674
|
"examples": [
|
|
698
|
-
"<%= config.bin %> profile
|
|
699
|
-
"<%= config.bin %> profile
|
|
675
|
+
"<%= config.bin %> profile list",
|
|
676
|
+
"<%= config.bin %> profile list --json"
|
|
700
677
|
],
|
|
701
678
|
"flags": {
|
|
702
679
|
"json": {
|
|
@@ -729,26 +706,34 @@
|
|
|
729
706
|
},
|
|
730
707
|
"hasDynamicHelp": false,
|
|
731
708
|
"hiddenAliases": [],
|
|
732
|
-
"id": "profile:
|
|
709
|
+
"id": "profile:list",
|
|
733
710
|
"pluginAlias": "@mainwp/control",
|
|
734
711
|
"pluginName": "@mainwp/control",
|
|
735
712
|
"pluginType": "core",
|
|
736
713
|
"strict": true,
|
|
714
|
+
"enableJsonFlag": false,
|
|
715
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
737
716
|
"isESM": true,
|
|
738
717
|
"relativePath": [
|
|
739
718
|
"dist",
|
|
740
719
|
"commands",
|
|
741
720
|
"profile",
|
|
742
|
-
"
|
|
721
|
+
"list.js"
|
|
743
722
|
]
|
|
744
723
|
},
|
|
745
|
-
"profile:
|
|
724
|
+
"profile:use": {
|
|
746
725
|
"aliases": [],
|
|
747
|
-
"args": {
|
|
748
|
-
|
|
726
|
+
"args": {
|
|
727
|
+
"name": {
|
|
728
|
+
"description": "Profile name to activate",
|
|
729
|
+
"name": "name",
|
|
730
|
+
"required": true
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
"description": "Switch active Dashboard profile",
|
|
749
734
|
"examples": [
|
|
750
|
-
"<%= config.bin %> profile
|
|
751
|
-
"<%= config.bin %> profile
|
|
735
|
+
"<%= config.bin %> profile use production",
|
|
736
|
+
"<%= config.bin %> profile use staging --json"
|
|
752
737
|
],
|
|
753
738
|
"flags": {
|
|
754
739
|
"json": {
|
|
@@ -781,32 +766,36 @@
|
|
|
781
766
|
},
|
|
782
767
|
"hasDynamicHelp": false,
|
|
783
768
|
"hiddenAliases": [],
|
|
784
|
-
"id": "profile:
|
|
769
|
+
"id": "profile:use",
|
|
785
770
|
"pluginAlias": "@mainwp/control",
|
|
786
771
|
"pluginName": "@mainwp/control",
|
|
787
772
|
"pluginType": "core",
|
|
788
773
|
"strict": true,
|
|
774
|
+
"enableJsonFlag": false,
|
|
775
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
789
776
|
"isESM": true,
|
|
790
777
|
"relativePath": [
|
|
791
778
|
"dist",
|
|
792
779
|
"commands",
|
|
793
780
|
"profile",
|
|
794
|
-
"
|
|
781
|
+
"use.js"
|
|
795
782
|
]
|
|
796
783
|
},
|
|
797
|
-
"
|
|
784
|
+
"jobs:watch": {
|
|
798
785
|
"aliases": [],
|
|
799
786
|
"args": {
|
|
800
|
-
"
|
|
801
|
-
"description": "
|
|
802
|
-
"name": "
|
|
787
|
+
"id": {
|
|
788
|
+
"description": "Batch job ID",
|
|
789
|
+
"name": "id",
|
|
803
790
|
"required": true
|
|
804
791
|
}
|
|
805
792
|
},
|
|
806
|
-
"description": "
|
|
793
|
+
"description": "Monitor batch job status",
|
|
807
794
|
"examples": [
|
|
808
|
-
"<%= config.bin %>
|
|
809
|
-
"<%= config.bin %>
|
|
795
|
+
"<%= config.bin %> jobs watch sync_abc123",
|
|
796
|
+
"<%= config.bin %> jobs watch sync_abc123 --timeout 120",
|
|
797
|
+
"<%= config.bin %> jobs watch sync_abc123 --json",
|
|
798
|
+
"<%= config.bin %> jobs watch sync_abc123 --initial-delay 2000 --max-delay 60000"
|
|
810
799
|
],
|
|
811
800
|
"flags": {
|
|
812
801
|
"json": {
|
|
@@ -835,23 +824,56 @@
|
|
|
835
824
|
"name": "debug",
|
|
836
825
|
"allowNo": false,
|
|
837
826
|
"type": "boolean"
|
|
827
|
+
},
|
|
828
|
+
"timeout": {
|
|
829
|
+
"char": "t",
|
|
830
|
+
"description": "Maximum wait time in seconds (default: 300)",
|
|
831
|
+
"name": "timeout",
|
|
832
|
+
"default": 300,
|
|
833
|
+
"hasDynamicHelp": false,
|
|
834
|
+
"multiple": false,
|
|
835
|
+
"type": "option"
|
|
836
|
+
},
|
|
837
|
+
"initial-delay": {
|
|
838
|
+
"description": "Initial poll delay in milliseconds",
|
|
839
|
+
"name": "initial-delay",
|
|
840
|
+
"default": 1000,
|
|
841
|
+
"hasDynamicHelp": false,
|
|
842
|
+
"multiple": false,
|
|
843
|
+
"type": "option"
|
|
844
|
+
},
|
|
845
|
+
"max-delay": {
|
|
846
|
+
"description": "Maximum poll delay in milliseconds",
|
|
847
|
+
"name": "max-delay",
|
|
848
|
+
"default": 30000,
|
|
849
|
+
"hasDynamicHelp": false,
|
|
850
|
+
"multiple": false,
|
|
851
|
+
"type": "option"
|
|
852
|
+
},
|
|
853
|
+
"no-progress": {
|
|
854
|
+
"description": "Disable progress output (only show final result)",
|
|
855
|
+
"name": "no-progress",
|
|
856
|
+
"allowNo": false,
|
|
857
|
+
"type": "boolean"
|
|
838
858
|
}
|
|
839
859
|
},
|
|
840
860
|
"hasDynamicHelp": false,
|
|
841
861
|
"hiddenAliases": [],
|
|
842
|
-
"id": "
|
|
862
|
+
"id": "jobs:watch",
|
|
843
863
|
"pluginAlias": "@mainwp/control",
|
|
844
864
|
"pluginName": "@mainwp/control",
|
|
845
865
|
"pluginType": "core",
|
|
846
866
|
"strict": true,
|
|
867
|
+
"enableJsonFlag": false,
|
|
868
|
+
"MAX_DEBUG_DEPTH": 32,
|
|
847
869
|
"isESM": true,
|
|
848
870
|
"relativePath": [
|
|
849
871
|
"dist",
|
|
850
872
|
"commands",
|
|
851
|
-
"
|
|
852
|
-
"
|
|
873
|
+
"jobs",
|
|
874
|
+
"watch.js"
|
|
853
875
|
]
|
|
854
876
|
}
|
|
855
877
|
},
|
|
856
|
-
"version": "
|
|
878
|
+
"version": "2.0.0"
|
|
857
879
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mainwp/control",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Command-line interface for scripting and automating MainWP Dashboard operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"bin",
|
|
13
13
|
"dist",
|
|
14
14
|
"scripts/completions",
|
|
15
|
-
"oclif.manifest.json"
|
|
15
|
+
"oclif.manifest.json",
|
|
16
|
+
"CHANGELOG.md"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
19
|
"build": "tsc",
|
|
@@ -20,7 +21,14 @@
|
|
|
20
21
|
"lint": "eslint src --ext .ts",
|
|
21
22
|
"postpack": "rm -f oclif.manifest.json",
|
|
22
23
|
"prepack": "npm run clean && npm run build && oclif manifest",
|
|
24
|
+
"pretest": "npm run build",
|
|
23
25
|
"test": "vitest run",
|
|
26
|
+
"test:acceptance": "tsx tests/acceptance/run.ts",
|
|
27
|
+
"test:acceptance:fast": "npm run build && tsx tests/acceptance/run.ts --mode source",
|
|
28
|
+
"test:acceptance:fixture": "tsx tests/acceptance/run.ts --target fixture",
|
|
29
|
+
"test:acceptance:writes": "tsx tests/acceptance/run.ts --writes",
|
|
30
|
+
"test:acceptance:agent": "tsx tests/acceptance/agent-run.ts",
|
|
31
|
+
"test:acceptance:human": "npm run test:acceptance:fixture && npm run test:acceptance:writes && npm run test:acceptance:agent",
|
|
24
32
|
"test:process": "npm run build && vitest run --config vitest.process.config.ts",
|
|
25
33
|
"test:live": "npm run build && MAINWP_LIVE_TEST=1 vitest run --config vitest.live.config.ts",
|
|
26
34
|
"test:all": "npm run test && npm run test:process",
|
|
@@ -54,7 +62,7 @@
|
|
|
54
62
|
}
|
|
55
63
|
},
|
|
56
64
|
"engines": {
|
|
57
|
-
"node": ">=20.
|
|
65
|
+
"node": ">=20.18.1"
|
|
58
66
|
},
|
|
59
67
|
"keywords": [
|
|
60
68
|
"mainwp",
|
|
@@ -64,7 +72,10 @@
|
|
|
64
72
|
"ci-cd",
|
|
65
73
|
"devops",
|
|
66
74
|
"scripting",
|
|
67
|
-
"mainwp-control"
|
|
75
|
+
"mainwp-control",
|
|
76
|
+
"wordpress-management",
|
|
77
|
+
"wordpress-maintenance",
|
|
78
|
+
"cron"
|
|
68
79
|
],
|
|
69
80
|
"publishConfig": {
|
|
70
81
|
"access": "public"
|
|
@@ -79,15 +90,20 @@
|
|
|
79
90
|
"url": "https://github.com/mainwp/mainwp-control/issues"
|
|
80
91
|
},
|
|
81
92
|
"dependencies": {
|
|
82
|
-
"@oclif/core": "
|
|
83
|
-
"@oclif/plugin-autocomplete": "
|
|
84
|
-
"@oclif/plugin-help": "
|
|
93
|
+
"@oclif/core": "^4.11.14",
|
|
94
|
+
"@oclif/plugin-autocomplete": "^3.2.53",
|
|
95
|
+
"@oclif/plugin-help": "^6.2.53",
|
|
85
96
|
"ajv": "^8.18.0",
|
|
86
|
-
"undici": "^7.
|
|
97
|
+
"undici": "^7.30.2"
|
|
87
98
|
},
|
|
88
99
|
"optionalDependencies": {
|
|
89
100
|
"keytar": "~7.9.0"
|
|
90
101
|
},
|
|
102
|
+
"overrides": {
|
|
103
|
+
"filelist": {
|
|
104
|
+
"minimatch": "^10.2.5"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
91
107
|
"devDependencies": {
|
|
92
108
|
"@oclif/test": "^4.0.0",
|
|
93
109
|
"@types/node": "^20.0.0",
|
|
@@ -95,6 +111,7 @@
|
|
|
95
111
|
"@typescript-eslint/parser": "^7.0.0",
|
|
96
112
|
"eslint": "^8.57.0",
|
|
97
113
|
"oclif": "^4.0.0",
|
|
114
|
+
"tsx": "^4.21.0",
|
|
98
115
|
"typescript": "^5.4.0",
|
|
99
116
|
"vitest": "^1.6.0"
|
|
100
117
|
}
|