@factorialco/fcode-cli 2.3.0 → 3.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.
Files changed (123) hide show
  1. package/README.md +334 -117
  2. package/dist/commands/clone.d.ts +0 -12
  3. package/dist/commands/clone.js +22 -135
  4. package/dist/commands/{settings → config}/get.d.ts +1 -1
  5. package/dist/commands/{settings → config}/get.js +7 -7
  6. package/dist/commands/{settings → config}/remove.d.ts +1 -1
  7. package/dist/commands/{settings → config}/remove.js +6 -6
  8. package/dist/commands/{settings → config}/set.d.ts +1 -1
  9. package/dist/commands/{settings → config}/set.js +8 -8
  10. package/dist/commands/dependencies/diff.d.ts +9 -0
  11. package/dist/commands/dependencies/diff.js +15 -0
  12. package/dist/commands/dependencies/pull.d.ts +9 -0
  13. package/dist/commands/dependencies/pull.js +44 -1
  14. package/dist/commands/dependencies/status.d.ts +11 -0
  15. package/dist/commands/dependencies/status.js +43 -0
  16. package/dist/commands/diff.d.ts +12 -0
  17. package/dist/commands/diff.js +48 -0
  18. package/dist/commands/http.d.ts +1 -1
  19. package/dist/commands/http.js +7 -7
  20. package/dist/commands/i18n/diff.d.ts +9 -0
  21. package/dist/commands/i18n/diff.js +15 -0
  22. package/dist/commands/i18n/status.d.ts +3 -0
  23. package/dist/commands/i18n/status.js +1 -0
  24. package/dist/commands/modules/diff.d.ts +9 -0
  25. package/dist/commands/modules/diff.js +15 -0
  26. package/dist/commands/modules/status.d.ts +3 -0
  27. package/dist/commands/modules/status.js +1 -0
  28. package/dist/commands/processes/diff.d.ts +9 -0
  29. package/dist/commands/processes/diff.js +15 -0
  30. package/dist/commands/processes/status.d.ts +3 -0
  31. package/dist/commands/processes/status.js +1 -0
  32. package/dist/commands/pull.js +3 -3
  33. package/dist/commands/push.js +2 -2
  34. package/dist/commands/{team → settings}/aliases/delete.d.ts +1 -1
  35. package/dist/commands/{team → settings}/aliases/delete.js +6 -6
  36. package/dist/commands/{team → settings}/aliases/list.d.ts +1 -1
  37. package/dist/commands/{team → settings}/aliases/list.js +8 -8
  38. package/dist/commands/{team → settings}/aliases/set.d.ts +1 -1
  39. package/dist/commands/{team → settings}/aliases/set.js +8 -8
  40. package/dist/commands/settings/diff.d.ts +8 -0
  41. package/dist/commands/settings/diff.js +39 -0
  42. package/dist/commands/{team/push.d.ts → settings/pull.d.ts} +3 -3
  43. package/dist/commands/settings/pull.js +41 -0
  44. package/dist/commands/settings/push.d.ts +13 -0
  45. package/dist/commands/settings/push.js +103 -0
  46. package/dist/commands/settings/status.d.ts +8 -0
  47. package/dist/commands/settings/status.js +46 -0
  48. package/dist/commands/{team → settings}/versions/create.d.ts +1 -2
  49. package/dist/commands/settings/versions/create.js +36 -0
  50. package/dist/commands/{team → settings}/versions/delete.d.ts +1 -1
  51. package/dist/commands/{team → settings}/versions/delete.js +10 -10
  52. package/dist/commands/{team → settings}/versions/list.d.ts +1 -1
  53. package/dist/commands/{team → settings}/versions/list.js +8 -8
  54. package/dist/commands/status.d.ts +3 -0
  55. package/dist/commands/status.js +10 -7
  56. package/dist/commands/team/clone.d.ts +14 -0
  57. package/dist/commands/team/clone.js +91 -0
  58. package/dist/commands/team/pull.d.ts +3 -4
  59. package/dist/commands/team/pull.js +25 -19
  60. package/dist/commands/team/status.d.ts +3 -4
  61. package/dist/commands/team/status.js +34 -27
  62. package/dist/commands/variables/diff.d.ts +9 -0
  63. package/dist/commands/variables/diff.js +15 -0
  64. package/dist/commands/variables/status.d.ts +3 -0
  65. package/dist/commands/variables/status.js +1 -0
  66. package/dist/config/dev-team.d.ts +48 -0
  67. package/dist/config/dev-team.js +62 -0
  68. package/dist/config/workspace.d.ts +2 -2
  69. package/dist/config/workspace.js +4 -2
  70. package/dist/core/commands/base-command.js +5 -0
  71. package/dist/core/commands/dependency-command.d.ts +2 -1
  72. package/dist/core/commands/dependency-command.js +3 -0
  73. package/dist/core/commands/i18n-command.js +2 -0
  74. package/dist/core/commands/modules-command.js +2 -0
  75. package/dist/core/commands/processes-command.js +2 -0
  76. package/dist/core/commands/resource-command.d.ts +26 -1
  77. package/dist/core/commands/resource-command.js +100 -3
  78. package/dist/core/commands/variables-command.d.ts +7 -0
  79. package/dist/core/commands/variables-command.js +13 -0
  80. package/dist/core/dependencies/env-dependencies-command.js +6 -3
  81. package/dist/core/executors/javascript-execution-task.js +36 -5
  82. package/dist/core/types.d.ts +59 -9
  83. package/dist/core/types.js +64 -10
  84. package/dist/core/utils/dependencies.js +4 -1
  85. package/dist/env.js +1 -1
  86. package/dist/repositories/process.d.ts +8 -2
  87. package/dist/repositories/process.js +29 -15
  88. package/dist/repositories/programming-language-manifest.d.ts +31 -1
  89. package/dist/repositories/programming-language-manifest.js +96 -2
  90. package/dist/repositories/settings.d.ts +52 -0
  91. package/dist/repositories/settings.js +214 -0
  92. package/dist/runtime/libs/python/fcode/context.py +42 -8
  93. package/dist/services/dashboard-client.d.ts +31 -0
  94. package/dist/services/dashboard-client.js +99 -0
  95. package/dist/services/dev-team-service.d.ts +41 -0
  96. package/dist/services/dev-team-service.js +162 -0
  97. package/dist/services/fcode-graphql-client.d.ts +17 -2
  98. package/dist/services/fcode-graphql-client.js +127 -15
  99. package/dist/services/locale-resolver.d.ts +17 -1
  100. package/dist/services/locale-resolver.js +62 -7
  101. package/dist/services/resource-differ.d.ts +60 -0
  102. package/dist/services/resource-differ.js +135 -0
  103. package/dist/services/skills-installer.d.ts +16 -0
  104. package/dist/services/skills-installer.js +77 -0
  105. package/dist/services/team-versioning.d.ts +16 -0
  106. package/dist/services/team-versioning.js +40 -0
  107. package/dist/services/webhook-auth.js +1 -1
  108. package/dist/services/workspace-cloner.d.ts +31 -0
  109. package/dist/services/workspace-cloner.js +95 -0
  110. package/dist/utils/dev-slug.d.ts +12 -0
  111. package/dist/utils/dev-slug.js +37 -0
  112. package/dist/utils/diff.d.ts +19 -0
  113. package/dist/utils/diff.js +58 -0
  114. package/dist/utils/gitignore.d.ts +3 -1
  115. package/dist/utils/gitignore.js +11 -2
  116. package/dist/utils/slugify.d.ts +17 -0
  117. package/dist/utils/slugify.js +41 -0
  118. package/oclif.manifest.json +433 -113
  119. package/package.json +12 -7
  120. package/dist/commands/team/push.js +0 -52
  121. package/dist/commands/team/versions/create.js +0 -42
  122. package/dist/repositories/team.d.ts +0 -31
  123. package/dist/repositories/team.js +0 -127
