@dxos/cli 0.1.52 → 0.1.53-main.00be1a9

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 (137) hide show
  1. package/README.md +105 -73
  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 +175 -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 +4 -2
  12. package/dist/src/commands/agent/list.js.map +1 -1
  13. package/dist/src/commands/agent/restart.js +1 -1
  14. package/dist/src/commands/agent/restart.js.map +1 -1
  15. package/dist/src/commands/agent/start.d.ts +1 -0
  16. package/dist/src/commands/agent/start.d.ts.map +1 -1
  17. package/dist/src/commands/agent/start.js +20 -10
  18. package/dist/src/commands/agent/start.js.map +1 -1
  19. package/dist/src/commands/agent/stop.d.ts +1 -0
  20. package/dist/src/commands/agent/stop.d.ts.map +1 -1
  21. package/dist/src/commands/agent/stop.js +1 -1
  22. package/dist/src/commands/agent/stop.js.map +1 -1
  23. package/dist/src/commands/app/create.d.ts +1 -0
  24. package/dist/src/commands/app/create.d.ts.map +1 -1
  25. package/dist/src/commands/app/open.d.ts +1 -0
  26. package/dist/src/commands/app/open.d.ts.map +1 -1
  27. package/dist/src/commands/app/open.js +4 -4
  28. package/dist/src/commands/app/open.js.map +1 -1
  29. package/dist/src/commands/app/publish.d.ts +1 -0
  30. package/dist/src/commands/app/publish.d.ts.map +1 -1
  31. package/dist/src/commands/config/index.d.ts.map +1 -1
  32. package/dist/src/commands/config/index.js +3 -1
  33. package/dist/src/commands/config/index.js.map +1 -1
  34. package/dist/src/commands/debug/stats.d.ts +2 -1
  35. package/dist/src/commands/debug/stats.d.ts.map +1 -1
  36. package/dist/src/commands/debug/stats.js +28 -1
  37. package/dist/src/commands/debug/stats.js.map +1 -1
  38. package/dist/src/commands/device/index.d.ts.map +1 -1
  39. package/dist/src/commands/device/index.js +4 -0
  40. package/dist/src/commands/device/index.js.map +1 -1
  41. package/dist/src/commands/function/{dev.d.ts → dev-server.d.ts} +9 -2
  42. package/dist/src/commands/function/dev-server.d.ts.map +1 -0
  43. package/dist/src/commands/function/dev-server.js +69 -0
  44. package/dist/src/commands/function/dev-server.js.map +1 -0
  45. package/dist/src/commands/function/exec.d.ts +4 -0
  46. package/dist/src/commands/function/exec.d.ts.map +1 -1
  47. package/dist/src/commands/function/exec.js +4 -0
  48. package/dist/src/commands/function/exec.js.map +1 -1
  49. package/dist/src/commands/function/list.d.ts +4 -0
  50. package/dist/src/commands/function/list.d.ts.map +1 -1
  51. package/dist/src/commands/function/list.js +4 -0
  52. package/dist/src/commands/function/list.js.map +1 -1
  53. package/dist/src/commands/function/logs.d.ts +4 -0
  54. package/dist/src/commands/function/logs.d.ts.map +1 -1
  55. package/dist/src/commands/function/logs.js +4 -0
  56. package/dist/src/commands/function/logs.js.map +1 -1
  57. package/dist/src/commands/halo/credential/list.d.ts +1 -0
  58. package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
  59. package/dist/src/commands/halo/join.d.ts +1 -0
  60. package/dist/src/commands/halo/join.d.ts.map +1 -1
  61. package/dist/src/commands/halo/join.js +2 -2
  62. package/dist/src/commands/halo/join.js.map +1 -1
  63. package/dist/src/commands/halo/share.d.ts +1 -0
  64. package/dist/src/commands/halo/share.d.ts.map +1 -1
  65. package/dist/src/commands/halo/share.js +4 -4
  66. package/dist/src/commands/halo/share.js.map +1 -1
  67. package/dist/src/commands/kube/deploy.d.ts +1 -0
  68. package/dist/src/commands/kube/deploy.d.ts.map +1 -1
  69. package/dist/src/commands/reset/index.d.ts +1 -0
  70. package/dist/src/commands/reset/index.d.ts.map +1 -1
  71. package/dist/src/commands/reset/index.js +8 -5
  72. package/dist/src/commands/reset/index.js.map +1 -1
  73. package/dist/src/commands/space/create.d.ts.map +1 -1
  74. package/dist/src/commands/space/create.js +2 -29
  75. package/dist/src/commands/space/create.js.map +1 -1
  76. package/dist/src/commands/space/epoch.d.ts +1 -0
  77. package/dist/src/commands/space/epoch.d.ts.map +1 -1
  78. package/dist/src/commands/space/epoch.js +1 -0
  79. package/dist/src/commands/space/epoch.js.map +1 -1
  80. package/dist/src/commands/space/invite.d.ts.map +1 -1
  81. package/dist/src/commands/space/invite.js +4 -4
  82. package/dist/src/commands/space/invite.js.map +1 -1
  83. package/dist/src/commands/space/join.d.ts +1 -0
  84. package/dist/src/commands/space/join.d.ts.map +1 -1
  85. package/dist/src/commands/space/join.js +3 -2
  86. package/dist/src/commands/space/join.js.map +1 -1
  87. package/dist/src/commands/space/list.d.ts +1 -0
  88. package/dist/src/commands/space/list.d.ts.map +1 -1
  89. package/dist/src/commands/space/list.js +1 -0
  90. package/dist/src/commands/space/list.js.map +1 -1
  91. package/dist/src/commands/space/members.d.ts +1 -0
  92. package/dist/src/commands/space/members.d.ts.map +1 -1
  93. package/dist/src/commands/space/members.js +1 -0
  94. package/dist/src/commands/space/members.js.map +1 -1
  95. package/dist/src/commands/tunnel/set.d.ts +1 -0
  96. package/dist/src/commands/tunnel/set.d.ts.map +1 -1
  97. package/dist/src/help.d.ts +6 -0
  98. package/dist/src/help.d.ts.map +1 -0
  99. package/dist/src/help.js +30 -0
  100. package/dist/src/help.js.map +1 -0
  101. package/dist/src/hooks/command-not-found.d.ts +4 -0
  102. package/dist/src/hooks/command-not-found.d.ts.map +1 -0
  103. package/dist/src/hooks/command-not-found.js +14 -0
  104. package/dist/src/hooks/command-not-found.js.map +1 -0
  105. package/dist/src/util/invitation.d.ts +1 -1
  106. package/dist/src/util/invitation.d.ts.map +1 -1
  107. package/dist/src/util/invitation.js +7 -7
  108. package/dist/src/util/invitation.js.map +1 -1
  109. package/dist/src/util/print.d.ts +3 -4
  110. package/dist/src/util/print.d.ts.map +1 -1
  111. package/dist/src/util/print.js +2 -2
  112. package/dist/src/util/print.js.map +1 -1
  113. package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +1 -1
  114. package/dist/src/util/publish/publisher-rpc-peer.js +4 -5
  115. package/dist/src/util/publish/publisher-rpc-peer.js.map +1 -1
  116. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +1 -1
  117. package/dist/src/util/supervisor/supervisor-rpc-peer.js +4 -5
  118. package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +1 -1
  119. package/dist/src/util/telemetry.d.ts.map +1 -1
  120. package/dist/src/util/telemetry.js.map +1 -1
  121. package/dist/src/util/telemetryrc.json +2 -2
  122. package/dist/src/util/test-util.d.ts +1 -0
  123. package/dist/src/util/test-util.d.ts.map +1 -1
  124. package/dist/src/util/test-util.js +14 -5
  125. package/dist/src/util/test-util.js.map +1 -1
  126. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +1 -1
  127. package/dist/src/util/tunnel/tunnel-rpc-peer.js +4 -5
  128. package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +1 -1
  129. package/dist/src/util/util.d.ts +1 -1
  130. package/dist/src/util/util.d.ts.map +1 -1
  131. package/dist/src/util/util.js +1 -0
  132. package/dist/src/util/util.js.map +1 -1
  133. package/oclif.manifest.json +45 -45
  134. package/package.json +31 -32
  135. package/dist/src/commands/function/dev.d.ts.map +0 -1
  136. package/dist/src/commands/function/dev.js +0 -33
  137. package/dist/src/commands/function/dev.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"test-util.d.ts","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,YAAmB,MAAM,OAAO,MAAM,oBAK5D,CAAC"}
