@milaboratories/pl-deployments 2.15.17 → 2.15.18

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 (104) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/common/os_and_arch.cjs +22 -28
  3. package/dist/common/os_and_arch.cjs.map +1 -1
  4. package/dist/common/os_and_arch.js +23 -26
  5. package/dist/common/os_and_arch.js.map +1 -1
  6. package/dist/common/pl_binary.cjs +35 -33
  7. package/dist/common/pl_binary.cjs.map +1 -1
  8. package/dist/common/pl_binary.d.ts +13 -18
  9. package/dist/common/pl_binary.js +33 -31
  10. package/dist/common/pl_binary.js.map +1 -1
  11. package/dist/common/pl_binary_download.cjs +143 -155
  12. package/dist/common/pl_binary_download.cjs.map +1 -1
  13. package/dist/common/pl_binary_download.d.ts +15 -48
  14. package/dist/common/pl_binary_download.js +138 -133
  15. package/dist/common/pl_binary_download.js.map +1 -1
  16. package/dist/common/pl_version.cjs +5 -6
  17. package/dist/common/pl_version.cjs.map +1 -1
  18. package/dist/common/pl_version.d.ts +4 -1
  19. package/dist/common/pl_version.js +5 -4
  20. package/dist/common/pl_version.js.map +1 -1
  21. package/dist/index.cjs +21 -25
  22. package/dist/index.d.ts +6 -6
  23. package/dist/index.js +7 -6
  24. package/dist/local/pid.cjs +14 -13
  25. package/dist/local/pid.cjs.map +1 -1
  26. package/dist/local/pid.js +11 -11
  27. package/dist/local/pid.js.map +1 -1
  28. package/dist/local/pl.cjs +194 -223
  29. package/dist/local/pl.cjs.map +1 -1
  30. package/dist/local/pl.d.ts +65 -65
  31. package/dist/local/pl.js +190 -202
  32. package/dist/local/pl.js.map +1 -1
  33. package/dist/local/process.cjs +37 -59
  34. package/dist/local/process.cjs.map +1 -1
  35. package/dist/local/process.d.ts +10 -10
  36. package/dist/local/process.js +36 -57
  37. package/dist/local/process.js.map +1 -1
  38. package/dist/local/trace.cjs +14 -17
  39. package/dist/local/trace.cjs.map +1 -1
  40. package/dist/local/trace.d.ts +6 -7
  41. package/dist/local/trace.js +15 -15
  42. package/dist/local/trace.js.map +1 -1
  43. package/dist/package.cjs +12 -0
  44. package/dist/package.cjs.map +1 -0
  45. package/dist/package.js +6 -0
  46. package/dist/package.js.map +1 -0
  47. package/dist/ssh/connection_info.cjs +36 -53
  48. package/dist/ssh/connection_info.cjs.map +1 -1
  49. package/dist/ssh/connection_info.d.ts +691 -713
  50. package/dist/ssh/connection_info.js +35 -51
  51. package/dist/ssh/connection_info.js.map +1 -1
  52. package/dist/ssh/pl.cjs +551 -638
  53. package/dist/ssh/pl.cjs.map +1 -1
  54. package/dist/ssh/pl.d.ts +120 -117
  55. package/dist/ssh/pl.js +548 -636
  56. package/dist/ssh/pl.js.map +1 -1
  57. package/dist/ssh/pl_paths.cjs +22 -24
  58. package/dist/ssh/pl_paths.cjs.map +1 -1
  59. package/dist/ssh/pl_paths.js +21 -19
  60. package/dist/ssh/pl_paths.js.map +1 -1
  61. package/dist/ssh/ssh.cjs +554 -618
  62. package/dist/ssh/ssh.cjs.map +1 -1
  63. package/dist/ssh/ssh.d.ts +139 -136
  64. package/dist/ssh/ssh.js +548 -616
  65. package/dist/ssh/ssh.js.map +1 -1
  66. package/dist/ssh/ssh_errors.cjs +45 -60
  67. package/dist/ssh/ssh_errors.cjs.map +1 -1
  68. package/dist/ssh/ssh_errors.js +45 -58
  69. package/dist/ssh/ssh_errors.js.map +1 -1
  70. package/dist/ssh/supervisord.cjs +50 -68
  71. package/dist/ssh/supervisord.cjs.map +1 -1
  72. package/dist/ssh/supervisord.d.ts +11 -21
  73. package/dist/ssh/supervisord.js +50 -66
  74. package/dist/ssh/supervisord.js.map +1 -1
  75. package/package.json +9 -9
  76. package/dist/common/os_and_arch.d.ts +0 -9
  77. package/dist/common/os_and_arch.d.ts.map +0 -1
  78. package/dist/common/pl_binary.d.ts.map +0 -1
  79. package/dist/common/pl_binary_download.d.ts.map +0 -1
  80. package/dist/common/pl_version.d.ts.map +0 -1
  81. package/dist/index.cjs.map +0 -1
  82. package/dist/index.d.ts.map +0 -1
  83. package/dist/index.js.map +0 -1
  84. package/dist/local/options.d.ts +0 -31
  85. package/dist/local/options.d.ts.map +0 -1
  86. package/dist/local/pid.d.ts +0 -4
  87. package/dist/local/pid.d.ts.map +0 -1
  88. package/dist/local/pl.d.ts.map +0 -1
  89. package/dist/local/process.d.ts.map +0 -1
  90. package/dist/local/trace.d.ts.map +0 -1
  91. package/dist/package.json.cjs +0 -8
  92. package/dist/package.json.cjs.map +0 -1
  93. package/dist/package.json.js +0 -6
  94. package/dist/package.json.js.map +0 -1
  95. package/dist/ssh/__tests__/common-utils.d.ts +0 -12
  96. package/dist/ssh/__tests__/common-utils.d.ts.map +0 -1
  97. package/dist/ssh/connection_info.d.ts.map +0 -1
  98. package/dist/ssh/pl.d.ts.map +0 -1
  99. package/dist/ssh/pl_paths.d.ts +0 -20
  100. package/dist/ssh/pl_paths.d.ts.map +0 -1
  101. package/dist/ssh/ssh.d.ts.map +0 -1
  102. package/dist/ssh/ssh_errors.d.ts +0 -29
  103. package/dist/ssh/ssh_errors.d.ts.map +0 -1
  104. package/dist/ssh/supervisord.d.ts.map +0 -1
