@ms-cloudpack/api-server 0.63.11 → 0.64.1

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 (172) hide show
  1. package/lib/apis/addPackageOverride.d.ts +1 -1
  2. package/lib/apis/addPackageOverride.js +7 -7
  3. package/lib/apis/addPackageOverride.js.map +1 -1
  4. package/lib/apis/ensurePackageBundled.js.map +1 -1
  5. package/lib/apis/getData.d.ts +9 -17
  6. package/lib/apis/getData.d.ts.map +1 -1
  7. package/lib/apis/getData.js +5 -5
  8. package/lib/apis/getData.js.map +1 -1
  9. package/lib/apis/getLinkConfig.d.ts +2 -4
  10. package/lib/apis/getLinkConfig.d.ts.map +1 -1
  11. package/lib/apis/getLinkConfig.js +4 -3
  12. package/lib/apis/getLinkConfig.js.map +1 -1
  13. package/lib/apis/getSessionId.d.ts +2 -6
  14. package/lib/apis/getSessionId.d.ts.map +1 -1
  15. package/lib/apis/getSessionId.js +3 -4
  16. package/lib/apis/getSessionId.js.map +1 -1
  17. package/lib/apis/linkPath.d.ts +3 -8
  18. package/lib/apis/linkPath.js +3 -3
  19. package/lib/apis/linkPath.js.map +1 -1
  20. package/lib/apis/notifyLinkChange.d.ts +3 -16
  21. package/lib/apis/notifyLinkChange.d.ts.map +1 -1
  22. package/lib/apis/notifyLinkChange.js +5 -4
  23. package/lib/apis/notifyLinkChange.js.map +1 -1
  24. package/lib/apis/onDataChanged.d.ts +5 -18
  25. package/lib/apis/onDataChanged.d.ts.map +1 -1
  26. package/lib/apis/onDataChanged.js +4 -10
  27. package/lib/apis/onDataChanged.js.map +1 -1
  28. package/lib/apis/openCodeEditor.d.ts +10 -26
  29. package/lib/apis/openCodeEditor.d.ts.map +1 -1
  30. package/lib/apis/openCodeEditor.js +11 -7
  31. package/lib/apis/openCodeEditor.js.map +1 -1
  32. package/lib/apis/openConfigEditor.d.ts +4 -1
  33. package/lib/apis/openConfigEditor.d.ts.map +1 -1
  34. package/lib/apis/openConfigEditor.js +6 -2
  35. package/lib/apis/openConfigEditor.js.map +1 -1
  36. package/lib/apis/openFilePath.d.ts +10 -17
  37. package/lib/apis/openFilePath.d.ts.map +1 -1
  38. package/lib/apis/openFilePath.js +9 -5
  39. package/lib/apis/openFilePath.js.map +1 -1
  40. package/lib/apis/publishData.d.ts +7 -17
  41. package/lib/apis/publishData.d.ts.map +1 -1
  42. package/lib/apis/publishData.js +5 -4
  43. package/lib/apis/publishData.js.map +1 -1
  44. package/lib/apis/reportSpan.d.ts +6 -24
  45. package/lib/apis/reportSpan.d.ts.map +1 -1
  46. package/lib/apis/reportSpan.js +6 -5
  47. package/lib/apis/reportSpan.js.map +1 -1
  48. package/lib/apis/restartAllTasks.d.ts +1 -1
  49. package/lib/apis/restartAllTasks.d.ts.map +1 -1
  50. package/lib/apis/restartAllTasks.js +14 -7
  51. package/lib/apis/restartAllTasks.js.map +1 -1
  52. package/lib/apis/restartTask.d.ts +4 -18
  53. package/lib/apis/restartTask.d.ts.map +1 -1
  54. package/lib/apis/restartTask.js +6 -5
  55. package/lib/apis/restartTask.js.map +1 -1
  56. package/lib/apis/unlinkPath.d.ts +3 -8
  57. package/lib/apis/unlinkPath.js +3 -3
  58. package/lib/apis/unlinkPath.js.map +1 -1
  59. package/lib/apis/validatePackageOverride.d.ts +1 -1
  60. package/lib/apis/validatePackageOverride.js +5 -8
  61. package/lib/apis/validatePackageOverride.js.map +1 -1
  62. package/lib/common/createApiContext.d.ts.map +1 -1
  63. package/lib/common/createApiContext.js +4 -1
  64. package/lib/common/createApiContext.js.map +1 -1
  65. package/lib/common/createMockContext.d.ts +16 -9
  66. package/lib/common/createMockContext.d.ts.map +1 -1
  67. package/lib/common/createMockContext.js +21 -16
  68. package/lib/common/createMockContext.js.map +1 -1
  69. package/lib/common/createMockSession.d.ts +1 -1
  70. package/lib/common/createMockSession.d.ts.map +1 -1
  71. package/lib/common/createMockSession.js.map +1 -1
  72. package/lib/common/createSession.d.ts +5 -1
  73. package/lib/common/createSession.d.ts.map +1 -1
  74. package/lib/common/createSession.js +1 -1
  75. package/lib/common/createSession.js.map +1 -1
  76. package/lib/common/prepareOutputPath.js +1 -1
  77. package/lib/common/prepareOutputPath.js.map +1 -1
  78. package/lib/data/busSources.d.ts +12 -240
  79. package/lib/data/busSources.d.ts.map +1 -1
  80. package/lib/data/busSources.js +4 -4
  81. package/lib/data/busSources.js.map +1 -1
  82. package/lib/index.browser.d.ts +2 -2
  83. package/lib/index.browser.d.ts.map +1 -1
  84. package/lib/index.browser.js.map +1 -1
  85. package/lib/index.d.ts +0 -2
  86. package/lib/index.d.ts.map +1 -1
  87. package/lib/index.js.map +1 -1
  88. package/lib/trpc/common.d.ts +41 -2
  89. package/lib/trpc/common.d.ts.map +1 -1
  90. package/lib/trpc/common.js +44 -3
  91. package/lib/trpc/common.js.map +1 -1
  92. package/lib/types/GetLinkConfigOutput.d.ts +5 -0
  93. package/lib/types/GetLinkConfigOutput.d.ts.map +1 -0
  94. package/lib/types/GetLinkConfigOutput.js +18 -0
  95. package/lib/types/GetLinkConfigOutput.js.map +1 -0
  96. package/lib/types/LinkPath.d.ts +9 -93
  97. package/lib/types/LinkPath.d.ts.map +1 -1
  98. package/lib/types/LinkPath.js +28 -34
  99. package/lib/types/LinkPath.js.map +1 -1
  100. package/lib/types/NotifyLinkChangeInput.d.ts +9 -0
  101. package/lib/types/NotifyLinkChangeInput.d.ts.map +1 -0
  102. package/lib/types/NotifyLinkChangeInput.js +16 -0
  103. package/lib/types/NotifyLinkChangeInput.js.map +1 -0
  104. package/lib/types/Task.d.ts +20 -12
  105. package/lib/types/Task.d.ts.map +1 -1
  106. package/lib/types/Task.js.map +1 -1
  107. package/lib/types/TaskDescription.d.ts +19 -73
  108. package/lib/types/TaskDescription.d.ts.map +1 -1
  109. package/lib/types/TaskDescription.js +15 -12
  110. package/lib/types/TaskDescription.js.map +1 -1
  111. package/lib/types/TaskList.d.ts +6 -115
  112. package/lib/types/TaskList.d.ts.map +1 -1
  113. package/lib/types/TaskList.js +3 -2
  114. package/lib/types/TaskList.js.map +1 -1
  115. package/lib/types/TaskMessage.d.ts +3 -11
  116. package/lib/types/TaskMessage.d.ts.map +1 -1
  117. package/lib/types/TaskMessage.js +4 -4
  118. package/lib/types/TaskMessage.js.map +1 -1
  119. package/lib/types/TaskMessageLocation.d.ts +2 -6
  120. package/lib/types/TaskMessageLocation.d.ts.map +1 -1
  121. package/lib/types/TaskMessageLocation.js +3 -3
  122. package/lib/types/TaskMessageLocation.js.map +1 -1
  123. package/lib/types/TaskStats.d.ts +26 -17
  124. package/lib/types/TaskStats.d.ts.map +1 -1
  125. package/lib/types/TaskStats.js +4 -3
  126. package/lib/types/TaskStats.js.map +1 -1
  127. package/lib/types/Timing.d.ts +8 -18
  128. package/lib/types/Timing.d.ts.map +1 -1
  129. package/lib/types/Timing.js +5 -8
  130. package/lib/types/Timing.js.map +1 -1
  131. package/lib/utilities/TaskRunner.d.ts +56 -18
  132. package/lib/utilities/TaskRunner.d.ts.map +1 -1
  133. package/lib/utilities/TaskRunner.js +177 -98
  134. package/lib/utilities/TaskRunner.js.map +1 -1
  135. package/lib/utilities/createBundleTask.d.ts.map +1 -1
  136. package/lib/utilities/createBundleTask.js +9 -15
  137. package/lib/utilities/createBundleTask.js.map +1 -1
  138. package/lib/utilities/matchingZodObject.d.ts +18 -10
  139. package/lib/utilities/matchingZodObject.d.ts.map +1 -1
  140. package/lib/utilities/matchingZodObject.js +19 -7
  141. package/lib/utilities/matchingZodObject.js.map +1 -1
  142. package/lib/utilities/notifyHost.d.ts +3 -4
  143. package/lib/utilities/notifyHost.d.ts.map +1 -1
  144. package/lib/utilities/notifyHost.js.map +1 -1
  145. package/lib/utilities/notifyReload.d.ts +4 -3
  146. package/lib/utilities/notifyReload.d.ts.map +1 -1
  147. package/lib/utilities/notifyReload.js +2 -1
  148. package/lib/utilities/notifyReload.js.map +1 -1
  149. package/lib/utilities/waitForBusData.d.ts +2 -2
  150. package/lib/utilities/waitForBusData.d.ts.map +1 -1
  151. package/lib/utilities/waitForBusData.js.map +1 -1
  152. package/package.json +16 -16
  153. package/lib/types/TaskEndDescription.d.ts +0 -26
  154. package/lib/types/TaskEndDescription.d.ts.map +0 -1
  155. package/lib/types/TaskEndDescription.js +0 -8
  156. package/lib/types/TaskEndDescription.js.map +0 -1
  157. package/lib/types/TaskStartDescription.d.ts +0 -19
  158. package/lib/types/TaskStartDescription.d.ts.map +0 -1
  159. package/lib/types/TaskStartDescription.js +0 -8
  160. package/lib/types/TaskStartDescription.js.map +0 -1
  161. package/lib/types/ZodGetLinkConfigOutput.d.ts +0 -4
  162. package/lib/types/ZodGetLinkConfigOutput.d.ts.map +0 -1
  163. package/lib/types/ZodGetLinkConfigOutput.js +0 -13
  164. package/lib/types/ZodGetLinkConfigOutput.js.map +0 -1
  165. package/lib/types/ZodNotifyLinkChangeInput.d.ts +0 -45
  166. package/lib/types/ZodNotifyLinkChangeInput.d.ts.map +0 -1
  167. package/lib/types/ZodNotifyLinkChangeInput.js +0 -8
  168. package/lib/types/ZodNotifyLinkChangeInput.js.map +0 -1
  169. package/lib/types/ZodResolveMap.d.ts +0 -4
  170. package/lib/types/ZodResolveMap.d.ts.map +0 -1
  171. package/lib/types/ZodResolveMap.js +0 -14
  172. package/lib/types/ZodResolveMap.js.map +0 -1