1
+ {"version":3,"file":"test-util.d.ts","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,QAAiF,CAAC;AAEvG,eAAO,MAAM,UAAU,YAAmB,MAAM,OAAO,MAAM,oBAO5D,CAAC"}
@@ -5,15 +5,24 @@
5
5
  var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  return (mod && mod.__esModule) ? mod : { "default": mod };
7
7
  };
8
+ var _a;
8
9
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.runCommand = void 0;
10
+ exports.runCommand = exports.BIN_PATH = void 0;
11
+ const node_child_process_1 = require("node:child_process");
10
12
  const node_fs_1 = require("node:fs");
11
- const node_path_1 = __importDefault(require("node:path"));
12
- const exec_1 = require("./exec");
13
+ const node_path_1 = require("node:path");
14
+ const node_util_1 = require("node:util");
15
+ const pkg_up_1 = __importDefault(require("pkg-up"));
16
+ const async_1 = require("@dxos/async");
17
+ const debug_1 = require("@dxos/debug");
18
+ exports.BIN_PATH = (0, node_path_1.join)((0, node_path_1.dirname)((_a = pkg_up_1.default.sync({ cwd: __dirname })) !== null && _a !== void 0 ? _a : (0, debug_1.failUndefined)()), 'bin', 'run');
13
19
  const runCommand = async (command, cwd) => {
14
- const bin = node_path_1.default.join(__dirname, '../../bin/run');
15
20
  (0, node_fs_1.mkdirSync)(cwd, { recursive: true });
16
- return await (0, exec_1.exec)(`${bin} ${command}`, { cwd, shell: false });
21
+ const { stdout, stderr } = await (0, async_1.asyncTimeout)((0, node_util_1.promisify)(node_child_process_1.exec)(`${exports.BIN_PATH} ${command}`, { cwd: __dirname }), 20000);
22
+ if (stderr) {
23
+ throw new Error(stderr);
24
+ }
25
+ return stdout;
17
26
  };
