@ms-cloudpack/api-server 0.64.0 → 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.
- package/lib/apis/getData.d.ts +6 -8
- package/lib/apis/getData.d.ts.map +1 -1
- package/lib/apis/getData.js +2 -1
- package/lib/apis/getData.js.map +1 -1
- package/lib/apis/getLinkConfig.d.ts +1 -3
- package/lib/apis/getLinkConfig.d.ts.map +1 -1
- package/lib/apis/getLinkConfig.js +1 -1
- package/lib/apis/getLinkConfig.js.map +1 -1
- package/lib/apis/linkPath.d.ts +2 -33
- package/lib/apis/linkPath.js +1 -1
- package/lib/apis/linkPath.js.map +1 -1
- package/lib/apis/notifyLinkChange.d.ts +2 -15
- package/lib/apis/notifyLinkChange.d.ts.map +1 -1
- package/lib/apis/notifyLinkChange.js +2 -2
- package/lib/apis/notifyLinkChange.js.map +1 -1
- package/lib/apis/onDataChanged.d.ts +3 -10
- package/lib/apis/onDataChanged.d.ts.map +1 -1
- package/lib/apis/onDataChanged.js +2 -4
- package/lib/apis/onDataChanged.js.map +1 -1
- package/lib/apis/openCodeEditor.d.ts +9 -15
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.js +5 -1
- package/lib/apis/openCodeEditor.js.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +3 -0
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.js +3 -0
- package/lib/apis/openConfigEditor.js.map +1 -1
- package/lib/apis/openFilePath.d.ts +10 -11
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/openFilePath.js +5 -1
- package/lib/apis/openFilePath.js.map +1 -1
- package/lib/apis/publishData.d.ts +6 -10
- package/lib/apis/publishData.d.ts.map +1 -1
- package/lib/apis/publishData.js +2 -1
- package/lib/apis/publishData.js.map +1 -1
- package/lib/apis/reportSpan.d.ts +7 -15
- package/lib/apis/reportSpan.d.ts.map +1 -1
- package/lib/apis/reportSpan.js +2 -1
- package/lib/apis/reportSpan.js.map +1 -1
- package/lib/apis/unlinkPath.d.ts +2 -33
- package/lib/apis/unlinkPath.js +1 -1
- package/lib/apis/unlinkPath.js.map +1 -1
- package/lib/common/prepareOutputPath.js +1 -1
- package/lib/common/prepareOutputPath.js.map +1 -1
- package/lib/data/busSources.d.ts +6 -21
- 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.browser.d.ts +2 -2
- package/lib/index.browser.d.ts.map +1 -1
- package/lib/index.browser.js.map +1 -1
- package/lib/types/GetLinkConfigOutput.d.ts +5 -0
- package/lib/types/GetLinkConfigOutput.d.ts.map +1 -0
- package/lib/types/{ZodGetLinkConfigOutput.js → GetLinkConfigOutput.js} +7 -4
- package/lib/types/GetLinkConfigOutput.js.map +1 -0
- package/lib/types/LinkPath.d.ts +10 -18
- package/lib/types/LinkPath.d.ts.map +1 -1
- package/lib/types/LinkPath.js +14 -24
- package/lib/types/LinkPath.js.map +1 -1
- package/lib/types/NotifyLinkChangeInput.d.ts +9 -0
- package/lib/types/NotifyLinkChangeInput.d.ts.map +1 -0
- package/lib/types/NotifyLinkChangeInput.js +16 -0
- package/lib/types/NotifyLinkChangeInput.js.map +1 -0
- package/lib/types/TaskDescription.d.ts +1 -1
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskList.d.ts +1 -1
- package/lib/types/TaskList.d.ts.map +1 -1
- package/lib/types/TaskMessage.d.ts +2 -2
- package/lib/types/TaskMessage.d.ts.map +1 -1
- package/lib/types/TaskMessageLocation.d.ts +1 -1
- package/lib/types/TaskMessageLocation.d.ts.map +1 -1
- package/lib/types/TaskStats.d.ts +1 -1
- package/lib/types/TaskStats.d.ts.map +1 -1
- package/lib/types/Timing.d.ts +1 -1
- package/lib/types/Timing.d.ts.map +1 -1
- package/lib/utilities/TaskRunner.d.ts.map +1 -1
- package/lib/utilities/TaskRunner.js +1 -0
- package/lib/utilities/TaskRunner.js.map +1 -1
- package/lib/utilities/matchingZodObject.d.ts +5 -3
- package/lib/utilities/matchingZodObject.d.ts.map +1 -1
- package/lib/utilities/matchingZodObject.js +5 -3
- package/lib/utilities/matchingZodObject.js.map +1 -1
- package/lib/utilities/notifyHost.d.ts +3 -4
- package/lib/utilities/notifyHost.d.ts.map +1 -1
- package/lib/utilities/notifyHost.js.map +1 -1
- package/lib/utilities/notifyReload.d.ts +4 -3
- package/lib/utilities/notifyReload.d.ts.map +1 -1
- package/lib/utilities/notifyReload.js.map +1 -1
- package/package.json +14 -14
- package/lib/types/ZodGetLinkConfigOutput.d.ts +0 -4
- package/lib/types/ZodGetLinkConfigOutput.d.ts.map +0 -1
- package/lib/types/ZodGetLinkConfigOutput.js.map +0 -1
- package/lib/types/ZodNotifyLinkChangeInput.d.ts +0 -13
- package/lib/types/ZodNotifyLinkChangeInput.d.ts.map +0 -1
- package/lib/types/ZodNotifyLinkChangeInput.js +0 -12
- package/lib/types/ZodNotifyLinkChangeInput.js.map +0 -1
- package/lib/types/ZodResolveMap.d.ts +0 -4
- package/lib/types/ZodResolveMap.d.ts.map +0 -1
- package/lib/types/ZodResolveMap.js +0 -14
- package/lib/types/ZodResolveMap.js.map +0 -1
package/lib/apis/unlinkPath.d.ts
CHANGED
|
@@ -6,39 +6,8 @@ import { type LinkPathInput, type LinkPathOutput } from '../types/LinkPath.js';
|
|
|
6
6
|
export declare function unlinkPath(params: ApiParams<LinkPathInput, 'bus' | 'reporter' | 'telemetryClient', 'incrementSessionVersion' | 'linkedPaths' | 'projectName' | 'removeLinkedPath' | 'resolveMap' | 'sequence'>): Promise<LinkPathOutput>;
|
|
7
7
|
export declare namespace unlinkPath {
|
|
8
8
|
var procedure: import("@trpc/server").TRPCMutationProcedure<{
|
|
9
|
-
input:
|
|
10
|
-
|
|
11
|
-
path: string;
|
|
12
|
-
rootPath?: string | undefined;
|
|
13
|
-
includeAll?: boolean | undefined;
|
|
14
|
-
ignoredPackages?: string[] | undefined;
|
|
15
|
-
ignoreResolutions?: boolean | undefined;
|
|
16
|
-
resolveStrategy?: "dedupe" | "duplicate" | undefined;
|
|
17
|
-
remote?: {
|
|
18
|
-
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
19
|
-
hostUrl: string;
|
|
20
|
-
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
21
|
-
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
22
|
-
} | undefined;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
output: {
|
|
26
|
-
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
27
|
-
linkedPaths: {
|
|
28
|
-
path: string;
|
|
29
|
-
rootPath?: string | undefined;
|
|
30
|
-
includeAll?: boolean | undefined;
|
|
31
|
-
ignoredPackages?: string[] | undefined;
|
|
32
|
-
ignoreResolutions?: boolean | undefined;
|
|
33
|
-
resolveStrategy?: "dedupe" | "duplicate" | undefined;
|
|
34
|
-
remote?: {
|
|
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
|
-
}[];
|
|
41
|
-
};
|
|
9
|
+
input: LinkPathInput;
|
|
10
|
+
output: LinkPathOutput;
|
|
42
11
|
meta: never;
|
|
43
12
|
}>;
|
|
44
13
|
}
|
package/lib/apis/unlinkPath.js
CHANGED
|
@@ -20,7 +20,7 @@ export async function unlinkPath(params) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
catch (e) {
|
|
23
|
-
task.complete({ status: 'fail', message: `Failed to unlink paths`, forceShow: true });
|
|
23
|
+
task.complete({ status: 'fail', message: `Failed to unlink paths: ${e.stack || e}`, forceShow: true });
|
|
24
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,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,2BAA4B,CAAW,CAAC,KAAK,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACpH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,UAAU,CAAC,SAAS,GAAG,iBAAiB,CACtC,UAAU,EACV,gBAAgB,EAChB,iBAAiB,CAClB,CAAC","sourcesContent":["import { mutationProcedure } from '../trpc/common.js';\nimport type { ApiParams } from '../types/ApiParams.js';\nimport { notifyReload } from '../utilities/notifyReload.js';\nimport { ZodLinkPathInput, ZodLinkPathOutput, type LinkPathInput, type LinkPathOutput } from '../types/LinkPath.js';\n\n/**\n * Unlinks a path to the session.\n */\nexport async function unlinkPath(\n params: ApiParams<\n LinkPathInput,\n 'bus' | 'reporter' | 'telemetryClient',\n 'incrementSessionVersion' | 'linkedPaths' | 'projectName' | 'removeLinkedPath' | 'resolveMap' | 'sequence'\n >,\n): Promise<LinkPathOutput> {\n const { input, ctx } = params;\n const { linkedPath } = input;\n const { session, reporter, bus, telemetryClient } = ctx;\n const task = reporter.addTask(`Unlinking paths in ${session.projectName}`);\n let result = { resolveMap: session.resolveMap, linkedPaths: session.linkedPaths };\n try {\n await telemetryClient.tracer.startActiveSpan('UNLINK_PATH', async () => {\n // Remove linked paths from session\n result = await session.removeLinkedPath(linkedPath);\n task.complete({ status: 'complete', message: `Unlinked paths`, forceShow: true });\n session.incrementSessionVersion();\n await notifyReload({ reason: 'unlink-path' }, { bus, session, telemetryClient });\n });\n } catch (e) {\n task.complete({ status: 'fail', message: `Failed to unlink paths: ${(e as Error).stack || e}`, forceShow: true });\n }\n\n return result;\n}\n\nunlinkPath.procedure = mutationProcedure<LinkPathInput, LinkPathOutput>(\n unlinkPath,\n ZodLinkPathInput,\n ZodLinkPathOutput,\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareOutputPath.js","sourceRoot":"","sources":["../../src/common/prepareOutputPath.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,aAAqB;IAC3D,IAAI,CAAC;QACH,MAAM,UAAU,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"prepareOutputPath.js","sourceRoot":"","sources":["../../src/common/prepareOutputPath.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,aAAqB;IAC3D,IAAI,CAAC;QACH,MAAM,UAAU,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;IACD,MAAM,UAAU,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7D,CAAC","sourcesContent":["import fsPromises from 'fs/promises';\n\n/**\n * Clears and replaces the given path, ensuring it exists in an empty state.\n */\nexport async function prepareOutputPath(requestedPath: string): Promise<void> {\n try {\n await fsPromises.rm(requestedPath, { recursive: true });\n } catch {\n /* ignore */\n }\n await fsPromises.mkdir(requestedPath, { recursive: true });\n}\n"]}
|
package/lib/data/busSources.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ export declare const reloadCountSource: import("@ms-cloudpack/data-bus").DataBus
|
|
|
6
6
|
/**
|
|
7
7
|
* Used for tracking the task stats displayed in the badge.
|
|
8
8
|
*/
|
|
9
|
-
export declare const taskStatsSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.browser.js").TaskStats>, z.core.$
|
|
9
|
+
export declare const taskStatsSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.browser.js").TaskStats>, z.core.$strip>>;
|
|
10
10
|
/**
|
|
11
11
|
* Used for tracking the list of tasks.
|
|
12
12
|
*/
|
|
13
|
-
export declare const taskListSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.browser.js").TaskList>, z.core.$
|
|
13
|
+
export declare const taskListSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.browser.js").TaskList>, z.core.$strip>>;
|
|
14
14
|
/**
|
|
15
15
|
* Used for tracking entry errors: `Failed to resolve module specifier "${packageName}@${version}${filePath}".`
|
|
16
16
|
* This is used to display errors in the UI and to notify the user of the error when autoUpdateEntries is enabled.
|
|
@@ -19,34 +19,19 @@ export declare const errorEntrySource: import("@ms-cloudpack/data-bus").DataBusP
|
|
|
19
19
|
/**
|
|
20
20
|
* Used for tracking link updates.
|
|
21
21
|
*/
|
|
22
|
-
export declare const linkUpdateSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<
|
|
23
|
-
packagePath: z.ZodMiniString<string>;
|
|
24
|
-
hash: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
25
|
-
definition: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
26
|
-
name: z.ZodMiniString<string>;
|
|
27
|
-
version: z.ZodMiniString<string>;
|
|
28
|
-
exports: z.ZodMiniOptional<z.ZodMiniAny>;
|
|
29
|
-
dependencies: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniUndefined, z.ZodMiniString<string>]>>>>;
|
|
30
|
-
peerDependencies: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniUndefined, z.ZodMiniString<string>]>>>>;
|
|
31
|
-
}, z.core.$strip>>;
|
|
32
|
-
}, z.core.$strip>>;
|
|
22
|
+
export declare const linkUpdateSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.browser.js").NotifyLinkChangeInput>, z.core.$strip>>;
|
|
33
23
|
/**
|
|
34
24
|
* Used for fetching the host configuration.
|
|
35
25
|
*/
|
|
36
|
-
export declare const linkConfigSource: import("@ms-cloudpack/data-bus").DataBusPath<z.
|
|
26
|
+
export declare const linkConfigSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("@ms-cloudpack/common-types").CloudpackLinkConfig>, z.core.$loose>>;
|
|
37
27
|
/**
|
|
38
28
|
* Used for tracking linked paths.
|
|
39
29
|
*/
|
|
40
|
-
export declare const linkPathsSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<
|
|
41
|
-
linkedPath: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("@ms-cloudpack/common-types").LinkedPath>, z.core.$strict>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
30
|
+
export declare const linkPathsSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.browser.js").LinkPathInput>, z.core.$strip>>;
|
|
43
31
|
/**
|
|
44
32
|
* Used for tracking when linking is done.
|
|
45
33
|
*/
|
|
46
|
-
export declare const linkDoneSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<
|
|
47
|
-
resolveMap: z.ZodMiniType<import("@ms-cloudpack/common-types").ResolveMap, import("@ms-cloudpack/common-types").ResolveMap, z.core.$ZodTypeInternals<import("@ms-cloudpack/common-types").ResolveMap, import("@ms-cloudpack/common-types").ResolveMap>>;
|
|
48
|
-
linkedPaths: z.ZodMiniArray<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("@ms-cloudpack/common-types").LinkedPath>, z.core.$strict>>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
34
|
+
export declare const linkDoneSource: import("@ms-cloudpack/data-bus").DataBusPath<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<import("../index.js").LinkPathOutput>, z.core.$strip>>;
|
|
50
35
|
/**
|
|
51
36
|
* Used for detecting host disconnection on link.
|
|
52
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"busSources.d.ts","sourceRoot":"","sources":["../../src/data/busSources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAQhC;;GAEG;AACH,eAAO,MAAM,iBAAiB,uEAG5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"busSources.d.ts","sourceRoot":"","sources":["../../src/data/busSources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAQhC;;GAEG;AACH,eAAO,MAAM,iBAAiB,uEAG5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,qLAG1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,oLAGzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,uEAG3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,iMAG3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,sMAG3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,yLAG1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,kLAGzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;kBAGjC,CAAC"}
|
package/lib/data/busSources.js
CHANGED
|
@@ -4,9 +4,9 @@ import { z } from 'zod/v4-mini';
|
|
|
4
4
|
import { ZodTaskStats } from '../types/TaskStats.js';
|
|
5
5
|
import { ZodTaskList } from '../types/TaskList.js';
|
|
6
6
|
import { createDataPath } from '@ms-cloudpack/data-bus';
|
|
7
|
-
import { ZodNotifyLinkChangeInput } from '../types/
|
|
7
|
+
import { ZodNotifyLinkChangeInput } from '../types/NotifyLinkChangeInput.js';
|
|
8
8
|
import { ZodLinkPathInput, ZodLinkPathOutput } from '../types/LinkPath.js';
|
|
9
|
-
import { ZodGetLinkConfigOutput } from '../types/
|
|
9
|
+
import { ZodGetLinkConfigOutput } from '../types/GetLinkConfigOutput.js';
|
|
10
10
|
/**
|
|
11
11
|
* Used for tracking the reload count.
|
|
12
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"busSources.js","sourceRoot":"","sources":["../../src/data/busSources.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,wGAAwG;AACxG,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"busSources.js","sourceRoot":"","sources":["../../src/data/busSources.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,wGAAwG;AACxG,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OA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G,cAAc,CAAC;IAC5C,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAU;IAChC,IAAI,EAAE,gBAAgB;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC;IAC3C,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAU;IAC/B,IAAI,EAAE,iBAAiB;CACxB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC;IACnD,IAAI,EAAE,CAAC,MAAM,EAAE,cAAc,CAAU;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC;CAC/D,CAAC,CAAC","sourcesContent":["// This file is used in the browser,\n// so it must only import types (ts and zod) to not trigger a trpc server error due to bad tree shaking.\nimport { z } from 'zod/v4-mini';\nimport { ZodTaskStats } from '../types/TaskStats.js';\nimport { ZodTaskList } from '../types/TaskList.js';\nimport { createDataPath } from '@ms-cloudpack/data-bus';\nimport { ZodNotifyLinkChangeInput } from '../types/NotifyLinkChangeInput.js';\nimport { ZodLinkPathInput, ZodLinkPathOutput } from '../types/LinkPath.js';\nimport { ZodGetLinkConfigOutput } from '../types/GetLinkConfigOutput.js';\n\n/**\n * Used for tracking the reload count.\n */\nexport const reloadCountSource = createDataPath({\n path: ['session', 'version'] as const,\n type: z.number(),\n});\n\n/**\n * Used for tracking the task stats displayed in the badge.\n */\nexport const taskStatsSource = createDataPath({\n path: ['task', 'stats'] as const,\n type: ZodTaskStats,\n});\n\n/**\n * Used for tracking the list of tasks.\n */\nexport const taskListSource = createDataPath({\n path: ['task', 'list'] as const,\n type: ZodTaskList,\n});\n\n/**\n * Used for tracking entry errors: `Failed to resolve module specifier \"${packageName}@${version}${filePath}\".`\n * This is used to display errors in the UI and to notify the user of the error when autoUpdateEntries is enabled.\n */\nexport const errorEntrySource = createDataPath({\n path: ['error', 'entry'] as const,\n type: z.string(),\n});\n\n/**\n * Used for tracking link updates.\n */\nexport const linkUpdateSource = createDataPath({\n path: ['link', 'update'] as const,\n type: ZodNotifyLinkChangeInput,\n});\n\n/**\n * Used for fetching the host configuration.\n */\nexport const linkConfigSource = createDataPath({\n path: ['link', 'config'] as const,\n type: ZodGetLinkConfigOutput,\n});\n\n/**\n * Used for tracking linked paths.\n */\nexport const linkPathsSource = createDataPath({\n path: ['link', 'paths'] as const,\n type: ZodLinkPathInput,\n});\n\n/**\n * Used for tracking when linking is done.\n */\nexport const linkDoneSource = createDataPath({\n path: ['link', 'done'] as const,\n type: ZodLinkPathOutput,\n});\n\n/**\n * Used for detecting host disconnection on link.\n */\nexport const linkDisconnectedSource = createDataPath({\n path: ['link', 'disconnected'] as const,\n type: z.object({ reason: z.literal(['lost', 'unreachable']) }),\n});\n"]}
|
package/lib/index.browser.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { TaskMessage } from './types/TaskMessage.js';
|
|
|
4
4
|
export type { TaskList } from './types/TaskList.js';
|
|
5
5
|
export { createCloudpackClient, type CloudpackClient } from './trpc/createCloudpackClient.js';
|
|
6
6
|
export { taskListSource, taskStatsSource, reloadCountSource, errorEntrySource, linkUpdateSource, linkConfigSource, linkPathsSource, linkDoneSource, linkDisconnectedSource, } from './data/busSources.js';
|
|
7
|
-
export type { NotifyLinkChangeInput } from './
|
|
7
|
+
export type { NotifyLinkChangeInput } from './types/NotifyLinkChangeInput.js';
|
|
8
8
|
export type { LinkPathInput } from './types/LinkPath.js';
|
|
9
|
-
export type { GetLinkConfigOutput } from './
|
|
9
|
+
export type { GetLinkConfigOutput } from './types/GetLinkConfigOutput.js';
|
|
10
10
|
//# sourceMappingURL=index.browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/lib/index.browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,iCAAiC,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,sBAAsB,GACvB,MAAM,sBAAsB,CAAC","sourcesContent":["export type { TaskStats } from './types/TaskStats.js';\nexport type { TaskDescription } from './types/TaskDescription.js';\nexport type { TaskMessage } from './types/TaskMessage.js';\nexport type { TaskList } from './types/TaskList.js';\n\nexport { createCloudpackClient, type CloudpackClient } from './trpc/createCloudpackClient.js';\n\nexport {\n taskListSource,\n taskStatsSource,\n reloadCountSource,\n errorEntrySource,\n linkUpdateSource,\n linkConfigSource,\n linkPathsSource,\n linkDoneSource,\n linkDisconnectedSource,\n} from './data/busSources.js';\n\n// Link proxy required types\nexport type { NotifyLinkChangeInput } from './
|
|
1
|
+
{"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,iCAAiC,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,sBAAsB,GACvB,MAAM,sBAAsB,CAAC","sourcesContent":["export type { TaskStats } from './types/TaskStats.js';\nexport type { TaskDescription } from './types/TaskDescription.js';\nexport type { TaskMessage } from './types/TaskMessage.js';\nexport type { TaskList } from './types/TaskList.js';\n\nexport { createCloudpackClient, type CloudpackClient } from './trpc/createCloudpackClient.js';\n\nexport {\n taskListSource,\n taskStatsSource,\n reloadCountSource,\n errorEntrySource,\n linkUpdateSource,\n linkConfigSource,\n linkPathsSource,\n linkDoneSource,\n linkDisconnectedSource,\n} from './data/busSources.js';\n\n// Link proxy required types\nexport type { NotifyLinkChangeInput } from './types/NotifyLinkChangeInput.js';\nexport type { LinkPathInput } from './types/LinkPath.js';\nexport type { GetLinkConfigOutput } from './types/GetLinkConfigOutput.js';\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
import type { CloudpackLinkConfig } from '@ms-cloudpack/common-types';
|
|
3
|
+
export type GetLinkConfigOutput = CloudpackLinkConfig;
|
|
4
|
+
export declare const ZodGetLinkConfigOutput: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<CloudpackLinkConfig>, z.core.$loose>;
|
|
5
|
+
//# sourceMappingURL=GetLinkConfigOutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLinkConfigOutput.d.ts","sourceRoot":"","sources":["../../src/types/GetLinkConfigOutput.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAA8B,MAAM,4BAA4B,CAAC;AAWlG,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,mHAKjC,CAAC"}
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
// in the browser, so it must only import zod types.
|
|
4
4
|
//
|
|
5
5
|
import { z } from 'zod/v4-mini';
|
|
6
|
-
import { matchingZodObjectLoose } from '../utilities/matchingZodObject.js';
|
|
6
|
+
import { matchingZodObject, matchingZodObjectLoose } from '../utilities/matchingZodObject.js';
|
|
7
7
|
// Minimum acceptable match object for a low maintenance burden.
|
|
8
|
-
const ZodPackageSettingsMatchObject =
|
|
9
|
-
|
|
8
|
+
const ZodPackageSettingsMatchObject = matchingZodObject({
|
|
9
|
+
name: z.string(),
|
|
10
|
+
version: z.optional(z.string()),
|
|
11
|
+
});
|
|
12
|
+
const ZodPackageSettingsMatch = z.union([z.string(), z.looseObject({ ...ZodPackageSettingsMatchObject.shape })]);
|
|
10
13
|
const ZodGeneratedPackageSettingsMatch = z.union([z.string(), z.required(ZodPackageSettingsMatchObject)]);
|
|
11
14
|
export const ZodGetLinkConfigOutput = matchingZodObjectLoose({
|
|
12
15
|
packageSettings: z.optional(z.array(z.looseObject({ match: z.union([ZodPackageSettingsMatch, z.array(ZodPackageSettingsMatch)]) }))),
|
|
13
16
|
generated: z.looseObject({ packageSettings: z.array(z.looseObject({ match: ZodGeneratedPackageSettingsMatch })) }),
|
|
14
17
|
});
|
|
15
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=GetLinkConfigOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLinkConfigOutput.js","sourceRoot":"","sources":["../../src/types/GetLinkConfigOutput.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,6FAA6F;AAC7F,oDAAoD;AACpD,EAAE;AACF,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE9F,gEAAgE;AAChE,MAAM,6BAA6B,GAAG,iBAAiB,CAA6B;IAClF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC;AACH,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,EAAE,GAAG,6BAA6B,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AACjH,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC;AAI1G,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAsB;IAChF,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, PackageSettingsMatchObject } from '@ms-cloudpack/common-types';\nimport { matchingZodObject, matchingZodObjectLoose } from '../utilities/matchingZodObject.js';\n\n// Minimum acceptable match object for a low maintenance burden.\nconst ZodPackageSettingsMatchObject = matchingZodObject<PackageSettingsMatchObject>({\n name: z.string(),\n version: z.optional(z.string()),\n});\nconst ZodPackageSettingsMatch = z.union([z.string(), z.looseObject({ ...ZodPackageSettingsMatchObject.shape })]);\nconst ZodGeneratedPackageSettingsMatch = z.union([z.string(), z.required(ZodPackageSettingsMatchObject)]);\n\nexport type GetLinkConfigOutput = CloudpackLinkConfig;\n\nexport const ZodGetLinkConfigOutput = matchingZodObjectLoose<GetLinkConfigOutput>({\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"]}
|
package/lib/types/LinkPath.d.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod/v4-mini';
|
|
2
|
-
import type { LinkedPath } from '@ms-cloudpack/common-types';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
linkedPath: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<LinkedPath>, z.core.$strict>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export type LinkPathInput = z.infer<typeof ZodLinkPathInput>;
|
|
15
|
-
export declare const ZodLinkPathOutput: z.ZodMiniObject<{
|
|
16
|
-
resolveMap: z.ZodMiniType<import("@ms-cloudpack/common-types").ResolveMap, import("@ms-cloudpack/common-types").ResolveMap, z.core.$ZodTypeInternals<import("@ms-cloudpack/common-types").ResolveMap, import("@ms-cloudpack/common-types").ResolveMap>>;
|
|
17
|
-
linkedPaths: z.ZodMiniArray<z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<LinkedPath>, z.core.$strict>>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export type LinkPathOutput = z.infer<typeof ZodLinkPathOutput>;
|
|
2
|
+
import type { LinkedPath, ResolveMap } from '@ms-cloudpack/common-types';
|
|
3
|
+
export interface LinkPathInput {
|
|
4
|
+
linkedPath: LinkedPath;
|
|
5
|
+
}
|
|
6
|
+
export declare const ZodLinkPathInput: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<LinkPathInput>, z.core.$strip>;
|
|
7
|
+
export interface LinkPathOutput {
|
|
8
|
+
resolveMap: ResolveMap;
|
|
9
|
+
linkedPaths: LinkedPath[];
|
|
10
|
+
}
|
|
11
|
+
export declare const ZodLinkPathOutput: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<LinkPathOutput>, z.core.$strip>;
|
|
20
12
|
//# sourceMappingURL=LinkPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,MAAM,4BAA4B,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"}
|
package/lib/types/LinkPath.js
CHANGED
|
@@ -5,39 +5,28 @@
|
|
|
5
5
|
//
|
|
6
6
|
import { z } from 'zod/v4-mini';
|
|
7
7
|
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
8
|
-
import { ZodResolveMap } from '../types/ZodResolveMap.js';
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
|
-
const ZodPackageRecord = (ZodPackageJson) => z.record(z.string(), z.union([ZodPackageJson, z.undefined()]));
|
|
11
8
|
const ZodPackageHashesEntry = z.object({
|
|
12
9
|
browser: z.record(z.string(), z.string()),
|
|
13
10
|
node: z.record(z.string(), z.string()),
|
|
14
11
|
});
|
|
15
|
-
const
|
|
16
|
-
export const ZodLinkPackageDefinition = z.object({
|
|
17
|
-
// Name and version are required for the import map.
|
|
18
|
-
name: z.string(),
|
|
19
|
-
version: z.string(),
|
|
20
|
-
// The exports are also required for the import map.
|
|
21
|
-
exports: z.optional(z.any()),
|
|
22
|
-
// Dependencies are required for the resolve map.
|
|
23
|
-
dependencies: z.optional(ZodDependency),
|
|
24
|
-
peerDependencies: z.optional(ZodDependency),
|
|
25
|
-
});
|
|
26
|
-
export const ZodLinkedPath = matchingZodObject({
|
|
12
|
+
const ZodLinkedPath = matchingZodObject({
|
|
27
13
|
path: z.string(),
|
|
28
14
|
rootPath: z.optional(z.string()),
|
|
29
15
|
includeAll: z.optional(z.boolean()),
|
|
30
16
|
ignoredPackages: z.optional(z.array(z.string())),
|
|
31
17
|
ignoreResolutions: z.optional(z.boolean()),
|
|
32
18
|
resolveStrategy: z.optional(z.literal(['dedupe', 'duplicate'])),
|
|
33
|
-
remote: z.optional(
|
|
34
|
-
resolveMap: ZodResolveMap,
|
|
19
|
+
remote: z.optional(matchingZodObject({
|
|
35
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.
|
|
36
27
|
packages: z.object({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// For linked packages, we need name and version across Cloudpack, and the exports for the import map.
|
|
40
|
-
transformedDefinitions: ZodPackageRecord(ZodLinkPackageDefinition),
|
|
28
|
+
definitions: z.record(z.string(), z.any()),
|
|
29
|
+
transformedDefinitions: z.record(z.string(), z.any()),
|
|
41
30
|
}),
|
|
42
31
|
packageHashes: z.object({
|
|
43
32
|
hashesWithSource: ZodPackageHashesEntry,
|
|
@@ -45,9 +34,10 @@ export const ZodLinkedPath = matchingZodObject({
|
|
|
45
34
|
}),
|
|
46
35
|
})),
|
|
47
36
|
});
|
|
48
|
-
export const ZodLinkPathInput =
|
|
49
|
-
export const ZodLinkPathOutput =
|
|
50
|
-
|
|
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()),
|
|
51
41
|
linkedPaths: z.array(ZodLinkedPath),
|
|
52
42
|
});
|
|
53
43
|
//# sourceMappingURL=LinkPath.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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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zC,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"]}
|
|
@@ -18,5 +18,5 @@ export interface TaskDescription extends Pick<BundleResult, 'inputPath' | 'outpu
|
|
|
18
18
|
lastUpdated?: number;
|
|
19
19
|
timings?: Timing[];
|
|
20
20
|
}
|
|
21
|
-
export declare const ZodTaskDescription: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskDescription>, z.core.$
|
|
21
|
+
export declare const ZodTaskDescription: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskDescription>, z.core.$strip>;
|
|
22
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,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,
|
|
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"}
|
package/lib/types/TaskList.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { type TaskDescription } from './TaskDescription.js';
|
|
|
3
3
|
export interface TaskList {
|
|
4
4
|
tasks: TaskDescription[];
|
|
5
5
|
}
|
|
6
|
-
export declare const ZodTaskList: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskList>, z.core.$
|
|
6
|
+
export declare const ZodTaskList: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskList>, z.core.$strip>;
|
|
7
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,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,
|
|
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,7 +1,7 @@
|
|
|
1
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.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessageNote>, z.core.$
|
|
4
|
+
export declare const ZodTaskNote: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessageNote>, z.core.$strip>;
|
|
5
5
|
export type TaskMessage = BundleMessage;
|
|
6
|
-
export declare const ZodTaskMessage: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessage>, z.core.$
|
|
6
|
+
export declare const ZodTaskMessage: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessage>, z.core.$strip>;
|
|
7
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,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,
|
|
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,iHAGtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AAExC,eAAO,MAAM,cAAc,6GAKzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessageLocation>, z.core.$
|
|
4
|
+
export declare const ZodTaskMessageLocation: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<BundleMessageLocation>, z.core.$strip>;
|
|
5
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,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,
|
|
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,qHAIjC,CAAC"}
|
package/lib/types/TaskStats.d.ts
CHANGED
|
@@ -27,5 +27,5 @@ export interface TaskStats {
|
|
|
27
27
|
*/
|
|
28
28
|
totalWarnings: number;
|
|
29
29
|
}
|
|
30
|
-
export declare const ZodTaskStats: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskStats>, z.core.$
|
|
30
|
+
export declare const ZodTaskStats: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<TaskStats>, z.core.$strip>;
|
|
31
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,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,
|
|
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,yGAMvB,CAAC"}
|
package/lib/types/Timing.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export interface Timing {
|
|
|
9
9
|
/** Exited prematurely. */
|
|
10
10
|
threwException?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const ZodTiming: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<Timing>, z.core.$
|
|
12
|
+
export declare const ZodTiming: z.ZodMiniObject<import("../utilities/matchingZodObject.js").MatchingZodShape<Timing>, z.core.$strip>;
|
|
13
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,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,
|
|
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,EAA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