@jahia/jahia-cli 0.2.0 → 0.3.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.
Files changed (112) hide show
  1. package/dist/commands/init.js +4 -4
  2. package/dist/commands/init.js.map +1 -1
  3. package/dist/commands/jahia/provision.d.ts +37 -2
  4. package/dist/commands/jahia/provision.d.ts.map +1 -1
  5. package/dist/commands/jahia/provision.js +241 -53
  6. package/dist/commands/jahia/provision.js.map +1 -1
  7. package/dist/commands/tests/artifacts.d.ts +25 -0
  8. package/dist/commands/tests/artifacts.d.ts.map +1 -0
  9. package/dist/commands/tests/artifacts.js +112 -0
  10. package/dist/commands/tests/artifacts.js.map +1 -0
  11. package/dist/commands/tests/build.d.ts +30 -0
  12. package/dist/commands/tests/build.d.ts.map +1 -0
  13. package/dist/commands/tests/build.js +90 -0
  14. package/dist/commands/tests/build.js.map +1 -0
  15. package/dist/commands/tests/run.d.ts +28 -0
  16. package/dist/commands/tests/run.d.ts.map +1 -0
  17. package/dist/commands/tests/run.js +166 -0
  18. package/dist/commands/tests/run.js.map +1 -0
  19. package/dist/commands/workflow/init.d.ts.map +1 -1
  20. package/dist/commands/workflow/init.js +15 -14
  21. package/dist/commands/workflow/init.js.map +1 -1
  22. package/dist/commands/workflow/run.d.ts +2 -1
  23. package/dist/commands/workflow/run.d.ts.map +1 -1
  24. package/dist/commands/workflow/run.js +27 -13
  25. package/dist/commands/workflow/run.js.map +1 -1
  26. package/dist/lib/artifacts/collect-all.d.ts +17 -0
  27. package/dist/lib/artifacts/collect-all.d.ts.map +1 -0
  28. package/dist/lib/artifacts/collect-all.js +107 -0
  29. package/dist/lib/artifacts/collect-all.js.map +1 -0
  30. package/dist/lib/artifacts/copy-container-artifacts.d.ts +13 -0
  31. package/dist/lib/artifacts/copy-container-artifacts.d.ts.map +1 -0
  32. package/dist/lib/artifacts/copy-container-artifacts.js +48 -0
  33. package/dist/lib/artifacts/copy-container-artifacts.js.map +1 -0
  34. package/dist/lib/artifacts/fetch-container-logs.d.ts +17 -0
  35. package/dist/lib/artifacts/fetch-container-logs.d.ts.map +1 -0
  36. package/dist/lib/artifacts/fetch-container-logs.js +36 -0
  37. package/dist/lib/artifacts/fetch-container-logs.js.map +1 -0
  38. package/dist/lib/artifacts/index.d.ts +6 -0
  39. package/dist/lib/artifacts/index.d.ts.map +1 -0
  40. package/dist/lib/artifacts/index.js +5 -0
  41. package/dist/lib/artifacts/index.js.map +1 -0
  42. package/dist/lib/artifacts/query-vlogs.d.ts +14 -0
  43. package/dist/lib/artifacts/query-vlogs.d.ts.map +1 -0
  44. package/dist/lib/artifacts/query-vlogs.js +33 -0
  45. package/dist/lib/artifacts/query-vlogs.js.map +1 -0
  46. package/dist/lib/artifacts/types.d.ts +28 -0
  47. package/dist/lib/artifacts/types.d.ts.map +1 -0
  48. package/dist/lib/artifacts/types.js +2 -0
  49. package/dist/lib/artifacts/types.js.map +1 -0
  50. package/dist/lib/components/cypress.d.ts +16 -0
  51. package/dist/lib/components/cypress.d.ts.map +1 -0
  52. package/dist/lib/components/cypress.js +35 -0
  53. package/dist/lib/components/cypress.js.map +1 -0
  54. package/dist/lib/components/index.d.ts.map +1 -1
  55. package/dist/lib/components/index.js +3 -0
  56. package/dist/lib/components/index.js.map +1 -1
  57. package/dist/lib/components/jahia.d.ts.map +1 -1
  58. package/dist/lib/components/jahia.js +1 -0
  59. package/dist/lib/components/jahia.js.map +1 -1
  60. package/dist/lib/components/smtp-server.d.ts.map +1 -1
  61. package/dist/lib/components/smtp-server.js +1 -0
  62. package/dist/lib/components/smtp-server.js.map +1 -1
  63. package/dist/lib/components/types.d.ts +12 -0
  64. package/dist/lib/components/types.d.ts.map +1 -1
  65. package/dist/lib/config/config-to-yaml-with-comments.d.ts.map +1 -1
  66. package/dist/lib/config/config-to-yaml-with-comments.js +15 -3
  67. package/dist/lib/config/config-to-yaml-with-comments.js.map +1 -1
  68. package/dist/lib/config/config-to-yaml.d.ts.map +1 -1
  69. package/dist/lib/config/config-to-yaml.js +12 -1
  70. package/dist/lib/config/config-to-yaml.js.map +1 -1
  71. package/dist/lib/config/parser.d.ts +17 -4
  72. package/dist/lib/config/parser.d.ts.map +1 -1
  73. package/dist/lib/config/parser.js +97 -12
  74. package/dist/lib/config/parser.js.map +1 -1
  75. package/dist/lib/config/types.d.ts +49 -3
  76. package/dist/lib/config/types.d.ts.map +1 -1
  77. package/dist/lib/providers/docker/container.d.ts +2 -0
  78. package/dist/lib/providers/docker/container.d.ts.map +1 -1
  79. package/dist/lib/providers/docker/container.js +5 -1
  80. package/dist/lib/providers/docker/container.js.map +1 -1
  81. package/dist/lib/provisioning/filter-files.d.ts +7 -0
  82. package/dist/lib/provisioning/filter-files.d.ts.map +1 -0
  83. package/dist/lib/provisioning/filter-files.js +14 -0
  84. package/dist/lib/provisioning/filter-files.js.map +1 -0
  85. package/dist/lib/provisioning/submit-file-action.d.ts +29 -0
  86. package/dist/lib/provisioning/submit-file-action.d.ts.map +1 -0
  87. package/dist/lib/provisioning/submit-file-action.js +75 -0
  88. package/dist/lib/provisioning/submit-file-action.js.map +1 -0
  89. package/dist/lib/provisioning/types.d.ts +11 -0
  90. package/dist/lib/provisioning/types.d.ts.map +1 -1
  91. package/dist/lib/tests/build-image.d.ts +33 -0
  92. package/dist/lib/tests/build-image.d.ts.map +1 -0
  93. package/dist/lib/tests/build-image.js +59 -0
  94. package/dist/lib/tests/build-image.js.map +1 -0
  95. package/dist/lib/workflow/build-sample-workflow.d.ts +5 -4
  96. package/dist/lib/workflow/build-sample-workflow.d.ts.map +1 -1
  97. package/dist/lib/workflow/build-sample-workflow.js +35 -31
  98. package/dist/lib/workflow/build-sample-workflow.js.map +1 -1
  99. package/dist/lib/workflow/executor.d.ts +3 -1
  100. package/dist/lib/workflow/executor.d.ts.map +1 -1
  101. package/dist/lib/workflow/executor.js +29 -0
  102. package/dist/lib/workflow/executor.js.map +1 -1
  103. package/dist/lib/workflow/merge-workflow-into-config.d.ts +4 -4
  104. package/dist/lib/workflow/merge-workflow-into-config.d.ts.map +1 -1
  105. package/dist/lib/workflow/merge-workflow-into-config.js +4 -4
  106. package/dist/lib/workflow/merge-workflow-into-config.js.map +1 -1
  107. package/dist/lib/workflow/resolve-workflow.d.ts +20 -0
  108. package/dist/lib/workflow/resolve-workflow.d.ts.map +1 -0
  109. package/dist/lib/workflow/resolve-workflow.js +38 -0
  110. package/dist/lib/workflow/resolve-workflow.js.map +1 -0
  111. package/oclif.manifest.json +309 -108
  112. package/package.json +4 -2