@@ -1,96 +1,12 @@
1
- import { z } from 'zod';
2
- import type { LinkedPath } from '@ms-cloudpack/common-types';
3
- export declare const ZodLinkPackageDefinition: z.ZodObject<{
4
- name: z.ZodString;
5
- version: z.ZodString;
6
- exports: z.ZodAny;
7
- dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUndefined, z.ZodString]>>>;
8
- peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUndefined, z.ZodString]>>>;
9
- }, "strip", z.ZodTypeAny, {
10
- name: string;
11
- version: string;
12
- exports?: any;
13
- dependencies?: Record<string, string | undefined> | undefined;
14
- peerDependencies?: Record<string, string | undefined> | undefined;
15
- }, {
16
- name: string;
17
- version: string;
18
- exports?: any;
19
- dependencies?: Record<string, string | undefined> | undefined;
20
- peerDependencies?: Record<string, string | undefined> | undefined;
21
- }>;
22
- export declare const ZodLinkedPath: z.ZodObject<{
23
- path: z.ZodType<string, z.ZodTypeDef, string>;
24
- rootPath: z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>;
25
- includeAll: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
26
- ignoredPackages: z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>;
27
- ignoreResolutions: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
28
- resolveStrategy: z.ZodType<"dedupe" | "duplicate" | undefined, z.ZodTypeDef, "dedupe" | "duplicate" | undefined>;
29
- remote: z.ZodType<{
30
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
31
- hostUrl: string;
32
- packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
33
- packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
34
- } | undefined, z.ZodTypeDef, {
35
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
36
- hostUrl: string;
37
- packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
38
- packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
39
- } | undefined>;
40
- }, "strict", z.ZodTypeAny, LinkedPath, LinkedPath>;
41
- export declare const ZodLinkPathInput: z.ZodObject<{
42
- linkedPath: z.ZodObject<{
43
- path: z.ZodType<string, z.ZodTypeDef, string>;
44
- rootPath: z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>;
45
- includeAll: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
46
- ignoredPackages: z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>;
47
- ignoreResolutions: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
48
- resolveStrategy: z.ZodType<"dedupe" | "duplicate" | undefined, z.ZodTypeDef, "dedupe" | "duplicate" | undefined>;
49
- remote: z.ZodType<{
50
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
51
- hostUrl: string;
52
- packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
53
- packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
54
- } | undefined, z.ZodTypeDef, {
55
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
56
- hostUrl: string;
57
- packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
58
- packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
59
- } | undefined>;
60
- }, "strict", z.ZodTypeAny, LinkedPath, LinkedPath>;
61
- }, "strip", z.ZodTypeAny, {
1
+ import { z } from 'zod/v4-mini';
2
+ import type { LinkedPath, ResolveMap } from '@ms-cloudpack/common-types';
3
+ export interface LinkPathInput {
62
4
  linkedPath: LinkedPath;
63
- }, {
64
- linkedPath: LinkedPath;
65
- }>;
66
- export type LinkPathInput = z.infer<typeof ZodLinkPathInput>;
67
- export declare const ZodLinkPathOutput: z.ZodObject<{
68
- resolveMap: z.ZodType<import("@ms-cloudpack/common-types").ResolveMap, z.ZodTypeDef, import("@ms-cloudpack/common-types").ResolveMap>;
69
- linkedPaths: z.ZodArray<z.ZodObject<{
70
- path: z.ZodType<string, z.ZodTypeDef, string>;
71
- rootPath: z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>;
72
- includeAll: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
73
- ignoredPackages: z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>;
74
- ignoreResolutions: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
75
- resolveStrategy: z.ZodType<"dedupe" | "duplicate" | undefined, z.ZodTypeDef, "dedupe" | "duplicate" | undefined>;
76
- remote: z.ZodType<{
77
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
78
- hostUrl: string;
79
- packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
80
- packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
81
- } | undefined, z.ZodTypeDef, {
82
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
83
- hostUrl: string;
84
- packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
85
- packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
86
- } | undefined>;
87
- }, "strict", z.ZodTypeAny, LinkedPath, LinkedPath>, "many">;
88
- }, "strip", z.ZodTypeAny, {
89
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
90
- linkedPaths: LinkedPath[];
91
- }, {
92
- resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
5
+ }
6
+ export declare const ZodLinkPathInput: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<LinkPathInput>, z.core.$strip>;
7
+ export interface LinkPathOutput {
8
+ resolveMap: ResolveMap;
93
9
  linkedPaths: LinkedPath[];
94
- }>;
95
- export type LinkPathOutput = z.infer<typeof ZodLinkPathOutput>;
10
+ }
11
+ export declare const ZodLinkPathOutput: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<LinkPathOutput>, z.core.$strip>;
96
12
  //# sourceMappingURL=LinkPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkPath.d.ts","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAW7D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;EASnC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;kDAuBxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAA0C,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"LinkPath.d.ts","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAmCzE,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,6GAAkE,CAAC;AAEhG,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,iBAAiB,8GAI5B,CAAC"}
