@milaboratories/pl-deployments 2.4.7 → 2.4.9

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 (98) hide show
  1. package/dist/common/os_and_arch.cjs +39 -0
  2. package/dist/common/os_and_arch.cjs.map +1 -0
  3. package/dist/common/os_and_arch.d.ts +0 -1
  4. package/dist/common/os_and_arch.js +34 -0
  5. package/dist/common/os_and_arch.js.map +1 -0
  6. package/dist/common/pl_binary.cjs +34 -0
  7. package/dist/common/pl_binary.cjs.map +1 -0
  8. package/dist/common/pl_binary.d.ts +0 -1
  9. package/dist/common/pl_binary.js +30 -0
  10. package/dist/common/pl_binary.js.map +1 -0
  11. package/dist/common/pl_binary_download.cjs +172 -0
  12. package/dist/common/pl_binary_download.cjs.map +1 -0
  13. package/dist/common/pl_binary_download.d.ts +0 -1
  14. package/dist/common/pl_binary_download.js +148 -0
  15. package/dist/common/pl_binary_download.js.map +1 -0
  16. package/dist/common/pl_version.cjs +11 -0
  17. package/dist/common/pl_version.cjs.map +1 -0
  18. package/dist/common/pl_version.d.ts +0 -1
  19. package/dist/common/pl_version.js +9 -0
  20. package/dist/common/pl_version.js.map +1 -0
  21. package/dist/index.cjs +26 -0
  22. package/dist/index.cjs.map +1 -0
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.js +5 -64
  25. package/dist/index.js.map +1 -1
  26. package/dist/local/options.d.ts +0 -1
  27. package/dist/local/pid.cjs +24 -0
  28. package/dist/local/pid.cjs.map +1 -0
  29. package/dist/local/pid.d.ts +0 -1
  30. package/dist/local/pid.js +20 -0
  31. package/dist/local/pid.js.map +1 -0
  32. package/dist/local/pl.cjs +223 -0
  33. package/dist/local/pl.cjs.map +1 -0
  34. package/dist/local/pl.d.ts +0 -1
  35. package/dist/local/pl.js +198 -0
  36. package/dist/local/pl.js.map +1 -0
  37. package/dist/local/process.cjs +77 -0
  38. package/dist/local/process.cjs.map +1 -0
  39. package/dist/local/process.d.ts +1 -2
  40. package/dist/local/process.js +72 -0
  41. package/dist/local/process.js.map +1 -0
  42. package/dist/local/trace.cjs +27 -0
  43. package/dist/local/trace.cjs.map +1 -0
  44. package/dist/local/trace.d.ts +0 -1
  45. package/dist/local/trace.js +23 -0
  46. package/dist/local/trace.js.map +1 -0
  47. package/dist/package.json.cjs +7 -0
  48. package/dist/package.json.cjs.map +1 -0
  49. package/dist/package.json.js +5 -0
  50. package/dist/package.json.js.map +1 -0
  51. package/dist/ssh/__tests__/common-utils.d.ts +0 -1
  52. package/dist/ssh/connection_info.cjs +62 -0
  53. package/dist/ssh/connection_info.cjs.map +1 -0
  54. package/dist/ssh/connection_info.d.ts +0 -1
  55. package/dist/ssh/connection_info.js +55 -0
  56. package/dist/ssh/connection_info.js.map +1 -0
  57. package/dist/ssh/pl.cjs +500 -0
  58. package/dist/ssh/pl.cjs.map +1 -0
  59. package/dist/ssh/pl.d.ts +0 -1
  60. package/dist/ssh/pl.js +497 -0
  61. package/dist/ssh/pl.js.map +1 -0
  62. package/dist/ssh/pl_paths.cjs +67 -0
  63. package/dist/ssh/pl_paths.cjs.map +1 -0
  64. package/dist/ssh/pl_paths.d.ts +0 -1
  65. package/dist/ssh/pl_paths.js +50 -0
  66. package/dist/ssh/pl_paths.js.map +1 -0
  67. package/dist/ssh/ssh.cjs +621 -0
  68. package/dist/ssh/ssh.cjs.map +1 -0
  69. package/dist/ssh/ssh.d.ts +0 -1
  70. package/dist/ssh/ssh.js +619 -0
  71. package/dist/ssh/ssh.js.map +1 -0
  72. package/dist/ssh/supervisord.cjs +149 -0
  73. package/dist/ssh/supervisord.cjs.map +1 -0
  74. package/dist/ssh/supervisord.d.ts +0 -1
  75. package/dist/ssh/supervisord.js +140 -0
  76. package/dist/ssh/supervisord.js.map +1 -0
  77. package/package.json +16 -14
  78. package/src/common/pl_version.ts +3 -2
  79. package/src/local/pl.ts +6 -1
  80. package/src/local/process.ts +40 -3
  81. package/dist/common/os_and_arch.d.ts.map +0 -1
  82. package/dist/common/pl_binary.d.ts.map +0 -1
  83. package/dist/common/pl_binary_download.d.ts.map +0 -1
  84. package/dist/common/pl_version.d.ts.map +0 -1
  85. package/dist/index.d.ts.map +0 -1
  86. package/dist/index.mjs +0 -1366
  87. package/dist/index.mjs.map +0 -1
  88. package/dist/local/options.d.ts.map +0 -1
  89. package/dist/local/pid.d.ts.map +0 -1
  90. package/dist/local/pl.d.ts.map +0 -1
  91. package/dist/local/process.d.ts.map +0 -1
  92. package/dist/local/trace.d.ts.map +0 -1
  93. package/dist/ssh/__tests__/common-utils.d.ts.map +0 -1
  94. package/dist/ssh/connection_info.d.ts.map +0 -1
  95. package/dist/ssh/pl.d.ts.map +0 -1
  96. package/dist/ssh/pl_paths.d.ts.map +0 -1
  97. package/dist/ssh/ssh.d.ts.map +0 -1
  98. package/dist/ssh/supervisord.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pl_paths.cjs","sources":["../../src/ssh/pl_paths.ts"],"sourcesContent":["/** Just a lot of hardcoded paths of our current ssh deployment. */\n\nimport upath from 'upath';\nimport { newArch } from '../common/os_and_arch';\nimport { getDefaultPlVersion } from '../common/pl_version';\n\nexport const minioDirName = 'minio-2024-12-18T13-15-44Z';\nexport const supervisordDirName = 'supervisord-0.7.3';\nexport const supervisordSubDirName = 'supervisord_0.7.3_Linux_64-bit';\n\nexport function workDir(remoteHome: string) {\n return upath.join(remoteHome, '.platforma_ssh');\n}\n\nexport function binariesDir(remoteHome: string) {\n return upath.join(workDir(remoteHome), 'binaries');\n}\n\nexport function platformaBaseDir(remoteHome: string, arch: string) {\n return upath.join(binariesDir(remoteHome), `pl-${getDefaultPlVersion()}-${newArch(arch)}`);\n}\n\nexport function platformaDir(remoteHome: string, arch: string) {\n return upath.join(platformaBaseDir(remoteHome, arch), 'binaries');\n}\n\nexport function platformaBin(remoteHome: string, arch: string): string {\n return upath.join(platformaDir(remoteHome, arch), 'platforma');\n}\n\nexport function platformaConf(remoteHome: string): string {\n return upath.join(workDir(remoteHome), 'config.yaml');\n}\n\nexport function platformaFreePortBin(remoteHome: string, arch: string): string {\n return upath.join(platformaDir(remoteHome, arch), 'free-port');\n}\n\nexport function minioDir(remoteHome: string, arch: string) {\n return upath.join(binariesDir(remoteHome), `minio-2024-12-18T13-15-44Z-${newArch(arch)}`);\n}\n\nexport function minioBin(remoteHome: string, arch: string) {\n return upath.join(minioDir(remoteHome, arch), 'minio');\n}\n\nexport function supervisorBinDir(remoteHome: string, arch: string) {\n return upath.join(binariesDir(remoteHome), `supervisord-0.7.3-${newArch(arch)}`, supervisordSubDirName);\n}\n\nexport function supervisorBin(remoteHome: string, arch: string): string {\n return upath.join(supervisorBinDir(remoteHome, arch), 'supervisord');\n}\n\nexport function supervisorConf(remoteHome: string) {\n return upath.join(workDir(remoteHome), 'supervisor.conf');\n}\n\nexport function connectionInfo(remoteHome: string) {\n return upath.join(workDir(remoteHome), `connection.txt`);\n}\n\nexport function platformaCliLogs(remoteHome: string) {\n return upath.join(workDir(remoteHome), 'platforma_cli_logs.log');\n}\n"],"names":["getDefaultPlVersion","newArch"],"mappings":";;;;;;AAAA;AAMO,MAAM,YAAY,GAAG;AACrB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,qBAAqB,GAAG;AAE/B,SAAU,OAAO,CAAC,UAAkB,EAAA;IACxC,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC;AACjD;AAEM,SAAU,WAAW,CAAC,UAAkB,EAAA;IAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;AACpD;AAEM,SAAU,gBAAgB,CAAC,UAAkB,EAAE,IAAY,EAAA;AAC/D,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,MAAMA,8BAAmB,EAAE,IAAIC,mBAAO,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;AAC5F;AAEM,SAAU,YAAY,CAA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AC,UAAU,CAAC,EAAE,iBAAiB,CAAC;AAC3D;AAEM,SAAU,cAAc,CAAC,UAAkB,EAAA;IAC/C,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAA,cAAA,CAAgB,CAAC;AAC1D;AAEM,SAAU,gBAAgB,CAAC,UAAkB,EAAA;IACjD,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,wBAAwB,CAAC;AAClE;;;;;;;;;;;;;;;;;;;"}