@@ -1,68 +1,51 @@
1
- 'use strict';
2
-
3
- var zod = require('zod');
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
+ let zod = require("zod");
4
3
 
4
+ //#region src/ssh/connection_info.ts
5
5
  /** We store all info about the connection on the server,
6
- * so that another client could read the file and connect from another machine. */
7
- //
8
- // Types
9
- //
10
- const PortPair = zod.z
11
- .object({
12
- local: zod.z.number(),
13
- remote: zod.z.number(),
14
- })
15
- .passthrough();
16
- const SshPlPorts = zod.z
17
- .object({
18
- grpc: PortPair,
19
- http: PortPair.optional(),
20
- monitoring: PortPair,
21
- debug: PortPair,
22
- /** @deprecated */
23
- minioPort: PortPair,
24
- /** @deprecated */
25
- minioConsolePort: PortPair,
26
- })
27
- .passthrough();
28
- const ConnectionInfo = zod.z
29
- .object({
30
- plUser: zod.z.string(),
31
- plPassword: zod.z.string(),
32
- ports: SshPlPorts,
33
- // It's false by default because it was added later,
34
- // and in some deployments there won't be useGlobalAccess flag in the file.
35
- useGlobalAccess: zod.z.boolean().default(false),
36
- // We added the field afterwards, the pl backend was this version.
37
- plVersion: zod.z.string().default("1.18.3"),
38
- // It's true by default because it was added later and previous installation use minio.
39
- minioIsUsed: zod.z.boolean().default(true),
40
- })
41
- .passthrough();
42
- //
43
- // Funcs
44
- //
6
+ * so that another client could read the file and connect from another machine. */
7
+ const PortPair = zod.z.object({
8
+ local: zod.z.number(),
9
+ remote: zod.z.number()
10
+ }).passthrough();
11
+ const SshPlPorts = zod.z.object({
12
+ grpc: PortPair,
13
+ http: PortPair.optional(),
14
+ monitoring: PortPair,
15
+ debug: PortPair,
16
+ minioPort: PortPair,
17
+ minioConsolePort: PortPair
18
+ }).passthrough();
19
+ const ConnectionInfo = zod.z.object({
20
+ plUser: zod.z.string(),
21
+ plPassword: zod.z.string(),
22
+ ports: SshPlPorts,
23
+ useGlobalAccess: zod.z.boolean().default(false),
24
+ plVersion: zod.z.string().default("1.18.3"),
25
+ minioIsUsed: zod.z.boolean().default(true)
26
+ }).passthrough();
45
27
  function newConnectionInfo(plUser, plPassword, ports, useGlobalAccess, plVersion, minioIsUsed) {
46
- return {
47
- plUser,
48
- plPassword,
49
- ports,
50
- useGlobalAccess,
51
- plVersion,
52
- minioIsUsed: minioIsUsed,
53
- };
28
+ return {
29
+ plUser,
30
+ plPassword,
31
+ ports,
32
+ useGlobalAccess,
33
+ plVersion,
34
+ minioIsUsed
35
+ };
54
36
  }
