@dxos/cli 0.1.48 → 0.1.49-next.f1412c7

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 (128) hide show
  1. package/README.md +213 -219
  2. package/bin/dev +4 -3
  3. package/bin/dev.cmd +1 -1
  4. package/bin/run +1 -1
  5. package/config/config-default.yml +0 -2
  6. package/dist/src/base-command.d.ts +21 -10
  7. package/dist/src/base-command.d.ts.map +1 -1
  8. package/dist/src/base-command.js +91 -68
  9. package/dist/src/base-command.js.map +1 -1
  10. package/dist/src/commands/{daemon → agent}/list.d.ts +1 -0
  11. package/dist/src/commands/agent/list.d.ts.map +1 -0
  12. package/dist/src/commands/agent/list.js +37 -0
  13. package/dist/src/commands/agent/list.js.map +1 -0
  14. package/dist/src/commands/agent/restart.d.ts.map +1 -0
  15. package/dist/src/commands/{daemon → agent}/restart.js +1 -1
  16. package/dist/src/commands/agent/restart.js.map +1 -0
  17. package/dist/src/commands/{daemon → agent}/run.d.ts +1 -1
  18. package/dist/src/commands/agent/run.d.ts.map +1 -0
  19. package/dist/src/commands/{daemon → agent}/run.js +7 -8
  20. package/dist/src/commands/agent/run.js.map +1 -0
  21. package/dist/src/commands/agent/start.d.ts.map +1 -0
  22. package/dist/src/commands/{daemon → agent}/start.js +1 -1
  23. package/dist/src/commands/agent/start.js.map +1 -0
  24. package/dist/src/commands/agent/stop.d.ts.map +1 -0
  25. package/dist/src/commands/{daemon → agent}/stop.js +1 -1
  26. package/dist/src/commands/agent/stop.js.map +1 -0
  27. package/dist/src/commands/app/create.d.ts +1 -1
  28. package/dist/src/commands/app/open.d.ts +1 -1
  29. package/dist/src/commands/app/publish.d.ts +1 -1
  30. package/dist/src/commands/debug/stats.d.ts +17 -0
  31. package/dist/src/commands/debug/stats.d.ts.map +1 -0
  32. package/dist/src/commands/debug/stats.js +90 -0
  33. package/dist/src/commands/debug/stats.js.map +1 -0
  34. package/dist/src/commands/halo/create.d.ts +1 -1
  35. package/dist/src/commands/halo/create.js +4 -4
  36. package/dist/src/commands/halo/create.js.map +1 -1
  37. package/dist/src/commands/halo/credential/list.d.ts +1 -1
  38. package/dist/src/commands/halo/join.d.ts +1 -1
  39. package/dist/src/commands/halo/share.d.ts +1 -1
  40. package/dist/src/commands/kube/deploy.d.ts +1 -1
  41. package/dist/src/commands/reset/index.d.ts.map +1 -1
  42. package/dist/src/commands/reset/index.js +1 -1
  43. package/dist/src/commands/reset/index.js.map +1 -1
  44. package/dist/src/commands/space/create.js +1 -1
  45. package/dist/src/commands/space/create.js.map +1 -1
  46. package/dist/src/commands/space/{new-epoch.d.ts → epoch.d.ts} +3 -3
  47. package/dist/src/commands/space/epoch.d.ts.map +1 -0
  48. package/dist/src/commands/space/{new-epoch.js → epoch.js} +9 -8
  49. package/dist/src/commands/space/epoch.js.map +1 -0
  50. package/dist/src/commands/space/index.d.ts.map +1 -1
  51. package/dist/src/commands/space/index.js +1 -0
  52. package/dist/src/commands/space/index.js.map +1 -1
  53. package/dist/src/commands/space/join.d.ts +1 -1
  54. package/dist/src/commands/space/list.d.ts +1 -1
  55. package/dist/src/commands/space/members.d.ts +1 -1
  56. package/dist/src/commands/tunnel/list.d.ts.map +1 -1
  57. package/dist/src/commands/tunnel/list.js +3 -5
  58. package/dist/src/commands/tunnel/list.js.map +1 -1
  59. package/dist/src/commands/tunnel/set.d.ts +1 -1
  60. package/dist/src/util/exec.d.ts.map +1 -1
  61. package/dist/src/util/exec.js.map +1 -1
  62. package/dist/src/util/print.js +9 -9
  63. package/dist/src/util/print.js.map +1 -1
  64. package/dist/src/util/provider/provider.js +2 -2
  65. package/dist/src/util/publish/common.js +2 -2
  66. package/dist/src/util/telemetry.d.ts.map +1 -1
  67. package/dist/src/util/telemetry.js +1 -0
  68. package/dist/src/util/telemetry.js.map +1 -1
  69. package/dist/src/util/telemetryrc.json +2 -2
  70. package/dist/src/util/tunnel/common.js +3 -3
  71. package/oclif.manifest.json +584 -493
  72. package/package.json +23 -23
  73. package/dist/src/commands/daemon/list.d.ts.map +0 -1
  74. package/dist/src/commands/daemon/list.js +0 -19
  75. package/dist/src/commands/daemon/list.js.map +0 -1
  76. package/dist/src/commands/daemon/restart.d.ts.map +0 -1
  77. package/dist/src/commands/daemon/restart.js.map +0 -1
  78. package/dist/src/commands/daemon/run.d.ts.map +0 -1
  79. package/dist/src/commands/daemon/run.js.map +0 -1
  80. package/dist/src/commands/daemon/start.d.ts.map +0 -1
  81. package/dist/src/commands/daemon/start.js.map +0 -1
  82. package/dist/src/commands/daemon/stop.d.ts.map +0 -1
  83. package/dist/src/commands/daemon/stop.js.map +0 -1
  84. package/dist/src/commands/space/new-epoch.d.ts.map +0 -1
  85. package/dist/src/commands/space/new-epoch.js.map +0 -1
  86. package/dist/src/daemon/daemon.d.ts +0 -15
  87. package/dist/src/daemon/daemon.d.ts.map +0 -1
  88. package/dist/src/daemon/daemon.js +0 -6
  89. package/dist/src/daemon/daemon.js.map +0 -1
  90. package/dist/src/daemon/faas/api.d.ts +0 -346
  91. package/dist/src/daemon/faas/api.d.ts.map +0 -1
  92. package/dist/src/daemon/faas/api.js +0 -11
  93. package/dist/src/daemon/faas/api.js.map +0 -1
  94. package/dist/src/daemon/faas/connector.d.ts +0 -46
  95. package/dist/src/daemon/faas/connector.d.ts.map +0 -1
  96. package/dist/src/daemon/faas/connector.js +0 -185
  97. package/dist/src/daemon/faas/connector.js.map +0 -1
  98. package/dist/src/daemon/forever/forever-daemon.d.ts +0 -15
  99. package/dist/src/daemon/forever/forever-daemon.d.ts.map +0 -1
  100. package/dist/src/daemon/forever/forever-daemon.js +0 -83
  101. package/dist/src/daemon/forever/forever-daemon.js.map +0 -1
  102. package/dist/src/daemon/forever/index.d.ts +0 -2
  103. package/dist/src/daemon/forever/index.d.ts.map +0 -1
  104. package/dist/src/daemon/forever/index.js +0 -21
  105. package/dist/src/daemon/forever/index.js.map +0 -1
  106. package/dist/src/daemon/index.d.ts +0 -5
  107. package/dist/src/daemon/index.d.ts.map +0 -1
  108. package/dist/src/daemon/index.js +0 -24
  109. package/dist/src/daemon/index.js.map +0 -1
  110. package/dist/src/daemon/pm2/index.d.ts +0 -2
  111. package/dist/src/daemon/pm2/index.d.ts.map +0 -1
  112. package/dist/src/daemon/pm2/index.js +0 -21
  113. package/dist/src/daemon/pm2/index.js.map +0 -1
  114. package/dist/src/daemon/pm2/pm2-daemon.d.ts +0 -21
  115. package/dist/src/daemon/pm2/pm2-daemon.d.ts.map +0 -1
  116. package/dist/src/daemon/pm2/pm2-daemon.js +0 -107
  117. package/dist/src/daemon/pm2/pm2-daemon.js.map +0 -1
  118. package/dist/src/daemon/run-services.d.ts +0 -7
  119. package/dist/src/daemon/run-services.d.ts.map +0 -1
  120. package/dist/src/daemon/run-services.js +0 -109
  121. package/dist/src/daemon/run-services.js.map +0 -1
  122. package/dist/src/daemon/util.d.ts +0 -8
  123. package/dist/src/daemon/util.d.ts.map +0 -1
  124. package/dist/src/daemon/util.js +0 -38
  125. package/dist/src/daemon/util.js.map +0 -1
  126. /package/dist/src/commands/{daemon → agent}/restart.d.ts +0 -0
  127. /package/dist/src/commands/{daemon → agent}/start.d.ts +0 -0
  128. /package/dist/src/commands/{daemon → agent}/stop.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "0.1.48",
