@dxos/cli 0.8.4-main.fd6878d → 0.8.4-staging.ac66bdf99f

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 (323) hide show
  1. package/LICENSE +3 -3
  2. package/bin/dx.js +29 -12
  3. package/package.json +14 -129
  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 -28
  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/upload.d.ts +0 -34
  99. package/dist/src/commands/function/upload.d.ts.map +0 -1
  100. package/dist/src/commands/function/upload.js +0 -148
  101. package/dist/src/commands/function/upload.js.map +0 -1
  102. package/dist/src/commands/function/watch.d.ts +0 -29
  103. package/dist/src/commands/function/watch.d.ts.map +0 -1
  104. package/dist/src/commands/function/watch.js +0 -127
  105. package/dist/src/commands/function/watch.js.map +0 -1
  106. package/dist/src/commands/halo/create.d.ts +0 -24
  107. package/dist/src/commands/halo/create.d.ts.map +0 -1
  108. package/dist/src/commands/halo/create.js +0 -36
  109. package/dist/src/commands/halo/create.js.map +0 -1
  110. package/dist/src/commands/halo/credential/add.d.ts +0 -9
  111. package/dist/src/commands/halo/credential/add.d.ts.map +0 -1
  112. package/dist/src/commands/halo/credential/add.js +0 -42
  113. package/dist/src/commands/halo/credential/add.js.map +0 -1
  114. package/dist/src/commands/halo/credential/list.d.ts +0 -23
  115. package/dist/src/commands/halo/credential/list.d.ts.map +0 -1
  116. package/dist/src/commands/halo/credential/list.js +0 -62
  117. package/dist/src/commands/halo/credential/list.js.map +0 -1
  118. package/dist/src/commands/halo/identity.d.ts +0 -8
  119. package/dist/src/commands/halo/identity.d.ts.map +0 -1
  120. package/dist/src/commands/halo/identity.js +0 -31
  121. package/dist/src/commands/halo/identity.js.map +0 -1
  122. package/dist/src/commands/halo/join.d.ts +0 -23
  123. package/dist/src/commands/halo/join.d.ts.map +0 -1
  124. package/dist/src/commands/halo/join.js +0 -94
  125. package/dist/src/commands/halo/join.js.map +0 -1
  126. package/dist/src/commands/halo/keys.d.ts +0 -7
  127. package/dist/src/commands/halo/keys.d.ts.map +0 -1
  128. package/dist/src/commands/halo/keys.js +0 -14
  129. package/dist/src/commands/halo/keys.js.map +0 -1
  130. package/dist/src/commands/halo/recovery/generate.d.ts +0 -7
  131. package/dist/src/commands/halo/recovery/generate.d.ts.map +0 -1
  132. package/dist/src/commands/halo/recovery/generate.js +0 -16
  133. package/dist/src/commands/halo/recovery/generate.js.map +0 -1
  134. package/dist/src/commands/halo/recovery/use.d.ts +0 -20
  135. package/dist/src/commands/halo/recovery/use.d.ts.map +0 -1
  136. package/dist/src/commands/halo/recovery/use.js +0 -21
  137. package/dist/src/commands/halo/recovery/use.js.map +0 -1
  138. package/dist/src/commands/halo/share.d.ts +0 -24
  139. package/dist/src/commands/halo/share.d.ts.map +0 -1
  140. package/dist/src/commands/halo/share.js +0 -73
  141. package/dist/src/commands/halo/share.js.map +0 -1
  142. package/dist/src/commands/halo/update.d.ts +0 -19
  143. package/dist/src/commands/halo/update.d.ts.map +0 -1
  144. package/dist/src/commands/halo/update.js +0 -34
  145. package/dist/src/commands/halo/update.js.map +0 -1
  146. package/dist/src/commands/info.d.ts +0 -19
  147. package/dist/src/commands/info.d.ts.map +0 -1
  148. package/dist/src/commands/info.js +0 -23
  149. package/dist/src/commands/info.js.map +0 -1
  150. package/dist/src/commands/profile/import.d.ts +0 -20
  151. package/dist/src/commands/profile/import.d.ts.map +0 -1
  152. package/dist/src/commands/profile/import.js +0 -66
  153. package/dist/src/commands/profile/import.js.map +0 -1
  154. package/dist/src/commands/profile/inspect.d.ts +0 -20
  155. package/dist/src/commands/profile/inspect.d.ts.map +0 -1
  156. package/dist/src/commands/profile/inspect.js +0 -37
  157. package/dist/src/commands/profile/inspect.js.map +0 -1
  158. package/dist/src/commands/reset/index.d.ts +0 -20
  159. package/dist/src/commands/reset/index.d.ts.map +0 -1
  160. package/dist/src/commands/reset/index.js +0 -74
  161. package/dist/src/commands/reset/index.js.map +0 -1
  162. package/dist/src/commands/shell/index.d.ts +0 -6
  163. package/dist/src/commands/shell/index.d.ts.map +0 -1
  164. package/dist/src/commands/shell/index.js +0 -25
  165. package/dist/src/commands/shell/index.js.map +0 -1
  166. package/dist/src/commands/space/close.d.ts +0 -9
  167. package/dist/src/commands/space/close.d.ts.map +0 -1
  168. package/dist/src/commands/space/close.js +0 -17
  169. package/dist/src/commands/space/close.js.map +0 -1
  170. package/dist/src/commands/space/create.d.ts +0 -10
  171. package/dist/src/commands/space/create.d.ts.map +0 -1
  172. package/dist/src/commands/space/create.js +0 -25
  173. package/dist/src/commands/space/create.js.map +0 -1
  174. package/dist/src/commands/space/epoch.d.ts +0 -10
  175. package/dist/src/commands/space/epoch.d.ts.map +0 -1
  176. package/dist/src/commands/space/epoch.js +0 -18
  177. package/dist/src/commands/space/epoch.js.map +0 -1
  178. package/dist/src/commands/space/info.d.ts +0 -10
  179. package/dist/src/commands/space/info.d.ts.map +0 -1
  180. package/dist/src/commands/space/info.js +0 -26
  181. package/dist/src/commands/space/info.js.map +0 -1
  182. package/dist/src/commands/space/join.d.ts +0 -21
  183. package/dist/src/commands/space/join.d.ts.map +0 -1
  184. package/dist/src/commands/space/join.js +0 -71
  185. package/dist/src/commands/space/join.js.map +0 -1
  186. package/dist/src/commands/space/list.d.ts +0 -24
  187. package/dist/src/commands/space/list.d.ts.map +0 -1
  188. package/dist/src/commands/space/list.js +0 -90
  189. package/dist/src/commands/space/list.js.map +0 -1
  190. package/dist/src/commands/space/members.d.ts +0 -23
  191. package/dist/src/commands/space/members.d.ts.map +0 -1
  192. package/dist/src/commands/space/members.js +0 -27
  193. package/dist/src/commands/space/members.js.map +0 -1
  194. package/dist/src/commands/space/open.d.ts +0 -9
  195. package/dist/src/commands/space/open.d.ts.map +0 -1
  196. package/dist/src/commands/space/open.js +0 -17
  197. package/dist/src/commands/space/open.js.map +0 -1
  198. package/dist/src/commands/space/query.d.ts +0 -25
  199. package/dist/src/commands/space/query.d.ts.map +0 -1
  200. package/dist/src/commands/space/query.js +0 -44
  201. package/dist/src/commands/space/query.js.map +0 -1
  202. package/dist/src/commands/space/schema/list.d.ts +0 -21
  203. package/dist/src/commands/space/schema/list.d.ts.map +0 -1
  204. package/dist/src/commands/space/schema/list.js +0 -57
  205. package/dist/src/commands/space/schema/list.js.map +0 -1
  206. package/dist/src/commands/space/share.d.ts +0 -27
  207. package/dist/src/commands/space/share.d.ts.map +0 -1
  208. package/dist/src/commands/space/share.js +0 -80
  209. package/dist/src/commands/space/share.js.map +0 -1
  210. package/dist/src/commands/tunnel/index.d.ts +0 -22
  211. package/dist/src/commands/tunnel/index.d.ts.map +0 -1
  212. package/dist/src/commands/tunnel/index.js +0 -43
  213. package/dist/src/commands/tunnel/index.js.map +0 -1
  214. package/dist/src/commands/tunnel/list.d.ts +0 -21
  215. package/dist/src/commands/tunnel/list.d.ts.map +0 -1
  216. package/dist/src/commands/tunnel/list.js +0 -29
  217. package/dist/src/commands/tunnel/list.js.map +0 -1
  218. package/dist/src/components/App.d.ts +0 -10
  219. package/dist/src/components/App.d.ts.map +0 -1
  220. package/dist/src/components/App.js +0 -31
  221. package/dist/src/components/App.js.map +0 -1
  222. package/dist/src/components/SpaceTable.d.ts +0 -10
  223. package/dist/src/components/SpaceTable.d.ts.map +0 -1
  224. package/dist/src/components/SpaceTable.js +0 -33
  225. package/dist/src/components/SpaceTable.js.map +0 -1
  226. package/dist/src/components/SystemTable.d.ts +0 -8
  227. package/dist/src/components/SystemTable.d.ts.map +0 -1
  228. package/dist/src/components/SystemTable.js +0 -51
  229. package/dist/src/components/SystemTable.js.map +0 -1
  230. package/dist/src/components/index.d.ts +0 -4
  231. package/dist/src/components/index.d.ts.map +0 -1
  232. package/dist/src/components/index.js +0 -7
  233. package/dist/src/components/index.js.map +0 -1
  234. package/dist/src/help.d.ts +0 -6
  235. package/dist/src/help.d.ts.map +0 -1
  236. package/dist/src/help.js +0 -37
  237. package/dist/src/help.js.map +0 -1
  238. package/dist/src/hooks/command-not-found.d.ts +0 -4
  239. package/dist/src/hooks/command-not-found.d.ts.map +0 -1
  240. package/dist/src/hooks/command-not-found.js +0 -16
  241. package/dist/src/hooks/command-not-found.js.map +0 -1
  242. package/dist/src/index.d.ts +0 -3
  243. package/dist/src/index.d.ts.map +0 -1
  244. package/dist/src/index.js +0 -6
  245. package/dist/src/index.js.map +0 -1
  246. package/dist/src/util/function/bundle.d.ts +0 -5
  247. package/dist/src/util/function/bundle.d.ts.map +0 -1
  248. package/dist/src/util/function/bundle.js +0 -13
  249. package/dist/src/util/function/bundle.js.map +0 -1
  250. package/dist/src/util/function/index.d.ts +0 -3
  251. package/dist/src/util/function/index.d.ts.map +0 -1
  252. package/dist/src/util/function/index.js +0 -6
  253. package/dist/src/util/function/index.js.map +0 -1
  254. package/dist/src/util/function/lookup.d.ts +0 -18
  255. package/dist/src/util/function/lookup.d.ts.map +0 -1
  256. package/dist/src/util/function/lookup.js +0 -14
  257. package/dist/src/util/function/lookup.js.map +0 -1
  258. package/dist/src/util/index.d.ts +0 -6
  259. package/dist/src/util/index.d.ts.map +0 -1
  260. package/dist/src/util/index.js +0 -9
  261. package/dist/src/util/index.js.map +0 -1
  262. package/dist/src/util/provider/digital-ocean.d.ts +0 -14
  263. package/dist/src/util/provider/digital-ocean.d.ts.map +0 -1
  264. package/dist/src/util/provider/digital-ocean.js +0 -123
  265. package/dist/src/util/provider/digital-ocean.js.map +0 -1
  266. package/dist/src/util/provider/index.d.ts +0 -3
  267. package/dist/src/util/provider/index.d.ts.map +0 -1
  268. package/dist/src/util/provider/index.js +0 -6
  269. package/dist/src/util/provider/index.js.map +0 -1
  270. package/dist/src/util/provider/provider.d.ts +0 -27
  271. package/dist/src/util/provider/provider.d.ts.map +0 -1
  272. package/dist/src/util/provider/provider.js +0 -24
  273. package/dist/src/util/provider/provider.js.map +0 -1
  274. package/dist/src/util/publish/build.d.ts +0 -11
  275. package/dist/src/util/publish/build.d.ts.map +0 -1
  276. package/dist/src/util/publish/build.js +0 -24
  277. package/dist/src/util/publish/build.js.map +0 -1
  278. package/dist/src/util/publish/common.d.ts +0 -11
  279. package/dist/src/util/publish/common.d.ts.map +0 -1
  280. package/dist/src/util/publish/common.js +0 -23
  281. package/dist/src/util/publish/common.js.map +0 -1
  282. package/dist/src/util/publish/config.d.ts +0 -3
  283. package/dist/src/util/publish/config.d.ts.map +0 -1
  284. package/dist/src/util/publish/config.js +0 -27
  285. package/dist/src/util/publish/config.js.map +0 -1
  286. package/dist/src/util/publish/index.d.ts +0 -7
  287. package/dist/src/util/publish/index.d.ts.map +0 -1
  288. package/dist/src/util/publish/index.js +0 -10
  289. package/dist/src/util/publish/index.js.map +0 -1
  290. package/dist/src/util/publish/ipfs-upload.d.ts +0 -8
  291. package/dist/src/util/publish/ipfs-upload.d.ts.map +0 -1
  292. package/dist/src/util/publish/ipfs-upload.js +0 -50
  293. package/dist/src/util/publish/ipfs-upload.js.map +0 -1
  294. package/dist/src/util/publish/publish.d.ts +0 -14
  295. package/dist/src/util/publish/publish.d.ts.map +0 -1
  296. package/dist/src/util/publish/publish.js +0 -51
  297. package/dist/src/util/publish/publish.js.map +0 -1
  298. package/dist/src/util/publish/publisher-rpc-peer.d.ts +0 -15
  299. package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +0 -1
  300. package/dist/src/util/publish/publisher-rpc-peer.js +0 -82
  301. package/dist/src/util/publish/publisher-rpc-peer.js.map +0 -1
  302. package/dist/src/util/supervisor/index.d.ts +0 -2
  303. package/dist/src/util/supervisor/index.d.ts.map +0 -1
  304. package/dist/src/util/supervisor/index.js +0 -5
  305. package/dist/src/util/supervisor/index.js.map +0 -1
  306. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts +0 -15
  307. package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +0 -1
  308. package/dist/src/util/supervisor/supervisor-rpc-peer.js +0 -83
  309. package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +0 -1
  310. package/dist/src/util/tunnel/common.d.ts +0 -9
  311. package/dist/src/util/tunnel/common.d.ts.map +0 -1
  312. package/dist/src/util/tunnel/common.js +0 -26
  313. package/dist/src/util/tunnel/common.js.map +0 -1
  314. package/dist/src/util/tunnel/index.d.ts +0 -3
  315. package/dist/src/util/tunnel/index.d.ts.map +0 -1
  316. package/dist/src/util/tunnel/index.js +0 -6
  317. package/dist/src/util/tunnel/index.js.map +0 -1
  318. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts +0 -15
  319. package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +0 -1
  320. package/dist/src/util/tunnel/tunnel-rpc-peer.js +0 -83
  321. package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +0 -1
  322. package/dist/tsconfig.tsbuildinfo +0 -1
  323. package/oclif.manifest.json +0 -5824
