@uipath/flow-tool 1.200.0-preview.120 → 1.201.0-preview.121

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 (152) hide show
  1. package/dist/authoring-rezk32bm.js +312 -0
  2. package/dist/{browser-strategy-d4zm14fb.js → browser-strategy-rkcvc6tn.js} +1 -1
  3. package/dist/{conversion-COFE4RVO-6gembcyk.js → conversion-W6HMHBWW-jnk9z7rw.js} +46 -38
  4. package/dist/{de-JT3SUGT4-msgpbdge.js → de-B2KIY5TC-81f703v3.js} +14 -5
  5. package/dist/{de-3RMZHIP6-1na18a74.js → de-K6MLR24N-00fjz82b.js} +474 -51
  6. package/dist/{de-3RMZHIP6-QW5DEMLQ-fw64syvn.js → de-K6MLR24N-5N5XGLH6-gbwpvdz4.js} +476 -53
  7. package/dist/{de-LVBY3VVG-tc58p3x6.js → de-WMKOGI7B-r1821wpe.js} +16 -7
  8. package/dist/de-XLT4QPIP-0rtw349w.js +32 -0
  9. package/dist/{en-ZBJX4WAU-L7DPQ3FB-4saj6t9b.js → en-ILA4HPE5-ALHGESZE-zrv4qss8.js} +325 -7
  10. package/dist/{en-ZBJX4WAU-5yq8e307.js → en-ILA4HPE5-fhwvq92r.js} +322 -4
  11. package/dist/{en-H54NJOH6-30ht8n64.js → en-P6PNWNTO-g1f6cjh5.js} +10 -4
  12. package/dist/en-UNT7BE26-rhh65jry.js +24 -0
  13. package/dist/{en-4UFXRW7N-mqabr9tf.js → en-X4DLPKLJ-dt1wtdm7.js} +17 -5
  14. package/dist/{es-GJOELELT-w1d3agm2.js → es-BBX4AUJX-h99fcr53.js} +14 -5
  15. package/dist/{es-CI4AE5B5-55sgqk64.js → es-BVPGJUWA-9gk2g9yb.js} +16 -7
  16. package/dist/{es-EYHYM5C4-RMLHZ2LF-s0fc3pd6.js → es-HTQSD352-YTAEDCE5-nhsbg581.js} +470 -47
  17. package/dist/{es-EYHYM5C4-3bajghda.js → es-HTQSD352-m9rr3f0g.js} +468 -45
  18. package/dist/{es-MX-AMZIGU27-5pembt6k.js → es-MX-3SP2SSV6-f20qspbr.js} +14 -5
  19. package/dist/{es-MX-QSQP2KWV-qvgkwvz2.js → es-MX-FOX525CG-87g500gr.js} +474 -51
  20. package/dist/{es-MX-QSQP2KWV-XR5DWKNF-kp7pk2s4.js → es-MX-FOX525CG-HLM27OEL-whr0t9v3.js} +476 -53
  21. package/dist/es-MX-OKNDG2NH-c1k1s1tg.js +32 -0
  22. package/dist/{es-MX-OLZNAYY5-30cmv1dx.js → es-MX-U6YL5KQX-ynwxdjr8.js} +16 -7
  23. package/dist/es-NQICVYSQ-aa9z3nhs.js +32 -0
  24. package/dist/{fr-FXFJQRD3-F5HV2VS7-pwdze89j.js → fr-54THJ4QH-IGABNGU6-fpzw2mba.js} +475 -52
  25. package/dist/{fr-FXFJQRD3-rfztd3e5.js → fr-54THJ4QH-d6ezjbhw.js} +473 -50
  26. package/dist/{fr-CCN6ZO5E-x2akzsjt.js → fr-EKTTDR7Z-bmpwp31r.js} +16 -7
  27. package/dist/{fr-LYFYWWCC-nn4reak0.js → fr-FSTBVVGK-t3y57xrb.js} +14 -5
  28. package/dist/fr-PFHIL7YZ-cxnshwa8.js +32 -0
  29. package/dist/index-6hp3p3eq.js +16489 -0
  30. package/dist/index-9f8q2ege.js +2058 -0
  31. package/dist/index-hsadteg4.js +634 -0
  32. package/dist/{index-w23k88b5.js → index-p50kx6jv.js} +202 -64
  33. package/dist/{index-nfn4t0c4.js → index-q59ephfh.js} +72 -13
  34. package/dist/index.js +22 -16
  35. package/dist/init.js +19 -13
  36. package/dist/{ja-IRXXIG6Q-b3att2bw.js → ja-FW33BJBW-htfk4d8t.js} +14 -5
  37. package/dist/{ja-G7NJYQ42-ve4gadd7.js → ja-MHUPLSWO-3qwy4jc0.js} +470 -47
  38. package/dist/{ja-G7NJYQ42-X76DVL7A-9p8b5115.js → ja-MHUPLSWO-CS3KE4Y3-mbtkzwd7.js} +472 -49
  39. package/dist/ja-P4OSE367-8ywxep9a.js +32 -0
  40. package/dist/{ja-O2NEV5D6-nt9rhd8c.js → ja-Y2YBTXNN-96cvy5av.js} +16 -7
  41. package/dist/js-yaml-cggj6w7q.js +3145 -0
  42. package/dist/{ko-M32WKZ3I-5td5jsw7.js → ko-PDO5AXNW-d653t4pc.js} +14 -5
  43. package/dist/ko-PYOS2KJP-5sbj5bp8.js +32 -0
  44. package/dist/{ko-7XWV2SEQ-chk3y7aj.js → ko-S33XAV26-cxf4dn2t.js} +16 -7
  45. package/dist/{ko-QDHECDTM-6WJAKMQI-0fpd4dqj.js → ko-XPJTXIKK-DNSW4KYQ-956vp61f.js} +469 -46
  46. package/dist/{ko-QDHECDTM-zmbqs9pr.js → ko-XPJTXIKK-w1hs4px7.js} +467 -44
  47. package/dist/{node-8d0q6ch7.js → node-f062h75p.js} +7610 -7319
  48. package/dist/node-strategy-8gzp67xs.js +350 -0
  49. package/dist/{packager-tool-hkrpcn6d.js → packager-tool-03knb0er.js} +341 -23
  50. package/dist/packager-tool-1cb0d5e0.js +237 -0
  51. package/dist/{packager-tool-25z1hdbm.js → packager-tool-1g6958de.js} +21 -8
  52. package/dist/{packager-tool-kgkv7f24.js → packager-tool-1gt6js73.js} +258 -1069
  53. package/dist/{packager-tool-973f0r2g.js → packager-tool-1yy9x4vk.js} +17 -5
  54. package/dist/{packager-tool-jqtspg41.js → packager-tool-3wf3tkrc.js} +11 -5
  55. package/dist/{packager-tool-1ps2qeqg.js → packager-tool-5arsyj36.js} +3 -2
  56. package/dist/packager-tool-6a7wdv5z.js +36187 -0
  57. package/dist/{packager-tool-wm273rrd.js → packager-tool-9x76z587.js} +238 -287
  58. package/dist/packager-tool-b0s5d4ek.js +10671 -0
  59. package/dist/{packager-tool-qz3cg5tg.js → packager-tool-cqrsre00.js} +340 -22
  60. package/dist/{packager-tool-9bnpe8n1.js → packager-tool-ef2aypt3.js} +21691 -16062
  61. package/dist/packager-tool-gbgfwx8f.js +2 -0
  62. package/dist/{packager-tool-3ahtr7dn.js → packager-tool-jeh5j2xy.js} +8768 -3862
  63. package/dist/packager-tool-jpcm3xas.js +12 -0
  64. package/dist/{packager-tool-231njxzf.js → packager-tool-neavt1k3.js} +1 -1
  65. package/dist/packager-tool-nkrmjr3a.js +915 -0
  66. package/dist/packager-tool-ny53xmsd.js +5377 -0
  67. package/dist/{packager-tool-fr5b9qs6.js → packager-tool-pvgqbm48.js} +3 -3
  68. package/dist/packager-tool-qa9gftnj.js +31 -0
  69. package/dist/{packager-tool-2q2qddqr.js → packager-tool-qfp49pq4.js} +994 -544
  70. package/dist/packager-tool-v2p6g3fd.js +41 -0
  71. package/dist/{packager-tool-95ht91a8.js → packager-tool-xa2xwzrq.js} +22347 -38047
  72. package/dist/packager-tool-y3dezh8k.js +21 -0
  73. package/dist/packager-tool.js +12 -10
  74. package/dist/{pt-VXJT4WUJ-nwkc9k2p.js → pt-4JEPEAST-40npwxyw.js} +471 -48
  75. package/dist/{pt-VXJT4WUJ-M3IR7CL5-1f2ph8gm.js → pt-4JEPEAST-JO5WN33S-ccdbdab2.js} +473 -50
  76. package/dist/{pt-BR-Z4J3LEEO-cf33d2zv.js → pt-BR-JO45SCNI-4kbfnzc4.js} +16 -7
  77. package/dist/{pt-BR-57EHXZKB-8g83gr5g.js → pt-BR-LQH3RSBB-kyb4jmcw.js} +14 -5
  78. package/dist/{pt-BR-SADBLGXA-WG4Q265J-w9tshygt.js → pt-BR-TV7NR3ID-PDSSHRHU-nddwzj29.js} +472 -49
  79. package/dist/{pt-BR-SADBLGXA-yd89fdy2.js → pt-BR-TV7NR3ID-vgd26pj1.js} +470 -47
  80. package/dist/pt-BR-Z3TUDJHM-n7ngej6s.js +32 -0
  81. package/dist/{pt-VNM2XWHA-62z625rh.js → pt-JLZYSSXX-7jth254x.js} +14 -5
  82. package/dist/pt-KSBWHAVQ-hd52bpsz.js +32 -0
  83. package/dist/{pt-CRSN3TCU-txxbbcxm.js → pt-W3NA4LIZ-f02gapvs.js} +16 -7
  84. package/dist/{ro-RISZ75LL-zwztp9j5.js → ro-E2EBPQGT-vn573vcr.js} +14 -5
  85. package/dist/{ro-7JHKFGCH-H3RYKSCL-4w49rx4m.js → ro-RKJ74FV3-QS3I6XKJ-kb31d85k.js} +475 -52
  86. package/dist/{ro-7JHKFGCH-hbtkeqdr.js → ro-RKJ74FV3-qn0ey39v.js} +473 -50
  87. package/dist/ro-VZUZTAMR-tccygznf.js +32 -0
  88. package/dist/{ro-WMQEVD7D-6mtq0e6b.js → ro-WLKX6HF5-fcbe2zz8.js} +16 -7
  89. package/dist/ru-GSCT4ARZ-3TVTUGWP-bbg6360z.js +15 -0
  90. package/dist/{serialization-3RH6P643-zxj2yyfh.js → serialization-GTFWODSH-ajd6b7n2.js} +14 -10
  91. package/dist/services/flow-migration-check.d.ts +15 -11
  92. package/dist/services/flow-validate-service.d.ts +119 -5
  93. package/dist/services/node-service.d.ts +46 -0
  94. package/dist/services/node-validators/ceql-query-validator.d.ts +36 -10
  95. package/dist/services/node-validators/expression-prefix-validator.d.ts +3 -2
  96. package/dist/services/node-validators/index.d.ts +2 -1
  97. package/dist/services/project-artifacts.d.ts +14 -1
  98. package/dist/tool.js +22 -16
  99. package/dist/{tr-UCMB7W3T-xmxp2naq.js → tr-3U2W2XCA-zg3zcmq3.js} +15 -6
  100. package/dist/tr-W4AVRSQ4-bt3qqqdy.js +32 -0
  101. package/dist/{tr-Q6IHBFK7-BEUWO5CI-29rgfwjy.js → tr-X7R6GQNB-VMEZAWRJ-vdbjqw23.js} +484 -61
  102. package/dist/{tr-Q6IHBFK7-zs9rsm1b.js → tr-X7R6GQNB-shwv16dz.js} +482 -59
  103. package/dist/{tr-AUPQF34V-y3dhtj0w.js → tr-ZUUSMHER-pfn5dq1r.js} +14 -5
  104. package/dist/utils/flow-io.d.ts +1 -1
  105. package/dist/validation.js +19 -13
  106. package/dist/zh-CN-6YRAN57T-j7jp34ws.js +32 -0
  107. package/dist/{zh-CN-3BPA3WIX-JDICNKGH-m87940q5.js → zh-CN-FEZ24J4A-LSEMG63K-db8kf6rm.js} +472 -49
  108. package/dist/{zh-CN-3BPA3WIX-c5ts2m5v.js → zh-CN-FEZ24J4A-q5b5x20w.js} +470 -47
  109. package/dist/{zh-CN-2QOHEFC5-ryjb2byk.js → zh-CN-IPZYQR3P-1h76csc4.js} +16 -7
  110. package/dist/{zh-CN-3INOX2E5-txhr8e18.js → zh-CN-YFKQ7HBX-w98q5zqf.js} +14 -5
  111. package/dist/{zh-TW-UI34YLZQ-j79rg6b7.js → zh-TW-CP5PCVEJ-wvbxf7c7.js} +14 -5
  112. package/dist/{zh-TW-QCJEQC5S-b1v637hd.js → zh-TW-GKSCT6NW-4n1yfre0.js} +464 -41
  113. package/dist/{zh-TW-QCJEQC5S-DQ3454QP-y8vvrebz.js → zh-TW-GKSCT6NW-JLMWTDAF-g2smq1gm.js} +466 -43
  114. package/dist/zh-TW-SO2245GN-m5kh88bg.js +32 -0
  115. package/dist/{zh-TW-Q5QSSTS6-6y7yjbbn.js → zh-TW-YPVSQVGT-wbybwpwt.js} +16 -7
  116. package/package.json +2 -2
  117. package/dist/de-CS2KUCZ6-j5a38g9p.js +0 -20
  118. package/dist/de-LVBY3VVG-gyt1s22e.js +0 -134
  119. package/dist/en-4UFXRW7N-p8f4r47q.js +0 -98
  120. package/dist/en-IMUXHKKC-3zcks7ks.js +0 -16
  121. package/dist/es-CI4AE5B5-yfv6qwgr.js +0 -134
  122. package/dist/es-MX-3MRZG6V4-9z56akxp.js +0 -20
  123. package/dist/es-MX-OLZNAYY5-6f3m32xs.js +0 -134
  124. package/dist/es-QBAGOKHO-b2azze22.js +0 -20
  125. package/dist/fr-CCN6ZO5E-srd8q9ne.js +0 -134
  126. package/dist/fr-HVOCQCNI-1zn75qzy.js +0 -20
  127. package/dist/ja-O2NEV5D6-pvhh5bag.js +0 -134
  128. package/dist/ja-VYAZOLWC-nbagzgre.js +0 -20
  129. package/dist/ko-7XWV2SEQ-9dz74aam.js +0 -134
  130. package/dist/ko-EZTVBPMZ-9qq2mrrz.js +0 -20
  131. package/dist/node-strategy-7bvg07kx.js +0 -63
  132. package/dist/packager-tool-060a9knt.js +0 -11
  133. package/dist/packager-tool-1q1bg65m.js +0 -5046
  134. package/dist/packager-tool-3yjtbs1y.js +0 -95
  135. package/dist/packager-tool-4f38v0ry.js +0 -1161
  136. package/dist/packager-tool-ahm4ymrp.js +0 -12
  137. package/dist/packager-tool-ek2dnj9h.js +0 -13
  138. package/dist/packager-tool-q94g73f7.js +0 -17392
  139. package/dist/pt-3TKAWGMJ-58y42w7x.js +0 -20
  140. package/dist/pt-BR-ASMQE3WA-9wb74cqx.js +0 -20
  141. package/dist/pt-BR-Z4J3LEEO-t28qfgyc.js +0 -134
  142. package/dist/pt-CRSN3TCU-s7hxhsxv.js +0 -134
  143. package/dist/ro-A65KBZGL-qnwqqezz.js +0 -20
  144. package/dist/ro-WMQEVD7D-h0kamt4a.js +0 -134
  145. package/dist/ru-GSCT4ARZ-YSDBAAM2-ha88ztsj.js +0 -15
  146. package/dist/ru-WBLQ5B2U-n1e7fn8t.js +0 -10
  147. package/dist/tr-UCMB7W3T-xv61hggk.js +0 -134
  148. package/dist/tr-Z7YHMEX6-daq3vjbh.js +0 -20
  149. package/dist/zh-CN-2QOHEFC5-meycvgab.js +0 -134
  150. package/dist/zh-CN-W7FK4GLU-vn3n8fcq.js +0 -20
  151. package/dist/zh-TW-PHOEUN3F-t56cjsgw.js +0 -20
  152. package/dist/zh-TW-Q5QSSTS6-65s6kte4.js +0 -134
