@ms-cloudpack/api-server 0.12.0 → 0.12.2

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 (84) hide show
  1. package/lib/apis/addPackageOverride.d.ts +2 -0
  2. package/lib/apis/ensurePackageBundled.d.ts +484 -0
  3. package/lib/apis/ensurePackageBundled.d.ts.map +1 -0
  4. package/lib/apis/ensurePackageBundled.js +106 -0
  5. package/lib/apis/ensurePackageBundled.js.map +1 -0
  6. package/lib/apis/getData.d.ts +2 -0
  7. package/lib/apis/getSessionId.d.ts +2 -0
  8. package/lib/apis/index.d.ts +1 -0
  9. package/lib/apis/index.d.ts.map +1 -1
  10. package/lib/apis/index.js +1 -0
  11. package/lib/apis/index.js.map +1 -1
  12. package/lib/apis/onDataChanged.d.ts +2 -0
  13. package/lib/apis/openCodeEditor.d.ts +2 -0
  14. package/lib/apis/openConfigEditor.d.ts +2 -0
  15. package/lib/apis/openFilePath.d.ts +2 -0
  16. package/lib/apis/reportMetric.d.ts +2 -0
  17. package/lib/apis/sync.d.ts +71 -0
  18. package/lib/apis/sync.d.ts.map +1 -0
  19. package/lib/apis/sync.js +21 -0
  20. package/lib/apis/sync.js.map +1 -0
  21. package/lib/apis/validatePackageOverride.d.ts +2 -0
  22. package/lib/common/prepareOutputPath.d.ts +5 -0
  23. package/lib/common/prepareOutputPath.d.ts.map +1 -0
  24. package/lib/common/prepareOutputPath.js +14 -0
  25. package/lib/common/prepareOutputPath.js.map +1 -0
  26. package/lib/index.d.ts +8 -1
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/index.js +6 -1
  29. package/lib/index.js.map +1 -1
  30. package/lib/trpc/common.d.ts +3 -0
  31. package/lib/trpc/common.d.ts.map +1 -1
  32. package/lib/trpc/createAppRouter.d.ts +67 -0
  33. package/lib/trpc/createAppRouter.d.ts.map +1 -1
  34. package/lib/trpc/createCloudpackServer.d.ts +4 -0
  35. package/lib/trpc/createCloudpackServer.d.ts.map +1 -1
  36. package/lib/trpc/createContextFactory.d.ts +2 -0
  37. package/lib/trpc/createContextFactory.d.ts.map +1 -1
  38. package/lib/trpc/createContextFactory.js +4 -0
  39. package/lib/trpc/createContextFactory.js.map +1 -1
  40. package/lib/trpc/createRouterFromApis.d.ts +1 -0
  41. package/lib/trpc/createRouterFromApis.d.ts.map +1 -1
  42. package/lib/types/BundleRequest.d.ts +16 -0
  43. package/lib/types/BundleRequest.d.ts.map +1 -1
  44. package/lib/types/BundleRequest.js.map +1 -1
  45. package/lib/types/BundleTaskOptions.d.ts +4 -0
  46. package/lib/types/BundleTaskOptions.d.ts.map +1 -0
  47. package/lib/types/BundleTaskOptions.js +2 -0
  48. package/lib/types/BundleTaskOptions.js.map +1 -0
  49. package/lib/types/TaskMessage.d.ts +2 -2
  50. package/lib/types/TaskResponse.d.ts +12 -12
  51. package/lib/types/TaskResult.d.ts +8 -8
  52. package/lib/utilities/bundleTask.d.ts +9 -0
  53. package/lib/utilities/bundleTask.d.ts.map +1 -0
  54. package/lib/utilities/bundleTask.js +119 -0
  55. package/lib/utilities/bundleTask.js.map +1 -0
  56. package/lib/utilities/createBundleRequestForPackage.d.ts +11 -0
  57. package/lib/utilities/createBundleRequestForPackage.d.ts.map +1 -0
  58. package/lib/utilities/createBundleRequestForPackage.js +21 -0
  59. package/lib/utilities/createBundleRequestForPackage.js.map +1 -0
  60. package/lib/utilities/createBundleTask.d.ts +10 -0
  61. package/lib/utilities/createBundleTask.d.ts.map +1 -0
  62. package/lib/utilities/createBundleTask.js +42 -0
  63. package/lib/utilities/createBundleTask.js.map +1 -0
  64. package/lib/utilities/findImports.d.ts +6 -0
  65. package/lib/utilities/findImports.d.ts.map +1 -0
  66. package/lib/utilities/findImports.js +73 -0
  67. package/lib/utilities/findImports.js.map +1 -0
  68. package/lib/utilities/formatBundleErrors.d.ts +9 -0
  69. package/lib/utilities/formatBundleErrors.d.ts.map +1 -0
  70. package/lib/utilities/formatBundleErrors.js +19 -0
  71. package/lib/utilities/formatBundleErrors.js.map +1 -0
  72. package/lib/utilities/getBundleDetails.d.ts +14 -0
  73. package/lib/utilities/getBundleDetails.d.ts.map +1 -0
  74. package/lib/utilities/getBundleDetails.js +35 -0
  75. package/lib/utilities/getBundleDetails.js.map +1 -0
  76. package/lib/utilities/getFileSizeSync.d.ts +5 -0
  77. package/lib/utilities/getFileSizeSync.d.ts.map +1 -0
  78. package/lib/utilities/getFileSizeSync.js +16 -0
  79. package/lib/utilities/getFileSizeSync.js.map +1 -0
  80. package/lib/utilities/hashPackage.d.ts +6 -0
  81. package/lib/utilities/hashPackage.d.ts.map +1 -0
  82. package/lib/utilities/hashPackage.js +21 -0
  83. package/lib/utilities/hashPackage.js.map +1 -0
  84. package/package.json +11 -4