@@ -1,178 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { spawn } from 'node:child_process';
5
- import { mkdirSync, rmSync, writeFileSync } from 'node:fs';
6
- import { dirname, join } from 'node:path';
7
- import yaml from 'js-yaml';
8
- import { afterEach, beforeEach, describe, expect, test } from 'vitest';
9
- import { Trigger, asyncTimeout } from '@dxos/async';
10
- import { BIN_PATH, runCommand } from '@dxos/cli-base';
11
- import { log } from '@dxos/log';
12
- describe('agent', () => {
13
- const TEST_FOLDER = '/tmp/dxos/testing/cli';
14
- const HOST_CONFIG_PATH = join(TEST_FOLDER, 'config-host.yml');
15
- const GUEST_CONFIG_PATH = join(TEST_FOLDER, 'config-guest.yml');
16
- beforeEach(async () => {
17
- // Create config files.
18
- [
19
- [HOST_CONFIG_PATH, join(TEST_FOLDER, 'host')],
20
- [GUEST_CONFIG_PATH, join(TEST_FOLDER, 'guest')],
21
- ].forEach(([configPath, storagePath]) => {
22
- mkdirSync(dirname(configPath), { recursive: true });
23
- writeFileSync(configPath, yaml.dump({
24
- version: 1,
25
- runtime: {
26
- client: {
27
- storage: {
28
- persistent: true,
29
- path: storagePath,
30
- },
31
- },
32
- services: {
33
- signaling: [
34
- {
35
- server: 'wss://dev.kube.dxos.org/.well-known/dx/signal',
36
- },
37
- {
38
- server: 'wss://kube.dxos.org/.well-known/dx/signal',
39
- },
40
- ],
41
- ice: [
42
- {
43
- urls: 'stun:kube.dxos.org:3478',
44
- },
45
- {
46
- urls: 'turn:kube.dxos.org:3478',
47
- username: 'dxos',
48
- credential: 'dxos',
49
- },
50
- ],
51
- },
52
- },
53
- }));
54
- });
55
- });
56
- afterEach(async () => {
57
- // Cleanup.
58
- rmSync(TEST_FOLDER, { recursive: true, force: true });
59
- });
60
- test.skip('join two agent profiles', { timeout: 120_000 }, async () => {
61
- const haloName = 'TEST_NAME';
62
- const host = 'test-profile-1';
63
- const guest = 'test-profile-2';
64
- {
65
- log.info('Starting first test profile agent.');
66
- await runCommand(`agent start --profile=${host} --config=${HOST_CONFIG_PATH}`, __dirname);
67
- log.info('creating halo identity.');
68
- await runCommand(`halo create ${haloName} --profile=${host} --config=${HOST_CONFIG_PATH}`, __dirname);
69
- }
70
- {
71
- log.info('Starting second test profile agent.');
72
- await runCommand(`agent start --profile=${guest} --config=${GUEST_CONFIG_PATH}`, __dirname);
73
- }
74
- {
75
- log.info('Inviting second profile to join first profile halo.');
76
- await performHaloCLIInvitation({
77
- host: { profile: host, config: HOST_CONFIG_PATH },
78
- guest: { profile: guest, config: GUEST_CONFIG_PATH },
79
- });
80
- log.info('Invitation successful.');
81
- }
82
- {
83
- // TODO(mykola): Remove fancy colorful output from the CLI.
84
- const firstIdentity = await runCommand(`halo --profile=${host} --json --config=${HOST_CONFIG_PATH}`, __dirname);
85
- const secondIdentity = await runCommand(`halo --profile=${guest} --json --config=${GUEST_CONFIG_PATH}`, __dirname);
86
- expect(secondIdentity).to.equal(firstIdentity);
87
- }
88
- {
89
- await runCommand(`agent stop --profile=${host} --config=${HOST_CONFIG_PATH}`, __dirname);
90
- await runCommand(`agent stop --profile=${guest} --config=${GUEST_CONFIG_PATH}`, __dirname);
91
- }
92
- });
93
- test.skip('stop command', async () => {
94
- const profile1 = 'test-profile-1';
95
- const profile2 = 'test-profile-2';
96
- await runCommand(`agent start --profile=${profile1} --config=${HOST_CONFIG_PATH}`, __dirname);
97
- await runCommand(`create halo FIRST --profile=${profile1} --config=${HOST_CONFIG_PATH}`, __dirname);
98
- await runCommand(`agent start --profile=${profile2} --config=${HOST_CONFIG_PATH}`, __dirname);
99
- await runCommand(`create halo SECOND --profile=${profile2} --config=${HOST_CONFIG_PATH}`, __dirname);
100
- await runCommand('agent stop --all --force', __dirname);
101
- const listAfterStop = await runCommand('agent list --json', __dirname);
102
- expect(JSON.parse(listAfterStop)).to.equal([]);
103
- });
104
- });
105
- const performHaloCLIInvitation = async ({ host, guest }) => {
106
- const invitation = new Trigger();
107
- const secret = new Trigger();
108
- const hostClosed = new Trigger();
109
- const hostProcess = spawn(BIN_PATH, ['halo', 'share', `--profile=${host.profile}`, `--config=${host.config}`], {
110
- shell: true,
111
- cwd: __dirname,
112
- });
113
- {
114
- const handleHost = (data) => {
115
- data
116
- .toString()
117
- .split('\n')
118
- .forEach((line) => {
119
- if (line.includes('Invitation')) {
120
- log('Invitation:', line.split(': ')[1]);
121
- invitation.wake(line.split(': ')[1]);
122
- }
123
- if (line.includes('Secret')) {
124
- log('Secret:', line.split(': ')[1]);
125
- secret.wake(line.split(': ')[1]);
126
- }
127
- // });
128
- });
129
- };
130
- hostProcess.stdout.on('data', handleHost);
131
- hostProcess.stderr.on('data', handleHost);
132
- hostProcess.on('error', (err) => {
133
- throw err;
134
- });
135
- hostProcess.on('exit', (code) => {
136
- if (code !== 0) {
137
- throw new Error(`Host process exited with code ${code}`);
138
- }
139
- hostClosed.wake();
140
- });
141
- }
142
- const guestReadyForInvitation = new Trigger();
143
- const guestReadyForSecret = new Trigger();
144
- const guestProcess = spawn(BIN_PATH, ['halo', 'join', `--profile=${guest.profile}`, `--config=${guest.config}`], {
145
- shell: true,
146
- cwd: __dirname,
147
- });
148
- {
149
- const handleGuest = (data) => {
150
- data
151
- .toString()
152
- .split('\n')
153
- .forEach((line) => {
154
- if (line.includes('Invitation')) {
155
- log('Ready for invitation');
156
- guestReadyForInvitation.wake();
157
- }
158
- if (line.includes('Invitation code')) {
159
- log('Ready for secret');
160
- guestReadyForSecret.wake();
161
- }
162
- });
163
- };
164
- guestProcess.stdout.on('data', handleGuest);
165
- guestProcess.stderr.on('data', handleGuest);
166
- guestProcess.on('error', (err) => {
167
- throw err;
168
- });
169
- }
170
- await asyncTimeout(guestReadyForInvitation.wait(), 10_000);
171
- guestProcess.stdin.write(`${await invitation.wait()}\n`);
172
- await asyncTimeout(guestReadyForSecret.wait(), 10_000);
173
- guestProcess.stdin.write(`${await secret.wait()}\n`);
174
- await asyncTimeout(hostClosed.wait(), 10_000);
175
- hostProcess.kill();
176
- guestProcess.kill();
177
- };
178
- //# sourceMappingURL=agent.node.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.node.test.js","sourceRoot":"","sources":["../../../../src/commands/agent/agent.node.test.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF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AC,IAAI,EAAE,CAAC;AACtB,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- export default class Share extends BaseCommand<typeof Share> {
3
- static enableJsonFlag: boolean;
4
- static description: string;
5
- static flags: {
6
- truncate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
- json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
- verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
- 'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
- profile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
- config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
- timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
13
- target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
- agent: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
- 'json-log': import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
- 'json-logfile': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
- };
18
- run(): Promise<any>;
19
- }
20
- //# sourceMappingURL=invitations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/invitations.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA6B;IAExD,OAAgB,KAAK;;;;;;;;;;;;MAOnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAqE1B"}
@@ -1,88 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
- import { Flags, ux } from '@oclif/core';
5
- import chalk from 'chalk';
6
- import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';
7
- import { table } from '@dxos/cli-base';
8
- import { Invitation } from '@dxos/protocols/proto/dxos/client/services';
9
- import { BaseCommand } from '../../base';
10
- // TODO(burdon): Move managed agent to separate CLI.
11
- export default class Share extends BaseCommand {
12
- static enableJsonFlag = true;
13
- static description = 'List valid invitations.';
14
- static flags = {
15
- ...BaseCommand.flags,
16
- truncate: Flags.boolean({
17
- description: 'Do not truncate keys.',
18
- default: true,
19
- allowNo: true,
20
- }),
21
- };
22
- async run() {
23
- return await this.execWithClient(async ({ client }) => {
24
- if (!client.halo.identity.get()) {
25
- this.log(chalk `{red Profile not initialized.}`);
26
- return {};
27
- }
28
- const haloInvitations = client.halo.invitations;
29
- const mappedInvitations = mapInvitations(haloInvitations.get());
30
- if (mappedInvitations.length > 0) {
31
- ux.stdout('HALO device invitations');
32
- ux.stdout(table(mappedInvitations, {
33
- invitationId: {
34
- header: 'Inv. ID',
35
- get: (row) => (this.flags.truncate ? row.invitationId.slice(0, 8) : row.invitationId),
36
- },
37
- swarmKey: {
38
- header: 'Swarm Key',
39
- get: (row) => (this.flags.truncate ? row.swarmKey.truncate() : row.swarmKey.toHex()),
40
- },
41
- created: { header: 'Created' },
42
- lifetime: { header: 'Lifetime' },
43
- expiry: {
44
- header: 'Expires in',
45
- get: (row) => (row.expiry ? formatDistanceToNow(row.expiry) : 'NEVER'),
46
- },
47
- persistent: {},
48
- state: { get: (row) => Invitation.State[row.state] },
49
- }));
50
- }
51
- const spaces = client.spaces.get();
52
- const mappedSpaceInvitations = spaces.reduce((acc, space) => {
53
- const spaceInvitations = space.invitations.get();
54
- acc.push(...spaceInvitations);
55
- return acc;
56
- }, []);
57
- if (mappedSpaceInvitations.length > 0) {
58
- ux.stdout('Space invitations');
59
- ux.stdout(table(mapInvitations(mappedSpaceInvitations), {
60
- invitationId: {
61
- header: 'Inv. ID',
62
- get: (row) => (this.flags.truncate ? row.invitationId.slice(0, 8) : row.invitationId),
63
- },
64
- swarmKey: {
65
- header: 'Swarm Key',
66
- get: (row) => (this.flags.truncate ? row.swarmKey.truncate() : row.swarmKey.toHex()),
67
- },
68
- spaceKey: {
69
- header: 'Space Key',
70
- get: (row) => (this.flags.truncate ? row.spaceKey?.truncate() : row.spaceKey?.toHex()),
71
- },
72
- created: { header: 'Created' },
73
- lifetime: { header: 'Lifetime' },
74
- expiry: {
75
- header: 'Expires in',
76
- get: (row) => (row.expiry ? formatDistanceToNow(row.expiry) : 'NEVER'),
77
- },
78
- persistent: {},
79
- state: { get: (row) => Invitation.State[row.state] },
80
- }));
81
- }
82
- });
83
- }
84
- }
85
- const mapInvitations = (invitations) => {
86
- return invitations.map((invitation) => ({ ...invitation.get(), expiry: invitation.expiry }));
87
- };
88
- //# sourceMappingURL=invitations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invitations.js","sourceRoot":"","sources":["../../../../src/commands/agent/invitations.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,oDAAoD;AACpD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAyB;IAC1D,MAAM,CAAU,cAAc,GAAG,IAAI,CAAC;IACtC,MAAM,CAAU,WAAW,GAAG,yBAAyB,CAAC;IAExD,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,WAAW,CAAC,KAAK;QACpB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC;YACtB,WAAW,EAAE,u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CAAC,CAAC;AAC/F,CAAC,CAAC"}
@@ -1,22 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- export default class List extends BaseCommand<typeof List> {
3
- static enableJsonFlag: boolean;
4
- static description: string;
5
- static flags: {
6
- live: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
- system: import("@oclif/core/interfaces").BooleanFlag<boolean>;
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=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/list.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAkB;IAC7C,OAAgB,KAAK;;;;;;;;;;;;;;MAWnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAoB1B"}
@@ -1,45 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { Flags } from '@oclif/core';
5
- import { TABLE_FLAGS, printAgents } from '@dxos/cli-base';
6
- import { BaseCommand } from '../../base';
7
- export default class List extends BaseCommand {
8
- static enableJsonFlag = true;
9
- static description = 'List agents.';
10
- static flags = {
11
- ...BaseCommand.flags,
12
- ...TABLE_FLAGS,
13
- live: Flags.boolean({
14
- description: 'Live update.',
15
- default: false,
16
- }),
17
- system: Flags.boolean({
18
- description: 'Run as system daemon.',
19
- default: false,
20
- }),
21
- };
22
- async run() {
23
- return await this.execWithDaemon(async (daemon) => {
24
- const result = await daemon.list();
25
- if (this.flags.json) {
26
- return result;
27
- }
28
- else {
29
- // TODO(burdon): q to quit.
30
- if (this.flags.live) {
31
- console.clear();
32
- setInterval(async () => {
33
- const result = await daemon.list();
34
- console.clear();
35
- printAgents(result, this.flags);
36
- }, 1_000);
37
- }
38
- else {
39
- printAgents(result, this.flags);
40
- }
41
- }
42
- }, this.flags.system);
43
- }
44
- }
45
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/agent/list.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAwB;IACxD,MAAM,CAAU,cAAc,GAAG,IAAI,CAAC;IACtC,MAAM,CAAU,WAAW,GAAG,cAAc,CAAC;IAC7C,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,WAAW,CAAC,KAAK;QACpB,GAAG,WAAW;QACd,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC;YAClB,WAAW,EAAE,cAAc;YAC3B,OAAO,EAAE,KAAK;SACf,CAAC;QACF,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;YACpB,WAAW,EAAE,uBAAuB;YACpC,OAAO,EAAE,KAAK;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YACnC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;gBACpB,OAAO,MAAM,CAAC;YAChB,CAAC;iBAAM,CAAC;gBACN,2BAA2B;gBAC3B,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;oBACpB,OAAO,CAAC,KAAK,EAAE,CAAC;oBAChB,WAAW,CAAC,KAAK,IAAI,EAAE;wBACrB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;wBACnC,OAAO,CAAC,KAAK,EAAE,CAAC;wBAChB,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,KAAY,CAAC,CAAC;oBACzC,CAAC,EAAE,KAAK,CAAC,CAAC;gBACZ,CAAC;qBAAM,CAAC;oBACN,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,KAAY,CAAC,CAAC;gBACzC,CAAC;YACH,CAAC;QACH,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC"}
@@ -1,21 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- export default class Restart extends BaseCommand<typeof Restart> {
3
- static enableJsonFlag: boolean;
4
- static description: string;
5
- static flags: {
6
- force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
- system: 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=restart.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/restart.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAAW,CAAC,OAAO,OAAO,CAAC;IAC9D,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA2B;IAEtD,OAAgB,KAAK;;;;;;;;;;;;;MAOnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAQ1B"}
@@ -1,26 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
- import { Flags } from '@oclif/core';
5
- import { BaseCommand } from '../../base';
6
- export default class Restart extends BaseCommand {
7
- static enableJsonFlag = true;
8
- static description = 'Restart agent daemon.';
9
- static flags = {
10
- ...BaseCommand.flags,
11
- force: Flags.boolean({ description: 'Force restart.' }),
12
- system: Flags.boolean({
13
- description: 'Run as system daemon.',
14
- default: false,
15
- }),
16
- };
17
- async run() {
18
- return await this.execWithDaemon(async (daemon) => {
19
- const process = await daemon.restart(this.flags.profile, { config: this.flags.config });
20
- if (process && this.flags.verbose) {
21
- this.log('Restarted:', process);
22
- }
23
- }, this.flags.system);
24
- }
25
- }
26
- //# sourceMappingURL=restart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restart.js","sourceRoot":"","sources":["../../../../src/commands/agent/restart.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAA2B;IAC9D,MAAM,CAAU,cAAc,GAAG,IAAI,CAAC;IACtC,MAAM,CAAU,WAAW,GAAG,uBAAuB,CAAC;IAEtD,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,WAAW,CAAC,KAAK;QACpB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;QACvD,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;YACpB,WAAW,EAAE,uBAAuB;YACpC,OAAO,EAAE,KAAK;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;YACxF,IAAI,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBAClC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAClC,CAAC;QACH,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC"}
@@ -1,33 +0,0 @@
1
- import { BaseCommand } from '../../base';
2
- export default class Start extends BaseCommand<typeof Start> {
3
- static enableJsonFlag: boolean;
4
- static description: string;
5
- static flags: {
6
- foreground: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
- system: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
- ws: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
- http: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
- metrics: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
- json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
- verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
- 'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
14
- profile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
- config: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
16
- timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
17
- target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
- agent: import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
- 'json-log': import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
- 'json-logfile': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
21
- };
22
- static examples: {
23
- description: string;
24
- command: string;
25
- }[];
26
- private readonly _ctx;
27
- private _agent?;
28
- run(): Promise<any>;
29
- private _runInForeground;
30
- private _runAsDaemon;
31
- private _sendTelemetry;
32
- }
33
- //# sourceMappingURL=start.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/start.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAuB;IAClD,OAAgB,KAAK;;;;;;;;;;;;;;;;MAuBnB;IAEF,OAAgB,QAAQ;;;QAKtB;IAEF,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;IACtC,OAAO,CAAC,MAAM,CAAC,CAAQ;IAEjB,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;YASX,gBAAgB;YAyHhB,YAAY;YAuBZ,cAAc;CAmB7B"}