@@ -0,0 +1,237 @@
1
+ import {
2
+ __require
3
+ } from "./packager-tool-wckvcay0.js";
4
+
5
+ // ../filesystem/src/node.ts
6
+ import { randomUUID } from "node:crypto";
7
+ import { existsSync } from "node:fs";
8
+ import * as fs from "node:fs/promises";
9
+ import * as os from "node:os";
10
+ import * as path from "node:path";
11
+ var LOCK_HEARTBEAT_MS = 5000;
12
+ var LOCK_STALE_MS = 15000;
13
+ var LOCK_MAX_WAIT_MS = 20000;
14
+ var LOCK_MAX_HOLD_MS = 60000;
15
+ var LOCK_RETRY_MIN_MS = 100;
16
+ var LOCK_RETRY_JITTER_MS = 200;
17
+
18
+ class NodeFileSystem {
19
+ path = {
20
+ join: path.join,
21
+ resolve: path.resolve,
22
+ relative: path.relative,
23
+ dirname: path.dirname,
24
+ isAbsolute: path.isAbsolute,
25
+ basename: path.basename
26
+ };
27
+ env = {
28
+ cwd: process.cwd,
29
+ homedir: os.homedir,
30
+ tmpdir: os.tmpdir,
31
+ getenv: (key) => process.env[key]
32
+ };
33
+ utils = {
34
+ open: async (url) => {
35
+ const { default: open } = await import("./index-hsadteg4.js");
36
+ await open(url);
37
+ }
38
+ };
39
+ async readFile(path2, options) {
40
+ try {
41
+ if (options) {
42
+ return await fs.readFile(path2, "utf-8");
43
+ }
44
+ return await fs.readFile(path2);
45
+ } catch (error) {
46
+ if (this.isEnoent(error))
47
+ return null;
48
+ throw error;
49
+ }
50
+ }
51
+ async writeFile(filePath, data) {
52
+ const dir = path.dirname(filePath);
53
+ if (dir) {
54
+ await fs.mkdir(dir, { recursive: true });
55
+ }
56
+ await fs.writeFile(filePath, data);
57
+ }
58
+ async appendFile(filePath, data) {
59
+ const dir = path.dirname(filePath);
60
+ if (dir) {
61
+ await fs.mkdir(dir, { recursive: true });
62
+ }
63
+ await fs.appendFile(filePath, data);
64
+ }
65
+ async readdir(dirPath) {
66
+ try {
67
+ return await fs.readdir(dirPath);
68
+ } catch (error) {
69
+ if (this.isEnoent(error))
70
+ return [];
71
+ throw error;
72
+ }
73
+ }
74
+ async stat(filePath) {
75
+ try {
76
+ const stats = await fs.stat(filePath);
77
+ return {
78
+ isFile: () => stats.isFile(),
79
+ isDirectory: () => stats.isDirectory(),
80
+ size: stats.size,
81
+ mtimeMs: stats.mtimeMs
82
+ };
83
+ } catch (error) {
84
+ if (this.isEnoent(error))
85
+ return null;
86
+ throw error;
87
+ }
88
+ }
89
+ async exists(filePath) {
90
+ return existsSync(filePath);
91
+ }
92
+ async mkdir(dirPath) {
93
+ await fs.mkdir(dirPath, { recursive: true });
94
+ }
95
+ async acquireLock(lockPath) {
96
+ const canonicalPath = await this.canonicalizeLockTarget(lockPath);
97
+ const lockFile = `${canonicalPath}.lock`;
98
+ const ownerId = randomUUID();
99
+ const start = Date.now();
100
+ while (true) {
101
+ try {
102
+ await fs.writeFile(lockFile, ownerId, { flag: "wx" });
103
+ return this.createLockRelease(lockFile, ownerId);
104
+ } catch (error) {
105
+ if (!this.hasErrnoCode(error, "EEXIST")) {
106
+ throw error;
107
+ }
108
+ const stats = await fs.stat(lockFile).catch(() => null);
109
+ if (stats && Date.now() - stats.mtimeMs > LOCK_STALE_MS) {
110
+ const reclaimed = await fs.rm(lockFile, { force: true }).then(() => true).catch(() => false);
111
+ if (reclaimed)
112
+ continue;
113
+ }
114
+ if (Date.now() - start > LOCK_MAX_WAIT_MS) {
115
+ throw new Error(`ELOCKED: timed out waiting for lock on ${canonicalPath}`);
116
+ }
117
+ await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MIN_MS + Math.random() * LOCK_RETRY_JITTER_MS));
118
+ }
119
+ }
120
+ }
121
+ async canonicalizeLockTarget(lockPath) {
122
+ const absolute = path.resolve(lockPath);
123
+ const fullReal = await fs.realpath(absolute).catch(() => null);
124
+ if (fullReal)
125
+ return fullReal;
126
+ const parent = path.dirname(absolute);
127
+ const base = path.basename(absolute);
128
+ const canonicalParent = await fs.realpath(parent).catch(() => parent);
129
+ return path.join(canonicalParent, base);
130
+ }
131
+ createLockRelease(lockFile, ownerId) {
132
+ const heartbeatStart = Date.now();
133
+ let heartbeatTimer;
134
+ let stopped = false;
135
+ const stopHeartbeat = () => {
136
+ stopped = true;
137
+ if (heartbeatTimer)
138
+ clearTimeout(heartbeatTimer);
139
+ };
140
+ const scheduleNextHeartbeat = () => {
141
+ if (stopped)
142
+ return;
143
+ if (Date.now() - heartbeatStart >= LOCK_MAX_HOLD_MS) {
144
+ stopped = true;
145
+ return;
146
+ }
147
+ heartbeatTimer = setTimeout(() => {
148
+ runHeartbeat();
149
+ }, LOCK_HEARTBEAT_MS);
150
+ heartbeatTimer.unref?.();
151
+ };
152
+ const runHeartbeat = async () => {
153
+ if (stopped)
154
+ return;
155
+ const current = await fs.readFile(lockFile, "utf-8").catch(() => null);
156
+ if (stopped)
157
+ return;
158
+ if (current !== ownerId) {
159
+ stopped = true;
160
+ return;
161
+ }
162
+ const now = Date.now() / 1000;
163
+ await fs.utimes(lockFile, now, now).catch(() => {});
164
+ scheduleNextHeartbeat();
165
+ };
166
+ scheduleNextHeartbeat();
167
+ let released = false;
168
+ return async () => {
169
+ if (released)
170
+ return;
171
+ released = true;
172
+ stopHeartbeat();
173
+ const current = await fs.readFile(lockFile, "utf-8").catch(() => null);
174
+ if (current === ownerId) {
175
+ await fs.rm(lockFile, { force: true });
176
+ }
177
+ };
178
+ }
179
+ async rm(filePath) {
180
+ await fs.rm(filePath, { recursive: true, force: true });
181
+ }
182
+ async rename(oldPath, newPath) {
183
+ await fs.rename(oldPath, newPath);
184
+ }
185
+ async realpath(filePath) {
186
+ try {
187
+ return await fs.realpath(filePath);
188
+ } catch (error) {
189
+ if (this.isEnoent(error))
190
+ return filePath;
191
+ throw error;
192
+ }
193
+ }
194
+ async getTempDir() {
195
+ return await fs.mkdtemp(path.join(os.tmpdir(), "uipath-fs-"));
196
+ }
197
+ async copyDirectory(sourcePath, destPath) {
198
+ const sourceStats = await this.stat(sourcePath);
199
+ if (!sourceStats) {
200
+ throw new Error(`Source directory does not exist: ${sourcePath}`);
201
+ }
202
+ if (!sourceStats.isDirectory()) {
203
+ throw new Error(`Source path is not a directory: ${sourcePath}`);
204
+ }
205
+ await this.mkdir(destPath);
206
+ const entries = await this.readdir(sourcePath);
207
+ for (const entry of entries) {
208
+ const srcEntry = path.join(sourcePath, entry);
209
+ const destEntry = path.join(destPath, entry);
210
+ const entryStats = await this.stat(srcEntry);
211
+ if (!entryStats)
212
+ continue;
213
+ if (entryStats.isDirectory()) {
214
+ await this.copyDirectory(srcEntry, destEntry);
215
+ } else if (entryStats.isFile()) {
216
+ const content = await this.readFile(srcEntry);
217
+ if (content !== null) {
218
+ await this.writeFile(destEntry, content);
219
+ }
220
+ }
221
+ }
222
+ }
223
+ isEnoent(error) {
224
+ return this.hasErrnoCode(error, "ENOENT");
225
+ }
226
+ hasErrnoCode(error, code) {
227
+ return typeof error === "object" && error !== null && "code" in error && error.code === code;
228
+ }
229
+ }
230
+
231
+ // ../filesystem/src/index.ts
232
+ var fsInstance = new NodeFileSystem;
233
+ var getFileSystem = () => fsInstance;
234
+
235
+ export { getFileSystem };
236
+
237
+ //# debugId=25EC9C9B4767723E64756E2164756E21
@@ -1,18 +1,31 @@
1
1
  import {
2
2
  VALID_PROJECT_NAME_REGEX,
3
- catchError,
4
- ensureProjectArtifacts,
5
3
  nodeModuleRegistry,
6
- prepareProjectLocation,
7
- tryRegisterProjectInParentSolution,
8
4
  writeFlowWorkflow
9
- } from "./packager-tool-95ht91a8.js";
5
+ } from "./packager-tool-xa2xwzrq.js";
6
+ import {
7
+ prepareProjectLocation,
8
+ tryRegisterProjectInParentSolution
9
+ } from "./packager-tool-b0s5d4ek.js";
10
+ import {
11
+ catchError
12
+ } from "./packager-tool-ny53xmsd.js";
10
13
  import {
11
14
  getFileSystem
12
- } from "./packager-tool-4f38v0ry.js";
15
+ } from "./packager-tool-1cb0d5e0.js";
13
16
  import {
14
17
  createWorkflow
15
- } from "./packager-tool-q94g73f7.js";
18
+ } from "./packager-tool-6a7wdv5z.js";
19
+ import {
20
+ __require
21
+ } from "./packager-tool-wckvcay0.js";
22
+
23
+ // src/services/project-artifacts.ts
24
+ async function ensureProjectArtifacts(args) {
25
+ const { addProjectArtifactsToSolutionAsync } = await import("./index-6hp3p3eq.js");
26
+ return addProjectArtifactsToSolutionAsync(args);
27
+ }
28
+
16
29
  // src/services/flow-init-service.ts
17
30
  var safeMkdir = async (fs, dir) => {
18
31
  const [err] = await catchError(fs.mkdir(dir));
@@ -92,4 +105,4 @@ async function maybeGenerateProjectArtifacts(registration, projectName) {
92
105
 
93
106
  export { flowInitAsync };
94
107
 
95
- //# debugId=EB798ABBF0A2006664756E2164756E21
108
+ //# debugId=5364B2B1CFDDFE8864756E2164756E21