@dxos/cli 0.1.52 → 0.1.53-main.01cbc6b

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 (139) hide show
  1. package/README.md +140 -79
  2. package/dist/src/base-command.d.ts +12 -9
  3. package/dist/src/base-command.d.ts.map +1 -1
  4. package/dist/src/base-command.js +27 -14
  5. package/dist/src/base-command.js.map +1 -1
  6. package/dist/src/commands/agent/agent.test.d.ts +2 -0
  7. package/dist/src/commands/agent/agent.test.d.ts.map +1 -0
  8. package/dist/src/commands/agent/agent.test.js +186 -0
  9. package/dist/src/commands/agent/agent.test.js.map +1 -0
  10. package/dist/src/commands/agent/list.d.ts.map +1 -1
  11. package/dist/src/commands/agent/list.js +22 -1
  12. package/dist/src/commands/agent/list.js.map +1 -1
  13. package/dist/src/commands/agent/restart.d.ts +10 -0
  14. package/dist/src/commands/agent/restart.d.ts.map +1 -1
  15. package/dist/src/commands/agent/restart.js +9 -2
  16. package/dist/src/commands/agent/restart.js.map +1 -1
  17. package/dist/src/commands/agent/start.d.ts +1 -0
  18. package/dist/src/commands/agent/start.d.ts.map +1 -1
  19. package/dist/src/commands/agent/start.js +31 -20
  20. package/dist/src/commands/agent/start.js.map +1 -1
  21. package/dist/src/commands/agent/stop.d.ts +2 -0
  22. package/dist/src/commands/agent/stop.d.ts.map +1 -1
  23. package/dist/src/commands/agent/stop.js +17 -7
  24. package/dist/src/commands/agent/stop.js.map +1 -1
  25. package/dist/src/commands/app/create.d.ts +1 -0
  26. package/dist/src/commands/app/create.d.ts.map +1 -1
  27. package/dist/src/commands/app/open.d.ts +1 -0
  28. package/dist/src/commands/app/open.d.ts.map +1 -1
  29. package/dist/src/commands/app/open.js +4 -4
  30. package/dist/src/commands/app/open.js.map +1 -1
  31. package/dist/src/commands/app/publish.d.ts +1 -0
  32. package/dist/src/commands/app/publish.d.ts.map +1 -1
  33. package/dist/src/commands/config/index.d.ts.map +1 -1
  34. package/dist/src/commands/config/index.js +3 -1
  35. package/dist/src/commands/config/index.js.map +1 -1
  36. package/dist/src/commands/debug/stats.d.ts +2 -1
  37. package/dist/src/commands/debug/stats.d.ts.map +1 -1
  38. package/dist/src/commands/debug/stats.js +28 -1
  39. package/dist/src/commands/debug/stats.js.map +1 -1
  40. package/dist/src/commands/device/index.d.ts.map +1 -1
  41. package/dist/src/commands/device/index.js +4 -0
  42. package/dist/src/commands/device/index.js.map +1 -1
  43. package/dist/src/commands/function/{dev.d.ts → dev-server.d.ts} +9 -2
  44. package/dist/src/commands/function/dev-server.d.ts.map +1 -0
  45. package/dist/src/commands/function/dev-server.js +69 -0
  46. package/dist/src/commands/function/dev-server.js.map +1 -0
  47. package/dist/src/commands/function/exec.d.ts +4 -0
  48. package/dist/src/commands/function/exec.d.ts.map +1 -1
  49. package/dist/src/commands/function/exec.js +4 -0
  50. package/dist/src/commands/function/exec.js.map +1 -1
  51. package/dist/src/commands/function/list.d.ts +4 -0
  52. package/dist/src/commands/function/list.d.ts.map +1 -1
  53. package/dist/src/commands/function/list.js +4 -0
  54. package/dist/src/commands/function/list.js.map +1 -1
  55. package/dist/src/commands/function/logs.d.ts +4 -0
  56. package/dist/src/commands/function/logs.d.ts.map +1 -1
  57. package/dist/src/commands/function/logs.js +4 -0
  58. package/dist/src/commands/function/logs.js.map +1 -1
  59. package/dist/src/commands/halo/credential/list.d.ts +1 -0
  60. package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
  61. package/dist/src/commands/halo/join.d.ts +1 -0
  62. package/dist/src/commands/halo/join.d.ts.map +1 -1
  63. package/dist/src/commands/halo/join.js +2 -2
  64. package/dist/src/commands/halo/join.js.map +1 -1
  65. package/dist/src/commands/halo/share.d.ts +1 -0
  66. package/dist/src/commands/halo/share.d.ts.map +1 -1
  67. package/dist/src/commands/halo/share.js +4 -4
  68. package/dist/src/commands/halo/share.js.map +1 -1
  69. package/dist/src/commands/kube/deploy.d.ts +1 -0
  70. package/dist/src/commands/kube/deploy.d.ts.map +1 -1
  71. package/dist/src/commands/reset/index.d.ts +1 -0
  72. package/dist/src/commands/reset/index.d.ts.map +1 -1
  73. package/dist/src/commands/reset/index.js +8 -5
  74. package/dist/src/commands/reset/index.js.map +1 -1
  75. package/dist/src/commands/space/create.d.ts.map +1 -1
  76. package/dist/src/commands/space/create.js +2 -29
  77. package/dist/src/commands/space/create.js.map +1 -1
  78. package/dist/src/commands/space/epoch.d.ts +1 -0
  79. package/dist/src/commands/space/epoch.d.ts.map +1 -1
  80. package/dist/src/commands/space/epoch.js +1 -0
  81. package/dist/src/commands/space/epoch.js.map +1 -1
  82. package/dist/src/commands/space/invite.d.ts.map +1 -1
  83. package/dist/src/commands/space/invite.js +4 -4
  84. package/dist/src/commands/space/invite.js.map +1 -1
  85. package/dist/src/commands/space/join.d.ts +1 -0
  86. package/dist/src/commands/space/join.d.ts.map +1 -1
  87. package/dist/src/commands/space/join.js +3 -2
  88. package/dist/src/commands/space/join.js.map +1 -1
  89. package/dist/src/commands/space/list.d.ts +1 -0
  90. package/dist/src/commands/space/list.d.ts.map +1 -1
  91. package/dist/src/commands/space/list.js +1 -0
  92. package/dist/src/commands/space/list.js.map +1 -1
  93. package/dist/src/commands/space/members.d.ts +1 -0
  94. package/dist/src/commands/space/members.d.ts.map +1 -1
  95. package/dist/src/commands/space/members.js +1 -0
  96. package/dist/src/commands/space/members.js.map +1 -1
  97. package/dist/src/commands/tunnel/set.d.ts +1 -0
  98. package/dist/src/commands/tunnel/set.d.ts.map +1 -1
  99. package/dist/src/help.d.ts +6 -0
  100. package/dist/src/help.d.ts.map +1 -0
  101. package/dist/src/help.js +31 -0
  102. package/dist/src/help.js.map +1 -0
  103. package/dist/src/hooks/command-not-found.d.ts +4 -0
  104. package/dist/src/hooks/command-not-found.d.ts.map +1 -0
  105. package/dist/src/hooks/command-not-found.js +14 -0
  106. package/dist/src/hooks/command-not-found.js.map +1 -0
  107. package/dist/src/util/invitation.d.ts +1 -1
  108. package/dist/src/util/invitation.d.ts.map +1 -1
  109. package/dist/src/util/invitation.js +7 -7
  110. package/dist/src/util/invitation.js.map +1 -1
  111. package/dist/src/util/print.d.ts +3 -4
  112. package/dist/src/util/print.d.ts.map +1 -1
  113. package/dist/src/util/print.js +2 -2
  114. package/dist/src/util/print.js.map +1 -1
  115. package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +1 -1
  116. package/dist/src/util/publish/publisher-rpc-peer.js +4 -5
  117. package/dist/src/util/publish/publisher-rpc-peer.js.map +1 -1
  118. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +1 -1
  119. package/dist/src/util/supervisor/supervisor-rpc-peer.js +4 -5
  120. package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +1 -1
  121. package/dist/src/util/telemetry.d.ts.map +1 -1
  122. package/dist/src/util/telemetry.js.map +1 -1
  123. package/dist/src/util/telemetryrc.json +2 -2
  124. package/dist/src/util/test-util.d.ts +1 -0
  125. package/dist/src/util/test-util.d.ts.map +1 -1
  126. package/dist/src/util/test-util.js +14 -5
  127. package/dist/src/util/test-util.js.map +1 -1
  128. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +1 -1
  129. package/dist/src/util/tunnel/tunnel-rpc-peer.js +4 -5
  130. package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +1 -1
  131. package/dist/src/util/util.d.ts +1 -1
  132. package/dist/src/util/util.d.ts.map +1 -1
  133. package/dist/src/util/util.js +1 -0
  134. package/dist/src/util/util.js.map +1 -1
  135. package/oclif.manifest.json +58 -48
  136. package/package.json +31 -32
  137. package/dist/src/commands/function/dev.d.ts.map +0 -1
  138. package/dist/src/commands/function/dev.js +0 -33
  139. package/dist/src/commands/function/dev.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.52",