@@ -58,6 +58,28 @@
58
58
  "clone.js"
59
59
  ]
60
60
  },
61
+ "diff": {
62
+ "aliases": [],
63
+ "args": {},
64
+ "description": "Show a unified diff between the local workspace and the cloud. Exits 1 when they differ",
65
+ "examples": [
66
+ "$ fcode diff"
67
+ ],
68
+ "flags": {},
69
+ "hasDynamicHelp": false,
70
+ "hiddenAliases": [],
71
+ "id": "diff",
72
+ "pluginAlias": "@factorialco/fcode-cli",
73
+ "pluginName": "@factorialco/fcode-cli",
74
+ "pluginType": "core",
75
+ "strict": true,
76
+ "isESM": false,
77
+ "relativePath": [
78
+ "dist",
79
+ "commands",
80
+ "diff.js"
81
+ ]
82
+ },
61
83
  "http": {
62
84
  "aliases": [],
63
85
  "args": {},
@@ -600,9 +622,17 @@
600
622
  "args": {},
601
623
  "description": "Show team workspace status",
602
624
  "examples": [
603
- "$ fcode status"
625
+ "$ fcode status",
626
+ "$ fcode status --showInherited"
604
627
  ],
605
- "flags": {},
628
+ "flags": {
629
+ "showInherited": {
630
+ "description": "Also list inherited resources that have no changes",
631
+ "name": "showInherited",
632
+ "allowNo": false,
633
+ "type": "boolean"
634
+ }
635
+ },
606
636
  "hasDynamicHelp": false,
607
637
  "hiddenAliases": [],
608
638
  "id": "status",
@@ -671,6 +701,112 @@
671
701
  "test.js"
672
702
  ]
673
703
  },