18
27
  exports.runCommand = runCommand;
19
28
  //# sourceMappingURL=test-util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-util.js","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,qCAAoC;AACpC,0DAA6B;AAE7B,iCAA8B;AAEvB,MAAM,UAAU,GAAG,KAAK,E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AAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"tunnel-rpc-peer.d.ts","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":"AAQA,OAAO,EAAW,KAAK,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAKnE,qBAAa,aAAa;IASZ,OAAO,CAAC,QAAQ,CAAC,IAAI;IARjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmC;IACxD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IAEjD,QAAQ,CAAC,SAAS,cAAe;IACjC,QAAQ,CAAC,YAAY,cAAe;IACpC,QAAQ,CAAC,KAAK,eAAsB;gBAEP,IAAI,EAAE,MAAM;IAqDzC,IAAI,GAAG,IAAI,MAAM,CAEhB;IAEK,KAAK;CAOZ"}
1
+ {"version":3,"file":"tunnel-rpc-peer.d.ts","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAW,KAAK,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGnE,qBAAa,aAAa;IASZ,OAAO,CAAC,QAAQ,CAAC,IAAI;IARjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmC;IACxD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IAEjD,QAAQ,CAAC,SAAS,cAAe;IACjC,QAAQ,CAAC,YAAY,cAAe;IACpC,QAAQ,CAAC,KAAK,eAAsB;gBAEP,IAAI,EAAE,MAAM;IAqDzC,IAAI,GAAG,IAAI,MAAM,CAEhB;IAEK,KAAK;CAOZ"}
@@ -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-rpc-peer.js","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kCAAkC;AAClC,kDAA0B;AAC1B,kEAAsC;AAEtC,uCAA6C;AAC7C,+CAAyC;AAEzC,mCAA6D;AAE7D,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0BAA0B,CAAC,CAAC;AAE9C,MAAa,aAAa;IASxB,YAA6B,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QANxB,oBAAe,GAAG,IAAI,eAAO,EAAE,CAAC;QAExC,cAAS,GAAG,IAAI,aAAK,EAAE,CAAC;QACxB,iBAAY,GAAG,IAAI,aAAK,EAAE,CAAC;QAC3B,UAAK,GAAG,IAAI,aAAK,EAAS,CAAC;QAGlC,IAAI,CAAC,OAAO,GAAG,IAAI,uBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK,IAAI,EAAE;YAC/B,IAAI;gBACF,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACvB,GAAG,CAAC,YAAY,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC7B,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;gBACtB,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;aAC7B;YAAC,OAAO,GAAQ,EAAE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,EAAE;gBACJ,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;oBACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACzB,CAAC;gBACD,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;oBAChB,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,GAA2B,EAAE,EAAE;wBAC7D,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,GAAG,CAAC,IAAI,YAAY,IAAI,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,CA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BtB"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.52",
2
+ "version": "0.1.53-main.00be1a9",
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,9 +1024,18 @@
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
  ]