@@ -51,6 +51,7 @@ export declare namespace addPackageOverride {
51
51
  unwatchAll(): Promise<void>;
52
52
  };
53
53
  packages: PackageDefinitionsCache;
54
+ taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
54
55
  dispose(): Promise<void>;
55
56
  };
56
57
  meta: object;
@@ -71,6 +72,7 @@ export declare namespace addPackageOverride {
71
72
  unwatchAll(): Promise<void>;
72
73
  };
73
74
  packages: PackageDefinitionsCache;
75
+ taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
74
76
  dispose(): Promise<void>;
75
77
  };
76
78
  _input_in: {
@@ -0,0 +1,484 @@
1
+ import type { DataBus } from '@ms-cloudpack/data-bus';
2
+ import { z } from '../trpc/common.js';
3
+ import type { Session } from '../types/Session.js';
4
+ import type { TaskRunner } from '../utilities/TaskRunner.js';
5
+ import type { Watcher } from '@ms-cloudpack/file-watcher';
6
+ import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
7
+ import type { TaskReporter } from '@ms-cloudpack/task-reporter';
8
+ declare const ZodEnsurePackageBundledInput: z.ZodObject<{
9
+ name: z.ZodString;
10
+ version: z.ZodString;
11
+ shouldRerun: z.ZodOptional<z.ZodBoolean>;
12
+ shouldWatch: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ version: string;
16
+ shouldRerun?: boolean | undefined;
17
+ shouldWatch?: boolean | undefined;
18
+ }, {
19
+ name: string;
20
+ version: string;
21
+ shouldRerun?: boolean | undefined;
22
+ shouldWatch?: boolean | undefined;
23
+ }>;
24
+ declare const ZodEnsurePackageBundledOutput: z.ZodObject<{
25
+ bundlerName: z.ZodOptional<z.ZodString>;
26
+ inputPath: z.ZodOptional<z.ZodString>;
27
+ outputPath: z.ZodOptional<z.ZodString>;
28
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
29
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ hash: z.ZodOptional<z.ZodString>;
31
+ outputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ outputPath: z.ZodString;
33
+ entryPoint: z.ZodOptional<z.ZodString>;
34
+ exports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ outputPath: string;
37
+ entryPoint?: string | undefined;
38
+ exports?: string[] | undefined;
39
+ }, {
40
+ outputPath: string;
41
+ entryPoint?: string | undefined;
42
+ exports?: string[] | undefined;
43
+ }>, "many">>;
44
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
+ pluginName: z.ZodOptional<z.ZodString>;
46
+ type: z.ZodOptional<z.ZodString>;
47
+ text: z.ZodString;
48
+ location: z.ZodOptional<z.ZodObject<{
49
+ file: z.ZodString;
50
+ line: z.ZodNumber;
51
+ column: z.ZodNumber;
52
+ }, "strip", z.ZodTypeAny, {
53
+ line: number;
54
+ column: number;
55
+ file: string;
56
+ }, {
57
+ line: number;
58
+ column: number;
59
+ file: string;
60
+ }>>;
61
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ text: z.ZodOptional<z.ZodString>;
63
+ location: z.ZodOptional<z.ZodObject<{
64
+ file: z.ZodString;
65
+ line: z.ZodNumber;
66
+ column: z.ZodNumber;
67
+ }, "strip", z.ZodTypeAny, {
68
+ line: number;
69
+ column: number;
70
+ file: string;
71
+ }, {
72
+ line: number;
73
+ column: number;
74
+ file: string;
75
+ }>>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ text?: string | undefined;
78
+ location?: {
79
+ line: number;
80
+ column: number;
81
+ file: string;
82
+ } | undefined;
83
+ }, {
84
+ text?: string | undefined;
85
+ location?: {
86
+ line: number;
87
+ column: number;
88
+ file: string;
89
+ } | undefined;
90
+ }>, "many">>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ text: string;
93
+ pluginName?: string | undefined;
94
+ type?: string | undefined;
95
+ location?: {
96
+ line: number;
97
+ column: number;
98
+ file: string;
99
+ } | undefined;
100
+ notes?: {
101
+ text?: string | undefined;
102
+ location?: {
103
+ line: number;
104
+ column: number;
105
+ file: string;
106
+ } | undefined;
107
+ }[] | undefined;
108
+ }, {
109
+ text: string;
110
+ pluginName?: string | undefined;
111
+ type?: string | undefined;
112
+ location?: {
113
+ line: number;
114
+ column: number;
115
+ file: string;
116
+ } | undefined;
117
+ notes?: {
118
+ text?: string | undefined;
119
+ location?: {
120
+ line: number;
121
+ column: number;
122
+ file: string;
123
+ } | undefined;
124
+ }[] | undefined;
125
+ }>, "many">>;
126
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
+ pluginName: z.ZodOptional<z.ZodString>;
128
+ type: z.ZodOptional<z.ZodString>;
129
+ text: z.ZodString;
130
+ location: z.ZodOptional<z.ZodObject<{
131
+ file: z.ZodString;
132
+ line: z.ZodNumber;
133
+ column: z.ZodNumber;
134
+ }, "strip", z.ZodTypeAny, {
135
+ line: number;
136
+ column: number;
137
+ file: string;
138
+ }, {
139
+ line: number;
140
+ column: number;
141
+ file: string;
142
+ }>>;
143
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
+ text: z.ZodOptional<z.ZodString>;
145
+ location: z.ZodOptional<z.ZodObject<{
146
+ file: z.ZodString;
147
+ line: z.ZodNumber;
148
+ column: z.ZodNumber;
149
+ }, "strip", z.ZodTypeAny, {
150
+ line: number;
151
+ column: number;
152
+ file: string;
153
+ }, {
154
+ line: number;
155
+ column: number;
156
+ file: string;
157
+ }>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ text?: string | undefined;
160
+ location?: {
161
+ line: number;
162
+ column: number;
163
+ file: string;
164
+ } | undefined;
165
+ }, {
166
+ text?: string | undefined;
167
+ location?: {
168
+ line: number;
169
+ column: number;
170
+ file: string;
171
+ } | undefined;
172
+ }>, "many">>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ text: string;
175
+ pluginName?: string | undefined;
176
+ type?: string | undefined;
177
+ location?: {
178
+ line: number;
179
+ column: number;
180
+ file: string;
181
+ } | undefined;
182
+ notes?: {
183
+ text?: string | undefined;
184
+ location?: {
185
+ line: number;
186
+ column: number;
187
+ file: string;
188
+ } | undefined;
189
+ }[] | undefined;
190
+ }, {
191
+ text: string;
192
+ pluginName?: string | undefined;
193
+ type?: string | undefined;
194
+ location?: {
195
+ line: number;
196
+ column: number;
197
+ file: string;
198
+ } | undefined;
199
+ notes?: {
200
+ text?: string | undefined;
201
+ location?: {
202
+ line: number;
203
+ column: number;
204
+ file: string;
205
+ } | undefined;
206
+ }[] | undefined;
207
+ }>, "many">>;
208
+ rawInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
209
+ rawOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ bundlerName?: string | undefined;
212
+ inputPath?: string | undefined;
213
+ outputPath?: string | undefined;
214
+ entries?: Record<string, string> | undefined;
215
+ dependencies?: string[] | undefined;
216
+ hash?: string | undefined;
217
+ outputFiles?: {
218
+ outputPath: string;
219
+ entryPoint?: string | undefined;
220
+ exports?: string[] | undefined;
221
+ }[] | undefined;
222
+ errors?: {
223
+ text: string;
224
+ pluginName?: string | undefined;
225
+ type?: string | undefined;
226
+ location?: {
227
+ line: number;
228
+ column: number;
229
+ file: string;
230
+ } | undefined;
231
+ notes?: {
232
+ text?: string | undefined;
233
+ location?: {
234
+ line: number;
235
+ column: number;
236
+ file: string;
237
+ } | undefined;
238
+ }[] | undefined;
239
+ }[] | undefined;
240
+ warnings?: {
241
+ text: string;
242
+ pluginName?: string | undefined;
243
+ type?: string | undefined;
244
+ location?: {
245
+ line: number;
246
+ column: number;
247
+ file: string;
248
+ } | undefined;
249
+ notes?: {
250
+ text?: string | undefined;
251
+ location?: {
252
+ line: number;
253
+ column: number;
254
+ file: string;
255
+ } | undefined;
256
+ }[] | undefined;
257
+ }[] | undefined;
258
+ rawInput?: Record<string, unknown> | undefined;
259
+ rawOutput?: Record<string, unknown> | undefined;
260
+ }, {
261
+ bundlerName?: string | undefined;
262
+ inputPath?: string | undefined;
263
+ outputPath?: string | undefined;
264
+ entries?: Record<string, string> | undefined;
265
+ dependencies?: string[] | undefined;
266
+ hash?: string | undefined;
267
+ outputFiles?: {
268
+ outputPath: string;
269
+ entryPoint?: string | undefined;
270
+ exports?: string[] | undefined;
271
+ }[] | undefined;
272
+ errors?: {
273
+ text: string;
274
+ pluginName?: string | undefined;
275
+ type?: string | undefined;
276
+ location?: {
277
+ line: number;
278
+ column: number;
279
+ file: string;
280
+ } | undefined;
281
+ notes?: {
282
+ text?: string | undefined;
283
+ location?: {
284
+ line: number;
285
+ column: number;
286
+ file: string;
287
+ } | undefined;
288
+ }[] | undefined;
289
+ }[] | undefined;
290
+ warnings?: {
291
+ text: string;
292
+ pluginName?: string | undefined;
293
+ type?: string | undefined;
294
+ location?: {
295
+ line: number;
296
+ column: number;
297
+ file: string;
298
+ } | undefined;
299
+ notes?: {
300
+ text?: string | undefined;
301
+ location?: {
302
+ line: number;
303
+ column: number;
304
+ file: string;
305
+ } | undefined;
306
+ }[] | undefined;
307
+ }[] | undefined;
308
+ rawInput?: Record<string, unknown> | undefined;
309
+ rawOutput?: Record<string, unknown> | undefined;
310
+ }>;
311
+ type ZodEnsurePackageBundledOutput = z.infer<typeof ZodEnsurePackageBundledOutput>;
312
+ /**
313
+ * Checks if the package is bundled or needs bundling, and returns the result. For internal packages,
314
+ * we also notify the watcher to monitor for code changes.
315
+ */
316
+ export declare function ensurePackageBundled({ input, ctx, }: {
317
+ input: z.infer<typeof ZodEnsurePackageBundledInput>;
318
+ ctx: {
319
+ bus: DataBus;
320
+ taskRunner: TaskRunner;
321
+ session: Session;
322
+ watcher: Watcher;
323
+ packages: PackageDefinitionsCache;
324
+ reporter: TaskReporter;
325
+ };
326
+ }): Promise<ZodEnsurePackageBundledOutput>;
327
+ export declare namespace ensurePackageBundled {
328
+ var procedure: import("@trpc/server").BuildProcedure<"mutation", {
329
+ _config: import("@trpc/server").RootConfig<{
330
+ ctx: {
331
+ session: Session;
332
+ bus: DataBus;
333
+ rootSpan: import("@opentelemetry/api").Span | undefined;
334
+ reporter: TaskReporter;
335
+ watcher: {
336
+ watch({ path, watchPaths, }: {
337
+ path: string;
338
+ watchPaths?: string[] | undefined;
339
+ }, onPackageChanged: () => void): () => Promise<void>;
340
+ unwatchAll(): Promise<void>;
341
+ };
342
+ packages: PackageDefinitionsCache;
343
+ taskRunner: TaskRunner;
344
+ dispose(): Promise<void>;
345
+ };
346
+ meta: object;
347
+ errorShape: import("@trpc/server").DefaultErrorShape;
348
+ transformer: import("@trpc/server").DefaultDataTransformer;
349
+ }>;
350
+ _meta: object;
351
+ _ctx_out: {
352
+ session: Session;
353
+ bus: DataBus;
354
+ rootSpan: import("@opentelemetry/api").Span | undefined;
355
+ reporter: TaskReporter;
356
+ watcher: {
357
+ watch({ path, watchPaths, }: {
358
+ path: string;
359
+ watchPaths?: string[] | undefined;
360
+ }, onPackageChanged: () => void): () => Promise<void>;
361
+ unwatchAll(): Promise<void>;
362
+ };
363
+ packages: PackageDefinitionsCache;
364
+ taskRunner: TaskRunner;
365
+ dispose(): Promise<void>;
366
+ };
367
+ _input_in: {
368
+ name: string;
369
+ version: string;
370
+ shouldRerun?: boolean | undefined;
371
+ shouldWatch?: boolean | undefined;
372
+ };
373
+ _input_out: {
374
+ name: string;
375
+ version: string;
376
+ shouldRerun?: boolean | undefined;
377
+ shouldWatch?: boolean | undefined;
378
+ };
379
+ _output_in: {
380
+ bundlerName?: string | undefined;
381
+ inputPath?: string | undefined;
382
+ outputPath?: string | undefined;
383
+ entries?: Record<string, string> | undefined;
384
+ dependencies?: string[] | undefined;
385
+ hash?: string | undefined;
386
+ outputFiles?: {
387
+ outputPath: string;
388
+ entryPoint?: string | undefined;
389
+ exports?: string[] | undefined;
390
+ }[] | undefined;
391
+ errors?: {
392
+ text: string;
393
+ pluginName?: string | undefined;
394
+ type?: string | undefined;
395
+ location?: {
396
+ line: number;
397
+ column: number;
398
+ file: string;
399
+ } | undefined;
400
+ notes?: {
401
+ text?: string | undefined;
402
+ location?: {
403
+ line: number;
404
+ column: number;
405
+ file: string;
406
+ } | undefined;
407
+ }[] | undefined;
408
+ }[] | undefined;
409
+ warnings?: {
410
+ text: string;
411
+ pluginName?: string | undefined;
412
+ type?: string | undefined;
413
+ location?: {
414
+ line: number;
415
+ column: number;
416
+ file: string;
417
+ } | undefined;
418
+ notes?: {
419
+ text?: string | undefined;
420
+ location?: {
421
+ line: number;
422
+ column: number;
423
+ file: string;
424
+ } | undefined;
425
+ }[] | undefined;
426
+ }[] | undefined;
427
+ rawInput?: Record<string, unknown> | undefined;
428
+ rawOutput?: Record<string, unknown> | undefined;
429
+ };
430
+ _output_out: {
431
+ bundlerName?: string | undefined;
432
+ inputPath?: string | undefined;
433
+ outputPath?: string | undefined;
434
+ entries?: Record<string, string> | undefined;
435
+ dependencies?: string[] | undefined;
436
+ hash?: string | undefined;
437
+ outputFiles?: {
438
+ outputPath: string;
439
+ entryPoint?: string | undefined;
440
+ exports?: string[] | undefined;
441
+ }[] | undefined;
442
+ errors?: {
443
+ text: string;
444
+ pluginName?: string | undefined;
445
+ type?: string | undefined;
446
+ location?: {
447
+ line: number;
448
+ column: number;
449
+ file: string;
450
+ } | undefined;
451
+ notes?: {
452
+ text?: string | undefined;
453
+ location?: {
454
+ line: number;
455
+ column: number;
456
+ file: string;
457
+ } | undefined;
458
+ }[] | undefined;
459
+ }[] | undefined;
460
+ warnings?: {
461
+ text: string;
462
+ pluginName?: string | undefined;
463
+ type?: string | undefined;
464
+ location?: {
465
+ line: number;
466
+ column: number;
467
+ file: string;
468
+ } | undefined;
469
+ notes?: {
470
+ text?: string | undefined;
471
+ location?: {
472
+ line: number;
473
+ column: number;
474
+ file: string;
475
+ } | undefined;
476
+ }[] | undefined;
477
+ }[] | undefined;
478
+ rawInput?: Record<string, unknown> | undefined;
479
+ rawOutput?: Record<string, unknown> | undefined;
480
+ };
481
+ }, unknown>;
482
+ }
483
+ export {};
484
+ //# sourceMappingURL=ensurePackageBundled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensurePackageBundled.d.ts","sourceRoot":"","sources":["../../src/apis/ensurePackageBundled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAmB,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAwBhE,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBjC,CAAC;AAEH,KAAK,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEnF;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,KAAK,EACL,GAAG,GACJ,EAAE;IACD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;IACpD,GAAG,EAAE;QACH,GAAG,EAAE,OAAO,CAAC;QACb,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,uBAAuB,CAAC;QAClC,QAAQ,EAAE,YAAY,CAAC;KACxB,CAAC;CACH,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA0DzC;yBAvEqB,oBAAoB"}
@@ -0,0 +1,106 @@
1
+ import { findResolveMapEntry } from '@ms-cloudpack/package-utilities';
2
+ import { publicProcedure, z } from '../trpc/common.js';
3
+ import { notifyReload } from '../utilities/notifyReload.js';
4
+ import { createBundleTask } from '../utilities/createBundleTask.js';
5
+ import { createBundleRequestForPackage } from '../utilities/createBundleRequestForPackage.js';
6
+ const ZodLocation = z.object({
7
+ file: z.string(),
8
+ line: z.number(),
9
+ column: z.number(),
10
+ });
11
+ const ZodBundleMessage = z.object({
12
+ pluginName: z.string().optional(),
13
+ type: z.string().optional(),
14
+ text: z.string(),
15
+ location: ZodLocation.optional(),
16
+ notes: z
17
+ .array(z.object({
18
+ text: z.string().optional(),
19
+ location: ZodLocation.optional(),
20
+ }))
21
+ .optional(),
22
+ });
23
+ const ZodEnsurePackageBundledInput = z.object({
24
+ name: z.string(),
25
+ version: z.string(),
26
+ shouldRerun: z.boolean().optional(),
27
+ shouldWatch: z.boolean().optional(),
28
+ });
29
+ const ZodEnsurePackageBundledOutput = z.object({
30
+ bundlerName: z.string().optional(),
31
+ inputPath: z.string().optional(),
32
+ outputPath: z.string().optional(),
33
+ entries: z.record(z.string()).optional(),
34
+ dependencies: z.array(z.string()).optional(),
35
+ hash: z.string().optional(),
36
+ outputFiles: z
37
+ .array(z.object({
38
+ outputPath: z.string(),
39
+ entryPoint: z.string().optional(),
40
+ exports: z.array(z.string()).optional(),
41
+ }))
42
+ .optional(),
43
+ errors: z.array(ZodBundleMessage).optional(),
44
+ warnings: z.array(ZodBundleMessage).optional(),
45
+ rawInput: z.record(z.unknown()).optional(),
46
+ rawOutput: z.record(z.unknown()).optional(),
47
+ });
48
+ /**
49
+ * Checks if the package is bundled or needs bundling, and returns the result. For internal packages,
50
+ * we also notify the watcher to monitor for code changes.
51
+ */
52
+ export async function ensurePackageBundled({ input, ctx, }) {
53
+ const { name, version, shouldWatch } = input;
54
+ const { taskRunner, session, watcher, packages, reporter } = ctx;
55
+ const { resolveMap, config } = session;
56
+ const { features } = config;
57
+ // First, we find the resolve map entry. This helps us resolve the physical location of the package
58
+ // according to the resolveMap used in the session. (This can change based on linking.)
59
+ const packageEntry = findResolveMapEntry({ packageName: name, version, resolveMap });
60
+ if (!packageEntry) {
61
+ throw new Error(`Could not find package ${name} in the resolve map.`);
62
+ }
63
+ const bundleRequest = await createBundleRequestForPackage({ packageEntry }, { config, packages });
64
+ const task = createBundleTask(bundleRequest, {}, reporter);
65
+ // TODO: Add lage scheduling back.
66
+ const { result } = await taskRunner.add(task);
67
+ if (!result) {
68
+ throw new Error('Bundle failed, no result');
69
+ }
70
+ const { isExternal } = bundleRequest;
71
+ // For internal packages, make sure we're watching the source to re-trigger bundling.
72
+ if (shouldWatch && !isExternal) {
73
+ const onPackageChange = async () => {
74
+ const watchedResult = await taskRunner.add(task, { rerun: true });
75
+ // If the result was successful, notify potential clients for reload.
76
+ if (!watchedResult.result?.errors?.length) {
77
+ notifyReload(ctx);
78
+ }
79
+ };
80
+ watcher.watch(packageEntry, () => {
81
+ void onPackageChange();
82
+ });
83
+ }
84
+ // If enabled, enqueue dependencies.
85
+ if (features?.enqueueDependencies && result?.dependencies) {
86
+ for (const dependencyName of result.dependencies) {
87
+ // Don't await for their result, just go go go.
88
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
89
+ ensurePackageBundled({
90
+ input: {
91
+ name: dependencyName,
92
+ version: packageEntry.dependencies[dependencyName],
93
+ shouldWatch,
94
+ },
95
+ ctx,
96
+ });
97
+ }
98
+ }
99
+ return result;
100
+ }
101
+ // Attach a trpc procedure to the function.
102
+ ensurePackageBundled.procedure = publicProcedure
103
+ .input(ZodEnsurePackageBundledInput)
104
+ .output(ZodEnsurePackageBundledOutput)
105
+ .mutation(ensurePackageBundled);
106
+ //# sourceMappingURL=ensurePackageBundled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensurePackageBundled.js","sourceRoot":"","sources":["../../src/apis/ensurePackageBundled.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAIvD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAE9F,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;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AAM,CAAC;AAChB,CAAC;AAED,2CAA2C;AAC3C,oBAAoB,CAAC,SAAS,GAAG,eAAe;KAC7C,KAAK,CAAC,4BAA4B,CAAC;KACnC,MAAM,CAAC,6BAA6B,CAAC;KACrC,QAAQ,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["import type { DataBus } from '@ms-cloudpack/data-bus';\nimport { findResolveMapEntry } from '@ms-cloudpack/package-utilities';\nimport { publicProcedure, z } from '../trpc/common.js';\nimport type { Session } from '../types/Session.js';\nimport type { TaskRunner } from '../utilities/TaskRunner.js';\nimport type { Watcher } from '@ms-cloudpack/file-watcher';\nimport { notifyReload } from '../utilities/notifyReload.js';\nimport type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport type { BundleRequest } from '../types/BundleRequest.js';\nimport { createBundleTask } from '../utilities/createBundleTask.js';\nimport type { TaskReporter } from '@ms-cloudpack/task-reporter';\nimport { createBundleRequestForPackage } from '../utilities/createBundleRequestForPackage.js';\n\nconst ZodLocation = z.object({\n file: z.string(),\n line: z.number(),\n column: z.number(),\n});\n\nconst ZodBundleMessage = z.object({\n pluginName: z.string().optional(),\n type: z.string().optional(),\n text: z.string(),\n location: ZodLocation.optional(),\n notes: z\n .array(\n z.object({\n text: z.string().optional(),\n location: ZodLocation.optional(),\n }),\n )\n .optional(),\n});\n\nconst ZodEnsurePackageBundledInput = z.object({\n name: z.string(),\n version: z.string(),\n shouldRerun: z.boolean().optional(),\n shouldWatch: z.boolean().optional(),\n});\n\nconst ZodEnsurePackageBundledOutput = z.object({\n bundlerName: z.string().optional(),\n inputPath: z.string().optional(),\n outputPath: z.string().optional(),\n entries: z.record(z.string()).optional(),\n dependencies: z.array(z.string()).optional(),\n hash: z.string().optional(),\n outputFiles: z\n .array(\n z.object({\n outputPath: z.string(),\n entryPoint: z.string().optional(),\n exports: z.array(z.string()).optional(),\n }),\n )\n .optional(),\n errors: z.array(ZodBundleMessage).optional(),\n warnings: z.array(ZodBundleMessage).optional(),\n rawInput: z.record(z.unknown()).optional(),\n rawOutput: z.record(z.unknown()).optional(),\n});\n\ntype ZodEnsurePackageBundledOutput = z.infer<typeof ZodEnsurePackageBundledOutput>;\n\n/**\n * Checks if the package is bundled or needs bundling, and returns the result. For internal packages,\n * we also notify the watcher to monitor for code changes.\n */\nexport async function ensurePackageBundled({\n input,\n ctx,\n}: {\n input: z.infer<typeof ZodEnsurePackageBundledInput>;\n ctx: {\n bus: DataBus;\n taskRunner: TaskRunner;\n session: Session;\n watcher: Watcher;\n packages: PackageDefinitionsCache;\n reporter: TaskReporter;\n };\n}): Promise<ZodEnsurePackageBundledOutput> {\n const { name, version, shouldWatch } = input;\n const { taskRunner, session, watcher, packages, reporter } = ctx;\n const { resolveMap, config } = session;\n const { features } = config;\n\n // First, we find the resolve map entry. This helps us resolve the physical location of the package\n // according to the resolveMap used in the session. (This can change based on linking.)\n const packageEntry = findResolveMapEntry({ packageName: name, version, resolveMap });\n\n if (!packageEntry) {\n throw new Error(`Could not find package ${name} in the resolve map.`);\n }\n\n const bundleRequest = await createBundleRequestForPackage({ packageEntry }, { config, packages });\n const task = createBundleTask(bundleRequest, {}, reporter);\n\n // TODO: Add lage scheduling back.\n const { result } = await taskRunner.add<BundleRequest>(task);\n\n if (!result) {\n throw new Error('Bundle failed, no result');\n }\n\n const { isExternal } = bundleRequest;\n\n // For internal packages, make sure we're watching the source to re-trigger bundling.\n if (shouldWatch && !isExternal) {\n const onPackageChange = async () => {\n const watchedResult = await taskRunner.add<BundleRequest>(task, { rerun: true });\n\n // If the result was successful, notify potential clients for reload.\n if (!watchedResult.result?.errors?.length) {\n notifyReload(ctx);\n }\n };\n watcher.watch(packageEntry, () => {\n void onPackageChange();\n });\n }\n\n // If enabled, enqueue dependencies.\n if (features?.enqueueDependencies && result?.dependencies) {\n for (const dependencyName of result.dependencies) {\n // Don't await for their result, just go go go.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n ensurePackageBundled({\n input: {\n name: dependencyName,\n version: packageEntry.dependencies[dependencyName],\n shouldWatch,\n },\n ctx,\n });\n }\n }\n\n return result;\n}\n\n// Attach a trpc procedure to the function.\nensurePackageBundled.procedure = publicProcedure\n .input(ZodEnsurePackageBundledInput)\n .output(ZodEnsurePackageBundledOutput)\n .mutation(ensurePackageBundled);\n"]}
@@ -30,6 +30,7 @@ export declare namespace getData {
30
30
  unwatchAll(): Promise<void>;
31
31
  };