55
37
  function parseConnectionInfo(content) {
56
- return ConnectionInfo.parse(JSON.parse(content));
38
+ return ConnectionInfo.parse(JSON.parse(content));
57
39
  }
58
40
  function stringifyConnectionInfo(conn) {
59
- return JSON.stringify(conn, undefined, 2);
41
+ return JSON.stringify(conn, void 0, 2);
60
42
  }
61
43
 
44
+ //#endregion
62
45
  exports.ConnectionInfo = ConnectionInfo;
63
46
  exports.PortPair = PortPair;
64
47
  exports.SshPlPorts = SshPlPorts;
65
48
  exports.newConnectionInfo = newConnectionInfo;
66
49
  exports.parseConnectionInfo = parseConnectionInfo;
67
50
  exports.stringifyConnectionInfo = stringifyConnectionInfo;
68
- //# sourceMappingURL=connection_info.cjs.map
51
+ //# sourceMappingURL=connection_info.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection_info.cjs","sources":["../../src/ssh/connection_info.ts"],"sourcesContent":["/** We store all info about the connection on the server,\n * so that another client could read the file and connect from another machine. */\nimport { z } from \"zod\";\n\n//\n// Types\n//\n\nexport const PortPair = z\n .object({\n local: z.number(),\n remote: z.number(),\n })\n .passthrough();\n/** The pair of ports for forwarding. */\nexport type PortPair = z.infer<typeof PortPair>;\n\nexport const SshPlPorts = z\n .object({\n grpc: PortPair,\n http: PortPair.optional(),\n monitoring: PortPair,\n debug: PortPair,\n /** @deprecated */\n minioPort: PortPair,\n /** @deprecated */\n minioConsolePort: PortPair,\n })\n .passthrough();\n/** All info about ports that are forwarded. */\nexport type SshPlPorts = z.infer<typeof SshPlPorts>;\n\nexport const ConnectionInfo = z\n .object({\n plUser: z.string(),\n plPassword: z.string(),\n ports: SshPlPorts,\n\n // It's false by default because it was added later,\n // and in some deployments there won't be useGlobalAccess flag in the file.\n useGlobalAccess: z.boolean().default(false),\n\n // We added the field afterwards, the pl backend was this version.\n plVersion: z.string().default(\"1.18.3\"),\n\n // It's true by default because it was added later and previous installation use minio.\n minioIsUsed: z.boolean().default(true),\n })\n .passthrough();\n/** The content of the file that holds all the info about the connection on the remote server. */\nexport type ConnectionInfo = z.infer<typeof ConnectionInfo>;\n\n//\n// Funcs\n//\n\nexport function newConnectionInfo(\n plUser: string,\n plPassword: string,\n ports: SshPlPorts,\n useGlobalAccess: boolean,\n plVersion: string,\n minioIsUsed: boolean,\n): ConnectionInfo {\n return {\n plUser,\n plPassword,\n ports,\n useGlobalAccess,\n plVersion,\n minioIsUsed: minioIsUsed,\n };\n}\n\nexport function parseConnectionInfo(content: string): ConnectionInfo {\n return ConnectionInfo.parse(JSON.parse(content));\n}\n\nexport function stringifyConnectionInfo(conn: ConnectionInfo): string {\n return JSON.stringify(conn, undefined, 2);\n}\n"],"names":["z"],"mappings":";;;;AAAA;AACkF;AAGlF;AACA;AACA;AAEO,MAAM,QAAQ,GAAGA;AACrB,KAAA,MAAM,CAAC;AACN,IAAA,KAAK,EAAEA,KAAC,CAAC,MAAM,EAAE;AACjB,IAAA,MAAM,EAAEA,KAAC,CAAC,MAAM,EAAE;CACnB;AACA,KAAA,WAAW;AAIP,MAAM,UAAU,GAAGA;AACvB,KAAA,MAAM,CAAC;AACN,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE;AACzB,IAAA,UAAU,EAAE,QAAQ;AACpB,IAAA,KAAK,EAAE,QAAQ;;AAEf,IAAA,SAAS,EAAE,QAAQ;;AAEnB,IAAA,gBAAgB,EAAE,QAAQ;CAC3B;AACA,KAAA,WAAW;AAIP,MAAM,cAAc,GAAGA;AAC3B,KAAA,MAAM,CAAC;AACN,IAAA,MAAM,EAAEA,KAAC,CAAC,MAAM,EAAE;AAClB,IAAA,UAAU,EAAEA,KAAC,CAAC,MAAM,EAAE;AACtB,IAAA,KAAK,EAAE,UAAU;;;IAIjB,eAAe,EAAEA,KAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;;IAG3C,SAAS,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;IAGvC,WAAW,EAAEA,KAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACvC;AACA,KAAA,WAAW;AAId;AACA;AACA;AAEM,SAAU,iBAAiB,CAC/B,MAAc,EACd,UAAkB,EAClB,KAAiB,EACjB,eAAwB,EACxB,SAAiB,EACjB,WAAoB,EAAA;IAEpB,OAAO;QACL,MAAM;QACN,UAAU;QACV,KAAK;QACL,eAAe;QACf,SAAS;AACT,QAAA,WAAW,EAAE,WAAW;KACzB;AACH;AAEM,SAAU,mBAAmB,CAAC,OAAe,EAAA;IACjD,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAClD;AAEM,SAAU,uBAAuB,CAAC,IAAoB,EAAA;IAC1D,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;AAC3C;;;;;;;;;"}
1
+ {"version":3,"file":"connection_info.cjs","names":["z"],"sources":["../../src/ssh/connection_info.ts"],"sourcesContent":["/** We store all info about the connection on the server,\n * so that another client could read the file and connect from another machine. */\nimport { z } from \"zod\";\n\n//\n// Types\n//\n\nexport const PortPair = z\n .object({\n local: z.number(),\n remote: z.number(),\n })\n .passthrough();\n/** The pair of ports for forwarding. */\nexport type PortPair = z.infer<typeof PortPair>;\n\nexport const SshPlPorts = z\n .object({\n grpc: PortPair,\n http: PortPair.optional(),\n monitoring: PortPair,\n debug: PortPair,\n /** @deprecated */\n minioPort: PortPair,\n /** @deprecated */\n minioConsolePort: PortPair,\n })\n .passthrough();\n/** All info about ports that are forwarded. */\nexport type SshPlPorts = z.infer<typeof SshPlPorts>;\n\nexport const ConnectionInfo = z\n .object({\n plUser: z.string(),\n plPassword: z.string(),\n ports: SshPlPorts,\n\n // It's false by default because it was added later,\n // and in some deployments there won't be useGlobalAccess flag in the file.\n useGlobalAccess: z.boolean().default(false),\n\n // We added the field afterwards, the pl backend was this version.\n plVersion: z.string().default(\"1.18.3\"),\n\n // It's true by default because it was added later and previous installation use minio.\n minioIsUsed: z.boolean().default(true),\n })\n .passthrough();\n/** The content of the file that holds all the info about the connection on the remote server. */\nexport type ConnectionInfo = z.infer<typeof ConnectionInfo>;\n\n//\n// Funcs\n//\n\nexport function newConnectionInfo(\n plUser: string,\n plPassword: string,\n ports: SshPlPorts,\n useGlobalAccess: boolean,\n plVersion: string,\n minioIsUsed: boolean,\n): ConnectionInfo {\n return {\n plUser,\n plPassword,\n ports,\n useGlobalAccess,\n plVersion,\n minioIsUsed: minioIsUsed,\n };\n}\n\nexport function parseConnectionInfo(content: string): ConnectionInfo {\n return ConnectionInfo.parse(JSON.parse(content));\n}\n\nexport function stringifyConnectionInfo(conn: ConnectionInfo): string {\n return JSON.stringify(conn, undefined, 2);\n}\n"],"mappings":";;;;;;AAQA,MAAa,WAAWA,MACrB,OAAO;CACN,OAAOA,MAAE,QAAQ;CACjB,QAAQA,MAAE,QAAQ;CACnB,CAAC,CACD,aAAa;AAIhB,MAAa,aAAaA,MACvB,OAAO;CACN,MAAM;CACN,MAAM,SAAS,UAAU;CACzB,YAAY;CACZ,OAAO;CAEP,WAAW;CAEX,kBAAkB;CACnB,CAAC,CACD,aAAa;AAIhB,MAAa,iBAAiBA,MAC3B,OAAO;CACN,QAAQA,MAAE,QAAQ;CAClB,YAAYA,MAAE,QAAQ;CACtB,OAAO;CAIP,iBAAiBA,MAAE,SAAS,CAAC,QAAQ,MAAM;CAG3C,WAAWA,MAAE,QAAQ,CAAC,QAAQ,SAAS;CAGvC,aAAaA,MAAE,SAAS,CAAC,QAAQ,KAAK;CACvC,CAAC,CACD,aAAa;AAQhB,SAAgB,kBACd,QACA,YACA,OACA,iBACA,WACA,aACgB;AAChB,QAAO;EACL;EACA;EACA;EACA;EACA;EACa;EACd;;AAGH,SAAgB,oBAAoB,SAAiC;AACnE,QAAO,eAAe,MAAM,KAAK,MAAM,QAAQ,CAAC;;AAGlD,SAAgB,wBAAwB,MAA8B;AACpE,QAAO,KAAK,UAAU,MAAM,QAAW,EAAE"}