@ms-cloudpack/api-server 0.63.10 → 0.64.0
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.
- package/lib/apis/addPackageOverride.d.ts +1 -1
- package/lib/apis/addPackageOverride.js +7 -7
- package/lib/apis/addPackageOverride.js.map +1 -1
- package/lib/apis/ensurePackageBundled.js.map +1 -1
- package/lib/apis/getData.d.ts +7 -13
- package/lib/apis/getData.d.ts.map +1 -1
- package/lib/apis/getData.js +3 -4
- package/lib/apis/getData.js.map +1 -1
- package/lib/apis/getLinkConfig.d.ts +2 -2
- package/lib/apis/getLinkConfig.d.ts.map +1 -1
- package/lib/apis/getLinkConfig.js +3 -2
- package/lib/apis/getLinkConfig.js.map +1 -1
- package/lib/apis/getSessionId.d.ts +2 -6
- package/lib/apis/getSessionId.d.ts.map +1 -1
- package/lib/apis/getSessionId.js +3 -4
- package/lib/apis/getSessionId.js.map +1 -1
- package/lib/apis/linkPath.d.ts +29 -3
- package/lib/apis/linkPath.js +2 -2
- package/lib/apis/linkPath.js.map +1 -1
- package/lib/apis/notifyLinkChange.d.ts +2 -2
- package/lib/apis/notifyLinkChange.d.ts.map +1 -1
- package/lib/apis/notifyLinkChange.js +3 -2
- package/lib/apis/notifyLinkChange.js.map +1 -1
- package/lib/apis/onDataChanged.d.ts +7 -13
- package/lib/apis/onDataChanged.d.ts.map +1 -1
- package/lib/apis/onDataChanged.js +3 -7
- package/lib/apis/onDataChanged.js.map +1 -1
- package/lib/apis/openCodeEditor.d.ts +9 -19
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.js +6 -6
- package/lib/apis/openCodeEditor.js.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +1 -1
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.js +3 -2
- package/lib/apis/openConfigEditor.js.map +1 -1
- package/lib/apis/openFilePath.d.ts +6 -12
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/openFilePath.js +4 -4
- package/lib/apis/openFilePath.js.map +1 -1
- package/lib/apis/publishData.d.ts +7 -13
- package/lib/apis/publishData.d.ts.map +1 -1
- package/lib/apis/publishData.js +3 -3
- package/lib/apis/publishData.js.map +1 -1
- package/lib/apis/reportSpan.d.ts +10 -20
- package/lib/apis/reportSpan.d.ts.map +1 -1
- package/lib/apis/reportSpan.js +5 -5
- package/lib/apis/reportSpan.js.map +1 -1
- package/lib/apis/restartAllTasks.d.ts +1 -1
- package/lib/apis/restartAllTasks.d.ts.map +1 -1
- package/lib/apis/restartAllTasks.js +14 -7
- package/lib/apis/restartAllTasks.js.map +1 -1
- package/lib/apis/restartTask.d.ts +4 -18
- package/lib/apis/restartTask.d.ts.map +1 -1
- package/lib/apis/restartTask.js +6 -5
- package/lib/apis/restartTask.js.map +1 -1
- package/lib/apis/unlinkPath.d.ts +29 -3
- package/lib/apis/unlinkPath.js +2 -2
- package/lib/apis/unlinkPath.js.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +1 -1
- package/lib/apis/validatePackageOverride.js +5 -8
- package/lib/apis/validatePackageOverride.js.map +1 -1
- package/lib/common/createApiContext.d.ts.map +1 -1
- package/lib/common/createApiContext.js +4 -1
- package/lib/common/createApiContext.js.map +1 -1
- package/lib/common/createMockContext.d.ts +16 -9
- package/lib/common/createMockContext.d.ts.map +1 -1
- package/lib/common/createMockContext.js +21 -16
- package/lib/common/createMockContext.js.map +1 -1
- package/lib/common/createMockSession.d.ts +1 -1
- package/lib/common/createMockSession.d.ts.map +1 -1
- package/lib/common/createMockSession.js.map +1 -1
- package/lib/common/createSession.d.ts +5 -1
- package/lib/common/createSession.d.ts.map +1 -1
- package/lib/common/createSession.js +1 -1
- package/lib/common/createSession.js.map +1 -1
- package/lib/data/busSources.d.ts +27 -240
- package/lib/data/busSources.d.ts.map +1 -1
- package/lib/data/busSources.js +2 -2
- package/lib/data/busSources.js.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/trpc/common.d.ts +41 -2
- package/lib/trpc/common.d.ts.map +1 -1
- package/lib/trpc/common.js +44 -3
- package/lib/trpc/common.js.map +1 -1
- package/lib/types/BundleInfo.d.ts +1 -1
- package/lib/types/BundleInfo.d.ts.map +1 -1
- package/lib/types/BundleInfo.js.map +1 -1
- package/lib/types/LinkPath.d.ts +16 -92
- package/lib/types/LinkPath.d.ts.map +1 -1
- package/lib/types/LinkPath.js +21 -17
- package/lib/types/LinkPath.js.map +1 -1
- package/lib/types/Task.d.ts +20 -12
- package/lib/types/Task.d.ts.map +1 -1
- package/lib/types/Task.js.map +1 -1
- package/lib/types/TaskDescription.d.ts +19 -73
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskDescription.js +15 -12
- package/lib/types/TaskDescription.js.map +1 -1
- package/lib/types/TaskList.d.ts +6 -115
- package/lib/types/TaskList.d.ts.map +1 -1
- package/lib/types/TaskList.js +3 -2
- package/lib/types/TaskList.js.map +1 -1
- package/lib/types/TaskMessage.d.ts +3 -11
- package/lib/types/TaskMessage.d.ts.map +1 -1
- package/lib/types/TaskMessage.js +4 -4
- package/lib/types/TaskMessage.js.map +1 -1
- package/lib/types/TaskMessageLocation.d.ts +2 -6
- package/lib/types/TaskMessageLocation.d.ts.map +1 -1
- package/lib/types/TaskMessageLocation.js +3 -3
- package/lib/types/TaskMessageLocation.js.map +1 -1
- package/lib/types/TaskStats.d.ts +26 -17
- package/lib/types/TaskStats.d.ts.map +1 -1
- package/lib/types/TaskStats.js +4 -3
- package/lib/types/TaskStats.js.map +1 -1
- package/lib/types/Timing.d.ts +8 -18
- package/lib/types/Timing.d.ts.map +1 -1
- package/lib/types/Timing.js +5 -8
- package/lib/types/Timing.js.map +1 -1
- package/lib/types/ZodGetLinkConfigOutput.d.ts +2 -2
- package/lib/types/ZodGetLinkConfigOutput.d.ts.map +1 -1
- package/lib/types/ZodGetLinkConfigOutput.js +12 -10
- package/lib/types/ZodGetLinkConfigOutput.js.map +1 -1
- package/lib/types/ZodNotifyLinkChangeInput.d.ts +12 -44
- package/lib/types/ZodNotifyLinkChangeInput.d.ts.map +1 -1
- package/lib/types/ZodNotifyLinkChangeInput.js +7 -3
- package/lib/types/ZodNotifyLinkChangeInput.js.map +1 -1
- package/lib/types/ZodResolveMap.d.ts +2 -2
- package/lib/types/ZodResolveMap.d.ts.map +1 -1
- package/lib/types/ZodResolveMap.js +6 -6
- package/lib/types/ZodResolveMap.js.map +1 -1
- package/lib/utilities/TaskRunner.d.ts +56 -18
- package/lib/utilities/TaskRunner.d.ts.map +1 -1
- package/lib/utilities/TaskRunner.js +176 -98
- package/lib/utilities/TaskRunner.js.map +1 -1
- package/lib/utilities/createBundleTask.d.ts.map +1 -1
- package/lib/utilities/createBundleTask.js +9 -15
- package/lib/utilities/createBundleTask.js.map +1 -1
- package/lib/utilities/getConsumedDependencies.d.ts.map +1 -1
- package/lib/utilities/getConsumedDependencies.js +3 -0
- package/lib/utilities/getConsumedDependencies.js.map +1 -1
- package/lib/utilities/getConsumedPaths.d.ts.map +1 -1
- package/lib/utilities/getConsumedPaths.js +3 -0
- package/lib/utilities/getConsumedPaths.js.map +1 -1
- package/lib/utilities/matchingZodObject.d.ts +15 -9
- package/lib/utilities/matchingZodObject.d.ts.map +1 -1
- package/lib/utilities/matchingZodObject.js +16 -6
- package/lib/utilities/matchingZodObject.js.map +1 -1
- package/lib/utilities/notifyReload.d.ts.map +1 -1
- package/lib/utilities/notifyReload.js +2 -1
- package/lib/utilities/notifyReload.js.map +1 -1
- package/lib/utilities/waitForBusData.d.ts +2 -2
- package/lib/utilities/waitForBusData.d.ts.map +1 -1
- package/lib/utilities/waitForBusData.js.map +1 -1
- package/package.json +16 -16
- package/lib/types/TaskEndDescription.d.ts +0 -26
- package/lib/types/TaskEndDescription.d.ts.map +0 -1
- package/lib/types/TaskEndDescription.js +0 -8
- package/lib/types/TaskEndDescription.js.map +0 -1
- package/lib/types/TaskStartDescription.d.ts +0 -19
- package/lib/types/TaskStartDescription.d.ts.map +0 -1
- package/lib/types/TaskStartDescription.js +0 -8
- package/lib/types/TaskStartDescription.js.map +0 -1
|
@@ -1,76 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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.$strict>;
|
|
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,
|
|
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,gHAY7B,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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
lastUpdated: z.
|
|
12
|
-
|
|
13
|
-
|
|
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":"
|
|
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"]}
|
package/lib/types/TaskList.d.ts
CHANGED
|
@@ -1,116 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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.$strict>;
|
|
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,
|
|
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,yGAEtB,CAAC"}
|
package/lib/types/TaskList.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
2
|
import { ZodTaskDescription } from './TaskDescription.js';
|
|
3
|
-
|
|
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,
|
|
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"]}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
2
|
import type { BundleMessage, BundleMessageNote } from '@ms-cloudpack/common-types';
|
|
3
3
|
export type TaskNote = BundleMessageNote;
|
|
4
|
-
export declare const ZodTaskNote: z.
|
|
5
|
-
text: z.ZodType<string, z.ZodTypeDef, string>;
|
|
6
|
-
location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
|
|
7
|
-
}, "strict", z.ZodTypeAny, BundleMessageNote, BundleMessageNote>;
|
|
4
|
+
export declare const ZodTaskNote: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessageNote>, z.core.$strict>;
|
|
8
5
|
export type TaskMessage = BundleMessage;
|
|
9
|
-
export declare const ZodTaskMessage: z.
|
|
10
|
-
text: z.ZodType<string, z.ZodTypeDef, string>;
|
|
11
|
-
source: z.ZodType<string, z.ZodTypeDef, string>;
|
|
12
|
-
location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
|
|
13
|
-
notes: z.ZodType<BundleMessageNote[] | undefined, z.ZodTypeDef, BundleMessageNote[] | undefined>;
|
|
14
|
-
}, "strict", z.ZodTypeAny, BundleMessage, BundleMessage>;
|
|
6
|
+
export declare const ZodTaskMessage: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessage>, z.core.$strict>;
|
|
15
7
|
//# sourceMappingURL=TaskMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskMessage.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskMessage.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAInF,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC;AAEzC,eAAO,MAAM,WAAW,kHAGtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AAExC,eAAO,MAAM,cAAc,8GAKzB,CAAC"}
|
package/lib/types/TaskMessage.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
2
|
import { ZodTaskMessageLocation } from './TaskMessageLocation.js';
|
|
3
3
|
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
4
4
|
export const ZodTaskNote = matchingZodObject({
|
|
5
5
|
text: z.string(),
|
|
6
|
-
location:
|
|
6
|
+
location: z.optional(ZodTaskMessageLocation),
|
|
7
7
|
});
|
|
8
8
|
export const ZodTaskMessage = matchingZodObject({
|
|
9
9
|
text: z.string(),
|
|
10
10
|
source: z.string(),
|
|
11
|
-
location:
|
|
12
|
-
notes: z.array(ZodTaskNote)
|
|
11
|
+
location: z.optional(ZodTaskMessageLocation),
|
|
12
|
+
notes: z.optional(z.array(ZodTaskNote)),
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=TaskMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskMessage.js","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskMessage.js","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAW;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CAC7C,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAc;IAC3D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACxC,CAAC,CAAC","sourcesContent":["import { z } from 'zod/v4-mini';\nimport type { BundleMessage, BundleMessageNote } from '@ms-cloudpack/common-types';\nimport { ZodTaskMessageLocation } from './TaskMessageLocation.js';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nexport type TaskNote = BundleMessageNote;\n\nexport const ZodTaskNote = matchingZodObject<TaskNote>({\n text: z.string(),\n location: z.optional(ZodTaskMessageLocation),\n});\n\nexport type TaskMessage = BundleMessage;\n\nexport const ZodTaskMessage = matchingZodObject<TaskMessage>({\n text: z.string(),\n source: z.string(),\n location: z.optional(ZodTaskMessageLocation),\n notes: z.optional(z.array(ZodTaskNote)),\n});\n"]}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
2
|
import type { BundleMessageLocation } from '@ms-cloudpack/common-types';
|
|
3
3
|
export type TaskMessageLocation = BundleMessageLocation;
|
|
4
|
-
export declare const ZodTaskMessageLocation: z.
|
|
5
|
-
file: z.ZodType<string, z.ZodTypeDef, string>;
|
|
6
|
-
line: z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>;
|
|
7
|
-
column: z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>;
|
|
8
|
-
}, "strict", z.ZodTypeAny, BundleMessageLocation, BundleMessageLocation>;
|
|
4
|
+
export declare const ZodTaskMessageLocation: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessageLocation>, z.core.$strict>;
|
|
9
5
|
//# sourceMappingURL=TaskMessageLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskMessageLocation.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskMessageLocation.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAExD,eAAO,MAAM,sBAAsB,sHAIjC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
2
|
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
3
3
|
export const ZodTaskMessageLocation = matchingZodObject({
|
|
4
4
|
file: z.string(),
|
|
5
|
-
line: z.
|
|
6
|
-
column: z.
|
|
5
|
+
line: z.optional(z.number()),
|
|
6
|
+
column: z.optional(z.number()),
|
|
7
7
|
});
|
|
8
8
|
//# sourceMappingURL=TaskMessageLocation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskMessageLocation.js","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskMessageLocation.js","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAsB;IAC3E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC","sourcesContent":["import { z } from 'zod/v4-mini';\nimport type { BundleMessageLocation } from '@ms-cloudpack/common-types';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nexport type TaskMessageLocation = BundleMessageLocation;\n\nexport const ZodTaskMessageLocation = matchingZodObject<TaskMessageLocation>({\n file: z.string(),\n line: z.optional(z.number()),\n column: z.optional(z.number()),\n});\n"]}
|
package/lib/types/TaskStats.d.ts
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
/**
|
|
3
|
+
* Task stats displayed in the Cloudpack status overlay.
|
|
4
|
+
*
|
|
5
|
+
* Note that as of writing, these stats are only used in the status overlay in the browser.
|
|
6
|
+
* The task numbers displayed in the CLI reflect `TaskReporter` tasks (`reporter.addTask()`).
|
|
7
|
+
*/
|
|
8
|
+
export interface TaskStats {
|
|
9
|
+
/** Task runner status. `'unknown'` is only for the overlay when it hasn't received a message yet. */
|
|
10
|
+
status: 'idle' | 'pending' | 'unknown';
|
|
11
|
+
/** Number of tasks running or pending */
|
|
10
12
|
remainingTasks: number;
|
|
13
|
+
/** Total number of tasks, excluding re-runs */
|
|
11
14
|
totalTasks: number;
|
|
15
|
+
/**
|
|
16
|
+
* Total errors in tasks (not total failed tasks), excluding re-runs.
|
|
17
|
+
*
|
|
18
|
+
* Implementation note: this only includes errors returned by `Task.getEndDescription` while a
|
|
19
|
+
* data bus is connected (e.g. when running `start` in the browser).
|
|
20
|
+
*/
|
|
12
21
|
totalErrors: number;
|
|
22
|
+
/**
|
|
23
|
+
* Total warnings in tasks (not total tasks with warnings).
|
|
24
|
+
*
|
|
25
|
+
* Implementation note: this only includes warnings returned by `Task.getEndDescription` while a
|
|
26
|
+
* data bus is connected (e.g. when running `start` in the browser).
|
|
27
|
+
*/
|
|
13
28
|
totalWarnings: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
remainingTasks: number;
|
|
17
|
-
totalTasks: number;
|
|
18
|
-
totalErrors: number;
|
|
19
|
-
totalWarnings: number;
|
|
20
|
-
}>;
|
|
21
|
-
export type TaskStats = z.infer<typeof ZodTaskStats>;
|
|
29
|
+
}
|
|
30
|
+
export declare const ZodTaskStats: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskStats>, z.core.$strict>;
|
|
22
31
|
//# sourceMappingURL=TaskStats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStats.d.ts","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskStats.d.ts","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAGhC;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,qGAAqG;IACrG,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IACvC,yCAAyC;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,0GAMvB,CAAC"}
|
package/lib/types/TaskStats.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
3
|
+
export const ZodTaskStats = matchingZodObject({
|
|
4
|
+
status: z.literal(['idle', 'pending']),
|
|
4
5
|
remainingTasks: z.number(),
|
|
5
6
|
totalTasks: z.number(),
|
|
6
7
|
totalErrors: z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStats.js","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskStats.js","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA+BtE,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAY;IACvD,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC","sourcesContent":["import { z } from 'zod/v4-mini';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\n/**\n * Task stats displayed in the Cloudpack status overlay.\n *\n * Note that as of writing, these stats are only used in the status overlay in the browser.\n * The task numbers displayed in the CLI reflect `TaskReporter` tasks (`reporter.addTask()`).\n */\nexport interface TaskStats {\n /** Task runner status. `'unknown'` is only for the overlay when it hasn't received a message yet. */\n status: 'idle' | 'pending' | 'unknown';\n /** Number of tasks running or pending */\n remainingTasks: number;\n /** Total number of tasks, excluding re-runs */\n totalTasks: number;\n /**\n * Total errors in tasks (not total failed tasks), excluding re-runs.\n *\n * Implementation note: this only includes errors returned by `Task.getEndDescription` while a\n * data bus is connected (e.g. when running `start` in the browser).\n */\n totalErrors: number;\n /**\n * Total warnings in tasks (not total tasks with warnings).\n *\n * Implementation note: this only includes warnings returned by `Task.getEndDescription` while a\n * data bus is connected (e.g. when running `start` in the browser).\n */\n totalWarnings: number;\n}\n\nexport const ZodTaskStats = matchingZodObject<TaskStats>({\n status: z.literal(['idle', 'pending']),\n remainingTasks: z.number(),\n totalTasks: z.number(),\n totalErrors: z.number(),\n totalWarnings: z.number(),\n});\n"]}
|
package/lib/types/Timing.d.ts
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
export
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
export interface Timing {
|
|
3
3
|
/** Name of the timing */
|
|
4
|
-
name:
|
|
4
|
+
name: string;
|
|
5
5
|
/** Start time in milliseconds */
|
|
6
|
-
start:
|
|
6
|
+
start: number;
|
|
7
7
|
/** End time in milliseconds */
|
|
8
|
-
end
|
|
8
|
+
end?: number;
|
|
9
9
|
/** Exited prematurely. */
|
|
10
|
-
threwException
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
start: number;
|
|
14
|
-
end?: number | undefined;
|
|
15
|
-
threwException?: boolean | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
name: string;
|
|
18
|
-
start: number;
|
|
19
|
-
end?: number | undefined;
|
|
20
|
-
threwException?: boolean | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
export type Timing = z.infer<typeof ZodTiming>;
|
|
10
|
+
threwException?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ZodTiming: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<Timing>, z.core.$strict>;
|
|
23
13
|
//# sourceMappingURL=Timing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timing.d.ts","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"Timing.d.ts","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAGhC,MAAM,WAAW,MAAM;IACrB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,uGAKpB,CAAC"}
|
package/lib/types/Timing.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
3
|
+
export const ZodTiming = matchingZodObject({
|
|
4
4
|
name: z.string(),
|
|
5
|
-
/** Start time in milliseconds */
|
|
6
5
|
start: z.number(),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** Exited prematurely. */
|
|
10
|
-
threwException: z.boolean().optional(),
|
|
6
|
+
end: z.optional(z.number()),
|
|
7
|
+
threwException: z.optional(z.boolean()),
|
|
11
8
|
});
|
|
12
9
|
//# sourceMappingURL=Timing.js.map
|
package/lib/types/Timing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timing.js","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"Timing.js","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAatE,MAAM,CAAC,MAAM,SAAS,GAAG,iBAAiB,CAAS;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACxC,CAAC,CAAC","sourcesContent":["import { z } from 'zod/v4-mini';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nexport interface Timing {\n /** Name of the timing */\n name: string;\n /** Start time in milliseconds */\n start: number;\n /** End time in milliseconds */\n end?: number;\n /** Exited prematurely. */\n threwException?: boolean;\n}\n\nexport const ZodTiming = matchingZodObject<Timing>({\n name: z.string(),\n start: z.number(),\n end: z.optional(z.number()),\n threwException: z.optional(z.boolean()),\n});\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
2
|
import type { CloudpackLinkConfig } from '@ms-cloudpack/common-types';
|
|
3
|
-
export declare const ZodGetLinkConfigOutput:
|
|
3
|
+
export declare const ZodGetLinkConfigOutput: z.ZodMiniType<CloudpackLinkConfig, CloudpackLinkConfig>;
|
|
4
4
|
//# sourceMappingURL=ZodGetLinkConfigOutput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZodGetLinkConfigOutput.d.ts","sourceRoot":"","sources":["../../src/types/ZodGetLinkConfigOutput.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ZodGetLinkConfigOutput.d.ts","sourceRoot":"","sources":["../../src/types/ZodGetLinkConfigOutput.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAQtE,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,WAAW,CAAC,mBAAmB,EAAE,mBAAmB,CAMvF,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
//
|
|
5
|
+
import { z } from 'zod/v4-mini';
|
|
6
|
+
import { matchingZodObjectLoose } from '../utilities/matchingZodObject.js';
|
|
3
7
|
// Minimum acceptable match object for a low maintenance burden.
|
|
4
|
-
const ZodPackageSettingsMatchObject = z.object({ name: z.string(), version: z.
|
|
8
|
+
const ZodPackageSettingsMatchObject = z.object({ name: z.string(), version: z.optional(z.string()) });
|
|
5
9
|
const ZodPackageSettingsMatch = z.union([z.string(), ZodPackageSettingsMatchObject]);
|
|
6
|
-
const ZodGeneratedPackageSettingsMatch = z.union([z.string(),
|
|
7
|
-
export const ZodGetLinkConfigOutput =
|
|
8
|
-
packageSettings: z.array(z.
|
|
9
|
-
generated: z
|
|
10
|
-
|
|
11
|
-
.passthrough(),
|
|
12
|
-
}).passthrough();
|
|
10
|
+
const ZodGeneratedPackageSettingsMatch = z.union([z.string(), z.required(ZodPackageSettingsMatchObject)]);
|
|
11
|
+
export const ZodGetLinkConfigOutput = matchingZodObjectLoose({
|
|
12
|
+
packageSettings: z.optional(z.array(z.looseObject({ match: z.union([ZodPackageSettingsMatch, z.array(ZodPackageSettingsMatch)]) }))),
|
|
13
|
+
generated: z.looseObject({ packageSettings: z.array(z.looseObject({ match: ZodGeneratedPackageSettingsMatch })) }),
|
|
14
|
+
});
|
|
13
15
|
//# sourceMappingURL=ZodGetLinkConfigOutput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZodGetLinkConfigOutput.js","sourceRoot":"","sources":["../../src/types/ZodGetLinkConfigOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"ZodGetLinkConfigOutput.js","sourceRoot":"","sources":["../../src/types/ZodGetLinkConfigOutput.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,6FAA6F;AAC7F,oDAAoD;AACpD,EAAE;AACF,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,gEAAgE;AAChE,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AACtG,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,6BAA6B,CAAC,CAAC,CAAC;AACrF,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC;AAE1G,MAAM,CAAC,MAAM,sBAAsB,GACjC,sBAAsB,CAAsB;IAC1C,eAAe,EAAE,CAAC,CAAC,QAAQ,CACzB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CACxG;IACD,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC,CAAC,EAAE,CAAC;CACnH,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 { z } from 'zod/v4-mini';\nimport type { CloudpackLinkConfig } from '@ms-cloudpack/common-types';\nimport { matchingZodObjectLoose } from '../utilities/matchingZodObject.js';\n\n// Minimum acceptable match object for a low maintenance burden.\nconst ZodPackageSettingsMatchObject = z.object({ name: z.string(), version: z.optional(z.string()) });\nconst ZodPackageSettingsMatch = z.union([z.string(), ZodPackageSettingsMatchObject]);\nconst ZodGeneratedPackageSettingsMatch = z.union([z.string(), z.required(ZodPackageSettingsMatchObject)]);\n\nexport const ZodGetLinkConfigOutput: z.ZodMiniType<CloudpackLinkConfig, CloudpackLinkConfig> =\n matchingZodObjectLoose<CloudpackLinkConfig>({\n packageSettings: z.optional(\n z.array(z.looseObject({ match: z.union([ZodPackageSettingsMatch, z.array(ZodPackageSettingsMatch)]) })),\n ),\n generated: z.looseObject({ packageSettings: z.array(z.looseObject({ match: ZodGeneratedPackageSettingsMatch })) }),\n });\n"]}
|