@@ -1,49 +1,43 @@
1
- import { z } from 'zod';
1
+ //
2
+ // This must be in a separate file because it's imported by busSources.ts, which is also used
3
+ // in the browser, so it must only import zod types.
4
+ // (Also, these types are used by both `linkPath` and `unlinkPath`.)
5
+ //
6
+ import { z } from 'zod/v4-mini';
2
7
  import { matchingZodObject } from '../utilities/matchingZodObject.js';
3
- import { ZodResolveMap } from '../types/ZodResolveMap.js';
4
- const ZodPackageRecord = (ZodPackageJson) => z.record(z.union([ZodPackageJson, z.undefined()]));
5
8
  const ZodPackageHashesEntry = z.object({
6
- browser: z.record(z.string()),
7
- node: z.record(z.string()),
9
+ browser: z.record(z.string(), z.string()),
10
+ node: z.record(z.string(), z.string()),
8
11
  });
9
- const ZodDependency = z.record(z.string(), z.union([z.undefined(), z.string()])).optional();
10
- export const ZodLinkPackageDefinition = z.object({
11
- // Name and version are required for the import map.
12
- name: z.string(),
13
- version: z.string(),
14
- // The exports are also required for the import map.
15
- exports: z.any(),
16
- // Dependencies are required for the resolve map.
17
- dependencies: ZodDependency,
18
- peerDependencies: ZodDependency,
19
- });
20
- export const ZodLinkedPath = matchingZodObject({
12
+ const ZodLinkedPath = matchingZodObject({
21
13
  path: z.string(),
22
- rootPath: z.string().optional(),
23
- includeAll: z.boolean().optional(),
24
- ignoredPackages: z.string().array().optional(),
25
- ignoreResolutions: z.boolean().optional(),
26
- resolveStrategy: z.enum(['dedupe', 'duplicate']).optional(),
27
- remote: z
28
- .object({
29
- resolveMap: ZodResolveMap,
14
+ rootPath: z.optional(z.string()),
15
+ includeAll: z.optional(z.boolean()),
16
+ ignoredPackages: z.optional(z.array(z.string())),
17
+ ignoreResolutions: z.optional(z.boolean()),
18
+ resolveStrategy: z.optional(z.literal(['dedupe', 'duplicate'])),
19
+ remote: z.optional(matchingZodObject({
30
20
  hostUrl: z.string(),
21
+ // Skip schema validation of the resolve map since it's likely very large, and the various
22
+ // zod and procedure type helpers ensure the type is correct in the API.
23
+ resolveMap: z.record(z.string(), z.any()),
24
+ // Same with the serializable package definitions.
25
+ // If we need to enforce usage/sharing of a minimal subset of properties, that should be done
26
+ // with smaller subset/pick type (non-zod) which is used in all relevant locations.
31
27
  packages: z.object({
32
- // Dummy package json as start should not require any non transformed package definitions
33
- definitions: ZodPackageRecord(z.object({})),
34
- // For linked packages, we need name and version across Cloudpack, and the exports for the import map.
35
- transformedDefinitions: ZodPackageRecord(ZodLinkPackageDefinition),
28
+ definitions: z.record(z.string(), z.any()),
29
+ transformedDefinitions: z.record(z.string(), z.any()),
36
30
  }),
37
31
  packageHashes: z.object({
38
32
  hashesWithSource: ZodPackageHashesEntry,
39
33
  hashesWithNoSource: ZodPackageHashesEntry,
40
34
  }),
41
- })
42
- .optional(),
35
+ })),
43
36
  });
44
- export const ZodLinkPathInput = z.object({ linkedPath: ZodLinkedPath });
45
- export const ZodLinkPathOutput = z.object({
46
- resolveMap: ZodResolveMap,
37
+ export const ZodLinkPathInput = matchingZodObject({ linkedPath: ZodLinkedPath });
38
+ export const ZodLinkPathOutput = matchingZodObject({
39
+ // Don't check the schema of the resolve map as it can be very large.
40
+ resolveMap: z.record(z.string(), z.any()),
47
41
  linkedPaths: z.array(ZodLinkedPath),
48
42
  });
49
43
  //# sourceMappingURL=LinkPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkPath.js","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,gBAAgB,GAAG,CAAC,cAA0B,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;AAE5G,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC5F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,oDAAoD;IACpD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,oDAAoD;IACpD,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE;IAChB,iDAAiD;IACjD,YAAY,EAAE,aAAa;IAC3B,gBAAgB,EAAE,aAAa;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAa;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC9C,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,CAAC;SACN,MAAM,CAAC;QACN,UAAU,EAAE,aAAa;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;YACjB,yFAAyF;YACzF,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAC3C,sGAAsG;YACtG,sBAAsB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC;SACnE,CAAC;QACF,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC;YACtB,gBAAgB,EAAE,qBAAqB;YACvC,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;AAIxE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;CACpC,CAAC,CAAC","sourcesContent":["import { z, type ZodTypeAny } from 'zod';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\nimport type { LinkedPath } from '@ms-cloudpack/common-types';\nimport { ZodResolveMap } from '../types/ZodResolveMap.js';\n\nconst ZodPackageRecord = (ZodPackageJson: ZodTypeAny) => z.record(z.union([ZodPackageJson, z.undefined()]));\n\nconst ZodPackageHashesEntry = z.object({\n browser: z.record(z.string()),\n node: z.record(z.string()),\n});\n\nconst ZodDependency = z.record(z.string(), z.union([z.undefined(), z.string()])).optional();\nexport const ZodLinkPackageDefinition = z.object({\n // Name and version are required for the import map.\n name: z.string(),\n version: z.string(),\n // The exports are also required for the import map.\n exports: z.any(),\n // Dependencies are required for the resolve map.\n dependencies: ZodDependency,\n peerDependencies: ZodDependency,\n});\n\nexport const ZodLinkedPath = matchingZodObject<LinkedPath>({\n path: z.string(),\n rootPath: z.string().optional(),\n includeAll: z.boolean().optional(),\n ignoredPackages: z.string().array().optional(),\n ignoreResolutions: z.boolean().optional(),\n resolveStrategy: z.enum(['dedupe', 'duplicate']).optional(),\n remote: z\n .object({\n resolveMap: ZodResolveMap,\n hostUrl: z.string(),\n packages: z.object({\n // Dummy package json as start should not require any non transformed package definitions\n definitions: ZodPackageRecord(z.object({})),\n // For linked packages, we need name and version across Cloudpack, and the exports for the import map.\n transformedDefinitions: ZodPackageRecord(ZodLinkPackageDefinition),\n }),\n packageHashes: z.object({\n hashesWithSource: ZodPackageHashesEntry,\n hashesWithNoSource: ZodPackageHashesEntry,\n }),\n })\n .optional(),\n});\n\nexport const ZodLinkPathInput = z.object({ linkedPath: ZodLinkedPath });\n\nexport type LinkPathInput = z.infer<typeof ZodLinkPathInput>;\n\nexport const ZodLinkPathOutput = z.object({\n resolveMap: ZodResolveMap,\n linkedPaths: z.array(ZodLinkedPath),\n});\n\nexport type LinkPathOutput = z.infer<typeof ZodLinkPathOutput>;\n"]}
1
+ {"version":3,"file":"LinkPath.js","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,6FAA6F;AAC7F,oDAAoD;AACpD,oEAAoE;AACpE,EAAE;AACF,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGtE,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,iBAAiB,CAAa;IAClD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC1C,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAC/D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,iBAAiB,CAAoC;QACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,0FAA0F;QAC1F,wEAAwE;QACxE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;QACzC,kDAAkD;QAClD,6FAA6F;QAC7F,mFAAmF;QACnF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;YAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;SACtD,CAAC;QACF,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC;YACtB,gBAAgB,EAAE,qBAAqB;YACvC,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC;KACH,CAAC,CACH;CACF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;AAOhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAiB;IACjE,qEAAqE;IACrE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;CACpC,CAAC,CAAC","sourcesContent":["//\n// This must be in a separate file because it's imported by busSources.ts, which is also used\n// in the browser, so it must only import zod types.\n// (Also, these types are used by both `linkPath` and `unlinkPath`.)\n//\nimport { z } from 'zod/v4-mini';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\nimport type { LinkedPath, ResolveMap } from '@ms-cloudpack/common-types';\n\nconst ZodPackageHashesEntry = z.object({\n browser: z.record(z.string(), z.string()),\n node: z.record(z.string(), z.string()),\n});\n\nconst ZodLinkedPath = matchingZodObject<LinkedPath>({\n path: z.string(),\n rootPath: z.optional(z.string()),\n includeAll: z.optional(z.boolean()),\n ignoredPackages: z.optional(z.array(z.string())),\n ignoreResolutions: z.optional(z.boolean()),\n resolveStrategy: z.optional(z.literal(['dedupe', 'duplicate'])),\n remote: z.optional(\n matchingZodObject<NonNullable<LinkedPath['remote']>>({\n hostUrl: z.string(),\n // Skip schema validation of the resolve map since it's likely very large, and the various\n // zod and procedure type helpers ensure the type is correct in the API.\n resolveMap: z.record(z.string(), z.any()),\n // Same with the serializable package definitions.\n // If we need to enforce usage/sharing of a minimal subset of properties, that should be done\n // with smaller subset/pick type (non-zod) which is used in all relevant locations.\n packages: z.object({\n definitions: z.record(z.string(), z.any()),\n transformedDefinitions: z.record(z.string(), z.any()),\n }),\n packageHashes: z.object({\n hashesWithSource: ZodPackageHashesEntry,\n hashesWithNoSource: ZodPackageHashesEntry,\n }),\n }),\n ),\n});\n\nexport interface LinkPathInput {\n linkedPath: LinkedPath;\n}\n\nexport const ZodLinkPathInput = matchingZodObject<LinkPathInput>({ linkedPath: ZodLinkedPath });\n\nexport interface LinkPathOutput {\n resolveMap: ResolveMap;\n linkedPaths: LinkedPath[];\n}\n\nexport const ZodLinkPathOutput = matchingZodObject<LinkPathOutput>({\n // Don't check the schema of the resolve map as it can be very large.\n resolveMap: z.record(z.string(), z.any()),\n linkedPaths: z.array(ZodLinkedPath),\n});\n"]}
@@ -0,0 +1,9 @@
1
+ import type { PackageJson } from '@ms-cloudpack/common-types';
2
+ import { z } from 'zod/v4-mini';
3
+ export interface NotifyLinkChangeInput {
4
+ packagePath: string;
5
+ hash?: string;
6
+ definition?: PackageJson;
7
+ }
8
+ export declare const ZodNotifyLinkChangeInput: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<NotifyLinkChangeInput>, z.core.$strip>;
9
+ //# sourceMappingURL=NotifyLinkChangeInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotifyLinkChangeInput.d.ts","sourceRoot":"","sources":["../../src/types/NotifyLinkChangeInput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAGhC,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAaD,eAAO,MAAM,wBAAwB,qHAInC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod/v4-mini';
2
+ import { matchingZodObject, matchingZodObjectLoose } from '../utilities/matchingZodObject.js';
3
+ /**
4
+ * Validate that the package.json includes the name and version, and pass through all other fields
5
+ * without validation.
6
+ */
7
+ const ZodBasicPackageJson = matchingZodObjectLoose({
8
+ name: z.string(),
9
+ version: z.string(),
10
+ });
11
+ export const ZodNotifyLinkChangeInput = matchingZodObject({
12
+ packagePath: z.string(),
13
+ hash: z.optional(z.string()),
14
+ definition: z.optional(ZodBasicPackageJson),
15
+ });
16
+ //# sourceMappingURL=NotifyLinkChangeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotifyLinkChangeInput.js","sourceRoot":"","sources":["../../src/types/NotifyLinkChangeInput.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAQ9F;;;GAGG;AACH,MAAM,mBAAmB,GAA4C,sBAAsB,CAEzF;IACA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAwB;IAC/E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CAC5C,CAAC,CAAC","sourcesContent":["//\n// This must be in a separate file because it's imported by busSources.ts, which is also used\n// in the browser, so it must only import zod types.\n//\nimport type { PackageJson } from '@ms-cloudpack/common-types';\nimport { z } from 'zod/v4-mini';\nimport { matchingZodObject, matchingZodObjectLoose } from '../utilities/matchingZodObject.js';\n\nexport interface NotifyLinkChangeInput {\n packagePath: string;\n hash?: string;\n definition?: PackageJson;\n}\n\n/**\n * Validate that the package.json includes the name and version, and pass through all other fields\n * without validation.\n */\nconst ZodBasicPackageJson: z.ZodMiniType<PackageJson, PackageJson> = matchingZodObjectLoose<\n Pick<PackageJson, 'name' | 'version'>\n>({\n name: z.string(),\n version: z.string(),\n});\n\nexport const ZodNotifyLinkChangeInput = matchingZodObject<NotifyLinkChangeInput>({\n packagePath: z.string(),\n hash: z.optional(z.string()),\n definition: z.optional(ZodBasicPackageJson),\n});\n"]}
@@ -1,18 +1,26 @@
1
- import type { TaskStartDescription } from './TaskStartDescription.js';
2
- import type { TaskEndDescription } from './TaskEndDescription.js';
3
- import type { TaskMessage } from './TaskMessage.js';
1
+ import type { TaskDescription } from './TaskDescription.js';
4
2
  /** Task for `TaskRunner`. */
5
- export interface Task<TReturn> {
6
- name: string;
7
- id: string;
8
- dir?: string;
3
+ export interface Task<TReturn> extends Pick<TaskDescription, 'id' | 'name'> {
4
+ /** Run the task */
9
5
  execute: () => Promise<TReturn | undefined>;
10
- clear?: () => void;
11
- watch?: boolean;
12
- dispose?: () => Promise<void>;
13
- onDispose?: () => void;
14
- getErrors?: () => TaskMessage[] | undefined;
6
+ /** Clean up resources in memory, such as disposing a watched task result. */
7
+ dispose?: () => void;
8
+ /**
9
+ * Remove the result of running the task, such as deleting bundled files from disk.
10
+ * (Use `dispose` for cleanup of in-memory resources.)
11
+ */
12
+ clear?: () => Promise<void>;
13
+ /**
14
+ * Get info available at the start of the task.
15
+ * This is required for task info to be sent over the data bus to the client.
16
+ */
15
17
  getStartDescription?: () => TaskStartDescription;
18
+ /**
19
+ * Get task result summary.
20
+ * This is required for task info to be sent over the data bus to the client.
21
+ */
16
22
  getEndDescription?: (result: TReturn | undefined) => TaskEndDescription;
17
23
  }
24
+ export type TaskStartDescription = Pick<TaskDescription, 'inputPath'>;
25
+ export type TaskEndDescription = Pick<TaskDescription, 'outputPath' | 'errors' | 'warnings'>;
18
26
  //# sourceMappingURL=Task.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/types/Task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,6BAA6B;AAC7B,MAAM,WAAW,IAAI,CAAC,OAAO;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,WAAW,EAAE,GAAG,SAAS,CAAC;IAC5C,mBAAmB,CAAC,EAAE,MAAM,oBAAoB,CAAC;IACjD,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,KAAK,kBAAkB,CAAC;CACzE"}
1
+ {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/types/Task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,6BAA6B;AAC7B,MAAM,WAAW,IAAI,CAAC,OAAO,CAAE,SAAQ,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,MAAM,CAAC;IACzE,mBAAmB;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAE5C,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,oBAAoB,CAAC;IAEjD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,KAAK,kBAAkB,CAAC;CACzE;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,eAAe,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Task.js","sourceRoot":"","sources":["../../src/types/Task.ts"],"names":[],"mappings":"","sourcesContent":["import type { TaskStartDescription } from './TaskStartDescription.js';\nimport type { TaskEndDescription } from './TaskEndDescription.js';\nimport type { TaskMessage } from './TaskMessage.js';\n\n/** Task for `TaskRunner`. */\nexport interface Task<TReturn> {\n name: string;\n id: string;\n dir?: string;\n execute: () => Promise<TReturn | undefined>;\n clear?: () => void;\n watch?: boolean;\n dispose?: () => Promise<void>;\n onDispose?: () => void;\n getErrors?: () => TaskMessage[] | undefined;\n getStartDescription?: () => TaskStartDescription;\n getEndDescription?: (result: TReturn | undefined) => TaskEndDescription;\n}\n"]}
1
+ {"version":3,"file":"Task.js","sourceRoot":"","sources":["../../src/types/Task.ts"],"names":[],"mappings":"","sourcesContent":["import type { TaskDescription } from './TaskDescription.js';\n\n/** Task for `TaskRunner`. */\nexport interface Task<TReturn> extends Pick<TaskDescription, 'id' | 'name'> {\n /** Run the task */\n execute: () => Promise<TReturn | undefined>;\n\n /** Clean up resources in memory, such as disposing a watched task result. */\n dispose?: () => void;\n\n /**\n * Remove the result of running the task, such as deleting bundled files from disk.\n * (Use `dispose` for cleanup of in-memory resources.)\n */\n clear?: () => Promise<void>;\n\n /**\n * Get info available at the start of the task.\n * This is required for task info to be sent over the data bus to the client.\n */\n getStartDescription?: () => TaskStartDescription;\n\n /**\n * Get task result summary.\n * This is required for task info to be sent over the data bus to the client.\n */\n getEndDescription?: (result: TReturn | undefined) => TaskEndDescription;\n}\n\nexport type TaskStartDescription = Pick<TaskDescription, 'inputPath'>;\nexport type TaskEndDescription = Pick<TaskDescription, 'outputPath' | 'errors' | 'warnings'>;\n"]}
@@ -1,76 +1,22 @@
1
- import z from 'zod';
2
- export declare const ZodTaskDescription: z.ZodObject<{
3
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"complete">]>>;
4
- timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
- name: z.ZodString;
6
- start: z.ZodNumber;
7
- end: z.ZodOptional<z.ZodNumber>;
8
- threwException: z.ZodOptional<z.ZodBoolean>;
9
- }, "strip", z.ZodTypeAny, {
10
- name: string;
11
- start: number;
12
- end?: number | undefined;
13
- threwException?: boolean | undefined;
14
- }, {
15
- name: string;
16
- start: number;
17
- end?: number | undefined;
18
- threwException?: boolean | undefined;
19
- }>, "many">>;
20
- startTime: z.ZodNumber;
21
- durationMilliseconds: z.ZodOptional<z.ZodNumber>;
22
- lastUpdated: z.ZodOptional<z.ZodNumber>;
23
- name: z.ZodOptional<z.ZodString>;
24
- inputPath: z.ZodOptional<z.ZodString>;
25
- outputPath: z.ZodOptional<z.ZodString>;
26
- } & {
27
- id: z.ZodString;
28
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
- text: z.ZodType<string, z.ZodTypeDef, string>;
30
- source: z.ZodType<string, z.ZodTypeDef, string>;
31
- location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
32
- notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
33
- }, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
34
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
- text: z.ZodType<string, z.ZodTypeDef, string>;
36
- source: z.ZodType<string, z.ZodTypeDef, string>;
37
- location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
38
- notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
39
- }, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
40
- }, "strip", z.ZodTypeAny, {
1
+ import type { BundleResult } from '@ms-cloudpack/common-types';
2
+ import { z } from 'zod/v4-mini';
3
+ import { type Timing } from './Timing.js';
4
+ /**
5
+ * Task description to be displayed in the UI.
6
+ */
7
+ export interface TaskDescription extends Pick<BundleResult, 'inputPath' | 'outputPath' | 'errors' | 'warnings'> {
8
+ /** Unique ID for the task */
41
9
  id: string;
10
+ /** Task display name */
11
+ name: string;
12
+ status: 'pending' | 'complete';
13
+ /** Start time of the task in milliseconds. */
42
14
  startTime: number;
43
- status?: "pending" | "complete" | undefined;
44
- name?: string | undefined;
45
- inputPath?: string | undefined;
46
- outputPath?: string | undefined;
47
- errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
48
- warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
49
- timings?: {
50
- name: string;
51
- start: number;
52
- end?: number | undefined;
53
- threwException?: boolean | undefined;
54
- }[] | undefined;
55
- durationMilliseconds?: number | undefined;
56
- lastUpdated?: number | undefined;
57
- }, {
58
- id: string;
59
- startTime: number;
60
- status?: "pending" | "complete" | undefined;
61
- name?: string | undefined;
62
- inputPath?: string | undefined;
63
- outputPath?: string | undefined;
64
- errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
65
- warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
66
- timings?: {
67
- name: string;
68
- start: number;
69
- end?: number | undefined;
70
- threwException?: boolean | undefined;
71
- }[] | undefined;
72
- durationMilliseconds?: number | undefined;
73
- lastUpdated?: number | undefined;
74
- }>;
75
- export type TaskDescription = z.infer<typeof ZodTaskDescription>;
15
+ /** Duration of the task in milliseconds. */
16
+ duration?: number;
17
+ /** Last updated time of the task in milliseconds. */
18
+ lastUpdated?: number;
19
+ timings?: Timing[];
20
+ }
21
+ export declare const ZodTaskDescription: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskDescription>, z.core.$strip>;
76
22
  //# sourceMappingURL=TaskDescription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASO,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"TaskDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAa,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrD;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7G,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC;IAC/B,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,+GAY7B,CAAC"}
@@ -1,15 +1,18 @@
1
- import z from 'zod';
2
- import { ZodTaskStartDescription } from './TaskStartDescription.js';
3
- import { ZodTaskEndDescription } from './TaskEndDescription.js';
1
+ import { z } from 'zod/v4-mini';
4
2
  import { ZodTiming } from './Timing.js';
5
- export const ZodTaskDescription = z
6
- .object({
7
- status: z.literal('pending').or(z.literal('complete')).optional(),
8
- timings: z.array(ZodTiming).optional(),
3
+ import { matchingZodObject } from '../utilities/matchingZodObject.js';
4
+ import { ZodTaskMessage } from './TaskMessage.js';
5
+ export const ZodTaskDescription = matchingZodObject({
6
+ id: z.string(),
7
+ name: z.string(),
8
+ status: z.literal(['pending', 'complete']),
9
+ inputPath: z.string(),
10
+ outputPath: z.optional(z.string()),
11
+ errors: z.optional(z.array(ZodTaskMessage)),
12
+ warnings: z.optional(z.array(ZodTaskMessage)),
9
13
  startTime: z.number(),
10
- durationMilliseconds: z.number().optional(),
11
- lastUpdated: z.number().optional(),
12
- })
13
- .extend(ZodTaskStartDescription.shape)
14
- .extend(ZodTaskEndDescription.shape);
14
+ duration: z.optional(z.number()),
15
+ lastUpdated: z.optional(z.number()),
16
+ timings: z.optional(z.array(ZodTiming)),
17
+ });
15
18
  //# sourceMappingURL=TaskDescription.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskDescription.js","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,MAAM,CAAC,uBAAuB,CAAC,KAAK,CAAC;KACrC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskStartDescription } from './TaskStartDescription.js';\nimport { ZodTaskEndDescription } from './TaskEndDescription.js';\nimport { ZodTiming } from './Timing.js';\n\nexport const ZodTaskDescription = z\n .object({\n status: z.literal('pending').or(z.literal('complete')).optional(),\n timings: z.array(ZodTiming).optional(),\n startTime: z.number(),\n durationMilliseconds: z.number().optional(),\n lastUpdated: z.number().optional(),\n })\n .extend(ZodTaskStartDescription.shape)\n .extend(ZodTaskEndDescription.shape);\n\nexport type TaskDescription = z.infer<typeof ZodTaskDescription>;\n"]}
1
+ {"version":3,"file":"TaskDescription.js","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoBlD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAkB;IACnE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC3C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC7C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;CACxC,CAAC,CAAC","sourcesContent":["import type { BundleResult } from '@ms-cloudpack/common-types';\nimport { z } from 'zod/v4-mini';\nimport { ZodTiming, type Timing } from './Timing.js';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\nimport { ZodTaskMessage } from './TaskMessage.js';\n\n/**\n * Task description to be displayed in the UI.\n */\nexport interface TaskDescription extends Pick<BundleResult, 'inputPath' | 'outputPath' | 'errors' | 'warnings'> {\n /** Unique ID for the task */\n id: string;\n /** Task display name */\n name: string;\n status: 'pending' | 'complete';\n /** Start time of the task in milliseconds. */\n startTime: number;\n /** Duration of the task in milliseconds. */\n duration?: number;\n /** Last updated time of the task in milliseconds. */\n lastUpdated?: number;\n timings?: Timing[];\n}\n\nexport const ZodTaskDescription = matchingZodObject<TaskDescription>({\n id: z.string(),\n name: z.string(),\n status: z.literal(['pending', 'complete']),\n inputPath: z.string(),\n outputPath: z.optional(z.string()),\n errors: z.optional(z.array(ZodTaskMessage)),\n warnings: z.optional(z.array(ZodTaskMessage)),\n startTime: z.number(),\n duration: z.optional(z.number()),\n lastUpdated: z.optional(z.number()),\n timings: z.optional(z.array(ZodTiming)),\n});\n"]}
@@ -1,116 +1,7 @@
1
- import { z } from 'zod';
2
- export declare const ZodTaskList: z.ZodObject<{
3
- tasks: z.ZodArray<z.ZodObject<{
4
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"complete">]>>;
5
- timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
- name: z.ZodString;
7
- start: z.ZodNumber;
8
- end: z.ZodOptional<z.ZodNumber>;
9
- threwException: z.ZodOptional<z.ZodBoolean>;
10
- }, "strip", z.ZodTypeAny, {
11
- name: string;
12
- start: number;
13
- end?: number | undefined;
14
- threwException?: boolean | undefined;
15
- }, {
16
- name: string;
17
- start: number;
18
- end?: number | undefined;
19
- threwException?: boolean | undefined;
20
- }>, "many">>;
21
- startTime: z.ZodNumber;
22
- durationMilliseconds: z.ZodOptional<z.ZodNumber>;
23
- lastUpdated: z.ZodOptional<z.ZodNumber>;
24
- name: z.ZodOptional<z.ZodString>;
25
- inputPath: z.ZodOptional<z.ZodString>;
26
- outputPath: z.ZodOptional<z.ZodString>;
27
- } & {
28
- id: z.ZodString;
29
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
- text: z.ZodType<string, z.ZodTypeDef, string>;
31
- source: z.ZodType<string, z.ZodTypeDef, string>;
32
- location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
33
- notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
34
- }, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
35
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
- text: z.ZodType<string, z.ZodTypeDef, string>;
37
- source: z.ZodType<string, z.ZodTypeDef, string>;
38
- location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
39
- notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
40
- }, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
41
- }, "strip", z.ZodTypeAny, {
42
- id: string;
43
- startTime: number;
44
- status?: "pending" | "complete" | undefined;
45
- name?: string | undefined;
46
- inputPath?: string | undefined;
47
- outputPath?: string | undefined;
48
- errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
49
- warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
50
- timings?: {
51
- name: string;
52
- start: number;
53
- end?: number | undefined;
54
- threwException?: boolean | undefined;
55
- }[] | undefined;
56
- durationMilliseconds?: number | undefined;
57
- lastUpdated?: number | undefined;
58
- }, {
59
- id: string;
60
- startTime: number;
61
- status?: "pending" | "complete" | undefined;
62
- name?: string | undefined;
63
- inputPath?: string | undefined;
64
- outputPath?: string | undefined;
65
- errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
66
- warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
67
- timings?: {
68
- name: string;
69
- start: number;
70
- end?: number | undefined;
71
- threwException?: boolean | undefined;
72
- }[] | undefined;
73
- durationMilliseconds?: number | undefined;
74
- lastUpdated?: number | undefined;
75
- }>, "many">;
76
- }, "strip", z.ZodTypeAny, {
77
- tasks: {
78
- id: string;
79
- startTime: number;
80
- status?: "pending" | "complete" | undefined;
81
- name?: string | undefined;
82
- inputPath?: string | undefined;
83
- outputPath?: string | undefined;
84
- errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
85
- warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
86
- timings?: {
87
- name: string;
88
- start: number;
89
- end?: number | undefined;
90
- threwException?: boolean | undefined;
91
- }[] | undefined;
92
- durationMilliseconds?: number | undefined;
93
- lastUpdated?: number | undefined;
94
- }[];
95
- }, {
96
- tasks: {
97
- id: string;
98
- startTime: number;
99
- status?: "pending" | "complete" | undefined;
100
- name?: string | undefined;
101
- inputPath?: string | undefined;
102
- outputPath?: string | undefined;
103
- errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
104
- warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
105
- timings?: {
106
- name: string;
107
- start: number;
108
- end?: number | undefined;
109
- threwException?: boolean | undefined;
110
- }[] | undefined;
111
- durationMilliseconds?: number | undefined;
112
- lastUpdated?: number | undefined;
113
- }[];
114
- }>;
115
- export type TaskList = z.infer<typeof ZodTaskList>;
1
+ import { z } from 'zod/v4-mini';
2
+ import { type TaskDescription } from './TaskDescription.js';
3
+ export interface TaskList {
4
+ tasks: TaskDescription[];
5
+ }
6
+ export declare const ZodTaskList: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskList>, z.core.$strip>;
116
7
  //# sourceMappingURL=TaskList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskList.d.ts","sourceRoot":"","sources":["../../src/types/TaskList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"TaskList.d.ts","sourceRoot":"","sources":["../../src/types/TaskList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGhF,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,wGAEtB,CAAC"}
