@dxos/cli 0.8.4-main.ead640a → 0.8.4-main.effb148878

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 (315) hide show
  1. package/LICENSE +102 -5
  2. package/bin/dx.js +29 -12
  3. package/package.json +15 -130
  4. package/README.md +0 -145
  5. package/bin/agent_entrypoint +0 -22
  6. package/bin/dev.cmd +0 -3
  7. package/bin/dev.js +0 -26
  8. package/bin/handle_invitation +0 -18
  9. package/bin/run.cmd +0 -3
  10. package/dist/src/base.d.ts +0 -18
  11. package/dist/src/base.d.ts.map +0 -1
  12. package/dist/src/base.js +0 -76
  13. package/dist/src/base.js.map +0 -1
  14. package/dist/src/commands/agent/agent.node.test.d.ts +0 -2
  15. package/dist/src/commands/agent/agent.node.test.d.ts.map +0 -1
  16. package/dist/src/commands/agent/agent.node.test.js +0 -178
  17. package/dist/src/commands/agent/agent.node.test.js.map +0 -1
  18. package/dist/src/commands/agent/invitations.d.ts +0 -20
  19. package/dist/src/commands/agent/invitations.d.ts.map +0 -1
  20. package/dist/src/commands/agent/invitations.js +0 -88
  21. package/dist/src/commands/agent/invitations.js.map +0 -1
  22. package/dist/src/commands/agent/list.d.ts +0 -22
  23. package/dist/src/commands/agent/list.d.ts.map +0 -1
  24. package/dist/src/commands/agent/list.js +0 -45
  25. package/dist/src/commands/agent/list.js.map +0 -1
  26. package/dist/src/commands/agent/restart.d.ts +0 -21
  27. package/dist/src/commands/agent/restart.d.ts.map +0 -1
  28. package/dist/src/commands/agent/restart.js +0 -26
  29. package/dist/src/commands/agent/restart.js.map +0 -1
  30. package/dist/src/commands/agent/start.d.ts +0 -33
  31. package/dist/src/commands/agent/start.d.ts.map +0 -1
  32. package/dist/src/commands/agent/start.js +0 -204
  33. package/dist/src/commands/agent/start.js.map +0 -1
  34. package/dist/src/commands/agent/status.d.ts +0 -19
  35. package/dist/src/commands/agent/status.d.ts.map +0 -1
  36. package/dist/src/commands/agent/status.js +0 -30
  37. package/dist/src/commands/agent/status.js.map +0 -1
  38. package/dist/src/commands/agent/stop.d.ts +0 -22
  39. package/dist/src/commands/agent/stop.d.ts.map +0 -1
  40. package/dist/src/commands/agent/stop.js +0 -49
  41. package/dist/src/commands/agent/stop.js.map +0 -1
  42. package/dist/src/commands/config/index.d.ts +0 -7
  43. package/dist/src/commands/config/index.d.ts.map +0 -1
  44. package/dist/src/commands/config/index.js +0 -16
  45. package/dist/src/commands/config/index.js.map +0 -1
  46. package/dist/src/commands/config/index.node.test.d.ts +0 -2
  47. package/dist/src/commands/config/index.node.test.d.ts.map +0 -1
  48. package/dist/src/commands/config/index.node.test.js +0 -25
  49. package/dist/src/commands/config/index.node.test.js.map +0 -1
  50. package/dist/src/commands/debug/diagnostics.d.ts +0 -25
  51. package/dist/src/commands/debug/diagnostics.d.ts.map +0 -1
  52. package/dist/src/commands/debug/diagnostics.js +0 -53
  53. package/dist/src/commands/debug/diagnostics.js.map +0 -1
  54. package/dist/src/commands/debug/error.d.ts +0 -6
  55. package/dist/src/commands/debug/error.d.ts.map +0 -1
  56. package/dist/src/commands/debug/error.js +0 -23
  57. package/dist/src/commands/debug/error.js.map +0 -1
  58. package/dist/src/commands/debug/generate.d.ts +0 -27
  59. package/dist/src/commands/debug/generate.d.ts.map +0 -1
  60. package/dist/src/commands/debug/generate.js +0 -71
  61. package/dist/src/commands/debug/generate.js.map +0 -1
  62. package/dist/src/commands/debug/metrics.d.ts +0 -10
  63. package/dist/src/commands/debug/metrics.d.ts.map +0 -1
  64. package/dist/src/commands/debug/metrics.js +0 -39
  65. package/dist/src/commands/debug/metrics.js.map +0 -1
  66. package/dist/src/commands/debug/status.d.ts +0 -20
  67. package/dist/src/commands/debug/status.d.ts.map +0 -1
  68. package/dist/src/commands/debug/status.js +0 -30
  69. package/dist/src/commands/debug/status.js.map +0 -1
  70. package/dist/src/commands/device/info.d.ts +0 -7
  71. package/dist/src/commands/device/info.d.ts.map +0 -1
  72. package/dist/src/commands/device/info.js +0 -30
  73. package/dist/src/commands/device/info.js.map +0 -1
  74. package/dist/src/commands/device/list.d.ts +0 -20
  75. package/dist/src/commands/device/list.d.ts.map +0 -1
  76. package/dist/src/commands/device/list.js +0 -23
  77. package/dist/src/commands/device/list.js.map +0 -1
  78. package/dist/src/commands/device/update.d.ts +0 -19
  79. package/dist/src/commands/device/update.d.ts.map +0 -1
  80. package/dist/src/commands/device/update.js +0 -32
  81. package/dist/src/commands/device/update.js.map +0 -1
  82. package/dist/src/commands/edge/status.d.ts +0 -19
  83. package/dist/src/commands/edge/status.d.ts.map +0 -1
  84. package/dist/src/commands/edge/status.js +0 -24
  85. package/dist/src/commands/edge/status.js.map +0 -1
  86. package/dist/src/commands/function/list.d.ts +0 -7
  87. package/dist/src/commands/function/list.d.ts.map +0 -1
  88. package/dist/src/commands/function/list.js +0 -19
  89. package/dist/src/commands/function/list.js.map +0 -1
  90. package/dist/src/commands/function/logs.d.ts +0 -14
  91. package/dist/src/commands/function/logs.d.ts.map +0 -1
  92. package/dist/src/commands/function/logs.js +0 -38
  93. package/dist/src/commands/function/logs.js.map +0 -1
  94. package/dist/src/commands/function/trigger/list.d.ts +0 -26
  95. package/dist/src/commands/function/trigger/list.d.ts.map +0 -1
  96. package/dist/src/commands/function/trigger/list.js +0 -51
  97. package/dist/src/commands/function/trigger/list.js.map +0 -1
  98. package/dist/src/commands/function/watch.d.ts +0 -29
  99. package/dist/src/commands/function/watch.d.ts.map +0 -1
  100. package/dist/src/commands/function/watch.js +0 -128
  101. package/dist/src/commands/function/watch.js.map +0 -1
  102. package/dist/src/commands/halo/create.d.ts +0 -24
  103. package/dist/src/commands/halo/create.d.ts.map +0 -1
  104. package/dist/src/commands/halo/create.js +0 -36
  105. package/dist/src/commands/halo/create.js.map +0 -1
  106. package/dist/src/commands/halo/credential/add.d.ts +0 -9
  107. package/dist/src/commands/halo/credential/add.d.ts.map +0 -1
  108. package/dist/src/commands/halo/credential/add.js +0 -42
  109. package/dist/src/commands/halo/credential/add.js.map +0 -1
  110. package/dist/src/commands/halo/credential/list.d.ts +0 -23
  111. package/dist/src/commands/halo/credential/list.d.ts.map +0 -1
  112. package/dist/src/commands/halo/credential/list.js +0 -62
  113. package/dist/src/commands/halo/credential/list.js.map +0 -1
  114. package/dist/src/commands/halo/identity.d.ts +0 -8
  115. package/dist/src/commands/halo/identity.d.ts.map +0 -1
  116. package/dist/src/commands/halo/identity.js +0 -31
  117. package/dist/src/commands/halo/identity.js.map +0 -1
  118. package/dist/src/commands/halo/join.d.ts +0 -23
  119. package/dist/src/commands/halo/join.d.ts.map +0 -1
  120. package/dist/src/commands/halo/join.js +0 -94
  121. package/dist/src/commands/halo/join.js.map +0 -1
  122. package/dist/src/commands/halo/keys.d.ts +0 -7
  123. package/dist/src/commands/halo/keys.d.ts.map +0 -1
  124. package/dist/src/commands/halo/keys.js +0 -14
  125. package/dist/src/commands/halo/keys.js.map +0 -1
  126. package/dist/src/commands/halo/recovery/generate.d.ts +0 -7
  127. package/dist/src/commands/halo/recovery/generate.d.ts.map +0 -1
  128. package/dist/src/commands/halo/recovery/generate.js +0 -16
  129. package/dist/src/commands/halo/recovery/generate.js.map +0 -1
  130. package/dist/src/commands/halo/recovery/use.d.ts +0 -20
  131. package/dist/src/commands/halo/recovery/use.d.ts.map +0 -1
  132. package/dist/src/commands/halo/recovery/use.js +0 -21
  133. package/dist/src/commands/halo/recovery/use.js.map +0 -1
  134. package/dist/src/commands/halo/share.d.ts +0 -24
  135. package/dist/src/commands/halo/share.d.ts.map +0 -1
  136. package/dist/src/commands/halo/share.js +0 -73
  137. package/dist/src/commands/halo/share.js.map +0 -1
  138. package/dist/src/commands/halo/update.d.ts +0 -19
  139. package/dist/src/commands/halo/update.d.ts.map +0 -1
  140. package/dist/src/commands/halo/update.js +0 -34
  141. package/dist/src/commands/halo/update.js.map +0 -1
  142. package/dist/src/commands/info.d.ts +0 -19
  143. package/dist/src/commands/info.d.ts.map +0 -1
  144. package/dist/src/commands/info.js +0 -23
  145. package/dist/src/commands/info.js.map +0 -1
  146. package/dist/src/commands/profile/import.d.ts +0 -20
  147. package/dist/src/commands/profile/import.d.ts.map +0 -1
  148. package/dist/src/commands/profile/import.js +0 -66
  149. package/dist/src/commands/profile/import.js.map +0 -1
  150. package/dist/src/commands/profile/inspect.d.ts +0 -20
  151. package/dist/src/commands/profile/inspect.d.ts.map +0 -1
  152. package/dist/src/commands/profile/inspect.js +0 -37
  153. package/dist/src/commands/profile/inspect.js.map +0 -1
  154. package/dist/src/commands/reset/index.d.ts +0 -20
  155. package/dist/src/commands/reset/index.d.ts.map +0 -1
  156. package/dist/src/commands/reset/index.js +0 -74
  157. package/dist/src/commands/reset/index.js.map +0 -1
  158. package/dist/src/commands/shell/index.d.ts +0 -6
  159. package/dist/src/commands/shell/index.d.ts.map +0 -1
  160. package/dist/src/commands/shell/index.js +0 -25
  161. package/dist/src/commands/shell/index.js.map +0 -1
  162. package/dist/src/commands/space/close.d.ts +0 -9
  163. package/dist/src/commands/space/close.d.ts.map +0 -1
  164. package/dist/src/commands/space/close.js +0 -17
  165. package/dist/src/commands/space/close.js.map +0 -1
  166. package/dist/src/commands/space/create.d.ts +0 -10
  167. package/dist/src/commands/space/create.d.ts.map +0 -1
  168. package/dist/src/commands/space/create.js +0 -25
  169. package/dist/src/commands/space/create.js.map +0 -1
  170. package/dist/src/commands/space/epoch.d.ts +0 -10
  171. package/dist/src/commands/space/epoch.d.ts.map +0 -1
  172. package/dist/src/commands/space/epoch.js +0 -18
  173. package/dist/src/commands/space/epoch.js.map +0 -1
  174. package/dist/src/commands/space/info.d.ts +0 -10
  175. package/dist/src/commands/space/info.d.ts.map +0 -1
  176. package/dist/src/commands/space/info.js +0 -26
  177. package/dist/src/commands/space/info.js.map +0 -1
  178. package/dist/src/commands/space/join.d.ts +0 -21
  179. package/dist/src/commands/space/join.d.ts.map +0 -1
  180. package/dist/src/commands/space/join.js +0 -71
  181. package/dist/src/commands/space/join.js.map +0 -1
  182. package/dist/src/commands/space/list.d.ts +0 -24
  183. package/dist/src/commands/space/list.d.ts.map +0 -1
  184. package/dist/src/commands/space/list.js +0 -90
  185. package/dist/src/commands/space/list.js.map +0 -1
  186. package/dist/src/commands/space/members.d.ts +0 -23
  187. package/dist/src/commands/space/members.d.ts.map +0 -1
  188. package/dist/src/commands/space/members.js +0 -27
  189. package/dist/src/commands/space/members.js.map +0 -1
  190. package/dist/src/commands/space/open.d.ts +0 -9
  191. package/dist/src/commands/space/open.d.ts.map +0 -1
  192. package/dist/src/commands/space/open.js +0 -17
  193. package/dist/src/commands/space/open.js.map +0 -1
  194. package/dist/src/commands/space/query.d.ts +0 -25
  195. package/dist/src/commands/space/query.d.ts.map +0 -1
  196. package/dist/src/commands/space/query.js +0 -44
  197. package/dist/src/commands/space/query.js.map +0 -1
  198. package/dist/src/commands/space/schema/list.d.ts +0 -21
  199. package/dist/src/commands/space/schema/list.d.ts.map +0 -1
  200. package/dist/src/commands/space/schema/list.js +0 -57
  201. package/dist/src/commands/space/schema/list.js.map +0 -1
  202. package/dist/src/commands/space/share.d.ts +0 -27
  203. package/dist/src/commands/space/share.d.ts.map +0 -1
  204. package/dist/src/commands/space/share.js +0 -80
  205. package/dist/src/commands/space/share.js.map +0 -1
  206. package/dist/src/commands/tunnel/index.d.ts +0 -22
  207. package/dist/src/commands/tunnel/index.d.ts.map +0 -1
  208. package/dist/src/commands/tunnel/index.js +0 -43
  209. package/dist/src/commands/tunnel/index.js.map +0 -1
  210. package/dist/src/commands/tunnel/list.d.ts +0 -21
  211. package/dist/src/commands/tunnel/list.d.ts.map +0 -1
  212. package/dist/src/commands/tunnel/list.js +0 -29
  213. package/dist/src/commands/tunnel/list.js.map +0 -1
  214. package/dist/src/components/App.d.ts +0 -10
  215. package/dist/src/components/App.d.ts.map +0 -1
  216. package/dist/src/components/App.js +0 -31
  217. package/dist/src/components/App.js.map +0 -1
  218. package/dist/src/components/SpaceTable.d.ts +0 -10
  219. package/dist/src/components/SpaceTable.d.ts.map +0 -1
  220. package/dist/src/components/SpaceTable.js +0 -33
  221. package/dist/src/components/SpaceTable.js.map +0 -1
  222. package/dist/src/components/SystemTable.d.ts +0 -8
  223. package/dist/src/components/SystemTable.d.ts.map +0 -1
  224. package/dist/src/components/SystemTable.js +0 -51
  225. package/dist/src/components/SystemTable.js.map +0 -1
  226. package/dist/src/components/index.d.ts +0 -4
  227. package/dist/src/components/index.d.ts.map +0 -1
  228. package/dist/src/components/index.js +0 -7
  229. package/dist/src/components/index.js.map +0 -1
  230. package/dist/src/help.d.ts +0 -6
  231. package/dist/src/help.d.ts.map +0 -1
  232. package/dist/src/help.js +0 -37
  233. package/dist/src/help.js.map +0 -1
  234. package/dist/src/hooks/command-not-found.d.ts +0 -4
  235. package/dist/src/hooks/command-not-found.d.ts.map +0 -1
  236. package/dist/src/hooks/command-not-found.js +0 -16
  237. package/dist/src/hooks/command-not-found.js.map +0 -1
  238. package/dist/src/index.d.ts +0 -3
  239. package/dist/src/index.d.ts.map +0 -1
  240. package/dist/src/index.js +0 -6
  241. package/dist/src/index.js.map +0 -1
  242. package/dist/src/util/function/index.d.ts +0 -2
  243. package/dist/src/util/function/index.d.ts.map +0 -1
  244. package/dist/src/util/function/index.js +0 -5
  245. package/dist/src/util/function/index.js.map +0 -1
  246. package/dist/src/util/function/lookup.d.ts +0 -19
  247. package/dist/src/util/function/lookup.d.ts.map +0 -1
  248. package/dist/src/util/function/lookup.js +0 -13
  249. package/dist/src/util/function/lookup.js.map +0 -1
  250. package/dist/src/util/index.d.ts +0 -6
  251. package/dist/src/util/index.d.ts.map +0 -1
  252. package/dist/src/util/index.js +0 -9
  253. package/dist/src/util/index.js.map +0 -1
  254. package/dist/src/util/provider/digital-ocean.d.ts +0 -14
  255. package/dist/src/util/provider/digital-ocean.d.ts.map +0 -1
  256. package/dist/src/util/provider/digital-ocean.js +0 -123
  257. package/dist/src/util/provider/digital-ocean.js.map +0 -1
  258. package/dist/src/util/provider/index.d.ts +0 -3
  259. package/dist/src/util/provider/index.d.ts.map +0 -1
  260. package/dist/src/util/provider/index.js +0 -6
  261. package/dist/src/util/provider/index.js.map +0 -1
  262. package/dist/src/util/provider/provider.d.ts +0 -27
  263. package/dist/src/util/provider/provider.d.ts.map +0 -1
  264. package/dist/src/util/provider/provider.js +0 -24
  265. package/dist/src/util/provider/provider.js.map +0 -1
  266. package/dist/src/util/publish/build.d.ts +0 -11
  267. package/dist/src/util/publish/build.d.ts.map +0 -1
  268. package/dist/src/util/publish/build.js +0 -24
  269. package/dist/src/util/publish/build.js.map +0 -1
  270. package/dist/src/util/publish/common.d.ts +0 -11
  271. package/dist/src/util/publish/common.d.ts.map +0 -1
  272. package/dist/src/util/publish/common.js +0 -23
  273. package/dist/src/util/publish/common.js.map +0 -1
  274. package/dist/src/util/publish/config.d.ts +0 -3
  275. package/dist/src/util/publish/config.d.ts.map +0 -1
  276. package/dist/src/util/publish/config.js +0 -27
  277. package/dist/src/util/publish/config.js.map +0 -1
  278. package/dist/src/util/publish/index.d.ts +0 -7
  279. package/dist/src/util/publish/index.d.ts.map +0 -1
  280. package/dist/src/util/publish/index.js +0 -10
  281. package/dist/src/util/publish/index.js.map +0 -1
  282. package/dist/src/util/publish/ipfs-upload.d.ts +0 -8
  283. package/dist/src/util/publish/ipfs-upload.d.ts.map +0 -1
  284. package/dist/src/util/publish/ipfs-upload.js +0 -50
  285. package/dist/src/util/publish/ipfs-upload.js.map +0 -1
  286. package/dist/src/util/publish/publish.d.ts +0 -14
  287. package/dist/src/util/publish/publish.d.ts.map +0 -1
  288. package/dist/src/util/publish/publish.js +0 -51
  289. package/dist/src/util/publish/publish.js.map +0 -1
  290. package/dist/src/util/publish/publisher-rpc-peer.d.ts +0 -15
  291. package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +0 -1
  292. package/dist/src/util/publish/publisher-rpc-peer.js +0 -82
  293. package/dist/src/util/publish/publisher-rpc-peer.js.map +0 -1
  294. package/dist/src/util/supervisor/index.d.ts +0 -2
  295. package/dist/src/util/supervisor/index.d.ts.map +0 -1
  296. package/dist/src/util/supervisor/index.js +0 -5
  297. package/dist/src/util/supervisor/index.js.map +0 -1
  298. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts +0 -15
  299. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +0 -1
  300. package/dist/src/util/supervisor/supervisor-rpc-peer.js +0 -83
  301. package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +0 -1
  302. package/dist/src/util/tunnel/common.d.ts +0 -9
  303. package/dist/src/util/tunnel/common.d.ts.map +0 -1
  304. package/dist/src/util/tunnel/common.js +0 -26
  305. package/dist/src/util/tunnel/common.js.map +0 -1
  306. package/dist/src/util/tunnel/index.d.ts +0 -3
  307. package/dist/src/util/tunnel/index.d.ts.map +0 -1
  308. package/dist/src/util/tunnel/index.js +0 -6
  309. package/dist/src/util/tunnel/index.js.map +0 -1
  310. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts +0 -15
  311. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +0 -1
  312. package/dist/src/util/tunnel/tunnel-rpc-peer.js +0 -83
  313. package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +0 -1
  314. package/dist/tsconfig.tsbuildinfo +0 -1
  315. package/oclif.manifest.json +0 -5673