704
+ "config:get": {
705
+ "aliases": [],
706
+ "args": {
707
+ "key": {
708
+ "description": "Setting key (optional, shows all settings if omitted)",
709
+ "name": "key",
710
+ "required": false
711
+ }
712
+ },
713
+ "description": "Get a CLI setting value or all CLI settings",
714
+ "examples": [
715
+ "$ fcode config:get disableUpdateNotifier",
716
+ "$ fcode config:get",
717
+ "$ fcode config:get --all"
718
+ ],
719
+ "flags": {
720
+ "all": {
721
+ "char": "a",
722
+ "description": "Show all settings including defaults",
723
+ "name": "all",
724
+ "allowNo": false,
725
+ "type": "boolean"
726
+ }
727
+ },
728
+ "hasDynamicHelp": false,
729
+ "hiddenAliases": [],
730
+ "id": "config:get",
731
+ "pluginAlias": "@factorialco/fcode-cli",
732
+ "pluginName": "@factorialco/fcode-cli",
733
+ "pluginType": "core",
734
+ "strict": true,
735
+ "enableJsonFlag": false,
736
+ "isESM": false,
737
+ "relativePath": [
738
+ "dist",
739
+ "commands",
740
+ "config",
741
+ "get.js"
742
+ ]
743
+ },
744
+ "config:remove": {
745
+ "aliases": [],
746
+ "args": {
747
+ "key": {
748
+ "description": "Setting key",
749
+ "name": "key",
750
+ "required": true
751
+ }
752
+ },
753
+ "description": "Remove a CLI setting value",
754
+ "examples": [
755
+ "$ fcode config:remove disableUpdateNotifier"
756
+ ],
757
+ "flags": {},
758
+ "hasDynamicHelp": false,
759
+ "hiddenAliases": [],
760
+ "id": "config:remove",
761
+ "pluginAlias": "@factorialco/fcode-cli",
762
+ "pluginName": "@factorialco/fcode-cli",
763
+ "pluginType": "core",
764
+ "strict": true,
765
+ "enableJsonFlag": false,
766
+ "isESM": false,
767
+ "relativePath": [
768
+ "dist",
769
+ "commands",
770
+ "config",
771
+ "remove.js"
772
+ ]
773
+ },
774
+ "config:set": {
775
+ "aliases": [],
776
+ "args": {
777
+ "key": {
778
+ "description": "Setting key",
779
+ "name": "key",
780
+ "required": true
781
+ },
782
+ "value": {
783
+ "description": "Setting value",
784
+ "name": "value",
785
+ "required": true
786
+ }
787
+ },
788
+ "description": "Set a CLI setting value",
789
+ "examples": [
790
+ "$ fcode config:set disableUpdateNotifier true",
791
+ "$ fcode config:set ignoreWorkspaceNotEmpty false"
792
+ ],
793
+ "flags": {},
794
+ "hasDynamicHelp": false,
795
+ "hiddenAliases": [],
796
+ "id": "config:set",
797
+ "pluginAlias": "@factorialco/fcode-cli",
798
+ "pluginName": "@factorialco/fcode-cli",
799
+ "pluginType": "core",
800
+ "strict": true,
801
+ "enableJsonFlag": false,
802
+ "isESM": false,
803
+ "relativePath": [
804
+ "dist",
805
+ "commands",
806
+ "config",
807
+ "set.js"
808
+ ]
809
+ },
674
810
  "dependencies:add": {
675
811
  "aliases": [],
676
812
  "args": {
@@ -699,6 +835,35 @@
699
835
  "add.js"
700
836
  ]
701
837
  },
838
+ "dependencies:diff": {
839
+ "aliases": [],
840
+ "args": {
841
+ "resourceSlug": {
842
+ "description": "Resource slug",
843
+ "name": "resourceSlug"
844
+ }
845
+ },
846
+ "description": "Show a unified diff between local dependency manifests and the cloud. Exits 1 when they differ",
847
+ "examples": [
848
+ "$ fcode dependencies:diff",
849
+ "$ fcode dependencies:diff JAVASCRIPT"
850
+ ],
851
+ "flags": {},
852
+ "hasDynamicHelp": false,
853
+ "hiddenAliases": [],
854
+ "id": "dependencies:diff",
855
+ "pluginAlias": "@factorialco/fcode-cli",
856
+ "pluginName": "@factorialco/fcode-cli",
857
+ "pluginType": "core",
858
+ "strict": true,
859
+ "isESM": false,
860
+ "relativePath": [
861
+ "dist",
862
+ "commands",
863
+ "dependencies",
864
+ "diff.js"
865
+ ]
866
+ },
702
867
  "dependencies:install": {
703
868
  "aliases": [],
704
869
  "args": {
@@ -912,6 +1077,35 @@
912
1077
  "add.js"
913
1078
  ]
914
1079
  },