@@ -1,6 +1,7 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4-mini';
2
2
  import { ZodTaskDescription } from './TaskDescription.js';
3
- export const ZodTaskList = z.object({
3
+ import { matchingZodObject } from '../utilities/matchingZodObject.js';
4
+ export const ZodTaskList = matchingZodObject({
4
5
  tasks: z.array(ZodTaskDescription),
5
6
  });
6
7
  //# sourceMappingURL=TaskList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskList.js","sourceRoot":"","sources":["../../src/types/TaskList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACnC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ZodTaskDescription } from './TaskDescription.js';\n\nexport const ZodTaskList = z.object({\n tasks: z.array(ZodTaskDescription),\n});\n\nexport type TaskList = z.infer<typeof ZodTaskList>;\n"]}
1
+ {"version":3,"file":"TaskList.js","sourceRoot":"","sources":["../../src/types/TaskList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAMtE,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAW;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACnC,CAAC,CAAC","sourcesContent":["import { z } from 'zod/v4-mini';\nimport { ZodTaskDescription, type TaskDescription } from './TaskDescription.js';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nexport interface TaskList {\n tasks: TaskDescription[];\n}\n\nexport const ZodTaskList = matchingZodObject<TaskList>({\n tasks: z.array(ZodTaskDescription),\n});\n"]}