32
32
  packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
33
+ taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
33
34
  dispose(): Promise<void>;
34
35
  };
35
36
  meta: object;
@@ -50,6 +51,7 @@ export declare namespace getData {
50
51
  unwatchAll(): Promise<void>;
51
52
  };
52
53
  packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
54
+ taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
53
55
  dispose(): Promise<void>;
54
56
  };
55
57
  _input_in: {
@@ -22,6 +22,7 @@ export declare namespace getSessionId {
22
22
  unwatchAll(): Promise<void>;
23
23
  };
24
24
  packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
25
+ taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
25
26
  dispose(): Promise<void>;
26
27
  };
27
28
  meta: object;
@@ -42,6 +43,7 @@ export declare namespace getSessionId {
42
43
  unwatchAll(): Promise<void>;
43
44
  };
44
45
  packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
46
+ taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
45
47
  dispose(): Promise<void>;
46
48
  };
47
49
  _input_in: typeof import("@trpc/server").unsetMarker;
@@ -7,4 +7,5 @@ export { openConfigEditor } from './openConfigEditor.js';
7
7
  export { openFilePath } from './openFilePath.js';
8
8
  export { reportMetric } from './reportMetric.js';
9
9
  export { validatePackageOverride } from './validatePackageOverride.js';
10
+ export { sync } from './sync.js';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC"}
package/lib/apis/index.js CHANGED
@@ -7,4 +7,5 @@ export { openConfigEditor } from './openConfigEditor.js';
7
7
  export { openFilePath } from './openFilePath.js';
8
8
  export { reportMetric } from './reportMetric.js';
9
9
  export { validatePackageOverride } from './validatePackageOverride.js';
10
+ export { sync } from './sync.js';
10
11
  //# sourceMappingURL=index.js.map