@@ -553,6 +553,103 @@
553
553
  "stop.js"
554
554
  ]
555
555
  },
556
+ "tests:artifacts": {
557
+ "aliases": [],
558
+ "args": {},
559
+ "description": "Collect test artifacts (container logs and diagnostic files) from the active environment. Fetches logs from VictoriaLogs (with docker logs fallback) and copies container artifact paths defined in component definitions or config overrides.",
560
+ "examples": [
561
+ "<%= config.bin %> tests artifacts",
562
+ "<%= config.bin %> tests artifacts --output ./ci-results/",
563
+ "<%= config.bin %> tests artifacts --state /ci/workspace/state.json --json"
564
+ ],
565
+ "flags": {
566
+ "state": {
567
+ "description": "Path to the state JSON file. Overrides JAHIA_CLI_STATE env var. Defaults to ~/.jahia-cli/state.json",
568
+ "env": "JAHIA_CLI_STATE",
569
+ "name": "state",
570
+ "hasDynamicHelp": false,
571
+ "multiple": false,
572
+ "type": "option"
573
+ },
574
+ "output": {
575
+ "char": "o",
576
+ "description": "Output directory for collected artifacts (default: ./results/)",
577
+ "name": "output",
578
+ "hasDynamicHelp": false,
579
+ "multiple": false,
580
+ "type": "option"
581
+ },
582
+ "json": {
583
+ "description": "Output result as structured JSON (for AI agents and scripting)",
584
+ "name": "json",
585
+ "allowNo": false,
586
+ "type": "boolean"
587
+ }
588
+ },
589
+ "hasDynamicHelp": false,
590
+ "hiddenAliases": [],
591
+ "id": "tests:artifacts",
592
+ "pluginAlias": "@jahia/jahia-cli",
593
+ "pluginName": "@jahia/jahia-cli",
594
+ "pluginType": "core",
595
+ "strict": true,
596
+ "enableJsonFlag": false,
597
+ "isESM": true,
598
+ "relativePath": [
599
+ "dist",
600
+ "commands",
601
+ "tests",
602
+ "artifacts.js"
603
+ ]
604
+ },
605
+ "tests:build": {
606
+ "aliases": [],
607
+ "args": {},
608
+ "description": "Build the test Docker image using docker buildx. All build parameters (dockerfile, image, tag, platform, buildArgs) are read from the config file under tests.container. The image stays local (no push) and can be run with \"tests run\".",
609
+ "examples": [
610
+ "<%= config.bin %> tests build -c config.yml",
611
+ "<%= config.bin %> tests build -c config.yml --no-cache",
612
+ "<%= config.bin %> tests build -c config.yml --json"
613
+ ],
614
+ "flags": {
615
+ "config": {
616
+ "char": "c",
617
+ "description": "Path to jahia-cli config file",
618
+ "name": "config",
619
+ "required": true,
620
+ "hasDynamicHelp": false,
621
+ "multiple": false,
622
+ "type": "option"
623
+ },
624
+ "no-cache": {
625
+ "description": "Build without using cache",
626
+ "name": "no-cache",
627
+ "allowNo": false,
628
+ "type": "boolean"
629
+ },
630
+ "json": {
631
+ "description": "Output result as structured JSON",
632
+ "name": "json",
633
+ "allowNo": false,
634
+ "type": "boolean"
635
+ }
636
+ },
637
+ "hasDynamicHelp": false,
638
+ "hiddenAliases": [],
639
+ "id": "tests:build",
640
+ "pluginAlias": "@jahia/jahia-cli",
641
+ "pluginName": "@jahia/jahia-cli",
642
+ "pluginType": "core",
643
+ "strict": true,
644
+ "enableJsonFlag": false,
645
+ "isESM": true,
646
+ "relativePath": [
647
+ "dist",
648
+ "commands",
649
+ "tests",
650
+ "build.js"
651
+ ]
652
+ },
556
653
  "tests:init": {
557
654
  "aliases": [],
558
655
  "args": {},
@@ -603,6 +700,172 @@
603
700
  "init.js"
604
701
  ]
