forest-cli 5.6.0 → 5.8.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 (50) hide show
  1. package/dist/commands/layout/apply.d.ts +25 -0
  2. package/dist/commands/layout/apply.d.ts.map +1 -0
  3. package/dist/commands/layout/apply.js +145 -0
  4. package/dist/commands/layout/pull.d.ts +20 -0
  5. package/dist/commands/layout/pull.d.ts.map +1 -0
  6. package/dist/commands/layout/pull.js +63 -0
  7. package/dist/services/ask-for-team.d.ts +5 -0
  8. package/dist/services/ask-for-team.d.ts.map +1 -0
  9. package/dist/services/ask-for-team.js +27 -0
  10. package/dist/services/layout/diff.d.ts +17 -0
  11. package/dist/services/layout/diff.d.ts.map +1 -0
  12. package/dist/services/layout/diff.js +256 -0
  13. package/dist/services/layout/errors.d.ts +14 -0
  14. package/dist/services/layout/errors.d.ts.map +1 -0
  15. package/dist/services/layout/errors.js +37 -0
  16. package/dist/services/layout/layout-file.d.ts +19 -0
  17. package/dist/services/layout/layout-file.d.ts.map +1 -0
  18. package/dist/services/layout/layout-file.js +65 -0
  19. package/dist/services/layout/layout-manager.d.ts +51 -0
  20. package/dist/services/layout/layout-manager.d.ts.map +1 -0
  21. package/dist/services/layout/layout-manager.js +171 -0
  22. package/dist/services/layout/patch-rules.d.ts +63 -0
  23. package/dist/services/layout/patch-rules.d.ts.map +1 -0
  24. package/dist/services/layout/patch-rules.js +432 -0
  25. package/dist/services/layout/plan-format.d.ts +8 -0
  26. package/dist/services/layout/plan-format.d.ts.map +1 -0
  27. package/dist/services/layout/plan-format.js +53 -0
  28. package/dist/services/layout/read.d.ts +17 -0
  29. package/dist/services/layout/read.d.ts.map +1 -0
  30. package/dist/services/layout/read.js +32 -0
  31. package/dist/services/layout/rendering-mapper.d.ts +46 -0
  32. package/dist/services/layout/rendering-mapper.d.ts.map +1 -0
  33. package/dist/services/layout/rendering-mapper.js +160 -0
  34. package/dist/services/layout/resolve-command-scope.d.ts +14 -0
  35. package/dist/services/layout/resolve-command-scope.d.ts.map +1 -0
  36. package/dist/services/layout/resolve-command-scope.js +57 -0
  37. package/dist/services/layout/scope-resolver.d.ts +22 -0
  38. package/dist/services/layout/scope-resolver.d.ts.map +1 -0
  39. package/dist/services/layout/scope-resolver.js +39 -0
  40. package/dist/services/layout/sync.d.ts +40 -0
  41. package/dist/services/layout/sync.d.ts.map +1 -0
  42. package/dist/services/layout/sync.js +81 -0
  43. package/dist/services/layout/types.d.ts +48 -0
  44. package/dist/services/layout/types.d.ts.map +1 -0
  45. package/dist/services/layout/types.js +6 -0
  46. package/dist/services/layout/workflow-bpmn.d.ts +81 -0
  47. package/dist/services/layout/workflow-bpmn.d.ts.map +1 -0
  48. package/dist/services/layout/workflow-bpmn.js +203 -0
  49. package/oclif.manifest.json +238 -126
  50. package/package.json +1 -1
@@ -665,6 +665,118 @@
665
665
  "update.js"
666
666
  ]
667
667
  },