@@ -16,4 +16,3 @@ export declare function supervisorBin(remoteHome: string, arch: string): string;
16
16
  export declare function supervisorConf(remoteHome: string): string;
17
17
  export declare function connectionInfo(remoteHome: string): string;
18
18
  export declare function platformaCliLogs(remoteHome: string): string;
19
- //# sourceMappingURL=pl_paths.d.ts.map
@@ -0,0 +1,50 @@
1
+ import upath from 'upath';
2
+ import { newArch } from '../common/os_and_arch.js';
3
+ import { getDefaultPlVersion } from '../common/pl_version.js';
4
+
5
+ /** Just a lot of hardcoded paths of our current ssh deployment. */
6
+ const minioDirName = 'minio-2024-12-18T13-15-44Z';
7
+ const supervisordDirName = 'supervisord-0.7.3';
8
+ const supervisordSubDirName = 'supervisord_0.7.3_Linux_64-bit';
9
+ function workDir(remoteHome) {
10
+ return upath.join(remoteHome, '.platforma_ssh');
11
+ }
12
+ function binariesDir(remoteHome) {
13
+ return upath.join(workDir(remoteHome), 'binaries');
14
+ }
15
+ function platformaBaseDir(remoteHome, arch) {
16
+ return upath.join(binariesDir(remoteHome), `pl-${getDefaultPlVersion()}-${newArch(arch)}`);
17
+ }
18
+ function platformaDir(remoteHome, arch) {
19
+ return upath.join(platformaBaseDir(remoteHome, arch), 'binaries');
20
+ }
21
+ function platformaBin(remoteHome, arch) {
22
+ return upath.join(platformaDir(remoteHome, arch), 'platforma');
23
+ }
24
+ function platformaFreePortBin(remoteHome, arch) {
25
+ return upath.join(platformaDir(remoteHome, arch), 'free-port');
26
+ }
27
+ function minioDir(remoteHome, arch) {
28
+ return upath.join(binariesDir(remoteHome), `minio-2024-12-18T13-15-44Z-${newArch(arch)}`);
29
+ }
30
+ function minioBin(remoteHome, arch) {
31
+ return upath.join(minioDir(remoteHome, arch), 'minio');
32
+ }
33
+ function supervisorBinDir(remoteHome, arch) {
34
+ return upath.join(binariesDir(remoteHome), `supervisord-0.7.3-${newArch(arch)}`, supervisordSubDirName);
35
+ }
36
+ function supervisorBin(remoteHome, arch) {
37
+ return upath.join(supervisorBinDir(remoteHome, arch), 'supervisord');
38
+ }
39
+ function supervisorConf(remoteHome) {
40
+ return upath.join(workDir(remoteHome), 'supervisor.conf');
41
+ }
42
+ function connectionInfo(remoteHome) {
43
+ return upath.join(workDir(remoteHome), `connection.txt`);
44
+ }
45
+ function platformaCliLogs(remoteHome) {
46
+ return upath.join(workDir(remoteHome), 'platforma_cli_logs.log');
47
+ }
48
+
49
+ export { binariesDir, connectionInfo, minioBin, minioDir, minioDirName, platformaBaseDir, platformaBin, platformaCliLogs, platformaDir, platformaFreePortBin, supervisorBin, supervisorBinDir, supervisorConf, supervisordDirName, supervisordSubDirName, workDir };
50
+ //# sourceMappingURL=pl_paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pl_paths.js","sources":["../../src/ssh/pl_paths.ts"],"sourcesContent":["/** Just a lot of hardcoded paths of our current ssh deployment. */\n\nimport upath from 'upath';\nimport { newArch } from '../common/os_and_arch';\nimport { getDefaultPlVersion } from '../common/pl_version';\n\nexport const minioDirName = 'minio-2024-12-18T13-15-44Z';\nexport const supervisordDirName = 'supervisord-0.7.3';\nexport const supervisordSubDirName = 'supervisord_0.7.3_Linux_64-bit';\n\nexport function workDir(remoteHome: string) {\n return upath.join(remoteHome, '.platforma_ssh');\n}\n\nexport function binariesDir(remoteHome: string) {\n return upath.join(workDir(remoteHome), 'binaries');\n}\n\nexport function platformaBaseDir(remoteHome: string, arch: string) {\n return upath.join(binariesDir(remoteHome), `pl-${getDefaultPlVersion()}-${newArch(arch)}`);\n}\n\nexport function platformaDir(remoteHome: string, arch: string) {\n return upath.join(platformaBaseDir(remoteHome, arch), 'binaries');\n}\n\nexport function platformaBin(remoteHome: string, arch: string): string {\n return upath.join(platformaDir(remoteHome, arch), 'platforma');\n}\n\nexport function platformaConf(remoteHome: string): string {\n return upath.join(workDir(remoteHome), 'config.yaml');\n}\n\nexport function platformaFreePortBin(remoteHome: string, arch: string): string {\n return upath.join(platformaDir(remoteHome, arch), 'free-port');\n}\n\nexport function minioDir(remoteHome: string, arch: string) {\n return upath.join(binariesDir(remoteHome), `minio-2024-12-18T13-15-44Z-${newArch(arch)}`);\n}\n\nexport function minioBin(remoteHome: string, arch: string) {\n return upath.join(minioDir(remoteHome, arch), 'minio');\n}\n\nexport function supervisorBinDir(remoteHome: string, arch: string) {\n return upath.join(binariesDir(remoteHome), `supervisord-0.7.3-${newArch(arch)}`, supervisordSubDirName);\n}\n\nexport function supervisorBin(remoteHome: string, arch: string): string {\n return upath.join(supervisorBinDir(remoteHome, arch), 'supervisord');\n}\n\nexport function supervisorConf(remoteHome: string) {\n return upath.join(workDir(remoteHome), 'supervisor.conf');\n}\n\nexport function connectionInfo(remoteHome: string) {\n return upath.join(workDir(remoteHome), `connection.txt`);\n}\n\nexport function platformaCliLogs(remoteHome: string) {\n return upath.join(workDir(remoteHome), 'platforma_cli_logs.log');\n}\n"],"names":[],"mappings":";;;;AAAA;AAMO,MAAM,YAAY,GAAG;AACrB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,qBAAqB,GAAG;AAE/B,SAAU,OAAO,CAAC,UAAkB,EAAA;IACxC,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC;AACjD;AAEM,SAAU,WAAW,CAAC,UAAkB,EAAA;IAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;AACpD;AAEM,SAAU,gBAAgB,CAAC,UAAkB,EAAE,IAAY,EAAA;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