1080
+ "i18n:diff": {
1081
+ "aliases": [],
1082
+ "args": {
1083
+ "resourceSlug": {
1084
+ "description": "Resource slug",
1085
+ "name": "resourceSlug"
1086
+ }
1087
+ },
1088
+ "description": "Show a unified diff between local locales and the cloud. Exits 1 when they differ",
1089
+ "examples": [
1090
+ "$ fcode i18n:diff",
1091
+ "$ fcode i18n:diff en"
1092
+ ],
1093
+ "flags": {},
1094
+ "hasDynamicHelp": false,
1095
+ "hiddenAliases": [],
1096
+ "id": "i18n:diff",
1097
+ "pluginAlias": "@factorialco/fcode-cli",
1098
+ "pluginName": "@factorialco/fcode-cli",
1099
+ "pluginType": "core",
1100
+ "strict": true,
1101
+ "isESM": false,
1102
+ "relativePath": [
1103
+ "dist",
1104
+ "commands",
1105
+ "i18n",
1106
+ "diff.js"
1107
+ ]
1108
+ },
915
1109
  "i18n:pull": {
916
1110
  "aliases": [],
917
1111
  "args": {
@@ -1053,7 +1247,14 @@
1053
1247
  "examples": [
1054
1248
  "$ fcode i18n:status"
1055
1249
  ],
1056
- "flags": {},
1250
+ "flags": {
1251
+ "showInherited": {
1252
+ "description": "Also list inherited resources that have no changes",
1253
+ "name": "showInherited",
1254
+ "allowNo": false,
1255
+ "type": "boolean"
1256
+ }
1257
+ },
1057
1258
  "hasDynamicHelp": false,
1058
1259
  "hiddenAliases": [],
1059
1260
  "id": "i18n:status",
@@ -1097,6 +1298,35 @@
1097
1298
  "add.js"
1098
1299
  ]
1099
1300
  },
1301
+ "modules:diff": {
1302
+ "aliases": [],
1303
+ "args": {
1304
+ "resourceSlug": {
1305
+ "description": "Resource slug",
1306
+ "name": "resourceSlug"
1307
+ }
1308
+ },
1309
+ "description": "Show a unified diff between local modules and the cloud. Exits 1 when they differ",
1310
+ "examples": [
1311
+ "$ fcode modules:diff",
1312
+ "$ fcode modules:diff my-module"
1313
+ ],
1314
+ "flags": {},
1315
+ "hasDynamicHelp": false,
1316
+ "hiddenAliases": [],
1317
+ "id": "modules:diff",
1318
+ "pluginAlias": "@factorialco/fcode-cli",
1319
+ "pluginName": "@factorialco/fcode-cli",
1320
+ "pluginType": "core",
1321
+ "strict": true,
1322
+ "isESM": false,
1323
+ "relativePath": [
1324
+ "dist",
1325
+ "commands",
1326
+ "modules",
1327
+ "diff.js"
1328
+ ]
1329
+ },
1100
1330
  "modules:pull": {
1101
1331
  "aliases": [],
1102
1332
  "args": {
@@ -1237,7 +1467,14 @@
1237
1467
  "examples": [
1238
1468
  "$ fcode modules:status"
1239
1469
  ],
1240
- "flags": {},
1470
+ "flags": {
1471
+ "showInherited": {
1472
+ "description": "Also list inherited resources that have no changes",
1473
+ "name": "showInherited",
1474
+ "allowNo": false,
1475
+ "type": "boolean"
1476
+ }
1477
+ },
1241
1478
  "hasDynamicHelp": false,
1242
1479
  "hiddenAliases": [],
1243
1480
  "id": "modules:status",
@@ -1281,6 +1518,35 @@
1281
1518
  "add.js"
1282
1519
  ]
1283
1520
  },
1521
+ "processes:diff": {
1522
+ "aliases": [],
1523
+ "args": {
1524
+ "resourceSlug": {
1525
+ "description": "Resource slug",
1526
+ "name": "resourceSlug"
1527
+ }
1528
+ },
1529
+ "description": "Show a unified diff between local processes and the cloud. Exits 1 when they differ",
1530
+ "examples": [
1531
+ "$ fcode processes:diff",
1532
+ "$ fcode processes:diff hello-world"
1533
+ ],
1534
+ "flags": {},
1535
+ "hasDynamicHelp": false,
1536
+ "hiddenAliases": [],
1537
+ "id": "processes:diff",
1538
+ "pluginAlias": "@factorialco/fcode-cli",
1539
+ "pluginName": "@factorialco/fcode-cli",
1540
+ "pluginType": "core",
1541
+ "strict": true,
1542
+ "isESM": false,
1543
+ "relativePath": [
1544
+ "dist",
1545
+ "commands",
1546
+ "processes",
1547
+ "diff.js"
1548
+ ]
1549
+ },
1284
1550
  "processes:install-dependencies": {
1285
1551
  "aliases": [],
1286
1552
  "args": {
@@ -1471,7 +1737,14 @@
1471
1737
  "examples": [
1472
1738
  "$ fcode processes:status"
1473
1739
  ],
1474
- "flags": {},
1740
+ "flags": {
1741
+ "showInherited": {
1742
+ "description": "Also list inherited resources that have no changes",
1743
+ "name": "showInherited",
1744
+ "allowNo": false,
1745
+ "type": "boolean"
1746
+ }
1747
+ },
1475
1748
  "hasDynamicHelp": false,
1476
1749
  "hiddenAliases": [],
1477
1750
  "id": "processes:status",
@@ -1566,170 +1839,180 @@
1566
1839
  "set.js"
1567
1840
  ]
1568
1841
  },