668
+ "layout:apply": {
669
+ "aliases": [],
670
+ "args": {
671
+ "file": {
672
+ "description": "Layout file to apply (e.g. forest-layout.json).",
673
+ "name": "file",
674
+ "required": true
675
+ }
676
+ },
677
+ "description": "Apply a forest-layout.json to an environment (pushes JSON-Patch changes).",
678
+ "flags": {
679
+ "env": {
680
+ "char": "e",
681
+ "description": "Environment to apply to (name or id). Prompted if omitted.",
682
+ "name": "env",
683
+ "hasDynamicHelp": false,
684
+ "multiple": false,
685
+ "type": "option"
686
+ },
687
+ "team": {
688
+ "char": "t",
689
+ "description": "Team to apply to (name or id). Prompted if omitted.",
690
+ "name": "team",
691
+ "hasDynamicHelp": false,
692
+ "multiple": false,
693
+ "type": "option"
694
+ },
695
+ "projectId": {
696
+ "char": "p",
697
+ "description": "Id of the project (resolved/prompted when omitted).",
698
+ "name": "projectId",
699
+ "hasDynamicHelp": false,
700
+ "multiple": false,
701
+ "type": "option"
702
+ },
703
+ "force": {
704
+ "char": "f",
705
+ "description": "Skip the confirmation prompt.",
706
+ "name": "force",
707
+ "allowNo": false,
708
+ "type": "boolean"
709
+ }
710
+ },
711
+ "hasDynamicHelp": false,
712
+ "hiddenAliases": [],
713
+ "id": "layout:apply",
714
+ "pluginAlias": "forest-cli",
715
+ "pluginName": "forest-cli",
716
+ "pluginType": "core",
717
+ "strict": true,
718
+ "isESM": false,
719
+ "relativePath": [
720
+ "dist",
721
+ "commands",
722
+ "layout",
723
+ "apply.js"
724
+ ]
725
+ },
726
+ "layout:pull": {
727
+ "aliases": [],
728
+ "args": {},
729
+ "description": "Pull the layout (rendering) of an environment into a forest-layout.json file.",
730
+ "flags": {
731
+ "env": {
732
+ "char": "e",
733
+ "description": "Environment to pull from (name or id). Defaults to the environment of FOREST_ENV_SECRET when set, otherwise the development environment.",
734
+ "name": "env",
735
+ "hasDynamicHelp": false,
736
+ "multiple": false,
737
+ "type": "option"
738
+ },
739
+ "team": {
740
+ "char": "t",
741
+ "description": "Team whose layout to pull (name or id). Defaults to the \"Operations\" team.",
742
+ "name": "team",
743
+ "hasDynamicHelp": false,
744
+ "multiple": false,
745
+ "type": "option"
746
+ },
747
+ "projectId": {
748
+ "char": "p",
749
+ "description": "Id of the project (resolved automatically when you only have one).",
750
+ "name": "projectId",
751
+ "hasDynamicHelp": false,
752
+ "multiple": false,
753
+ "type": "option"
754
+ },
755
+ "out": {
756
+ "char": "o",
757
+ "description": "Output file path (default: forest-layout.json).",
758
+ "name": "out",
759
+ "default": "forest-layout.json",
760
+ "hasDynamicHelp": false,
761
+ "multiple": false,
762
+ "type": "option"
763
+ }
764
+ },
765
+ "hasDynamicHelp": false,
766
+ "hiddenAliases": [],
767
+ "id": "layout:pull",
768
+ "pluginAlias": "forest-cli",
769
+ "pluginName": "forest-cli",
770
+ "pluginType": "core",
771
+ "strict": true,
772
+ "isESM": false,
773
+ "relativePath": [
774
+ "dist",
775
+ "commands",
776
+ "layout",
777
+ "pull.js"
778
+ ]
779
+ },
668
780
  "projects:create": {
669
781
  "aliases": [],
670
782
  "args": {
@@ -1212,7 +1324,7 @@
1212
1324
  "invite.js"
1213
1325
  ]
1214
1326
  },