3
+ "version": "0.1.49-next.f1412c7",
4
4
  "description": "DXOS CLI",
5
5
  "keywords": [
6
6
  "dxos",
@@ -32,7 +32,6 @@
32
32
  "cli-progress": "^3.11.2",
33
33
  "debug": "^4.3.3",
34
34
  "do-wrapper": "^4.5.1",
35
- "forever": "^4.0.3",
36
35
  "fs-extra": "^8.1.0",
37
36
  "get-folder-size": "^2.0.1",
38
37
  "inquirer": "^8.2.0",
@@ -43,31 +42,32 @@
43
42
  "node-fetch": "^2.6.0",
44
43
  "oclif": "^3.7.0",
45
44
  "pkg-up": "^3.1.0",
46
- "pm2": "^5.3.0",
47
45
  "react": "^18.2.0",
48
46
  "tempy": "^1.0.1",
49
47
  "uuid": "^8.3.2",
50
48
  "ws": "^7.4.4",
51
- "@dxos/async": "0.1.48",
52
- "@dxos/bare-template": "0.1.48",
53
- "@dxos/client": "0.1.48",
54
- "@dxos/client-services": "0.1.48",
55
- "@dxos/codec-protobuf": "0.1.48",
56
- "@dxos/config": "0.1.48",
57
- "@dxos/context": "0.1.48",
58
- "@dxos/debug": "0.1.48",
59
- "@dxos/hello-template": "0.1.48",
60
- "@dxos/keys": "0.1.48",
61
- "@dxos/log": "0.1.48",
62
- "@dxos/observable-object": "0.1.48",
63
- "@dxos/plate": "0.1.48",
64
- "@dxos/protocols": "0.1.48",
65
- "@dxos/rpc": "0.1.48",
66
- "@dxos/sentry": "0.1.48",
67
- "@dxos/tasks-template": "0.1.48",
68
- "@dxos/telemetry": "0.1.48",
69
- "@dxos/util": "0.1.48",
70
- "@dxos/websocket-rpc": "0.1.48"
49
+ "@dxos/agent": "0.1.49-next.f1412c7",
50
+ "@dxos/async": "0.1.49-next.f1412c7",
51
+ "@dxos/bare-template": "0.1.49-next.f1412c7",
52
+ "@dxos/client": "0.1.49-next.f1412c7",
53
+ "@dxos/client-protocol": "0.1.49-next.f1412c7",
54
+ "@dxos/client-services": "0.1.49-next.f1412c7",
55
+ "@dxos/codec-protobuf": "0.1.49-next.f1412c7",
56
+ "@dxos/config": "0.1.49-next.f1412c7",
57
+ "@dxos/context": "0.1.49-next.f1412c7",
58
+ "@dxos/debug": "0.1.49-next.f1412c7",
59
+ "@dxos/hello-template": "0.1.49-next.f1412c7",
60
+ "@dxos/keys": "0.1.49-next.f1412c7",
61
+ "@dxos/log": "0.1.49-next.f1412c7",
62
+ "@dxos/observable-object": "0.1.49-next.f1412c7",
63
+ "@dxos/plate": "0.1.49-next.f1412c7",
64
+ "@dxos/protocols": "0.1.49-next.f1412c7",
65
+ "@dxos/rpc": "0.1.49-next.f1412c7",
66
+ "@dxos/sentry": "0.1.49-next.f1412c7",
67
+ "@dxos/tasks-template": "0.1.49-next.f1412c7",
68
+ "@dxos/telemetry": "0.1.49-next.f1412c7",
69
+ "@dxos/util": "0.1.49-next.f1412c7",
70
+ "@dxos/websocket-rpc": "0.1.49-next.f1412c7"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@oclif/test": "^2.3.11",
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/list.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAqC;IAE1D,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAO1B"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const base_command_1 = require("../../base-command");
7
- class List extends base_command_1.BaseCommand {
8
- async run() {
9
- return await this.execWithDaemon(async (daemon) => {
10
- const result = await daemon.list();
11
- this.log('Daemons:', result);
12
- return result;
13
- });
14
- }
15
- }
16
- List.enableJsonFlag = true;
17
- List.description = 'List daemons currently running.';
18
- exports.default = List;
19
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/daemon/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,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,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YAC7B,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;;AATe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,iCAAiC,CAAC;kBAF7C,IAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/restart.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAAW;IAC9C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA6B;IAElD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAO1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"restart.js","sourceRoot":"","sources":["../../../../src/commands/daemon/restart.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,OAAQ,SAAQ,0BAAW;IAI9C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3D,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;;AATe,sBAAc,GAAG,IAAI,CAAC;AACtB,mBAAW,GAAG,yBAAyB,CAAC;kBAFrC,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/run.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;IAC1C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAyB;IAEpD,OAAgB,KAAK;;;;;MAOnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAS1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/daemon/run.ts"],"names":[],"mappings":";AAAA,EAAE;;;;;AAEF,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,sCAAoC;AACpC,8DAAiC;AAEjC,qDAAiD;AACjD,yCAA2C;AAE3C,MAAqB,GAAI,SAAQ,0BAAW;IAa1C,KAAK,CAAC,GAAG;QACP,MAAM,EACJ,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAA,qBAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,IAAA,oBAAW,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QAEzD,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;;AApBe,kBAAc,GAAG,IAAI,CAAC;AACtB,eAAW,GAAG,qBAAqB,CAAC;AAEpC,SAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBAXiB,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/start.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;IAC5C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA2B;IAEhD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAO1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../src/commands/daemon/start.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,KAAM,SAAQ,0BAAW;IAI5C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACvC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzD,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;;AATe,oBAAc,GAAG,IAAI,CAAC;AACtB,iBAAW,GAAG,uBAAuB,CAAC;kBAFnC,KAAK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stop.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/stop.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA0B;IAE/C,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAQ1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stop.js","sourceRoot":"","sources":["../../../../src/commands/daemon/stop.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAExC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;;AAVe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,sBAAsB,CAAC;kBAFlC,IAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-epoch.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/new-epoch.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;IAC/C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAuB;IAClD,OAAgB,KAAK;;;;;;;;;;;;MAGnB;IAEF,OAAgB,IAAI;;MAAmE;IAEjF,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAqB1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-epoch.js","sourceRoot":"","sources":["../../../../src/commands/space/new-epoch.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAuC;AACvC,8DAAiC;AAIjC,qDAAiD;AACjD,qCAAyC;AAEzC,MAAqB,QAAS,SAAQ,0BAAW;IAU/C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAEnB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;YACnC,IAAI,CAAC,GAAG,EAAE;gBACR,GAAG,GAAG,MAAM,IAAA,kBAAW,EAAC,MAAM,CAAC,CAAC;aACjC;YAED,IAAA,qBAAM,EAAC,GAAG,CAAC,CAAC;YAEZ,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,GAAI,CAAC,CAAC,CAAC;YACzE,IAAI,CAAC,KAAK,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBACxB,OAAO;aACR;YAED,MAAM,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;;AA7Be,uBAAc,GAAG,IAAI,CAAC;AACtB,oBAAW,GAAG,mBAAmB,CAAC;AAClC,cAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,GAAG,SAAE,CAAC,KAAK,CAAC,KAAK,EAAE;CACpB,CAAC;AAEc,aAAI,GAAG,EAAE,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC,EAAE,CAAC;kBARpE,QAAQ"}
@@ -1,15 +0,0 @@
1
- export type ProcessDescription = {
2
- profile?: string;
3
- pid?: number;
4
- isRunning?: boolean;
5
- };
6
- export interface Daemon {
7
- connect: () => Promise<void>;
8
- disconnect: () => Promise<void>;
9
- isRunning: (profile: string) => Promise<boolean>;
10
- start: (profile: string) => Promise<ProcessDescription>;
11
- stop: (profile: string) => Promise<ProcessDescription>;
12
- restart: (profile: string) => Promise<ProcessDescription>;
13
- list: () => Promise<ProcessDescription[]>;
14
- }
15
- //# sourceMappingURL=daemon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/daemon/daemon.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzF,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACxD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACvD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE1D,IAAI,EAAE,MAAM,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAC3C"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=daemon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../src/daemon/daemon.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
@@ -1,346 +0,0 @@
1
- /**
2
- *
3
- * @export
4
- * @interface DeleteFunctionRequest
5
- */
6
- export interface DeleteFunctionRequest {
7
- /**
8
- * Name of deployed function
9
- * @type {string}
10
- * @memberof DeleteFunctionRequest
11
- */
12
- functionName: string;
13
- }
14
- /**
15
- *
16
- * @export
17
- * @interface FunctionDefinition
18
- */
19
- export interface FunctionDefinition {
20
- /**
21
- * Name of deployed function
22
- * @type {string}
23
- * @memberof FunctionDefinition
24
- */
25
- service: string;
26
- /**
27
- * Network, usually func_functions for Swarm (deprecated)
28
- * @type {string}
29
- * @memberof FunctionDefinition
30
- */
31
- network?: string;
32
- /**
33
- * Docker image in accessible registry
34
- * @type {string}
35
- * @memberof FunctionDefinition
36
- */
37
- image: string;
38
- /**
39
- * Process for watchdog to fork
40
- * @type {string}
41
- * @memberof FunctionDefinition
42
- */
43
- envProcess: string;
44
- /**
45
- * Overrides to environmental variables
46
- * @type {{ [key: string]: string; }}
47
- * @memberof FunctionDefinition
48
- */
49
- envVars?: {
50
- [key: string]: string;
51
- };
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof FunctionDefinition
56
- */
57
- constraints?: Array<string>;
58
- /**
59
- * A map of labels for making scheduling or routing decisions
60
- * @type {{ [key: string]: string; }}
61
- * @memberof FunctionDefinition
62
- */
63
- labels?: {
64
- [key: string]: string;
65
- };
66
- /**
67
- * A map of annotations for management, orchestration, events and build tasks
68
- * @type {{ [key: string]: string; }}
69
- * @memberof FunctionDefinition
70
- */
71
- annotations?: {
72
- [key: string]: string;
73
- };
74
- /**
75
- *
76
- * @type {Array<string>}
77
- * @memberof FunctionDefinition
78
- */
79
- secrets?: Array<string>;
80
- /**
81
- * Private registry base64-encoded basic auth (as present in ~/.docker/config.json)
82
- * @type {string}
83
- * @memberof FunctionDefinition
84
- */
85
- registryAuth?: string;
86
- /**
87
- *
88
- * @type {FunctionDefinitionLimits}
89
- * @memberof FunctionDefinition
90
- */
91
- limits?: FunctionDefinitionLimits;
92
- /**
93
- *
94
- * @type {FunctionDefinitionLimits}
95
- * @memberof FunctionDefinition
96
- */
97
- requests?: FunctionDefinitionLimits;
98
- /**
99
- * Make the root filesystem of the function read-only
100
- * @type {boolean}
101
- * @memberof FunctionDefinition
102
- */
103
- readOnlyRootFilesystem?: boolean;
104
- }
105
- /**
106
- *
107
- * @export
108
- * @interface FunctionDefinitionLimits
109
- */
110
- export interface FunctionDefinitionLimits {
111
- /**
112
- *
113
- * @type {string}
114
- * @memberof FunctionDefinitionLimits
115
- */
116
- memory?: string;
117
- /**
118
- *
119
- * @type {string}
120
- * @memberof FunctionDefinitionLimits
121
- */
122
- cpu?: string;
123
- }
124
- /**
125
- *
126
- * @export
127
- * @interface FunctionListEntry
128
- */
129
- export interface FunctionListEntry {
130
- /**
131
- * The name of the function
132
- * @type {string}
133
- * @memberof FunctionListEntry
134
- */
135
- name: string;
136
- /**
137
- * The fully qualified docker image name of the function
138
- * @type {string}
139
- * @memberof FunctionListEntry
140
- */
141
- image: string;
142
- /**
143
- * The amount of invocations for the specified function
144
- * @type {number}
145
- * @memberof FunctionListEntry
146
- */
147
- invocationCount: number;
148
- /**
149
- * The current minimal ammount of replicas
150
- * @type {number}
151
- * @memberof FunctionListEntry
152
- */
153
- replicas: number;
154
- /**
155
- * The current available amount of replicas
156
- * @type {number}
157
- * @memberof FunctionListEntry
158
- */
159
- availableReplicas: number;
160
- /**
161
- * Process for watchdog to fork
162
- * @type {string}
163
- * @memberof FunctionListEntry
164
- */
165
- envProcess: string;
166
- /**
167
- * A map of labels for making scheduling or routing decisions
168
- * @type {{ [key: string]: string; }}
169
- * @memberof FunctionListEntry
170
- */
171
- labels: {
172
- [key: string]: string;
173
- };
174
- /**
175
- * A map of annotations for management, orchestration, events and build tasks
176
- * @type {{ [key: string]: string; }}
177
- * @memberof FunctionListEntry
178
- */
179
- annotations?: {
180
- [key: string]: string;
181
- };
182
- }
183
- /**
184
- *
185
- * @export
186
- * @interface Info
187
- */
188
- export interface Info {
189
- /**
190
- *
191
- * @type {InfoProvider}
192
- * @memberof Info
193
- */
194
- provider: InfoProvider;
195
- /**
196
- *
197
- * @type {InfoVersion}
198
- * @memberof Info
199
- */
200
- version: InfoVersion;
201
- /**
202
- * Platform architecture
203
- * @type {string}
204
- * @memberof Info
205
- */
206
- arch?: string;
207
- }
208
- /**
209
- * The OpenFaaS Provider
210
- * @export
211
- * @interface InfoProvider
212
- */
213
- export interface InfoProvider {
214
- /**
215
- *
216
- * @type {string}
217
- * @memberof InfoProvider
218
- */
219
- provider?: string;
220
- /**
221
- *
222
- * @type {string}
223
- * @memberof InfoProvider
224
- */
225
- orchestration?: string;
226
- /**
227
- *
228
- * @type {InfoProviderVersion}
229
- * @memberof InfoProvider
230
- */
231
- version?: InfoProviderVersion;
232
- }
233
- /**
234
- * Version of the OpenFaaS Provider
235
- * @export
236
- * @interface InfoProviderVersion
237
- */
238
- export interface InfoProviderVersion {
239
- /**
240
- *
241
- * @type {string}
242
- * @memberof InfoProviderVersion
243
- */
244
- commitMessage?: string;
245
- /**
246
- *
247
- * @type {string}
248
- * @memberof InfoProviderVersion
249
- */
250
- sha?: string;
251
- /**
252
- *
253
- * @type {string}
254
- * @memberof InfoProviderVersion
255
- */
256
- release?: string;
257
- }
258
- /**
259
- * Version of the Gateway
260
- * @export
261
- * @interface InfoVersion
262
- */
263
- export interface InfoVersion {
264
- /**
265
- *
266
- * @type {string}
267
- * @memberof InfoVersion
268
- */
269
- commitMessage?: string;
270
- /**
271
- *
272
- * @type {string}
273
- * @memberof InfoVersion
274
- */
275
- sha?: string;
276
- /**
277
- *
278
- * @type {string}
279
- * @memberof InfoVersion
280
- */
281
- release?: string;
282
- }
283
- /**
284
- *
285
- * @export
286
- * @interface LogEntry
287
- */
288
- export interface LogEntry {
289
- /**
290
- * the function name
291
- * @type {string}
292
- * @memberof LogEntry
293
- */
294
- name?: string;
295
- /**
296
- * the name/id of the specific function instance
297
- * @type {string}
298
- * @memberof LogEntry
299
- */
300
- instance?: string;
301
- /**
302
- * the timestamp of when the log message was recorded
303
- * @type {Date}
304
- * @memberof LogEntry
305
- */
306
- timestamp?: Date;
307
- /**
308
- * raw log message content
309
- * @type {string}
310
- * @memberof LogEntry
311
- */
312
- text?: string;
313
- }
314
- /**
315
- *
316
- * @export
317
- * @interface Secret
318
- */
319
- export interface Secret {
320
- /**
321
- * Name of secret
322
- * @type {string}
323
- * @memberof Secret
324
- */
325
- name: string;
326
- /**
327
- * Value of secret in plain-text
328
- * @type {string}
329
- * @memberof Secret
330
- */
331
- value?: string;
332
- }
333
- /**
334
- *
335
- * @export
336
- * @interface SecretName
337
- */
338
- export interface SecretName {
339
- /**
340
- * Name of secret
341
- * @type {string}
342
- * @memberof SecretName
343
- */
344
- name?: string;
345
- }
346
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/daemon/faas/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC;;;;OAIG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACxC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACnB;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- *
4
- * @export
5
- * @interface DeleteFunctionRequest
6
- */
7
- //
8
- // Copyright 2023 DXOS.org
9
- //
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- //# sourceMappingURL=api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/daemon/faas/api.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
@@ -1,46 +0,0 @@
1
- import { ClientServicesProvider } from '@dxos/client';
2
- import { Runtime } from '@dxos/protocols/proto/dxos/config';
3
- export type Trigger = {
4
- id: string;
5
- spaceKey: string;
6
- function: {
7
- /**
8
- * Name of deployed function to invoke.
9
- */
10
- name: string;
11
- };
12
- subscription: {
13
- /**
14
- * Object types.
15
- */
16
- type?: string;
17
- /**
18
- * Properties to match.
19
- */
20
- props?: Record<string, any>;
21
- /**
22
- * List of paths for referenced objects to include.
23
- */
24
- nested?: string[];
25
- };
26
- };
27
- export declare class FaasConnector {
28
- private readonly _faasConfig;
29
- private readonly _clientServices;
30
- private readonly _ctx;
31
- private readonly _remountTask;
32
- private readonly _mountedTriggers;
33
- private readonly _client;
34
- constructor(_faasConfig: Runtime.Services.Faasd, _clientServices: ClientServicesProvider);
35
- open(): Promise<void>;
36
- close(): Promise<void>;
37
- private _watchTriggers;
38
- private _getTriggers;
39
- private _unmountTriggers;
40
- private _remountTriggers;
41
- private _mountTrigger;
42
- private _dispatch;
43
- private _invokeFunction;
44
- private _getFunctions;
45
- }
46
- //# sourceMappingURL=connector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/daemon/faas/connector.ts"],"names":[],"mappings":"AAKA,OAAO,EAAU,sBAAsB,EAAqB,MAAM,cAAc,CAAC;AAKjF,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAI5D,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE;QACR;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAEF,YAAY,EAAE;QACZ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAE5B;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH,CAAC;AAiBF,qBAAa,aAAa;IAYtB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAZlC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;IAEtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAE1B;IAEH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IAEzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAGd,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,EACnC,eAAe,EAAE,sBAAsB;IAKpD,IAAI;IAOJ,KAAK;YAMG,cAAc;YA4Cd,YAAY;YAgBZ,gBAAgB;YAShB,gBAAgB;YAchB,aAAa;YA0Db,SAAS;YAsBT,eAAe;YAiBf,aAAa;CAa5B"}