@dxos/cli 0.1.53-main.3ecc504 → 0.1.53-main.499755c

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 (135) hide show
  1. package/README.md +103 -72
  2. package/bin/dev +3 -0
  3. package/dist/src/base-command.d.ts +12 -9
  4. package/dist/src/base-command.d.ts.map +1 -1
  5. package/dist/src/base-command.js +27 -14
  6. package/dist/src/base-command.js.map +1 -1
  7. package/dist/src/commands/agent/agent.test.d.ts +2 -0
  8. package/dist/src/commands/agent/agent.test.d.ts.map +1 -0
  9. package/dist/src/commands/agent/agent.test.js +175 -0
  10. package/dist/src/commands/agent/agent.test.js.map +1 -0
  11. package/dist/src/commands/agent/list.d.ts.map +1 -1
  12. package/dist/src/commands/agent/list.js +4 -2
  13. package/dist/src/commands/agent/list.js.map +1 -1
  14. package/dist/src/commands/agent/restart.js +1 -1
  15. package/dist/src/commands/agent/restart.js.map +1 -1
  16. package/dist/src/commands/agent/start.d.ts +1 -0
  17. package/dist/src/commands/agent/start.d.ts.map +1 -1
  18. package/dist/src/commands/agent/start.js +18 -12
  19. package/dist/src/commands/agent/start.js.map +1 -1
  20. package/dist/src/commands/agent/stop.d.ts +1 -0
  21. package/dist/src/commands/agent/stop.d.ts.map +1 -1
  22. package/dist/src/commands/agent/stop.js +1 -1
  23. package/dist/src/commands/agent/stop.js.map +1 -1
  24. package/dist/src/commands/app/create.d.ts +1 -0
  25. package/dist/src/commands/app/create.d.ts.map +1 -1
  26. package/dist/src/commands/app/open.d.ts +1 -0
  27. package/dist/src/commands/app/open.d.ts.map +1 -1
  28. package/dist/src/commands/app/open.js +4 -4
  29. package/dist/src/commands/app/open.js.map +1 -1
  30. package/dist/src/commands/app/publish.d.ts +1 -0
  31. package/dist/src/commands/app/publish.d.ts.map +1 -1
  32. package/dist/src/commands/debug/stats.d.ts +2 -1
  33. package/dist/src/commands/debug/stats.d.ts.map +1 -1
  34. package/dist/src/commands/debug/stats.js +28 -1
  35. package/dist/src/commands/debug/stats.js.map +1 -1
  36. package/dist/src/commands/device/index.d.ts.map +1 -1
  37. package/dist/src/commands/device/index.js +4 -0
  38. package/dist/src/commands/device/index.js.map +1 -1
  39. package/dist/src/commands/function/{dev.d.ts → dev-server.d.ts} +8 -2
  40. package/dist/src/commands/function/dev-server.d.ts.map +1 -0
  41. package/dist/src/commands/function/dev-server.js +69 -0
  42. package/dist/src/commands/function/dev-server.js.map +1 -0
  43. package/dist/src/commands/function/exec.d.ts +4 -0
  44. package/dist/src/commands/function/exec.d.ts.map +1 -1
  45. package/dist/src/commands/function/exec.js +4 -0
  46. package/dist/src/commands/function/exec.js.map +1 -1
  47. package/dist/src/commands/function/list.d.ts +4 -0
  48. package/dist/src/commands/function/list.d.ts.map +1 -1
  49. package/dist/src/commands/function/list.js +4 -0
  50. package/dist/src/commands/function/list.js.map +1 -1
  51. package/dist/src/commands/function/logs.d.ts +4 -0
  52. package/dist/src/commands/function/logs.d.ts.map +1 -1
  53. package/dist/src/commands/function/logs.js +4 -0
  54. package/dist/src/commands/function/logs.js.map +1 -1
  55. package/dist/src/commands/halo/credential/list.d.ts +1 -0
  56. package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
  57. package/dist/src/commands/halo/join.d.ts +1 -0
  58. package/dist/src/commands/halo/join.d.ts.map +1 -1
  59. package/dist/src/commands/halo/join.js +2 -2
  60. package/dist/src/commands/halo/join.js.map +1 -1
  61. package/dist/src/commands/halo/share.d.ts +1 -0
  62. package/dist/src/commands/halo/share.d.ts.map +1 -1
  63. package/dist/src/commands/halo/share.js +4 -4
  64. package/dist/src/commands/halo/share.js.map +1 -1
  65. package/dist/src/commands/kube/deploy.d.ts +1 -0
  66. package/dist/src/commands/kube/deploy.d.ts.map +1 -1
  67. package/dist/src/commands/reset/index.d.ts +1 -0
  68. package/dist/src/commands/reset/index.d.ts.map +1 -1
  69. package/dist/src/commands/reset/index.js +8 -5
  70. package/dist/src/commands/reset/index.js.map +1 -1
  71. package/dist/src/commands/space/create.d.ts.map +1 -1
  72. package/dist/src/commands/space/create.js +2 -29
  73. package/dist/src/commands/space/create.js.map +1 -1
  74. package/dist/src/commands/space/epoch.d.ts +1 -0
  75. package/dist/src/commands/space/epoch.d.ts.map +1 -1
  76. package/dist/src/commands/space/epoch.js +1 -0
  77. package/dist/src/commands/space/epoch.js.map +1 -1
  78. package/dist/src/commands/space/invite.d.ts.map +1 -1
  79. package/dist/src/commands/space/invite.js +4 -4
  80. package/dist/src/commands/space/invite.js.map +1 -1
  81. package/dist/src/commands/space/join.d.ts +1 -0
  82. package/dist/src/commands/space/join.d.ts.map +1 -1
  83. package/dist/src/commands/space/join.js +3 -2
  84. package/dist/src/commands/space/join.js.map +1 -1
  85. package/dist/src/commands/space/list.d.ts +1 -0
  86. package/dist/src/commands/space/list.d.ts.map +1 -1
  87. package/dist/src/commands/space/list.js +1 -0
  88. package/dist/src/commands/space/list.js.map +1 -1
  89. package/dist/src/commands/space/members.d.ts +1 -0
  90. package/dist/src/commands/space/members.d.ts.map +1 -1
  91. package/dist/src/commands/space/members.js +1 -0
  92. package/dist/src/commands/space/members.js.map +1 -1
  93. package/dist/src/commands/tunnel/set.d.ts +1 -0
  94. package/dist/src/commands/tunnel/set.d.ts.map +1 -1
  95. package/dist/src/help.d.ts +6 -0
  96. package/dist/src/help.d.ts.map +1 -0
  97. package/dist/src/help.js +23 -0
  98. package/dist/src/help.js.map +1 -0
  99. package/dist/src/hooks/command-not-found.d.ts +4 -0
  100. package/dist/src/hooks/command-not-found.d.ts.map +1 -0
  101. package/dist/src/hooks/command-not-found.js +14 -0
  102. package/dist/src/hooks/command-not-found.js.map +1 -0
  103. package/dist/src/util/invitation.d.ts +1 -1
  104. package/dist/src/util/invitation.d.ts.map +1 -1
  105. package/dist/src/util/invitation.js +7 -7
  106. package/dist/src/util/invitation.js.map +1 -1
  107. package/dist/src/util/print.d.ts +3 -4
  108. package/dist/src/util/print.d.ts.map +1 -1
  109. package/dist/src/util/print.js +2 -2
  110. package/dist/src/util/print.js.map +1 -1
  111. package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +1 -1
  112. package/dist/src/util/publish/publisher-rpc-peer.js +4 -5
  113. package/dist/src/util/publish/publisher-rpc-peer.js.map +1 -1
  114. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +1 -1
  115. package/dist/src/util/supervisor/supervisor-rpc-peer.js +4 -5
  116. package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +1 -1
  117. package/dist/src/util/telemetry.d.ts.map +1 -1
  118. package/dist/src/util/telemetry.js.map +1 -1
  119. package/dist/src/util/telemetryrc.json +1 -1
  120. package/dist/src/util/test-util.d.ts +1 -0
  121. package/dist/src/util/test-util.d.ts.map +1 -1
  122. package/dist/src/util/test-util.js +14 -5
  123. package/dist/src/util/test-util.js.map +1 -1
  124. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +1 -1
  125. package/dist/src/util/tunnel/tunnel-rpc-peer.js +4 -5
  126. package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +1 -1
  127. package/dist/src/util/util.d.ts +1 -1
  128. package/dist/src/util/util.d.ts.map +1 -1
  129. package/dist/src/util/util.js +1 -0
  130. package/dist/src/util/util.js.map +1 -1
  131. package/oclif.manifest.json +39 -45
  132. package/package.json +31 -32
  133. package/dist/src/commands/function/dev.d.ts.map +0 -1
  134. package/dist/src/commands/function/dev.js +0 -37
  135. package/dist/src/commands/function/dev.js.map +0 -1