1569
- "settings:get": {
1842
+ "settings:diff": {
1570
1843
  "aliases": [],
1571
- "args": {
1572
- "key": {
1573
- "description": "Setting key (optional, shows all settings if omitted)",
1574
- "name": "key",
1575
- "required": false
1576
- }
1577
- },
1578
- "description": "Get a setting value or all settings",
1844
+ "args": {},
1845
+ "description": "Show a unified diff between local workspace settings (settings.json) and the cloud. Exits 1 when they differ",
1579
1846
  "examples": [
1580
- "$ fcode settings:get disableUpdateNotifier",
1581
- "$ fcode settings:get",
1582
- "$ fcode settings:get --all"
1847
+ "$ fcode settings:diff"
1848
+ ],
1849
+ "flags": {},
1850
+ "hasDynamicHelp": false,
1851
+ "hiddenAliases": [],
1852
+ "id": "settings:diff",
1853
+ "pluginAlias": "@factorialco/fcode-cli",
1854
+ "pluginName": "@factorialco/fcode-cli",
1855
+ "pluginType": "core",
1856
+ "strict": true,
1857
+ "isESM": false,
1858
+ "relativePath": [
1859
+ "dist",
1860
+ "commands",
1861
+ "settings",
1862
+ "diff.js"
1863
+ ]
1864
+ },
1865
+ "settings:pull": {
1866
+ "aliases": [],
1867
+ "args": {},
1868
+ "description": "Fetch workspace settings (timezone, error handler, inheritance) and workspace versions/aliases from cloud into settings.json",
1869
+ "examples": [
1870
+ "$ fcode settings:pull"
1583
1871
  ],
1584
1872
  "flags": {
1585
- "all": {
1586
- "char": "a",
1587
- "description": "Show all settings including defaults",
1588
- "name": "all",
1873
+ "force": {
1874
+ "char": "f",
1875
+ "description": "Force command",
1876
+ "name": "force",
1589
1877
  "allowNo": false,
1590
1878
  "type": "boolean"
1591
1879
  }
1592
1880
  },
1593
1881
  "hasDynamicHelp": false,
1594
1882
  "hiddenAliases": [],
1595
- "id": "settings:get",
1883
+ "id": "settings:pull",
1596
1884
  "pluginAlias": "@factorialco/fcode-cli",
1597
1885
  "pluginName": "@factorialco/fcode-cli",
1598
1886
  "pluginType": "core",
1599
1887
  "strict": true,
1600
- "enableJsonFlag": false,
1601
1888
  "isESM": false,
1602
1889
  "relativePath": [
1603
1890
  "dist",
1604
1891
  "commands",
1605
1892
  "settings",
1606
- "get.js"
1893
+ "pull.js"
1607
1894
  ]
1608
1895
  },
1609
- "settings:remove": {
1896
+ "settings:push": {
1610
1897
  "aliases": [],
1611
- "args": {
1612
- "key": {
1613
- "description": "Setting key",
1614
- "name": "key",
1615
- "required": true
1616
- }
1617
- },
1618
- "description": "Remove a setting value",
1898
+ "args": {},
1899
+ "description": "Update cloud workspace settings (timezone, error handler, inheritance, webhook auth) and sync workspace versions/aliases from settings.json",
1619
1900
  "examples": [
1620
- "$ fcode settings:remove disableUpdateNotifier"
1901
+ "$ fcode settings:push"
1621
1902
  ],
1622
- "flags": {},
1903
+ "flags": {
1904
+ "force": {
1905
+ "char": "f",
1906
+ "description": "Force command",
1907
+ "name": "force",
1908
+ "allowNo": false,
1909
+ "type": "boolean"
1910
+ }
1911
+ },
1623
1912
  "hasDynamicHelp": false,
1624
1913
  "hiddenAliases": [],
1625
- "id": "settings:remove",
1914
+ "id": "settings:push",
1626
1915
  "pluginAlias": "@factorialco/fcode-cli",
1627
1916
  "pluginName": "@factorialco/fcode-cli",
1628
1917
  "pluginType": "core",
1629
1918
  "strict": true,
1630
- "enableJsonFlag": false,
1631
1919
  "isESM": false,
1632
1920
  "relativePath": [
1633
1921
  "dist",
1634
1922
  "commands",
1635
1923
  "settings",
1636
- "remove.js"
1924
+ "push.js"
1637
1925
  ]
1638
1926
  },
1639
- "settings:set": {
1927
+ "settings:status": {
1640
1928
  "aliases": [],
1641
- "args": {
1642
- "key": {
1643
- "description": "Setting key",
1644
- "name": "key",
1645
- "required": true
1646
- },
1647
- "value": {
1648
- "description": "Setting value",
1649
- "name": "value",
1650
- "required": true
1651
- }
1652
- },
1653
- "description": "Set a setting value",
1929
+ "args": {},
1930
+ "description": "Show whether workspace settings (timezone, error handler, inheritance) or workspace versions/aliases differ from the cloud",
1654
1931
  "examples": [
1655
- "$ fcode settings:set disableUpdateNotifier true",
1656
- "$ fcode settings:set ignoreWorkspaceNotEmpty false"
1932
+ "$ fcode settings:status"
1657
1933
  ],
1658
1934
  "flags": {},
1659
1935
  "hasDynamicHelp": false,
1660
1936
  "hiddenAliases": [],
1661
- "id": "settings:set",
1937
+ "id": "settings:status",
1662
1938
  "pluginAlias": "@factorialco/fcode-cli",
1663
1939
  "pluginName": "@factorialco/fcode-cli",
1664
1940
  "pluginType": "core",
1665
1941
  "strict": true,
1666
- "enableJsonFlag": false,
1667
1942
  "isESM": false,
1668
1943
  "relativePath": [
1669
1944
  "dist",
1670
1945
  "commands",
1671
1946
  "settings",
1672
- "set.js"
1947
+ "status.js"
1673
1948
  ]
1674
1949
  },
1675
- "team:pull": {
1950
+ "team:clone": {
1676
1951
  "aliases": [],
1677
- "args": {},
1678
- "description": "Fetch team settings (timezone, error handler, inheritance) from cloud into team.json",
1952
+ "args": {
1953
+ "teamId": {
1954
+ "description": "development team id (run without it to list the teams you belong to)",
1955
+ "name": "teamId",
1956
+ "required": false
1957
+ }
1958
+ },
1959
+ "description": "Clone every App of a development team into one folder — an App folder each, holding the App's development workspace",
1679
1960
  "examples": [
1680
- "$ fcode team:pull"
1961
+ "$ fcode team:clone",
1962
+ "$ fcode team:clone 0f9c1a2b-3d4e-5f60-8a1b-2c3d4e5f6071"
1681
1963
  ],
1682
- "flags": {},
1964
+ "flags": {
1965
+ "skipSkillsSetup": {
1966
+ "description": "Skip installation of the Factorial Code agent skills",
1967
+ "name": "skipSkillsSetup",
1968
+ "allowNo": false,
1969
+ "type": "boolean"
1970
+ }
1971
+ },
1683
1972
  "hasDynamicHelp": false,
1684
1973
  "hiddenAliases": [],
1685
- "id": "team:pull",
1974
+ "id": "team:clone",
1686
1975
  "pluginAlias": "@factorialco/fcode-cli",
1687
1976
  "pluginName": "@factorialco/fcode-cli",
1688
1977
  "pluginType": "core",
1689
1978
  "strict": true,
1979
+ "enableJsonFlag": false,
1690
1980
  "isESM": false,
1691
1981
  "relativePath": [
1692
1982
  "dist",
1693
1983
  "commands",
1694
1984
  "team",
1695
- "pull.js"
1985
+ "clone.js"
1696
1986
  ]
1697
1987
  },
1698
- "team:push": {
1988
+ "team:pull": {
1699
1989
  "aliases": [],
1700
1990
  "args": {},
1701
- "description": "Update cloud team settings (timezone, error handler, inheritance, webhook auth) from team.json",
1991
+ "description": "Pull every App of the development team folder: clones Apps added since the last run and pulls each App's workspace",
1702
1992
  "examples": [
1703
- "$ fcode team:push"
1993
+ "$ fcode team:pull"
1704
1994
  ],
1705
- "flags": {
1706
- "force": {
1707
- "char": "f",
1708
- "description": "Force command",
1709
- "name": "force",
1710
- "allowNo": false,
1711
- "type": "boolean"
1712
- }
1713
- },
1995
+ "flags": {},
1714
1996
  "hasDynamicHelp": false,
1715
1997
  "hiddenAliases": [],
1716
- "id": "team:push",
1998
+ "id": "team:pull",
1717
1999
  "pluginAlias": "@factorialco/fcode-cli",
1718
2000
  "pluginName": "@factorialco/fcode-cli",
1719
2001
  "pluginType": "core",
1720
2002
  "strict": true,
2003
+ "enableJsonFlag": false,
1721
2004
  "isESM": false,
1722
2005
  "relativePath": [
1723
2006
  "dist",
1724
2007
  "commands",
1725
2008
  "team",
1726
- "push.js"
2009
+ "pull.js"
1727
2010
  ]
1728
2011
  },
1729
2012
  "team:status": {
1730
2013
  "aliases": [],
1731
2014
  "args": {},
1732
- "description": "Show whether team settings (timezone, error handler, inheritance) differ from the cloud",
2015
+ "description": "Show what differs from the cloud in every App workspace of the development team folder",
1733
2016
  "examples": [
1734
2017
  "$ fcode team:status"
1735
2018
  ],
@@ -1741,6 +2024,7 @@
1741
2024
  "pluginName": "@factorialco/fcode-cli",
1742
2025
  "pluginType": "core",
1743
2026
  "strict": true,
2027
+ "enableJsonFlag": false,
1744
2028
  "isESM": false,
1745
2029
  "relativePath": [
1746
2030
  "dist",
@@ -1815,6 +2099,35 @@
1815
2099
  "add.js"
1816
2100
  ]
1817
2101
  },
2102
+ "variables:diff": {
2103
+ "aliases": [],
2104
+ "args": {
2105
+ "resourceSlug": {
2106
+ "description": "Resource slug",
2107
+ "name": "resourceSlug"
2108
+ }
2109
+ },
2110
+ "description": "Show a unified diff between local variables and the cloud. Sensitive values are never printed. Exits 1 when they differ",
2111
+ "examples": [
2112
+ "$ fcode variables:diff",
2113
+ "$ fcode variables:diff MY_VARIABLE"
2114
+ ],
2115
+ "flags": {},
2116
+ "hasDynamicHelp": false,
2117
+ "hiddenAliases": [],
2118
+ "id": "variables:diff",
2119
+ "pluginAlias": "@factorialco/fcode-cli",
2120
+ "pluginName": "@factorialco/fcode-cli",
2121
+ "pluginType": "core",
2122
+ "strict": true,
2123
+ "isESM": false,
2124
+ "relativePath": [
2125
+ "dist",
2126
+ "commands",
2127
+ "variables",
2128
+ "diff.js"
2129
+ ]
2130
+ },
1818
2131
  "variables:pull": {
1819
2132
  "aliases": [],
1820
2133
  "args": {
@@ -1955,7 +2268,14 @@
1955
2268
  "examples": [
1956
2269
  "$ fcode variables:status"
1957
2270
  ],
1958
- "flags": {},
2271
+ "flags": {
2272
+ "showInherited": {
2273
+ "description": "Also list inherited resources that have no changes",
2274
+ "name": "showInherited",
2275
+ "allowNo": false,
2276
+ "type": "boolean"
2277
+ }
2278
+ },
1959
2279
  "hasDynamicHelp": false,
1960
2280
  "hiddenAliases": [],
1961
2281
  "id": "variables:status",
@@ -1971,7 +2291,7 @@
1971
2291
  "status.js"
1972
2292
  ]
1973
2293
  },
1974
- "team:aliases:delete": {
2294
+ "settings:aliases:delete": {
1975
2295
  "aliases": [],
1976
2296
  "args": {
1977
2297
  "name": {
@@ -1980,14 +2300,14 @@
1980
2300
  "required": true
1981
2301
  }
1982
2302
  },
1983
- "description": "Delete a team version alias and the per-entity aliases carrying its name on every owned process and module",
2303
+ "description": "Delete a workspace version alias and the per-entity aliases carrying its name on every owned process and module",
1984
2304
  "examples": [
1985
- "$ fcode team:aliases:delete production"
2305
+ "$ fcode settings:aliases:delete production"
1986
2306
  ],
1987
2307
  "flags": {},
1988
2308
  "hasDynamicHelp": false,
1989
2309
  "hiddenAliases": [],
1990
- "id": "team:aliases:delete",
2310
+ "id": "settings:aliases:delete",
1991
2311
  "pluginAlias": "@factorialco/fcode-cli",
1992
2312
  "pluginName": "@factorialco/fcode-cli",
1993
2313
  "pluginType": "core",
@@ -1996,22 +2316,22 @@
1996
2316
  "relativePath": [
1997
2317
  "dist",
1998
2318
  "commands",
1999
- "team",
2319
+ "settings",
2000
2320
  "aliases",
2001
2321
  "delete.js"
2002
2322
  ]
2003
2323
  },
2004
- "team:aliases:list": {
2324
+ "settings:aliases:list": {
2005
2325
  "aliases": [],
2006
2326
  "args": {},
2007
- "description": "List the team version aliases of the active team workspace",
2327
+ "description": "List the workspace version aliases of the active workspace",
2008
2328
  "examples": [
2009
- "$ fcode team:aliases:list"
2329
+ "$ fcode settings:aliases:list"
2010
2330
  ],
2011
2331
  "flags": {},
2012
2332
  "hasDynamicHelp": false,
2013
2333
  "hiddenAliases": [],
2014
- "id": "team:aliases:list",
2334
+ "id": "settings:aliases:list",
2015
2335
  "pluginAlias": "@factorialco/fcode-cli",
2016
2336
  "pluginName": "@factorialco/fcode-cli",
2017
2337
  "pluginType": "core",
@@ -2020,12 +2340,12 @@
2020
2340
  "relativePath": [
2021
2341
  "dist",
2022
2342
  "commands",
2023
- "team",
2343
+ "settings",
2024
2344
  "aliases",
2025
2345
  "list.js"
2026
2346
  ]
2027
2347
  },
2028
- "team:aliases:set": {
2348
+ "settings:aliases:set": {
2029
2349
  "aliases": [],
2030
2350
  "args": {
2031
2351
  "name": {
@@ -2034,19 +2354,19 @@
2034
2354
  "required": true
2035
2355
  },
2036
2356
  "tag": {
2037
- "description": "team version tag the alias points at",
2357
+ "description": "workspace version tag the alias points at",
2038
2358
  "name": "tag",
2039
2359
  "required": true
2040
2360
  }
2041
2361
  },
2042
- "description": "Create or re-point a team version alias, upserting the per-entity alias on every owned process and module that has the target tag published",
2362
+ "description": "Create or re-point a workspace version alias, upserting the per-entity alias on every owned process and module that has the target tag published",
2043
2363
  "examples": [
2044
- "$ fcode team:aliases:set production v1.0.0"
2364
+ "$ fcode settings:aliases:set production v1.0.0"
2045
2365
  ],
2046
2366
  "flags": {},
2047
2367
  "hasDynamicHelp": false,
2048
2368
  "hiddenAliases": [],
2049
- "id": "team:aliases:set",
2369
+ "id": "settings:aliases:set",
2050
2370
  "pluginAlias": "@factorialco/fcode-cli",
2051
2371
  "pluginName": "@factorialco/fcode-cli",
2052
2372
  "pluginType": "core",
@@ -2055,12 +2375,12 @@
2055
2375
  "relativePath": [
2056
2376
  "dist",
2057
2377
  "commands",
2058
- "team",
2378
+ "settings",
2059
2379
  "aliases",
2060
2380
  "set.js"
2061
2381
  ]
2062
2382
  },
2063
- "team:versions:create": {
2383
+ "settings:versions:create": {
2064
2384
  "aliases": [],
2065
2385
  "args": {
2066
2386
  "tag": {
@@ -2069,10 +2389,10 @@
2069
2389
  "required": true
2070
2390
  }
2071
2391
  },
2072
- "description": "Publish a team version: creates a version with the tag on every owned process and module (existing tags are skipped) and pins bare module imports in the published snapshots",
2392
+ "description": "Publish a workspace version: creates a version with the tag on every owned process and module (existing tags are skipped) and pins bare module imports in the published snapshots",
2073
2393
  "examples": [
2074
- "$ fcode team:versions:create v1.0.0",
2075
- "$ fcode team:versions:create v1.0.0 --comment \"First stable release\""
2394
+ "$ fcode settings:versions:create v1.0.0",
2395
+ "$ fcode settings:versions:create v1.0.0 --comment \"First stable release\""
2076
2396
  ],
2077
2397
  "flags": {
2078
2398
  "comment": {
@@ -2086,7 +2406,7 @@
2086
2406
  },
2087
2407
  "hasDynamicHelp": false,
2088
2408
  "hiddenAliases": [],
2089
- "id": "team:versions:create",
2409
+ "id": "settings:versions:create",
2090
2410
  "pluginAlias": "@factorialco/fcode-cli",
2091
2411
  "pluginName": "@factorialco/fcode-cli",
2092
2412
  "pluginType": "core",
@@ -2095,12 +2415,12 @@
2095
2415
  "relativePath": [
2096
2416
  "dist",
2097
2417
  "commands",
2098
- "team",
2418
+ "settings",
2099
2419
  "versions",
2100
2420
  "create.js"
2101
2421
  ]
2102
2422
  },
2103
- "team:versions:delete": {
2423
+ "settings:versions:delete": {
2104
2424
  "aliases": [],
2105
2425
  "args": {
2106
2426
  "tag": {
@@ -2109,9 +2429,9 @@
2109
2429
  "required": true
2110
2430
  }
2111
2431
  },
2112
- "description": "Delete a team version. CASCADES: every owned process/module version with the tag is deleted, together with the aliases, executions and schedules that reference them",
2432
+ "description": "Delete a workspace version. CASCADES: every owned process/module version with the tag is deleted, together with the aliases, executions and schedules that reference them",
2113
2433
  "examples": [
2114
- "$ fcode team:versions:delete v1.0.0"
2434
+ "$ fcode settings:versions:delete v1.0.0"
2115
2435
  ],
2116
2436
  "flags": {
2117
2437
  "force": {
@@ -2124,7 +2444,7 @@
2124
2444
  },
2125
2445
  "hasDynamicHelp": false,
2126
2446
  "hiddenAliases": [],
2127
- "id": "team:versions:delete",
2447
+ "id": "settings:versions:delete",
2128
2448
  "pluginAlias": "@factorialco/fcode-cli",
2129
2449
  "pluginName": "@factorialco/fcode-cli",
2130
2450
  "pluginType": "core",
@@ -2133,22 +2453,22 @@
2133
2453
  "relativePath": [
2134
2454
  "dist",
2135
2455
  "commands",
2136
- "team",
2456
+ "settings",
2137
2457
  "versions",
2138
2458
  "delete.js"
2139
2459
  ]
2140
2460
  },
2141
- "team:versions:list": {
2461
+ "settings:versions:list": {
2142
2462
  "aliases": [],
2143
2463
  "args": {},
2144
- "description": "List the team versions published on the active team workspace",
2464
+ "description": "List the workspace versions published on the active workspace",
2145
2465
  "examples": [
2146
- "$ fcode team:versions:list"
2466
+ "$ fcode settings:versions:list"
2147
2467
  ],
2148
2468
  "flags": {},
2149
2469
  "hasDynamicHelp": false,
2150
2470
  "hiddenAliases": [],
2151
- "id": "team:versions:list",
2471
+ "id": "settings:versions:list",
2152
2472
  "pluginAlias": "@factorialco/fcode-cli",
2153
2473
  "pluginName": "@factorialco/fcode-cli",
2154
2474
  "pluginType": "core",
@@ -2157,11 +2477,11 @@
2157
2477
  "relativePath": [
2158
2478
  "dist",
2159
2479
  "commands",
2160
- "team",
2480
+ "settings",
2161
2481
  "versions",
2162
2482
  "list.js"
2163
2483
  ]
2164
2484
  }
2165
2485
  },
2166
- "version": "2.3.0"
2486
+ "version": "3.0.0"
2167
2487
  }