1033
+ },
1034
+ "manifest": {
1035
+ "name": "manifest",
1036
+ "type": "option",
1037
+ "multiple": false,
1038
+ "default": "functions.yml"
1029
1039
  }
1030
1040
  },
1031
1041
  "args": {}
@@ -1037,6 +1047,7 @@
1037
1047
  "pluginName": "@dxos/cli",
1038
1048
  "pluginAlias": "@dxos/cli",
1039
1049
  "pluginType": "core",
1050
+ "state": "deprecated",
1040
1051
  "aliases": [],
1041
1052
  "flags": {
1042
1053
  "json": {
@@ -1112,6 +1123,7 @@
1112
1123
  "pluginName": "@dxos/cli",
1113
1124
  "pluginAlias": "@dxos/cli",
1114
1125
  "pluginType": "core",
1126
+ "state": "deprecated",
1115
1127
  "aliases": [],
1116
1128
  "flags": {
1117
1129
  "json": {
@@ -1181,6 +1193,7 @@
1181
1193
  "pluginName": "@dxos/cli",
1182
1194
  "pluginAlias": "@dxos/cli",
1183
1195
  "pluginType": "core",
1196
+ "state": "deprecated",
1184
1197
  "aliases": [],
1185
1198
  "flags": {
1186
1199
  "json": {
@@ -1405,8 +1418,7 @@
1405
1418
  "json": {
1406
1419
  "name": "json",
1407
1420
  "type": "boolean",
1408
- "description": "Format output as json.",
1409
- "helpGroup": "GLOBAL",
1421
+ "description": "Output as JSON.",
1410
1422
  "allowNo": false
1411
1423
  },
1412
1424
  "dry-run": {
@@ -1624,8 +1636,7 @@
1624
1636
  "json": {
1625
1637
  "name": "json",
1626
1638
  "type": "boolean",
1627
- "description": "Format output as json.",
1628
- "helpGroup": "GLOBAL",
1639
+ "description": "Output as JSON.",
1629
1640
  "allowNo": false
1630
1641
  },
1631
1642
  "dry-run": {
@@ -1719,8 +1730,7 @@
1719
1730
  "json": {
1720
1731
  "name": "json",
1721
1732
  "type": "boolean",
1722
- "description": "Format output as json.",
1723
- "helpGroup": "GLOBAL",
1733
+ "description": "Output as JSON.",
1724
1734
  "allowNo": false
1725
1735
  },
1726
1736
  "dry-run": {
@@ -1794,8 +1804,7 @@
1794
1804
  "json": {
1795
1805
  "name": "json",
1796
1806
  "type": "boolean",
1797
- "description": "Format output as json.",
1798
- "helpGroup": "GLOBAL",
1807
+ "description": "Output as JSON.",
1799
1808
  "allowNo": false
1800
1809
  },
1801
1810
  "dry-run": {
@@ -1936,8 +1945,7 @@
1936
1945
  "json": {
1937
1946
  "name": "json",
1938
1947
  "type": "boolean",
1939
- "description": "Format output as json.",
1940
- "helpGroup": "GLOBAL",
1948
+ "description": "Output as JSON.",
1941
1949
  "allowNo": false
1942
1950
  },
1943
1951
  "dry-run": {
@@ -2083,8 +2091,7 @@
2083
2091
  "json": {
2084
2092
  "name": "json",
2085
2093
  "type": "boolean",
2086
- "description": "Format output as json.",
2087
- "helpGroup": "GLOBAL",
2094
+ "description": "Output as JSON.",
2088
2095
  "allowNo": false
2089
2096
  },
2090
2097
  "dry-run": {
@@ -2152,8 +2159,7 @@
2152
2159
  "json": {
2153
2160
  "name": "json",
2154
2161
  "type": "boolean",
2155
- "description": "Format output as json.",
2156
- "helpGroup": "GLOBAL",
2162
+ "description": "Output as JSON.",
2157
2163
  "allowNo": false
2158
2164
  },
2159
2165
  "dry-run": {
@@ -2226,8 +2232,7 @@
2226
2232
  "json": {
2227
2233
  "name": "json",
2228
2234
  "type": "boolean",
2229
- "description": "Format output as json.",
2230
- "helpGroup": "GLOBAL",
2235
+ "description": "Output as JSON.",
2231
2236
  "allowNo": false
2232
2237
  },
2233
2238
  "dry-run": {
@@ -2307,8 +2312,7 @@
2307
2312
  "json": {
2308
2313
  "name": "json",
2309
2314
  "type": "boolean",
2310
- "description": "Format output as json.",
2311
- "helpGroup": "GLOBAL",
2315
+ "description": "Output as JSON.",
2312
2316
  "allowNo": false
2313
2317
  },
2314
2318
  "dry-run": {
@@ -2449,8 +2453,7 @@
2449
2453
  "json": {
2450
2454
  "name": "json",
2451
2455
  "type": "boolean",
2452
- "description": "Format output as json.",
2453
- "helpGroup": "GLOBAL",
2456
+ "description": "Output as JSON.",
2454
2457
  "allowNo": false
2455
2458
  },
2456
2459
  "dry-run": {
@@ -2665,8 +2668,7 @@
2665
2668
  "json": {
2666
2669
  "name": "json",
2667
2670
  "type": "boolean",
2668
- "description": "Format output as json.",
2669
- "helpGroup": "GLOBAL",
2671
+ "description": "Output as JSON.",
2670
2672
  "allowNo": false
2671
2673
  },
2672
2674
  "dry-run": {
@@ -2753,8 +2755,7 @@
2753
2755
  "json": {
2754
2756
  "name": "json",
2755
2757
  "type": "boolean",
2756
- "description": "Format output as json.",
2757
- "helpGroup": "GLOBAL",
2758
+ "description": "Output as JSON.",
2758
2759
  "allowNo": false
2759
2760
  },
2760
2761
  "dry-run": {
@@ -2828,8 +2829,7 @@
2828
2829
  "json": {
2829
2830
  "name": "json",
2830
2831
  "type": "boolean",
2831
- "description": "Format output as json.",
2832
- "helpGroup": "GLOBAL",
2832
+ "description": "Output as JSON.",
2833
2833
  "allowNo": false
2834
2834
  },
2835
2835
  "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.00be1a9",
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.00be1a9",
51
+ "@dxos/async": "0.1.53-main.00be1a9",
52
+ "@dxos/bare-template": "0.1.53-main.00be1a9",
53
+ "@dxos/client": "0.1.53-main.00be1a9",
54
+ "@dxos/client-protocol": "0.1.53-main.00be1a9",
55
+ "@dxos/codec-protobuf": "0.1.53-main.00be1a9",
56
+ "@dxos/config": "0.1.53-main.00be1a9",
57
+ "@dxos/context": "0.1.53-main.00be1a9",
58
+ "@dxos/debug": "0.1.53-main.00be1a9",
59
+ "@dxos/functions": "0.1.53-main.00be1a9",
60
+ "@dxos/hello-template": "0.1.53-main.00be1a9",
61
+ "@dxos/log": "0.1.53-main.00be1a9",
62
+ "@dxos/plate": "0.1.53-main.00be1a9",
63
+ "@dxos/protocols": "0.1.53-main.00be1a9",
64
+ "@dxos/rpc": "0.1.53-main.00be1a9",
65
+ "@dxos/sentry": "0.1.53-main.00be1a9",
66
+ "@dxos/tasks-template": "0.1.53-main.00be1a9",
67
+ "@dxos/telemetry": "0.1.53-main.00be1a9",
68
+ "@dxos/util": "0.1.53-main.00be1a9",
69
+ "@dxos/websocket-rpc": "0.1.53-main.00be1a9"
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"}