@@ -8,12 +8,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.TunnelRpcPeer = void 0;
10
10
  // TODO(egorgripasov): Factor out.
11
- const debug_1 = __importDefault(require("debug"));
12
11
  const isomorphic_ws_1 = __importDefault(require("isomorphic-ws"));
13
12
  const async_1 = require("@dxos/async");
13
+ const log_1 = require("@dxos/log");
14
14
  const protocols_1 = require("@dxos/protocols");
15
15
  const rpc_1 = require("@dxos/rpc");
16
- const log = (0, debug_1.default)('dxos:cli:tunnel-rpc-peer');
17
16
  class TunnelRpcPeer {
18
17
  constructor(_url) {
19
18
  this._url = _url;
@@ -25,7 +24,7 @@ class TunnelRpcPeer {
25
24
  this._socket.onopen = async () => {
26
25
  try {
27
26
  await this._rpc.open();
28
- log(`RPC open ${this._url}`);
27
+ (0, log_1.log)(`RPC open ${this._url}`, {}, { file: "packages/devtools/cli/src/util/tunnel/tunnel-rpc-peer.ts", line: 28, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
29
28
  this.connected.emit();
30
29
  this._connectTrigger.wake();
31
30
  }
@@ -34,7 +33,7 @@ class TunnelRpcPeer {
34
33
  }
35
34
  };
36
35
  this._socket.onclose = async () => {
37
- log(`Disconnected ${this._url}`);
36
+ (0, log_1.log)(`Disconnected ${this._url}`, {}, { file: "packages/devtools/cli/src/util/tunnel/tunnel-rpc-peer.ts", line: 37, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
38
37
  this.disconnected.emit();
39
38
  try {
40
39
  await this._rpc.close();
@@ -45,7 +44,7 @@ class TunnelRpcPeer {
45
44
  };
46
45
  this._socket.onerror = (event) => {
47
46
  var _a;
48
- log(`Publisher socket error ${this._url} ${event.message}`);
47
+ (0, log_1.log)(`Publisher socket error ${this._url} ${event.message}`, {}, { file: "packages/devtools/cli/src/util/tunnel/tunnel-rpc-peer.ts", line: 47, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
49
48
  this.error.emit((_a = event.error) !== null && _a !== void 0 ? _a : new Error(event.message));
50
49
  };
51
50
  this._rpc = (0, rpc_1.createProtoRpcPeer)({
@@ -1 +1 @@
1
- {"version":3,"file":"tunnel-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AI,EAAE;4BAC3D,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;yBAC/C;6BAAM;4BACL,EAAE,CAAC,GAAG,CAAC,IAAW,CAAC,CAAC;yBACrB;oBACH,CAAC,CAAC;gBACJ,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,KAAK;QACT,IAAI;YACF,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;SACzB;gBAAS;YACR,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SACtB;IACH,CAAC;CACF;AAzED,sCAyEC"}
@@ -1,4 +1,4 @@
1
- import { Space } from '@dxos/client';
1
+ import { Space } from '@dxos/client/echo';
2
2
  import { PublicKey } from '@dxos/keys';
3
3
  export declare const maybeTruncateKey: (key: PublicKey, truncate?: boolean) => string;
4
4
  export declare const safeParseInt: (value: string | undefined, defaultValue?: number) => number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,eAAO,MAAM,gBAAgB,QAAS,SAAS,+BAAkE,CAAC;AAElH,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,iBAAiB,MAAM,KAAG,MAAM,GAAG,SAOxF,CAAC;AAMF,eAAO,MAAM,WAAW,WAAkB,KAAK,EAAE,iBAgBhD,CAAC"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,eAAO,MAAM,gBAAgB,QAAS,SAAS,+BAAkE,CAAC;AAElH,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,iBAAiB,MAAM,KAAG,MAAM,GAAG,SAOxF,CAAC;AAMF,eAAO,MAAM,WAAW,WAAkB,KAAK,EAAE,iBAiBhD,CAAC"}
@@ -21,6 +21,7 @@ exports.safeParseInt = safeParseInt;
21
21
  // Spaces
22
22
  //
23
23
  const selectSpace = async (spaces) => {
24
+ await Promise.all(spaces.map((space) => space.waitUntilReady()));
24
25
  // eslint-disable-next-line no-eval
25
26
  const inquirer = (await eval('import("inquirer")')).default;
26
27
  const { key } = await inquirer.prompt([
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAGF,uCAA0C;AAGnC,MAAM,gBAAgB,GAAG,CAAC,GAAc,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,mBAAW,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;AAArG,QAAA,gBAAgB,oBAAqF;AAE3G,MAAM,YAAY,GAAG,CAAC,KAAyB,EAAE,YAAqB,EAAsB,EAAE;IACnG,IAAI;QACF,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KACpC;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,YAAY,CAAC;KACrB;AACH,CAAC,CAAC;AAPW,QAAA,YAAY,gBAOvB;AAEF,EAAE;AACF,SAAS;AACT,EAAE;AAEK,MA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CAAC,CAAC;KACpC;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,YAAY,CAAC;KACrB;AACH,CAAC,CAAC;AAPW,QAAA,YAAY,gBAOvB;AAEF,EAAE;AACF,SAAS;AACT,EAAE;AAEK,MAAM,WAAW,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;IACnD,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IACjE,mCAAmC;IACnC,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;QACpC;YACE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC9B,IAAI,EAAE,IAAI,IAAA,mBAAW,EAAC,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE;gBAC5D,KAAK,EAAE,KAAK,CAAC,GAAG;aACjB,CAAC,CAAC;SACJ;KACF,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.53-main.3ecc504",
2
+ "version": "0.1.53-main.499755c",
3
3
  "commands": {
4
4
  "agent:list": {
5
5
  "id": "agent:list",
@@ -151,8 +151,7 @@
151
151
  "json": {
152
152
  "name": "json",
153
153
  "type": "boolean",
154
- "description": "Format output as json.",
155
- "helpGroup": "GLOBAL",
154
+ "description": "Output as JSON.",
156
155
  "allowNo": false
157
156
  },
158
157
  "dry-run": {
@@ -250,8 +249,7 @@
250
249
  "json": {
251
250
  "name": "json",
252
251
  "type": "boolean",
253
- "description": "Format output as json.",
254
- "helpGroup": "GLOBAL",
252
+ "description": "Output as JSON.",
255
253
  "allowNo": false
256
254
  },
257
255
  "dry-run": {
@@ -326,8 +324,7 @@
326
324
  "json": {
327
325
  "name": "json",
328
326
  "type": "boolean",
329
- "description": "Format output as json.",
330
- "helpGroup": "GLOBAL",
327
+ "description": "Output as JSON.",
331
328
  "allowNo": false
332
329
  },
333
330
  "dry-run": {
@@ -584,8 +581,7 @@
584
581
  "json": {
585
582
  "name": "json",
586
583
  "type": "boolean",
587
- "description": "Format output as json.",
588
- "helpGroup": "GLOBAL",
584
+ "description": "Output as JSON.",
589
585
  "allowNo": false
590
586
  },
591
587
  "dry-run": {
@@ -746,8 +742,7 @@
746
742
  "json": {
747
743
  "name": "json",
748
744
  "type": "boolean",
749
- "description": "Format output as json.",
750
- "helpGroup": "GLOBAL",
745
+ "description": "Output as JSON.",
751
746
  "allowNo": false
752
747
  },
753
748
  "dry-run": {
@@ -759,8 +754,7 @@
759
754
  "verbose": {
760
755
  "name": "verbose",
761
756
  "type": "boolean",
762
- "char": "v",
763
- "description": "Verbose output",
757
+ "description": "Verbose output.",
764
758
  "allowNo": false
765
759
  },
766
760
  "profile": {
@@ -953,20 +947,27 @@
953
947
  },
954
948
  "args": {}
955
949
  },
956
- "function:dev": {
957
- "id": "function:dev",
958
- "description": "Functions dev server.",
950
+ "function:dev-server": {
951
+ "id": "function:dev-server",
952
+ "description": "Development server.",
959
953
  "strict": true,
960
954
  "pluginName": "@dxos/cli",
961
955
  "pluginAlias": "@dxos/cli",
962
956
  "pluginType": "core",
963
- "aliases": [],
957
+ "aliases": [
958
+ "function:dev"
959
+ ],
960
+ "examples": [
961
+ {
962
+ "description": "Run with TypeScript support.",
963
+ "command": "dx function dev-server -r ts-node/register --verbose"
964
+ }
965
+ ],
964
966
  "flags": {
965
967
  "json": {
966
968
  "name": "json",
967
969
  "type": "boolean",
968
- "description": "Format output as json.",
969
- "helpGroup": "GLOBAL",
970
+ "description": "Output as JSON.",
970
971
  "allowNo": false
971
972
  },
972
973
  "dry-run": {
@@ -1023,6 +1024,9 @@
1023
1024
  "name": "require",
1024
1025
  "type": "option",
1025
1026
  "multiple": true,
1027
+ "default": [
1028
+ "ts-node/register"
1029
+ ],
1026
1030
  "aliases": [
1027
1031
  "r"
1028
1032
  ]
@@ -1043,6 +1047,7 @@
1043
1047
  "pluginName": "@dxos/cli",
1044
1048
  "pluginAlias": "@dxos/cli",
1045
1049
  "pluginType": "core",
1050
+ "state": "deprecated",
1046
1051
  "aliases": [],
1047
1052
  "flags": {
1048
1053
  "json": {
@@ -1118,6 +1123,7 @@
1118
1123
  "pluginName": "@dxos/cli",
1119
1124
  "pluginAlias": "@dxos/cli",
1120
1125
  "pluginType": "core",
1126
+ "state": "deprecated",
1121
1127
  "aliases": [],
1122
1128
  "flags": {
1123
1129
  "json": {
@@ -1187,6 +1193,7 @@
1187
1193
  "pluginName": "@dxos/cli",
1188
1194
  "pluginAlias": "@dxos/cli",
1189
1195
  "pluginType": "core",
1196
+ "state": "deprecated",
1190
1197
  "aliases": [],
1191
1198
  "flags": {
1192
1199
  "json": {
@@ -1411,8 +1418,7 @@
1411
1418
  "json": {
1412
1419
  "name": "json",
1413
1420
  "type": "boolean",
1414
- "description": "Format output as json.",
1415
- "helpGroup": "GLOBAL",
1421
+ "description": "Output as JSON.",
1416
1422
  "allowNo": false
1417
1423
  },
1418
1424
  "dry-run": {
@@ -1630,8 +1636,7 @@
1630
1636
  "json": {
1631
1637
  "name": "json",
1632
1638
  "type": "boolean",
1633
- "description": "Format output as json.",
1634
- "helpGroup": "GLOBAL",
1639
+ "description": "Output as JSON.",
1635
1640
  "allowNo": false
1636
1641
  },
1637
1642
  "dry-run": {
@@ -1725,8 +1730,7 @@
1725
1730
  "json": {
1726
1731
  "name": "json",
1727
1732
  "type": "boolean",
1728
- "description": "Format output as json.",
1729
- "helpGroup": "GLOBAL",
1733
+ "description": "Output as JSON.",
1730
1734
  "allowNo": false
1731
1735
  },
1732
1736
  "dry-run": {
@@ -1800,8 +1804,7 @@
1800
1804
  "json": {
1801
1805
  "name": "json",
1802
1806
  "type": "boolean",
1803
- "description": "Format output as json.",
1804
- "helpGroup": "GLOBAL",
1807
+ "description": "Output as JSON.",
1805
1808
  "allowNo": false
1806
1809
  },
1807
1810
  "dry-run": {
@@ -1942,8 +1945,7 @@
1942
1945
  "json": {
1943
1946
  "name": "json",
1944
1947
  "type": "boolean",
1945
- "description": "Format output as json.",
1946
- "helpGroup": "GLOBAL",
1948
+ "description": "Output as JSON.",
1947
1949
  "allowNo": false
1948
1950
  },
1949
1951
  "dry-run": {
@@ -2089,8 +2091,7 @@
2089
2091
  "json": {
2090
2092
  "name": "json",
2091
2093
  "type": "boolean",
2092
- "description": "Format output as json.",
2093
- "helpGroup": "GLOBAL",
2094
+ "description": "Output as JSON.",
2094
2095
  "allowNo": false
2095
2096
  },
2096
2097
  "dry-run": {
@@ -2158,8 +2159,7 @@
2158
2159
  "json": {
2159
2160
  "name": "json",
2160
2161
  "type": "boolean",
2161
- "description": "Format output as json.",
2162
- "helpGroup": "GLOBAL",
2162
+ "description": "Output as JSON.",
2163
2163
  "allowNo": false
2164
2164
  },
2165
2165
  "dry-run": {
@@ -2232,8 +2232,7 @@
2232
2232
  "json": {
2233
2233
  "name": "json",
2234
2234
  "type": "boolean",
2235
- "description": "Format output as json.",
2236
- "helpGroup": "GLOBAL",
2235
+ "description": "Output as JSON.",
2237
2236
  "allowNo": false
2238
2237
  },
2239
2238
  "dry-run": {
@@ -2313,8 +2312,7 @@
2313
2312
  "json": {
2314
2313
  "name": "json",
2315
2314
  "type": "boolean",
2316
- "description": "Format output as json.",
2317
- "helpGroup": "GLOBAL",
2315
+ "description": "Output as JSON.",
2318
2316
  "allowNo": false
2319
2317
  },
2320
2318
  "dry-run": {
@@ -2455,8 +2453,7 @@
2455
2453
  "json": {
2456
2454
  "name": "json",
2457
2455
  "type": "boolean",
2458
- "description": "Format output as json.",
2459
- "helpGroup": "GLOBAL",
2456
+ "description": "Output as JSON.",
2460
2457
  "allowNo": false
2461
2458
  },
2462
2459
  "dry-run": {
@@ -2671,8 +2668,7 @@
2671
2668
  "json": {
2672
2669
  "name": "json",
2673
2670
  "type": "boolean",
2674
- "description": "Format output as json.",
2675
- "helpGroup": "GLOBAL",
2671
+ "description": "Output as JSON.",
2676
2672
  "allowNo": false
2677
2673
  },
2678
2674
  "dry-run": {
@@ -2759,8 +2755,7 @@
2759
2755
  "json": {
2760
2756
  "name": "json",
2761
2757
  "type": "boolean",
2762
- "description": "Format output as json.",
2763
- "helpGroup": "GLOBAL",
2758
+ "description": "Output as JSON.",
2764
2759
  "allowNo": false
2765
2760
  },
2766
2761
  "dry-run": {
@@ -2834,8 +2829,7 @@
2834
2829
  "json": {
2835
2830
  "name": "json",
2836
2831
  "type": "boolean",
2837
- "description": "Format output as json.",
2838
- "helpGroup": "GLOBAL",
2832
+ "description": "Output as JSON.",
2839
2833
  "allowNo": false
2840
2834
  },
2841
2835
  "dry-run": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "0.1.53-main.3ecc504",
3
+ "version": "0.1.53-main.499755c",
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.53-main.3ecc504",
51
- "@dxos/async": "0.1.53-main.3ecc504",
52
- "@dxos/bare-template": "0.1.53-main.3ecc504",
53
- "@dxos/client": "0.1.53-main.3ecc504",
54
- "@dxos/client-services": "0.1.53-main.3ecc504",
55
- "@dxos/client-protocol": "0.1.53-main.3ecc504",
56
- "@dxos/codec-protobuf": "0.1.53-main.3ecc504",
57
- "@dxos/config": "0.1.53-main.3ecc504",
58
- "@dxos/debug": "0.1.53-main.3ecc504",
59
- "@dxos/context": "0.1.53-main.3ecc504",
60
- "@dxos/functions": "0.1.53-main.3ecc504",
61
- "@dxos/hello-template": "0.1.53-main.3ecc504",
62
- "@dxos/log": "0.1.53-main.3ecc504",
63
- "@dxos/keys": "0.1.53-main.3ecc504",
64
- "@dxos/observable-object": "0.1.53-main.3ecc504",
65
- "@dxos/plate": "0.1.53-main.3ecc504",
66
- "@dxos/rpc": "0.1.53-main.3ecc504",
67
- "@dxos/protocols": "0.1.53-main.3ecc504",
68
- "@dxos/sentry": "0.1.53-main.3ecc504",
69
- "@dxos/tasks-template": "0.1.53-main.3ecc504",
70
- "@dxos/util": "0.1.53-main.3ecc504",
71
- "@dxos/telemetry": "0.1.53-main.3ecc504",
72
- "@dxos/websocket-rpc": "0.1.53-main.3ecc504"
50
+ "@dxos/agent": "0.1.53-main.499755c",
51
+ "@dxos/async": "0.1.53-main.499755c",
52
+ "@dxos/bare-template": "0.1.53-main.499755c",
53
+ "@dxos/client": "0.1.53-main.499755c",
54
+ "@dxos/client-protocol": "0.1.53-main.499755c",
55
+ "@dxos/codec-protobuf": "0.1.53-main.499755c",
56
+ "@dxos/config": "0.1.53-main.499755c",
57
+ "@dxos/context": "0.1.53-main.499755c",
58
+ "@dxos/debug": "0.1.53-main.499755c",
59
+ "@dxos/functions": "0.1.53-main.499755c",
60
+ "@dxos/hello-template": "0.1.53-main.499755c",
61
+ "@dxos/log": "0.1.53-main.499755c",
62
+ "@dxos/plate": "0.1.53-main.499755c",
63
+ "@dxos/protocols": "0.1.53-main.499755c",
64
+ "@dxos/rpc": "0.1.53-main.499755c",
65
+ "@dxos/sentry": "0.1.53-main.499755c",
66
+ "@dxos/tasks-template": "0.1.53-main.499755c",
67
+ "@dxos/telemetry": "0.1.53-main.499755c",
68
+ "@dxos/util": "0.1.53-main.499755c",
69
+ "@dxos/websocket-rpc": "0.1.53-main.499755c"
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":"AAWA,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;;;;;;;;;MAInB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAgB1B"}
@@ -1,37 +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 js_yaml_1 = require("js-yaml");
8
- const promises_1 = require("node:fs/promises");
9
- const node_path_1 = require("node:path");
10
- const functions_1 = require("@dxos/functions");
11
- const base_command_1 = require("../../base-command");
12
- class Dev extends base_command_1.BaseCommand {
13
- async run() {
14
- var _a;
15
- for (const requirePath of (_a = this.flags.require) !== null && _a !== void 0 ? _a : []) {
16
- require(requirePath);
17
- }
18
- await this.execWithClient(async (client) => {
19
- await (0, functions_1.runFunctions)({
20
- client,
21
- functionsDirectory: (0, node_path_1.join)(process.cwd(), 'src/functions'),
22
- manifest: (0, js_yaml_1.load)(await (0, promises_1.readFile)((0, node_path_1.join)(process.cwd(), this.flags.manifest), 'utf8')),
23
- });
24
- // Hang forever.
25
- await new Promise(() => { });
26
- });
27
- }
28
- }
29
- Dev.enableJsonFlag = true;
30
- Dev.description = 'Functions dev server.';
31
- Dev.flags = {
32
- ...base_command_1.BaseCommand.flags,
33
- require: core_1.Flags.string({ multiple: true, aliases: ['r'] }),
34
- manifest: core_1.Flags.string({ default: 'functions.yml' }),
35
- };
36
- exports.default = Dev;
37
- //# 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,qCAA+B;AAC/B,+CAA4C;AAC5C,yCAAiC;AAEjC,+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