1215
- "projects:bundle:nosql": {
1327
+ "projects:create:demo": {
1216
1328
  "aliases": [],
1217
1329
  "args": {
1218
1330
  "applicationName": {
@@ -1221,7 +1333,116 @@
1221
1333
  "required": true
1222
1334
  }
1223
1335
  },
1224
- "description": "Bundle files for Forest Admin project.",
1336
+ "description": "Create a new Forest Admin project with demo data — no database required.",
1337
+ "flags": {
1338
+ "applicationHost": {
1339
+ "char": "H",
1340
+ "description": "Hostname of your admin backend application.",
1341
+ "name": "applicationHost",
1342
+ "required": false,
1343
+ "hasDynamicHelp": false,
1344
+ "multiple": false,
1345
+ "type": "option"
1346
+ },
1347
+ "applicationPort": {
1348
+ "char": "P",
1349
+ "description": "Port of your admin backend application.",
1350
+ "name": "applicationPort",
1351
+ "required": false,
1352
+ "hasDynamicHelp": false,
1353
+ "multiple": false,
1354
+ "type": "option"
1355
+ },
1356
+ "language": {
1357
+ "char": "l",
1358
+ "description": "Choose the language you want to use for your project.",
1359
+ "name": "language",
1360
+ "required": false,
1361
+ "hasDynamicHelp": false,
1362
+ "multiple": false,
1363
+ "options": [
1364
+ "javascript",
1365
+ "typescript"
1366
+ ],
1367
+ "type": "option"
1368
+ }
1369
+ },
1370
+ "hasDynamicHelp": false,
1371
+ "hiddenAliases": [],
1372
+ "id": "projects:create:demo",
1373
+ "pluginAlias": "forest-cli",
1374
+ "pluginName": "forest-cli",
1375
+ "pluginType": "core",
1376
+ "options": {
1377
+ "applicationHost": {
1378
+ "default": "http://localhost",
1379
+ "oclif": {
1380
+ "char": "H",
1381
+ "description": "Hostname of your admin backend application."
1382
+ },
1383
+ "prompter": {
1384
+ "question": "What's the IP/hostname on which your application will be running?"
1385
+ }
1386
+ },
1387
+ "applicationPort": {
1388
+ "default": "3310",
1389
+ "oclif": {
1390
+ "char": "P",
1391
+ "description": "Port of your admin backend application."
1392
+ },
1393
+ "prompter": {
1394
+ "question": "What's the port on which your application will be running?"
1395
+ }
1396
+ },
1397
+ "language": {
1398
+ "choices": [
1399
+ {
1400
+ "name": "javascript",
1401
+ "value": {
1402
+ "name": "javascript",
1403
+ "fileExtension": "js"
1404
+ }
1405
+ },
1406
+ {
1407
+ "name": "typescript",
1408
+ "value": {
1409
+ "name": "typescript",
1410
+ "fileExtension": "ts"
1411
+ }
1412
+ }
1413
+ ],
1414
+ "default": {
1415
+ "name": "javascript",
1416
+ "fileExtension": "js"
1417
+ },
1418
+ "oclif": {
1419
+ "char": "l",
1420
+ "description": "Choose the language you want to use for your project."
1421
+ },
1422
+ "prompter": {
1423
+ "question": "In which language would you like to generate your sources?"
1424
+ }
1425
+ }
1426
+ },
1427
+ "isESM": false,
1428
+ "relativePath": [
1429
+ "dist",
1430
+ "commands",
1431
+ "projects",
1432
+ "create",
1433
+ "demo.js"
1434
+ ]
1435
+ },
1436
+ "projects:create:nosql": {
1437
+ "aliases": [],
1438
+ "args": {
1439
+ "applicationName": {
1440
+ "description": "Name of the project to create.",
1441
+ "name": "applicationName",
1442
+ "required": true
1443
+ }
1444
+ },
1445
+ "description": "Create a new Forest Admin project.",
1225
1446
  "flags": {
1226
1447
  "databaseConnectionURL": {
1227
1448
  "char": "c",
@@ -1362,7 +1583,7 @@
1362
1583
  },
1363
1584
  "hasDynamicHelp": false,
1364
1585
  "hiddenAliases": [],
1365
- "id": "projects:bundle:nosql",
1586
+ "id": "projects:create:nosql",
1366
1587
  "pluginAlias": "forest-cli",
1367
1588
  "pluginName": "forest-cli",
1368
1589
  "pluginType": "core",
@@ -1541,11 +1762,11 @@
1541
1762
  "dist",
1542
1763
  "commands",
1543
1764
  "projects",
1544
- "bundle",
1765
+ "create",
1545
1766
  "nosql.js"
1546
1767
  ]
1547
1768
  },
1548
- "projects:bundle:sql": {
1769
+ "projects:create:sql": {
1549
1770
  "aliases": [],
1550
1771
  "args": {
1551
1772
  "applicationName": {
@@ -1554,7 +1775,7 @@
1554
1775
  "required": true
1555
1776
  }
1556
1777
  },
1557
- "description": "Bundle files for Forest Admin project.",
1778
+ "description": "Create a new Forest Admin project.",
1558
1779
  "flags": {
1559
1780
  "databaseConnectionURL": {
1560
1781
  "char": "c",
@@ -1711,7 +1932,7 @@
1711
1932
  },
1712
1933
  "hasDynamicHelp": false,
1713
1934
  "hiddenAliases": [],
1714
- "id": "projects:bundle:sql",
1935
+ "id": "projects:create:sql",
1715
1936
  "pluginAlias": "forest-cli",
1716
1937
  "pluginName": "forest-cli",
1717
1938
  "pluginType": "core",
@@ -1909,124 +2130,15 @@
1909
2130
  }
1910
2131
  },
1911
2132
  "isESM": false,
1912
- "relativePath": [
1913
- "dist",
1914
- "commands",
1915
- "projects",
1916
- "bundle",
1917
- "sql.js"
1918
- ]
1919
- },
1920
- "projects:create:demo": {
1921
- "aliases": [],
1922
- "args": {
1923
- "applicationName": {
1924
- "description": "Name of the project to create.",
1925
- "name": "applicationName",
1926
- "required": true
1927
- }
1928
- },
1929
- "description": "Create a new Forest Admin project with demo data — no database required.",
1930
- "flags": {
1931
- "applicationHost": {
1932
- "char": "H",
1933
- "description": "Hostname of your admin backend application.",
1934
- "name": "applicationHost",
1935
- "required": false,
1936
- "hasDynamicHelp": false,
1937
- "multiple": false,
1938
- "type": "option"
1939
- },
1940
- "applicationPort": {
1941
- "char": "P",
1942
- "description": "Port of your admin backend application.",
1943
- "name": "applicationPort",
1944
- "required": false,
1945
- "hasDynamicHelp": false,
1946
- "multiple": false,
1947
- "type": "option"
1948
- },
1949
- "language": {
1950
- "char": "l",
1951
- "description": "Choose the language you want to use for your project.",
1952
- "name": "language",
1953
- "required": false,
1954
- "hasDynamicHelp": false,
1955
- "multiple": false,
1956
- "options": [
1957
- "javascript",
1958
- "typescript"
1959
- ],
1960
- "type": "option"
1961
- }
1962
- },
1963
- "hasDynamicHelp": false,
1964
- "hiddenAliases": [],
1965
- "id": "projects:create:demo",
1966
- "pluginAlias": "forest-cli",
1967
- "pluginName": "forest-cli",
1968
- "pluginType": "core",
1969
- "options": {
1970
- "applicationHost": {
1971
- "default": "http://localhost",
1972
- "oclif": {
1973
- "char": "H",
1974
- "description": "Hostname of your admin backend application."
1975
- },
1976
- "prompter": {
1977
- "question": "What's the IP/hostname on which your application will be running?"
1978
- }
1979
- },
1980
- "applicationPort": {
1981
- "default": "3310",
1982
- "oclif": {
1983
- "char": "P",
1984
- "description": "Port of your admin backend application."
1985
- },
1986
- "prompter": {
1987
- "question": "What's the port on which your application will be running?"
1988
- }
1989
- },
1990
- "language": {
1991
- "choices": [
1992
- {
1993
- "name": "javascript",
1994
- "value": {
1995
- "name": "javascript",
1996
- "fileExtension": "js"
1997
- }
1998
- },
1999
- {
2000
- "name": "typescript",
2001
- "value": {
2002
- "name": "typescript",
2003
- "fileExtension": "ts"
2004
- }
2005
- }
2006
- ],
2007
- "default": {
2008
- "name": "javascript",
2009
- "fileExtension": "js"
2010
- },
2011
- "oclif": {
2012
- "char": "l",
2013
- "description": "Choose the language you want to use for your project."
2014
- },
2015
- "prompter": {
2016
- "question": "In which language would you like to generate your sources?"
2017
- }
2018
- }
2019
- },
2020
- "isESM": false,
2021
2133
  "relativePath": [
2022
2134
  "dist",
2023
2135
  "commands",
2024
2136
  "projects",
2025
2137
  "create",
2026
- "demo.js"
2138
+ "sql.js"
2027
2139
  ]
2028
2140
  },
2029
- "projects:create:nosql": {
2141
+ "projects:bundle:nosql": {
2030
2142
  "aliases": [],
2031
2143
  "args": {
2032
2144
  "applicationName": {
@@ -2035,7 +2147,7 @@
2035
2147
  "required": true
2036
2148
  }
2037
2149
  },
2038
- "description": "Create a new Forest Admin project.",
2150
+ "description": "Bundle files for Forest Admin project.",
2039
2151
  "flags": {
2040
2152
  "databaseConnectionURL": {
2041
2153
  "char": "c",
@@ -2176,7 +2288,7 @@
2176
2288
  },
2177
2289
  "hasDynamicHelp": false,
2178
2290
  "hiddenAliases": [],
2179
- "id": "projects:create:nosql",
2291
+ "id": "projects:bundle:nosql",
2180
2292
  "pluginAlias": "forest-cli",
2181
2293
  "pluginName": "forest-cli",
2182
2294
  "pluginType": "core",
@@ -2355,11 +2467,11 @@
2355
2467
  "dist",
2356
2468
  "commands",
2357
2469
  "projects",
2358
- "create",
2470
+ "bundle",
2359
2471
  "nosql.js"
2360
2472
  ]
2361
2473
  },
2362
- "projects:create:sql": {
2474
+ "projects:bundle:sql": {
2363
2475
  "aliases": [],
2364
2476
  "args": {
2365
2477
  "applicationName": {
@@ -2368,7 +2480,7 @@
2368
2480
  "required": true
2369
2481
  }
2370
2482
  },
2371
- "description": "Create a new Forest Admin project.",
2483
+ "description": "Bundle files for Forest Admin project.",
2372
2484
  "flags": {
2373
2485
  "databaseConnectionURL": {
2374
2486
  "char": "c",
@@ -2525,7 +2637,7 @@
2525
2637
  },
2526
2638
  "hasDynamicHelp": false,
2527
2639
  "hiddenAliases": [],
2528
- "id": "projects:create:sql",
2640
+ "id": "projects:bundle:sql",
2529
2641
  "pluginAlias": "forest-cli",
2530
2642
  "pluginName": "forest-cli",
2531
2643
  "pluginType": "core",
@@ -2727,10 +2839,10 @@
2727
2839
  "dist",
2728
2840
  "commands",
2729
2841
  "projects",
2730
- "create",
2842
+ "bundle",
2731
2843
  "sql.js"
2732
2844
  ]
2733
2845
  }
2734
2846
  },
2735
- "version": "5.6.0"
2847
+ "version": "5.8.0"
2736
2848
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forest-cli",
3
3
  "description": "The Lumberjacks' toolbelt is the Forest CLI which makes easy to manage your back office application directly from the terminal.",
4
- "version": "5.6.0",
4
+ "version": "5.8.0",
5
5
  "author": "Sandro Munda",
6
6
  "contributors": [
7
7
  "Arnaud Valensi <arnaud.valensi@gmail.com>",