605
702
  },
703
+ "tests:run": {
704
+ "aliases": [],
705
+ "args": {},
706
+ "description": "Run the test Docker image against an active environment. The container attaches to the environment network, streams output in real-time, and the CLI exits with the container exit code. Container is kept after completion for debugging.",
707
+ "examples": [
708
+ "<%= config.bin %> tests run -c config.yml",
709
+ "<%= config.bin %> tests run -c config.yml --env CYPRESS_SPEC=cypress/e2e/login.cy.ts",
710
+ "<%= config.bin %> tests run -c config.yml --state /ci/workspace/state.json --json"
711
+ ],
712
+ "flags": {
713
+ "config": {
714
+ "char": "c",
715
+ "description": "Path to jahia-cli config file",
716
+ "name": "config",
717
+ "required": true,
718
+ "hasDynamicHelp": false,
719
+ "multiple": false,
720
+ "type": "option"
721
+ },
722
+ "state": {
723
+ "description": "Path to the state JSON file. Overrides JAHIA_CLI_STATE env var. Defaults to ~/.jahia-cli/state.json",
724
+ "env": "JAHIA_CLI_STATE",
725
+ "name": "state",
726
+ "hasDynamicHelp": false,
727
+ "multiple": false,
728
+ "type": "option"
729
+ },
730
+ "env": {
731
+ "char": "e",
732
+ "description": "Additional env var for test container (KEY=VALUE, repeatable). Supports ${VAR:-default}.",
733
+ "name": "env",
734
+ "hasDynamicHelp": false,
735
+ "multiple": true,
736
+ "type": "option"
737
+ },
738
+ "json": {
739
+ "description": "Output result as structured JSON",
740
+ "name": "json",
741
+ "allowNo": false,
742
+ "type": "boolean"
743
+ }
744
+ },
745
+ "hasDynamicHelp": false,
746
+ "hiddenAliases": [],
747
+ "id": "tests:run",
748
+ "pluginAlias": "@jahia/jahia-cli",
749
+ "pluginName": "@jahia/jahia-cli",
750
+ "pluginType": "core",
751
+ "strict": true,
752
+ "enableJsonFlag": false,
753
+ "isESM": true,
754
+ "relativePath": [
755
+ "dist",
756
+ "commands",
757
+ "tests",
758
+ "run.js"
759
+ ]
760
+ },
761
+ "workflow:init": {
762
+ "aliases": [],
763
+ "args": {},
764
+ "description": "Add sample workflows section to a configuration file. Generates a named \"main\" workflow with representative steps (init, create, alive, test, cleanup) to help get started. Preserves existing environment and tests sections.",
765
+ "examples": [
766
+ "<%= config.bin %> workflow init",
767
+ "<%= config.bin %> workflow init --config ./my-config.yml",
768
+ "<%= config.bin %> workflow init --force",
769
+ "<%= config.bin %> workflow init --json"
770
+ ],
771
+ "flags": {
772
+ "config": {
773
+ "char": "c",
774
+ "description": "Path to the YAML configuration file",
775
+ "name": "config",
776
+ "default": "jahia-cli.config.yml",
777
+ "hasDynamicHelp": false,
778
+ "multiple": false,
779
+ "type": "option"
780
+ },
781
+ "force": {
782
+ "char": "f",
783
+ "description": "Overwrite existing workflows section if already present",
784
+ "name": "force",
785
+ "allowNo": false,
786
+ "type": "boolean"
787
+ },
788
+ "json": {
789
+ "description": "Output result as structured JSON (for AI agents and scripting)",
790
+ "name": "json",
791
+ "allowNo": false,
792
+ "type": "boolean"
793
+ }
794
+ },
795
+ "hasDynamicHelp": false,
796
+ "hiddenAliases": [],
797
+ "id": "workflow:init",
798
+ "pluginAlias": "@jahia/jahia-cli",
799
+ "pluginName": "@jahia/jahia-cli",
800
+ "pluginType": "core",
801
+ "strict": true,
802
+ "enableJsonFlag": false,
803
+ "isESM": true,
804
+ "relativePath": [
805
+ "dist",
806
+ "commands",
807
+ "workflow",
808
+ "init.js"
809
+ ]
810
+ },
811
+ "workflow:run": {
812
+ "aliases": [],
813
+ "args": {},
814
+ "description": "Execute a named workflow defined in a configuration file. Runs steps sequentially — shell commands via execa, jahia-cli commands via subprocess. Stops on first failure. Use --name to select a workflow, or omit to run the default.",
815
+ "examples": [
816
+ "<%= config.bin %> workflow run --config jahia-cli.config.yml",
817
+ "<%= config.bin %> workflow run --config jahia-cli.config.yml --name setup",
818
+ "<%= config.bin %> workflow run --config ./my-config.yml --json"
819
+ ],
820
+ "flags": {
821
+ "config": {
822
+ "char": "c",
823
+ "description": "Path to the YAML configuration file",
824
+ "name": "config",
825
+ "required": true,
826
+ "hasDynamicHelp": false,
827
+ "multiple": false,
828
+ "type": "option"
829
+ },
830
+ "name": {
831
+ "char": "n",
832
+ "description": "Name of the workflow to run (runs default workflow if omitted)",
833
+ "name": "name",
834
+ "hasDynamicHelp": false,
835
+ "multiple": false,
836
+ "type": "option"
837
+ },
838
+ "json": {
839
+ "description": "Output result as structured JSON (for AI agents and scripting)",
840
+ "name": "json",
841
+ "allowNo": false,
842
+ "type": "boolean"
843
+ },
844
+ "state": {
845
+ "char": "s",
846
+ "description": "Path to the state file (auto-passed to jahia-cli subcommands)",
847
+ "name": "state",
848
+ "hasDynamicHelp": false,
849
+ "multiple": false,
850
+ "type": "option"
851
+ }
852
+ },
853
+ "hasDynamicHelp": false,
854
+ "hiddenAliases": [],
855
+ "id": "workflow:run",
856
+ "pluginAlias": "@jahia/jahia-cli",
857
+ "pluginName": "@jahia/jahia-cli",
858
+ "pluginType": "core",
859
+ "strict": true,
860
+ "enableJsonFlag": false,
861
+ "isESM": true,
862
+ "relativePath": [
863
+ "dist",
864
+ "commands",
865
+ "workflow",
866
+ "run.js"
867
+ ]
868
+ },
606
869
  "jahia:alive": {
607
870
  "aliases": [],
608
871
  "args": {},
@@ -707,14 +970,15 @@
707
970
  "jahia:provision": {
708
971
  "aliases": [],
709
972
  "args": {},
710
- "description": "Execute a provisioning script against a running Jahia instance. The manifest can be a local YAML file or a public URL (auto-detected). Optional file attachments can be included via --file flags or --assets directory.",
973
+ "description": "Execute provisioning operations against a running Jahia instance. Three modes are available (exactly one per invocation):\n --manifest: Submit a YAML provisioning manifest with optional file attachments.\n --modules: Upload module files (JARs) from a directory, one at a time.\n --scripts: Execute provisioning scripts from a directory, one at a time.\nUse --filter to limit which files are processed (glob pattern, matched against filename).",
711
974
  "examples": [
712
975
  "<%= config.bin %> jahia provision --manifest ./provisioning/setup.yaml",
713
- "<%= config.bin %> jahia provision --manifest https://raw.githubusercontent.com/org/repo/main/provisioning.yaml",
714
- "<%= config.bin %> jahia provision --manifest ./setup.yaml --file ./modules/mymodule.jar",
715
976
  "<%= config.bin %> jahia provision --manifest ./setup.yaml --assets ./artifacts",
716
- "<%= config.bin %> jahia provision --manifest ./setup.yaml --file ./mod1.jar --file ./mod2.jar --json",
717
- "<%= config.bin %> jahia provision --manifest ./setup.yaml --url http://localhost:8080 --username root --password secret"
977
+ "<%= config.bin %> jahia provision --manifest ./setup.yaml --assets ./artifacts --filter \"*.jar\"",
978
+ "<%= config.bin %> jahia provision --modules ./modules/",
979
+ "<%= config.bin %> jahia provision --modules ./modules/ --filter \"*-SNAPSHOT.jar\"",
980
+ "<%= config.bin %> jahia provision --scripts ./scripts/",
981
+ "<%= config.bin %> jahia provision --scripts ./scripts/ --filter \"*.groovy\""
718
982
  ],
719
983
  "flags": {
720
984
  "state": {
@@ -728,8 +992,44 @@
728
992
  "manifest": {
729
993
  "char": "m",
730
994
  "description": "Path to a local YAML file or a public URL of the provisioning manifest",
995
+ "exclusive": [
996
+ "modules",
997
+ "scripts"
998
+ ],
731
999
  "name": "manifest",
732
- "required": true,
1000
+ "hasDynamicHelp": false,
1001
+ "multiple": false,
1002
+ "type": "option"
1003
+ },
1004
+ "modules": {
1005
+ "description": "Path to a directory of module files to install (one at a time via installOrUpgradeBundle)",
1006
+ "exclusive": [
1007
+ "manifest",
1008
+ "scripts",
1009
+ "assets",
1010
+ "file"
1011
+ ],
1012
+ "name": "modules",
1013
+ "hasDynamicHelp": false,
1014
+ "multiple": false,
1015
+ "type": "option"
1016
+ },
1017
+ "scripts": {
1018
+ "description": "Path to a directory of provisioning scripts to execute (one at a time via executeScript)",
1019
+ "exclusive": [
1020
+ "manifest",
1021
+ "modules",
1022
+ "assets",
1023
+ "file"
1024
+ ],
1025
+ "name": "scripts",
1026
+ "hasDynamicHelp": false,
1027
+ "multiple": false,
1028
+ "type": "option"
1029
+ },
1030
+ "filter": {
1031
+ "description": "Glob pattern to filter files in --assets, --modules, or --scripts directories (default: all files). Example: \"*-SNAPSHOT.jar\"",
1032
+ "name": "filter",
733
1033
  "hasDynamicHelp": false,
734
1034
  "multiple": false,
735
1035
  "type": "option"
@@ -759,7 +1059,7 @@
759
1059
  },
760
1060
  "file": {
761
1061
  "char": "f",
762
- "description": "File attachment to include (can be specified multiple times)",
1062
+ "description": "File attachment to include with --manifest (can be specified multiple times)",
763
1063
  "name": "file",
764
1064
  "hasDynamicHelp": false,
765
1065
  "multiple": true,
@@ -767,7 +1067,7 @@
767
1067
  },
768
1068
  "assets": {
769
1069
  "char": "a",
770
- "description": "Directory whose files are attached to the provisioning request (recursive)",
1070
+ "description": "Directory whose files are attached to the --manifest provisioning request",
771
1071
  "name": "assets",
772
1072
  "hasDynamicHelp": false,
773
1073
  "multiple": false,
@@ -795,106 +1095,7 @@
795
1095
  "jahia",
796
1096
  "provision.js"
797
1097
  ]
798
- },
799
- "workflow:init": {
800
- "aliases": [],
801
- "args": {},
802
- "description": "Add a sample workflow section to a configuration file. Generates ~5 representative steps (init, create, alive, test, cleanup) to help get started. Preserves existing environment and tests sections.",
803
- "examples": [
804
- "<%= config.bin %> workflow init",
805
- "<%= config.bin %> workflow init --config ./my-config.yml",
806
- "<%= config.bin %> workflow init --force",
807
- "<%= config.bin %> workflow init --json"
808
- ],
809
- "flags": {
810
- "config": {
811
- "char": "c",
812
- "description": "Path to the YAML configuration file",
813
- "name": "config",
814
- "default": "jahia-cli.config.yml",
815
- "hasDynamicHelp": false,
816
- "multiple": false,
817
- "type": "option"
818
- },
819
- "force": {
820
- "char": "f",
821
- "description": "Overwrite existing workflow section if already present",
822
- "name": "force",
823
- "allowNo": false,
824
- "type": "boolean"
825
- },
826
- "json": {
827
- "description": "Output result as structured JSON (for AI agents and scripting)",
828
- "name": "json",
829
- "allowNo": false,
830
- "type": "boolean"
831
- }
832
- },
833
- "hasDynamicHelp": false,
834
- "hiddenAliases": [],
835
- "id": "workflow:init",
836
- "pluginAlias": "@jahia/jahia-cli",
837
- "pluginName": "@jahia/jahia-cli",
838
- "pluginType": "core",
839
- "strict": true,
840
- "enableJsonFlag": false,
841
- "isESM": true,
842
- "relativePath": [
843
- "dist",
844
- "commands",
845
- "workflow",
846
- "init.js"
847
- ]
848
- },
849
- "workflow:run": {
850
- "aliases": [],
851
- "args": {},
852
- "description": "Execute a workflow defined in a configuration file. Runs steps sequentially — shell commands via execa, jahia-cli commands via subprocess. Stops on first failure.",
853
- "examples": [
854
- "<%= config.bin %> workflow run --config jahia-cli.config.yml",
855
- "<%= config.bin %> workflow run --config ./my-config.yml --json"
856
- ],
857
- "flags": {
858
- "config": {
859
- "char": "c",
860
- "description": "Path to the YAML configuration file",
861
- "name": "config",
862
- "required": true,
863
- "hasDynamicHelp": false,
864
- "multiple": false,
865
- "type": "option"
866
- },
867
- "json": {
868
- "description": "Output result as structured JSON (for AI agents and scripting)",
869
- "name": "json",
870
- "allowNo": false,
871
- "type": "boolean"
872
- },
873
- "state": {
874
- "char": "s",
875
- "description": "Path to the state file (auto-passed to jahia-cli subcommands)",
876
- "name": "state",
877
- "hasDynamicHelp": false,
878
- "multiple": false,
879
- "type": "option"
880
- }
881
- },
882
- "hasDynamicHelp": false,
883
- "hiddenAliases": [],
884
- "id": "workflow:run",
885
- "pluginAlias": "@jahia/jahia-cli",
886
- "pluginName": "@jahia/jahia-cli",
887
- "pluginType": "core",
888
- "strict": true,
889
- "enableJsonFlag": false,
890
- "isESM": true,
891
- "relativePath": [
892
- "dist",
893
- "commands",
894
- "workflow",
895
- "run.js"
896
- ]
897
1098
  }
898
1099
  },
899
- "version": "0.2.0"
1100
+ "version": "0.3.0"
900
1101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/jahia-cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "A CLI to accelerate developing and testing Jahia in the Agentic era",
5
5
  "author": "Jahia",
6
6
  "license": "Apache-2.0",
@@ -40,13 +40,15 @@
40
40
  "@inquirer/prompts": "^7.10.1",
41
41
  "@oclif/core": "^4",
42
42
  "execa": "^9.6.1",
43
- "js-yaml": "^4.1.1"
43
+ "js-yaml": "^4.1.1",
44
+ "picomatch": "^4.0.4"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@eslint/js": "^9.39.4",
47
48
  "@oclif/test": "^4",
48
49
  "@types/js-yaml": "^4.0.9",
49
50
  "@types/node": "^22",
51
+ "@types/picomatch": "^4.0.3",
50
52
  "@typescript-eslint/eslint-plugin": "^8",
51
53
  "@typescript-eslint/parser": "^8",
52
54
  "@vitest/coverage-v8": "^3.2.4",