@@ -1,57 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
- import { Flags, ux } from '@oclif/core';
5
- import { FLAG_SPACE_KEYS, TABLE_FLAGS, table } from '@dxos/cli-base';
6
- import { getTypeAnnotation } from '@dxos/echo/internal';
7
- import { BaseCommand } from '../../../base';
8
- // TODO(burdon): Option to output JSON schema.
9
- export default class List extends BaseCommand {
10
- static enableJsonFlag = true;
11
- static {
12
- this.description = 'List schema.';
13
- }
14
- static flags = {
15
- ...BaseCommand.flags,
16
- ...TABLE_FLAGS,
17
- ...FLAG_SPACE_KEYS,
18
- typename: Flags.string({ default: undefined, description: 'Filter objects by typename.' }),
19
- };
20
- async run() {
21
- const { key } = this.args;
22
- return await this.execWithClient(async ({ client }) => {
23
- const space = await this.getSpace(client, key);
24
- const typenameFilter = createTypenameFilter(this.flags.typename);
25
- const echoSchema = await space.db.schemaRegistry.query().run();
26
- const runtimeSchema = space.db.graph.schemaRegistry.schemas;
27
- const schemas = [
28
- ...echoSchema.map((schema) => schema),
29
- ...runtimeSchema.map((schema) => {
30
- const schemaAnnotation = getTypeAnnotation(schema);
31
- return {
32
- typename: schemaAnnotation.typename,
33
- version: schemaAnnotation.version,
34
- };
35
- }),
36
- ].filter(typenameFilter);
37
- printSchema(schemas, this.flags);
38
- });
39
- }
40
- }
41
- const createTypenameFilter = (typenameFilter) => {
42
- if (!typenameFilter) {
43
- return () => true;
44
- }
45
- return (schema) => schema.typename.toLowerCase().includes(typenameFilter.toLowerCase());
46
- };
47
- // TODO(burdon): Static vs. dynamic.
48
- const printSchema = (schemas, flags = {}) => {
49
- ux.stdout(table(schemas, {
50
- id: {
51
- truncate: true,
52
- },
53
- typename: {},
54
- version: {},
55
- }, flags));
56
- };
57
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/space/schema/list.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAmB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,8CAA8C;AAE9C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAwB;IACxD,MAAM,CAAU,cAAc,GAAG,IAAI,CAAC;IAEtC;QACE,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC;IACpC,CAAC;IAED,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,WAA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AAE;IACvD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC;IACpB,CAAC;IAED,OAAO,CAAC,MAAmB,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC;AACvG,CAAC,CAAC;AAQF,oCAAoC;AACpC,MAAM,WAAW,GAAG,CAAC,OAAsB,EAAE,QAAoB,EAAE,EAAE,EAAE;IACrE,EAAE,CAAC,MAAM,CACP,KAAK,CACH,OAAO,EACP;QACE,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;KACZ,EACD,KAAK,CACN,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- export default class Share extends BaseCommand<typeof Share> {
3
- static description: string;
4
- static args: {
5
- key: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
6
- };
7
- static flags: {
8
- multiple: import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
- lifetime: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
10
- persistent: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
- open: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
- host: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
- auth: import("@oclif/core/interfaces").BooleanFlag<boolean>;
14
- json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
- verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
- 'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
- profile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
18
- config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
19
- timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
20
- target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
- agent: import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
- 'json-log': import("@oclif/core/interfaces").BooleanFlag<boolean>;
23
- 'json-logfile': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
24
- };
25
- run(): Promise<any>;
26
- }
27
- //# sourceMappingURL=share.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/share.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,OAAgB,WAAW,SAA8B;IACzD,OAAgB,IAAI;;MAAkB;IACtC,OAAgB,KAAK;;;;;;;;;;;;;;;;;MAyBnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAwC1B"}
@@ -1,80 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
- import { spawn } from 'node:child_process';
5
- import { Flags, ux } from '@oclif/core';
6
- import chalk from 'chalk';
7
- import clipboard from 'node-clipboardy';
8
- import { ARG_SPACE_KEYS, hostInvitation } from '@dxos/cli-base';
9
- import { InvitationEncoder } from '@dxos/client/invitations';
10
- import { Invitation } from '@dxos/protocols/proto/dxos/client/services';
11
- import { BaseCommand } from '../../base';
12
- export default class Share extends BaseCommand {
13
- static description = 'Create space invitation.';
14
- static args = ARG_SPACE_KEYS;
15
- static flags = {
16
- ...BaseCommand.flags,
17
- multiple: Flags.boolean({
18
- description: 'Multiple use.',
19
- }),
20
- lifetime: Flags.integer({
21
- description: 'Lifetime of the invitation in seconds',
22
- default: 86400,
23
- }),
24
- persistent: Flags.boolean({
25
- description: 'Invitation should resume if client restarts',
26
- default: true,
27
- }),
28
- open: Flags.boolean({
29
- description: 'Open browser with invitation.',
30
- }),
31
- host: Flags.string({
32
- description: 'Application Host URL.',
33
- default: 'https://composer.space',
34
- }),
35
- auth: Flags.boolean({
36
- description: 'Skip authentication challenge.',
37
- default: true,
38
- allowNo: true,
39
- }),
40
- };
41
- async run() {
42
- const { key } = this.args;
43
- return await this.execWithClient(async ({ client }) => {
44
- const space = await this.getSpace(client, key);
45
- const authMethod = this.flags.auth ? Invitation.AuthMethod.SHARED_SECRET : Invitation.AuthMethod.NONE;
46
- const observable = space.share({
47
- authMethod,
48
- timeout: this.flags.timeout,
49
- persistent: this.flags.persistent,
50
- lifetime: this.flags.lifetime,
51
- multiUse: this.flags.multiple,
52
- });
53
- ux.action.start('Waiting for peer to connect');
54
- await hostInvitation({
55
- observable,
56
- callbacks: {
57
- onConnecting: async () => {
58
- ux.action.stop();
59
- const invitation = observable.get();
60
- const invitationCode = InvitationEncoder.encode(invitation);
61
- if (authMethod !== Invitation.AuthMethod.NONE) {
62
- clipboard.write(invitation.authCode);
63
- this.log(chalk `\n{red Secret}: ${observable.get().authCode} (copied to clipboard)\n`);
64
- }
65
- if (this.flags.open) {
66
- const url = new URL(this.flags.host);
67
- url.searchParams.append('spaceInvitationCode', InvitationEncoder.encode(invitation));
68
- spawn('open', [url.toString()]);
69
- }
70
- else {
71
- this.log(chalk `\n{blue Invitation}: ${invitationCode}`);
72
- }
73
- },
74
- },
75
- });
76
- ux.stdout(chalk `{green OK}`);
77
- });
78
- }
79
- }
80
- //# sourceMappingURL=share.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../src/commands/space/share.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACxC,O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G,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;4BACrC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;4BACrF,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;wBAClC,CAAC;6BAAM,CAAC;4BACN,IAAI,CAAC,GAAG,CAAC,KAAK,CAAA,wBAAwB,cAAc,EAAE,CAAC,CAAC;wBAC1D,CAAC;oBACH,CAAC;iBACF;aACF,CAAC,CAAC;YAEH,EAAE,CAAC,MAAM,CAAC,KAAK,CAAA,YAAY,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC"}
@@ -1,22 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- /**
3
- * @deprecated
4
- */
5
- export default class Tunnel extends BaseCommand<typeof Tunnel> {
6
- static flags: {
7
- name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
- extended: import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
- json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
- verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
- 'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
- profile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
- config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
- timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
15
- target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
- agent: import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
- 'json-log': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
- 'json-logfile': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
19
- };
20
- run(): Promise<any>;
21
- }
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/tunnel/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAU5D,OAAgB,KAAK;;;;;;;;;;;;;MASnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAS1B"}
@@ -1,43 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { Args, Flags } from '@oclif/core';
5
- import { TABLE_FLAGS } from '@dxos/cli-base';
6
- import { invariant } from '@dxos/invariant';
7
- import { PublicKey } from '@dxos/keys';
8
- import { humanize } from '@dxos/util';
9
- import { BaseCommand } from '../../base';
10
- import { printTunnels } from '../../util';
11
- /**
12
- * @deprecated
13
- */
14
- export default class Tunnel extends BaseCommand {
15
- static {
16
- this.state = 'deprecated';
17
- this.enableJsonFlag = true;
18
- this.description = 'Enable or disable tunnel (deprecated).';
19
- this.args = {
20
- command: Args.string({ description: 'Start.', values: ['start', 'stop'], required: true }),
21
- };
22
- }
23
- static flags = {
24
- ...BaseCommand.flags,
25
- ...TABLE_FLAGS,
26
- name: Flags.string({
27
- description: 'Tunnel name',
28
- async default() {
29
- return humanize(PublicKey.random());
30
- },
31
- }),
32
- };
33
- async run() {
34
- return await this.execWithTunneling(async (tunnel) => {
35
- const { command } = this.args;
36
- const { name } = this.flags;
37
- const response = await tunnel.rpc.tunnel({ name, enabled: command === 'start' });
38
- invariant(response, 'Unable to set tunnel.');
39
- printTunnels([response], this.flags);
40
- });
41
- }
42
- }
43
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/tunnel/index.ts"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IAAI,CAAC;YAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAC5B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,EAAE,CAAC,CAAC;YACjF,SAAS,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;YAC7C,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,KAAY,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC"}
@@ -1,21 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- /**
3
- * @deprecated
4
- */
5
- export default class List extends BaseCommand<typeof List> {
6
- static flags: {
7
- extended: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
- json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
- verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
- 'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
- profile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
- config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
- timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
14
- target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
- agent: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
- 'json-log': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
- 'json-logfile': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
18
- };
19
- run(): Promise<any>;
20
- }
21
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/tunnel/list.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IAOxD,OAAgB,KAAK;;;;;;;;;;;;MAGnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAQ1B"}
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { TABLE_FLAGS } from '@dxos/cli-base';
5
- import { BaseCommand } from '../../base';
6
- import { printTunnels } from '../../util';
7
- /**
8
- * @deprecated
9
- */
10
- export default class List extends BaseCommand {
11
- static {
12
- this.state = 'deprecated';
13
- this.enableJsonFlag = true;
14
- this.description = 'List tunnels.';
15
- }
16
- static flags = {
17
- ...BaseCommand.flags,
18
- ...TABLE_FLAGS,
19
- };
20
- async run() {
21
- return await this.execWithTunneling(async (tunnel) => {
22
- const response = await tunnel.rpc.listTunnels();
23
- if (response.tunnels) {
24
- printTunnels(response.tunnels, this.flags);
25
- }
26
- });
27
- }
28
- }
29
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/tunnel/list.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAwB;IACxD;QACE,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC;IACrC,CAAC;IAED,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,WAAW,CAAC,KAAK;QACpB,GAAG,WAAW;KACf,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAqB,EAAE,EAAE;YAClE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;YAChD,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACrB,YAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,KAAY,CAAC,CAAC;YACpD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type FC } from 'react';
2
- import { type Client } from '@dxos/client';
3
- /**
4
- * Spaces list table.
5
- */
6
- export declare const App: FC<{
7
- client: Client;
8
- interval?: number;
9
- }>;
10
- //# sourceMappingURL=App.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/components/App.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAK3C;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAuBzD,CAAC"}
@@ -1,31 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { Box, Text, useApp, useInput } from 'ink';
5
- import React from 'react';
6
- import { SpaceTable } from './SpaceTable';
7
- import { SystemTable } from './SystemTable';
8
- /**
9
- * Spaces list table.
10
- */
11
- export const App = ({ client, interval = 1000 }) => {
12
- const { exit } = useApp();
13
- useInput((input) => {
14
- switch (input) {
15
- case 'r': {
16
- // handleRefresh();
17
- break;
18
- }
19
- case 'q': {
20
- exit();
21
- break;
22
- }
23
- }
24
- });
25
- // https://github.com/vadimdemedes/ink
26
- return (React.createElement(Box, { flexDirection: 'column' },
27
- React.createElement(SystemTable, null),
28
- false && React.createElement(SpaceTable, { client: client, interval: interval }),
29
- React.createElement(Text, null, "[q]uit; [r]efresh")));
30
- };
31
- //# sourceMappingURL=App.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"App.js","sourceRoot":"","sources":["../../../src/components/App.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAA8C,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;QACjB,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,GAAG,CAAC,CAAC,CAAC;gBACT,mBAAmB;gBACnB,MAAM;YACR,CAAC;YACD,KAAK,GAAG,CAAC,CAAC,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,sCAAsC;IACtC,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;QACzB,oBAAC,WAAW,OAAG;QACd,KAAK,IAAI,oBAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAI;QAC5D,oBAAC,IAAI,4BAAyB,CAC1B,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type FC } from 'react';
2
- import { type Client } from '@dxos/client';
3
- /**
4
- * Spaces list table.
5
- */
6
- export declare const SpaceTable: FC<{
7
- client: Client;
8
- interval?: number;
9
- }>;
10
- //# sourceMappingURL=SpaceTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpaceTable.d.ts","sourceRoot":"","sources":["../../../src/components/SpaceTable.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CA2BhE,CAAC"}
@@ -1,33 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import Table from 'ink-table';
5
- import React, { useEffect, useState } from 'react';
6
- import { mapSpaces } from '@dxos/cli-base';
7
- /**
8
- * Spaces list table.
9
- */
10
- export const SpaceTable = ({ client, interval = 1000 }) => {
11
- const [data, setData] = useState([]);
12
- useEffect(() => {
13
- const timer = setInterval(() => handleRefresh(), Math.min(100, interval));
14
- return () => clearInterval(timer);
15
- }, [client, interval]);
16
- const handleRefresh = async () => {
17
- const spaces = client.spaces.get();
18
- const data = await mapSpaces(spaces, { truncateKeys: true });
19
- setData(data.map(({ key, state, name, members, objects, startup }) => ({
20
- key,
21
- state,
22
- name,
23
- members,
24
- objects,
25
- startup,
26
- })));
27
- };
28
- if (!data.length) {
29
- return null;
30
- }
31
- return React.createElement(Table, { data: data });
32
- };
33
- //# sourceMappingURL=SpaceTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpaceTable.js","sourceRoot":"","sources":["../../../src/components/SpaceTable.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,WAAW,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAW,SAAS,EAA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 'react';
2
- /**
3
- * System info.
4
- */
5
- export declare const SystemTable: FC<{
6
- interval?: number;
7
- }>;
8
- //# sourceMappingURL=SystemTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SystemTable.d.ts","sourceRoot":"","sources":["../../../src/components/SystemTable.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAqB5D;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAmDjD,CAAC"}
@@ -1,51 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import Table from 'ink-table';
5
- import React, { useEffect, useState } from 'react';
6
- /**
7
- * System info.
8
- */
9
- export const SystemTable = ({ interval = 1_000 }) => {
10
- const [data, setData] = useState([]);
11
- useEffect(() => {
12
- const timer = setInterval(() => handleRefresh(), Math.max(100, interval));
13
- return () => clearInterval(timer);
14
- }, [interval]);
15
- const size = (n, unit = 1_000, len = 10) => Math.round(n / unit)
16
- .toLocaleString()
17
- .padStart(len, ' ');
18
- const handleRefresh = () => {
19
- // TODO(burdon): https://www.npmjs.com/package/express-status-monitor
20
- // https://nodejs.org/api/process.html#process_process_memoryusage
21
- const { rss, heapTotal, heapUsed, external } = process.memoryUsage();
22
- // TODO(burdon): How to measure CPU usage while running status?
23
- // https://nodejs.org/api/process.html#processcpuusagepreviousvalue
24
- // last.current = process.cpuUsage(last.current);
25
- // const { user, system } = last.current;
26
- setData([
27
- {
28
- // arch: os.arch(),
29
- // version: process.version,
30
- // uptime: os.uptime().toLocaleString().padStart(10, ' '),
31
- rss: size(rss),
32
- heap_total: size(heapTotal),
33
- heap_used: size(heapUsed),
34
- external: size(external),
35
- // total: os.totalmem().toLocaleString().padStart(14, ' '),
36
- // free: os.freemem().toLocaleString().padStart(14, ' '),
37
- // loadavg: os
38
- // .loadavg()
39
- // .map((n) => n.toFixed(2))
40
- // .join('; '),
41
- // user: size(user),
42
- // system: size(system),
43
- },
44
- ]);
45
- };
46
- if (!data.length) {
47
- return null;
48
- }
49
- return React.createElement(Table, { data: data });
50
- };
51
- //# sourceMappingURL=SystemTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SystemTable.js","sourceRoot":"","sources":["../../../src/components/SystemTable.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,WAAW,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAW,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAqB5D;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAA8B,CAAC,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IAC7E,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAU,EAAE,CAAC,CAAC;IAC9C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC1E,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,IAAI,GAAG,KAAK,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,CACjD,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;SACjB,cAAc,EAAE;SAChB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAExB,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,qEAAqE;QACrE,kEAAkE;QAClE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAErE,+DAA+D;QAC/D,mEAAmE;QACnE,iDAAiD;QACjD,yCAAyC;QAEzC,OAAO,CAAC;YACN;gBACE,mBAAmB;gBACnB,4BAA4B;gBAC5B,0DAA0D;gBAE1D,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;gBACd,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC;gBAC3B,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;gBACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;gBAExB,2DAA2D;gBAC3D,yDAAyD;gBACzD,cAAc;gBACd,eAAe;gBACf,8BAA8B;gBAC9B,iBAAiB;gBAEjB,oBAAoB;gBACpB,wBAAwB;aACzB;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,oBAAC,KAAK,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;AAC/B,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './App';
2
- export * from './SpaceTable';
3
- export * from './SystemTable';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- export * from './App';
5
- export * from './SpaceTable';
6
- export * from './SystemTable';
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Help } from '@oclif/core';
2
- export declare const BANNER: string;
3
- export default class CustomHelp extends Help {
4
- showHelp(args: string[]): Promise<void>;
5
- }
6
- //# sourceMappingURL=help.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAKnC,eAAO,MAAM,MAAM,QAK6D,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,IAAI;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAyBvD"}
package/dist/src/help.js DELETED
@@ -1,37 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { Help } from '@oclif/core';
5
- import chalk from 'chalk';
6
- import rev from 'git-rev-sync';
7
- // http://patorjk.com/software/taag/#p=testall&f=Patorjk-HeX&t=DXOS
8
- export const BANNER = '_/\\/\\/\\/\\/\\____/\\/\\____/\\/\\____/\\/\\/\\/\\______/\\/\\/\\/\\/\\_\n' +
9
- '_/\\/\\____/\\/\\____/\\/\\/\\/\\____/\\/\\____/\\/\\__/\\/\\_________\n' +
10
- '_/\\/\\____/\\/\\______/\\/\\______/\\/\\____/\\/\\____/\\/\\/\\/\\___\n' +
11
- '_/\\/\\____/\\/\\____/\\/\\/\\/\\____/\\/\\____/\\/\\__________/\\/\\_\n' +
12
- '_/\\/\\/\\/\\/\\____/\\/\\____/\\/\\____/\\/\\/\\/\\____/\\/\\/\\/\\/\\___\n';
13
- export default class CustomHelp extends Help {
14
- async showHelp(args) {
15
- if (!args.length) {
16
- console.log(BANNER);
17
- }
18
- const warnings = [];
19
- if (process.env.NODE_ENV === 'development') {
20
- let branch = '';
21
- try {
22
- branch = `(${rev.branch()} #${rev.short()})`;
23
- }
24
- catch { }
25
- warnings.push(chalk `{blue NODE_ENV}: {red ${process.env.NODE_ENV}}${branch}`);
26
- }
27
- if (process.env.DX_PROFILE) {
28
- warnings.push(chalk `{blue DX_PROFILE}: {green ${process.env.DX_PROFILE}}`);
29
- }
30
- if (warnings.length) {
31
- this.log(warnings.join('\n'));
32
- this.log();
33
- }
34
- await super.showHelp(args);
35
- }
36
- }
37
- //# sourceMappingURL=help.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,mEAAmE;AACnE,MAAM,CAAC,MAAM,MAAM,GACjB,8EAA8E;IAC9E,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,8EAA8E,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,IAAI;IACjC,KAAK,CAAC,QAAQ,CAAC,IAAc;QACpC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,CAAC;QAED,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE,CAAC;YAC3C,IAAI,MAAM,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC;gBACH,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC;YAC/C,CAAC;YAAC,MAAM,CAAC,CAAA,CAAC;YACV,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAA,yBAAyB,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,MAAM,EAAE,CAAC,CAAC;QAChF,CAAC;QAED,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAA,6BAA6B,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC;QAC7E,CAAC;QAED,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9B,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;QAED,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- import { type Hook } from '@oclif/core';
2
- declare const hook: Hook<'command_not_found'>;
3
- export default hook;
4
- //# sourceMappingURL=command-not-found.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-not-found.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-not-found.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAMxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAMnC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,16 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import chalk from 'chalk';
5
- //
6
- // NOTE: May fail in dev mode due to build reason in packages depended upon by commands.
7
- //
8
- const hook = async (params) => {
9
- const { id } = params;
10
- console.log(chalk `{red Error}: Invalid command: ${id}`);
11
- if (process.env.NODE_ENV === 'development') {
12
- console.log(chalk `{yellow Hint}: Commands will fail silently if they fail to build (Run again with \`DEBUG=*\`).`);
13
- }
14
- };
15
- export default hook;
16
- //# sourceMappingURL=command-not-found.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-not-found.js","sourceRoot":"","sources":["../../../src/hooks/command-not-found.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAGF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,EAAE;AACF,wFAAwF;AACxF,EAAE;AACF,MAAM,IAAI,GAA8B,KAAK,EAAE,MAAM,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAA,iCAAiC,EAAE,EAAE,CAAC,CAAC;IACxD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAA,gGAAgG,CAAC,CAAC;IACrH,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,3 +0,0 @@
1
- export { run } from '@oclif/core';
2
- export * from './base';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,cAAc,QAAQ,CAAC"}
package/dist/src/index.js DELETED
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright 2022 DXOS.org
3
- //
4
- export { run } from '@oclif/core';
5
- export * from './base';
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,cAAc,QAAQ,CAAC"}