2
+ "version": "0.1.53-main.01cbc6b",
3
3
  "commands": {
4
4
  "agent:list": {
5
5
  "id": "agent:list",
@@ -82,8 +82,7 @@
82
82
  "json": {
83
83
  "name": "json",
84
84
  "type": "boolean",
85
- "description": "Format output as json.",
86
- "helpGroup": "GLOBAL",
85
+ "description": "Output as JSON.",
87
86
  "allowNo": false
88
87
  },
89
88
  "dry-run": {
@@ -135,6 +134,12 @@
135
134
  "aliases": [
136
135
  "t"
137
136
  ]
137
+ },
138
+ "force": {
139
+ "name": "force",
140
+ "type": "boolean",
141
+ "description": "Force restart.",
142
+ "allowNo": false
138
143
  }
139
144
  },
140
145
  "args": {}
@@ -151,8 +156,7 @@
151
156
  "json": {
152
157
  "name": "json",
153
158
  "type": "boolean",
154
- "description": "Format output as json.",
155
- "helpGroup": "GLOBAL",
159
+ "description": "Output as JSON.",
156
160
  "allowNo": false
157
161
  },
158
162
  "dry-run": {
@@ -250,8 +254,7 @@
250
254
  "json": {
251
255
  "name": "json",
252
256
  "type": "boolean",
253
- "description": "Format output as json.",
254
- "helpGroup": "GLOBAL",
257
+ "description": "Output as JSON.",
255
258
  "allowNo": false
256
259
  },
257
260
  "dry-run": {
@@ -307,9 +310,14 @@
307
310
  "all": {
308
311
  "name": "all",
309
312
  "type": "boolean",
310
- "char": "a",
311
313
  "description": "Stop all agents.",
312
314
  "allowNo": false
315
+ },
316
+ "force": {
317
+ "name": "force",
318
+ "type": "boolean",
319
+ "description": "Force stop.",
320
+ "allowNo": false
313
321
  }
314
322
  },
315
323
  "args": {}
@@ -326,8 +334,7 @@
326
334
  "json": {
327
335
  "name": "json",
328
336
  "type": "boolean",
329
- "description": "Format output as json.",
330
- "helpGroup": "GLOBAL",
337
+ "description": "Output as JSON.",
331
338
  "allowNo": false
332
339
  },
333
340
  "dry-run": {
@@ -584,8 +591,7 @@
584
591
  "json": {
585
592
  "name": "json",
586
593
  "type": "boolean",
587
- "description": "Format output as json.",
588
- "helpGroup": "GLOBAL",
594
+ "description": "Output as JSON.",
589
595
  "allowNo": false
590
596
  },
591
597
  "dry-run": {
@@ -746,8 +752,7 @@
746
752
  "json": {
747
753
  "name": "json",
748
754
  "type": "boolean",
749
- "description": "Format output as json.",
750
- "helpGroup": "GLOBAL",
755
+ "description": "Output as JSON.",
751
756
  "allowNo": false
752
757
  },
753
758
  "dry-run": {
@@ -759,8 +764,7 @@
759
764
  "verbose": {
760
765
  "name": "verbose",
761
766
  "type": "boolean",
762
- "char": "v",
763
- "description": "Verbose output",
767
+ "description": "Verbose output.",
764
768
  "allowNo": false
765
769
  },
766
770
  "profile": {
@@ -953,20 +957,27 @@
953
957
  },
954
958
  "args": {}
955
959
  },
956
- "function:dev": {
957
- "id": "function:dev",
958
- "description": "Functions dev server.",
960
+ "function:dev-server": {
961
+ "id": "function:dev-server",
962
+ "description": "Development server.",
959
963
  "strict": true,
960
964
  "pluginName": "@dxos/cli",
961
965
  "pluginAlias": "@dxos/cli",
962
966
  "pluginType": "core",
963
- "aliases": [],
967
+ "aliases": [
968
+ "function:dev"
969
+ ],
970
+ "examples": [
971
+ {
972
+ "description": "Run with TypeScript support.",
973
+ "command": "dx function dev-server -r ts-node/register --verbose"
974
+ }
975
+ ],
964
976
  "flags": {
965
977
  "json": {
966
978
  "name": "json",
967
979
  "type": "boolean",
968
- "description": "Format output as json.",
969
- "helpGroup": "GLOBAL",
980
+ "description": "Output as JSON.",
970
981
  "allowNo": false
971
982
  },
972
983
  "dry-run": {
@@ -1023,9 +1034,18 @@
1023
1034
  "name": "require",
1024
1035
  "type": "option",
1025
1036
  "multiple": true,
1037
+ "default": [
1038
+ "ts-node/register"
1039
+ ],
1026
1040
  "aliases": [
1027
1041
  "r"
1028
1042
  ]
1043
+ },
1044
+ "manifest": {
1045
+ "name": "manifest",
1046
+ "type": "option",
1047
+ "multiple": false,
1048
+ "default": "functions.yml"
1029
1049
  }
1030
1050
  },
1031
1051
  "args": {}
@@ -1037,6 +1057,7 @@
1037
1057
  "pluginName": "@dxos/cli",
1038
1058
  "pluginAlias": "@dxos/cli",
1039
1059
  "pluginType": "core",
1060
+ "state": "deprecated",
1040
1061
  "aliases": [],
1041
1062
  "flags": {
1042
1063
  "json": {
@@ -1112,6 +1133,7 @@
1112
1133
  "pluginName": "@dxos/cli",
1113
1134
  "pluginAlias": "@dxos/cli",
1114
1135
  "pluginType": "core",
1136
+ "state": "deprecated",
1115
1137
  "aliases": [],
1116
1138
  "flags": {
1117
1139
  "json": {
@@ -1181,6 +1203,7 @@
1181
1203
  "pluginName": "@dxos/cli",
1182
1204
  "pluginAlias": "@dxos/cli",
1183
1205
  "pluginType": "core",
1206
+ "state": "deprecated",
1184
1207
  "aliases": [],
1185
1208
  "flags": {
1186
1209
  "json": {
@@ -1405,8 +1428,7 @@
1405
1428
  "json": {
1406
1429
  "name": "json",
1407
1430
  "type": "boolean",
1408
- "description": "Format output as json.",
1409
- "helpGroup": "GLOBAL",
1431
+ "description": "Output as JSON.",
1410
1432
  "allowNo": false
1411
1433
  },
1412
1434
  "dry-run": {
@@ -1624,8 +1646,7 @@
1624
1646
  "json": {
1625
1647
  "name": "json",
1626
1648
  "type": "boolean",
1627
- "description": "Format output as json.",
1628
- "helpGroup": "GLOBAL",
1649
+ "description": "Output as JSON.",
1629
1650
  "allowNo": false
1630
1651
  },
1631
1652
  "dry-run": {
@@ -1719,8 +1740,7 @@
1719
1740
  "json": {
1720
1741
  "name": "json",
1721
1742
  "type": "boolean",
1722
- "description": "Format output as json.",
1723
- "helpGroup": "GLOBAL",
1743
+ "description": "Output as JSON.",
1724
1744
  "allowNo": false
1725
1745
  },
1726
1746
  "dry-run": {
@@ -1794,8 +1814,7 @@
1794
1814
  "json": {
1795
1815
  "name": "json",
1796
1816
  "type": "boolean",
1797
- "description": "Format output as json.",
1798
- "helpGroup": "GLOBAL",
1817
+ "description": "Output as JSON.",
1799
1818
  "allowNo": false
1800
1819
  },
1801
1820
  "dry-run": {
@@ -1936,8 +1955,7 @@
1936
1955
  "json": {
1937
1956
  "name": "json",
1938
1957
  "type": "boolean",
1939
- "description": "Format output as json.",
1940
- "helpGroup": "GLOBAL",
1958
+ "description": "Output as JSON.",
1941
1959
  "allowNo": false
1942
1960
  },
1943
1961
  "dry-run": {
@@ -2083,8 +2101,7 @@
2083
2101
  "json": {
2084
2102
  "name": "json",
2085
2103
  "type": "boolean",
2086
- "description": "Format output as json.",
2087
- "helpGroup": "GLOBAL",
2104
+ "description": "Output as JSON.",
2088
2105
  "allowNo": false
2089
2106
  },
2090
2107
  "dry-run": {
@@ -2152,8 +2169,7 @@
2152
2169
  "json": {
2153
2170
  "name": "json",
2154
2171
  "type": "boolean",
2155
- "description": "Format output as json.",
2156
- "helpGroup": "GLOBAL",
2172
+ "description": "Output as JSON.",
2157
2173
  "allowNo": false
2158
2174
  },
2159
2175
  "dry-run": {
@@ -2226,8 +2242,7 @@
2226
2242
  "json": {
2227
2243
  "name": "json",
2228
2244
  "type": "boolean",
2229
- "description": "Format output as json.",
2230
- "helpGroup": "GLOBAL",
2245
+ "description": "Output as JSON.",
2231
2246
  "allowNo": false
2232
2247
  },
2233
2248
  "dry-run": {
@@ -2307,8 +2322,7 @@
2307
2322
  "json": {
2308
2323
  "name": "json",
2309
2324
  "type": "boolean",
2310
- "description": "Format output as json.",
2311
- "helpGroup": "GLOBAL",
2325
+ "description": "Output as JSON.",
2312
2326
  "allowNo": false
2313
2327
  },
2314
2328
  "dry-run": {
@@ -2449,8 +2463,7 @@
2449
2463
  "json": {
2450
2464
  "name": "json",
2451
2465
  "type": "boolean",
2452
- "description": "Format output as json.",
2453
- "helpGroup": "GLOBAL",
2466
+ "description": "Output as JSON.",
2454
2467
  "allowNo": false
2455
2468
  },
2456
2469
  "dry-run": {
@@ -2665,8 +2678,7 @@
2665
2678
  "json": {
2666
2679
  "name": "json",
2667
2680
  "type": "boolean",
2668
- "description": "Format output as json.",
2669
- "helpGroup": "GLOBAL",
2681
+ "description": "Output as JSON.",
2670
2682
  "allowNo": false
2671
2683
  },
2672
2684
  "dry-run": {
@@ -2753,8 +2765,7 @@
2753
2765
  "json": {
2754
2766
  "name": "json",
2755
2767
  "type": "boolean",
2756
- "description": "Format output as json.",
2757
- "helpGroup": "GLOBAL",
2768
+ "description": "Output as JSON.",
2758
2769
  "allowNo": false
2759
2770
  },
2760
2771
  "dry-run": {
@@ -2828,8 +2839,7 @@
2828
2839
  "json": {
2829
2840
  "name": "json",
2830
2841
  "type": "boolean",
2831
- "description": "Format output as json.",
2832
- "helpGroup": "GLOBAL",
2842
+ "description": "Output as JSON.",
2833
2843
  "allowNo": false
2834
2844
  },
2835
2845
  "dry-run": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "0.1.52",
3
+ "version": "0.1.53-main.01cbc6b",
4
4
  "description": "DXOS CLI",
5
5
  "keywords": [
6
6
  "dxos",
@@ -23,18 +23,17 @@
23
23
  "/oclif.manifest.json"
24
24
  ],
25
25
  "dependencies": {
26
- "@faker-js/faker": "^7.3.0",
27
- "@oclif/core": "^2.6.5",
28
- "@oclif/plugin-help": "^5.2.8",
29
- "@oclif/plugin-plugins": "^2.4.3",
26
+ "@oclif/core": "^2.9.4",
27
+ "@oclif/plugin-help": "^5.2.14",
28
+ "@oclif/plugin-plugins": "^3.1.8",
30
29
  "@octokit/core": "^4.0.4",
31
30
  "chalk": "^4.1.0",
32
31
  "cli-progress": "^3.11.2",
33
32
  "date-fns": "^2.29.3",
34
- "debug": "^4.3.3",
35
33
  "do-wrapper": "^4.5.1",
36
34
  "fs-extra": "^8.1.0",
37
35
  "get-folder-size": "^2.0.1",
36
+ "git-rev-sync": "^3.0.2",
38
37
  "inquirer": "^8.2.0",
39
38
  "ipfs-http-client": "~56.0.1",
40
39
  "isomorphic-ws": "^4.0.1",
@@ -45,37 +44,33 @@
45
44
  "pkg-up": "^3.1.0",
46
45
  "react": "^18.2.0",
47
46
  "tempy": "^1.0.1",
47
+ "tiny-invariant": "^1.3.1",
48
48
  "uuid": "^8.3.2",
49
49
  "ws": "^7.4.4",
50
- "@dxos/agent": "0.1.52",
51
- "@dxos/async": "0.1.52",
52
- "@dxos/bare-template": "0.1.52",
53
- "@dxos/client": "0.1.52",
54
- "@dxos/client-protocol": "0.1.52",
55
- "@dxos/client-services": "0.1.52",
56
- "@dxos/codec-protobuf": "0.1.52",
57
- "@dxos/config": "0.1.52",
58
- "@dxos/context": "0.1.52",
59
- "@dxos/debug": "0.1.52",
60
- "@dxos/functions": "0.1.52",
61
- "@dxos/hello-template": "0.1.52",
62
- "@dxos/keys": "0.1.52",
63
- "@dxos/log": "0.1.52",
64
- "@dxos/observable-object": "0.1.52",
65
- "@dxos/plate": "0.1.52",
66
- "@dxos/protocols": "0.1.52",
67
- "@dxos/rpc": "0.1.52",
68
- "@dxos/sentry": "0.1.52",
69
- "@dxos/tasks-template": "0.1.52",
70
- "@dxos/telemetry": "0.1.52",
71
- "@dxos/util": "0.1.52",
72
- "@dxos/websocket-rpc": "0.1.52"
50
+ "@dxos/agent": "0.1.53-main.01cbc6b",
51
+ "@dxos/bare-template": "0.1.53-main.01cbc6b",
52
+ "@dxos/client": "0.1.53-main.01cbc6b",
53
+ "@dxos/client-protocol": "0.1.53-main.01cbc6b",
54
+ "@dxos/codec-protobuf": "0.1.53-main.01cbc6b",
55
+ "@dxos/config": "0.1.53-main.01cbc6b",
56
+ "@dxos/context": "0.1.53-main.01cbc6b",
57
+ "@dxos/debug": "0.1.53-main.01cbc6b",
58
+ "@dxos/functions": "0.1.53-main.01cbc6b",
59
+ "@dxos/async": "0.1.53-main.01cbc6b",
60
+ "@dxos/hello-template": "0.1.53-main.01cbc6b",
61
+ "@dxos/log": "0.1.53-main.01cbc6b",
62
+ "@dxos/plate": "0.1.53-main.01cbc6b",
63
+ "@dxos/protocols": "0.1.53-main.01cbc6b",
64
+ "@dxos/rpc": "0.1.53-main.01cbc6b",
65
+ "@dxos/sentry": "0.1.53-main.01cbc6b",
66
+ "@dxos/tasks-template": "0.1.53-main.01cbc6b",
67
+ "@dxos/telemetry": "0.1.53-main.01cbc6b",
68
+ "@dxos/util": "0.1.53-main.01cbc6b",
69
+ "@dxos/websocket-rpc": "0.1.53-main.01cbc6b"
73
70
  },
74
71
  "devDependencies": {
75
- "@oclif/test": "^2.3.11",
72
+ "@oclif/test": "^2.3.31",
76
73
  "@types/cli-progress": "^3.11.0",
77
- "@types/debug": "^4.1.7",
78
- "@types/faker": "^5.5.9",
79
74
  "@types/fs-extra": "^9.0.4",
80
75
  "@types/js-yaml": "^4.0.5",
81
76
  "@types/lodash.defaultsdeep": "^4.6.6",
@@ -96,10 +91,14 @@
96
91
  "bin": "dx",
97
92
  "dirname": "dx",
98
93
  "commands": "./dist/src/commands",
94
+ "hooks": {
95
+ "command_not_found": "./dist/src/hooks/command-not-found"
96
+ },
99
97
  "plugins": [
100
98
  "@oclif/plugin-help",
101
99
  "@oclif/plugin-plugins"
102
100
  ],
101
+ "helpClass": "./dist/src/help",
103
102
  "topicSeparator": " ",
104
103
  "topics": {
105
104
  "config": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW,CAAC,OAAO,GAAG,CAAC;IACtD,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA2B;IAEtD,OAAgB,KAAK;;;;;;;;MAGnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAe1B"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const core_1 = require("@oclif/core");
7
- const node_path_1 = require("node:path");
8
- const functions_1 = require("@dxos/functions");
9
- const base_command_1 = require("../../base-command");
10
- class Dev extends base_command_1.BaseCommand {
11
- async run() {
12
- var _a;
13
- for (const requirePath of (_a = this.flags.require) !== null && _a !== void 0 ? _a : []) {
14
- require(requirePath);
15
- }
16
- await this.execWithClient(async (client) => {
17
- await (0, functions_1.runFunctions)({
18
- client,
19
- functionsDirectory: (0, node_path_1.join)(process.cwd(), 'src/functions'),
20
- });
21
- // Hang forever.
22
- await new Promise(() => { });
23
- });
24
- }
25
- }
26
- Dev.enableJsonFlag = true;
27
- Dev.description = 'Functions dev server.';
28
- Dev.flags = {
29
- ...base_command_1.BaseCommand.flags,
30
- require: core_1.Flags.string({ multiple: true, aliases: ['r'] }),
31
- };
32
- exports.default = Dev;
33
- //# sourceMappingURL=dev.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AACpC,yCAAiC;AAEjC,+CAA+C;AAE/C,qDAAiD;AAEjD,MAAqB,GAAI,SAAQ,0BAAuB;IAStD,KAAK,CAAC,GAAG;;QACP,KAAK,MAAM,WAAW,IAAI,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,mCAAI,EAAE,EAAE;YAClD,OAAO,CAAC,WAAW,CAAC,CAAC;SACtB;QAED,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACzC,MAAM,IAAA,wBAAY,EAAC;gBACjB,MAAM;gBACN,kBAAkB,EAAE,IAAA,gBAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,eAAe,CAAC;aACzD,CAAC,CAAC;YAEH,gBAAgB;YAChB,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;;AAtBe,kBAAc,GAAG,IAAI,CAAC;AACtB,eAAW,GAAG,uBAAuB,CAAC;AAEtC,SAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;CAC1D,CAAC;kBAPiB,GAAG"}