@ms-cloudpack/api-server 0.7.2 → 0.9.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 +85 -34
- package/lib/apis/addPackageOverride.d.ts.map +1 -1
- package/lib/apis/addPackageOverride.js +21 -10
- package/lib/apis/addPackageOverride.js.map +1 -1
- package/lib/apis/getData.d.ts +66 -0
- package/lib/apis/getData.d.ts.map +1 -0
- package/lib/apis/getData.js +11 -0
- package/lib/apis/getData.js.map +1 -0
- package/lib/apis/getSessionId.d.ts +54 -0
- package/lib/apis/getSessionId.d.ts.map +1 -0
- package/lib/apis/getSessionId.js +8 -0
- package/lib/apis/getSessionId.js.map +1 -0
- package/lib/apis/index.d.ts +10 -0
- package/lib/apis/index.d.ts.map +1 -0
- package/lib/apis/index.js +10 -0
- package/lib/apis/index.js.map +1 -0
- package/lib/apis/onDataChanged.d.ts +69 -0
- package/lib/apis/onDataChanged.d.ts.map +1 -0
- package/lib/apis/onDataChanged.js +20 -0
- package/lib/apis/onDataChanged.js.map +1 -0
- package/lib/apis/openCodeEditor.d.ts +69 -34
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.js +9 -8
- package/lib/apis/openCodeEditor.js.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +39 -24
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.js +6 -2
- package/lib/apis/openConfigEditor.js.map +1 -1
- package/lib/apis/openFilePath.d.ts +50 -30
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/openFilePath.js +9 -8
- package/lib/apis/openFilePath.js.map +1 -1
- package/lib/apis/reportMetric.d.ts +55 -31
- package/lib/apis/reportMetric.d.ts.map +1 -1
- package/lib/apis/reportMetric.js +7 -6
- package/lib/apis/reportMetric.js.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +73 -36
- package/lib/apis/validatePackageOverride.d.ts.map +1 -1
- package/lib/apis/validatePackageOverride.js +11 -8
- package/lib/apis/validatePackageOverride.js.map +1 -1
- package/lib/index.d.ts +7 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/{trpc.d.ts → trpc/common.d.ts} +29 -11
- package/lib/trpc/common.d.ts.map +1 -0
- package/lib/{trpc.js → trpc/common.js} +2 -2
- package/lib/trpc/common.js.map +1 -0
- package/lib/trpc/connectBusToClient.d.ts +8 -0
- package/lib/trpc/connectBusToClient.d.ts.map +1 -0
- package/lib/trpc/connectBusToClient.js +28 -0
- package/lib/trpc/connectBusToClient.js.map +1 -0
- package/lib/trpc/createAppRouter.d.ts +453 -0
- package/lib/trpc/createAppRouter.d.ts.map +1 -0
- package/lib/trpc/createAppRouter.js +9 -0
- package/lib/trpc/createAppRouter.js.map +1 -0
- package/lib/trpc/createCloudpackClient.d.ts +13 -0
- package/lib/trpc/createCloudpackClient.d.ts.map +1 -0
- package/lib/trpc/createCloudpackClient.js +53 -0
- package/lib/trpc/createCloudpackClient.js.map +1 -0
- package/lib/trpc/createCloudpackServer.d.ts +63 -0
- package/lib/trpc/createCloudpackServer.d.ts.map +1 -0
- package/lib/trpc/createCloudpackServer.js +52 -0
- package/lib/trpc/createCloudpackServer.js.map +1 -0
- package/lib/{createContextFactory.d.ts → trpc/createContextFactory.d.ts} +10 -5
- package/lib/trpc/createContextFactory.d.ts.map +1 -0
- package/lib/{createContextFactory.js → trpc/createContextFactory.js} +8 -15
- package/lib/trpc/createContextFactory.js.map +1 -0
- package/lib/trpc/createRouterFromApis.d.ts +26 -0
- package/lib/trpc/createRouterFromApis.d.ts.map +1 -0
- package/lib/trpc/createRouterFromApis.js +9 -0
- package/lib/trpc/createRouterFromApis.js.map +1 -0
- package/lib/{trpc-adapters → trpc}/httpAdapter.d.ts +10 -5
- package/lib/trpc/httpAdapter.d.ts.map +1 -0
- package/lib/trpc/httpAdapter.js +59 -0
- package/lib/trpc/httpAdapter.js.map +1 -0
- package/lib/types/BundleResultExtended.d.ts +23 -0
- package/lib/types/BundleResultExtended.d.ts.map +1 -0
- package/lib/types/BundleResultExtended.js +2 -0
- package/lib/types/BundleResultExtended.js.map +1 -0
- package/lib/types/TaskDescription.d.ts +133 -7
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskDescription.js +14 -1
- package/lib/types/TaskDescription.js.map +1 -1
- package/lib/types/TaskEndDescription.d.ts +84 -5
- package/lib/types/TaskEndDescription.d.ts.map +1 -1
- package/lib/types/TaskEndDescription.js +7 -1
- package/lib/types/TaskEndDescription.js.map +1 -1
- package/lib/types/TaskError.d.ts +18 -2
- package/lib/types/TaskError.d.ts.map +1 -1
- package/lib/types/TaskError.js +9 -1
- package/lib/types/TaskError.js.map +1 -1
- package/lib/types/TaskMessage.d.ts +166 -0
- package/lib/types/TaskMessage.d.ts.map +1 -0
- package/lib/types/TaskMessage.js +17 -0
- package/lib/types/TaskMessage.js.map +1 -0
- package/lib/types/TaskMessageLocation.d.ts +25 -0
- package/lib/types/TaskMessageLocation.d.ts.map +1 -0
- package/lib/types/TaskMessageLocation.js +10 -0
- package/lib/types/TaskMessageLocation.js.map +1 -0
- package/lib/types/TaskResponse.d.ts +471 -0
- package/lib/types/TaskResponse.d.ts.map +1 -0
- package/lib/types/TaskResponse.js +8 -0
- package/lib/types/TaskResponse.js.map +1 -0
- package/lib/types/TaskResult.d.ts +339 -0
- package/lib/types/TaskResult.d.ts.map +1 -0
- package/lib/types/TaskResult.js +7 -0
- package/lib/types/TaskResult.js.map +1 -0
- package/lib/types/TaskStartDescription.d.ts +17 -5
- package/lib/types/TaskStartDescription.d.ts.map +1 -1
- package/lib/types/TaskStartDescription.js +7 -1
- package/lib/types/TaskStartDescription.js.map +1 -1
- package/lib/types/TaskStats.d.ts +22 -0
- package/lib/types/TaskStats.d.ts.map +1 -0
- package/lib/types/TaskStats.js +9 -0
- package/lib/types/TaskStats.js.map +1 -0
- package/lib/types/Timing.d.ts +23 -0
- package/lib/types/Timing.d.ts.map +1 -0
- package/lib/types/Timing.js +12 -0
- package/lib/types/Timing.js.map +1 -0
- package/lib/types/Timings.d.ts +20 -0
- package/lib/types/Timings.d.ts.map +1 -0
- package/lib/types/Timings.js +5 -0
- package/lib/types/Timings.js.map +1 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.d.ts +5 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.d.ts.map +1 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.js +15 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.js.map +1 -0
- package/package.json +1 -1
- package/lib/apis/bus.d.ts +0 -41
- package/lib/apis/bus.d.ts.map +0 -1
- package/lib/apis/bus.js +0 -23
- package/lib/apis/bus.js.map +0 -1
- package/lib/apis/restartAllTasks.d.ts +0 -31
- package/lib/apis/restartAllTasks.d.ts.map +0 -1
- package/lib/apis/restartAllTasks.js +0 -18
- package/lib/apis/restartAllTasks.js.map +0 -1
- package/lib/apis/restartTask.d.ts +0 -37
- package/lib/apis/restartTask.d.ts.map +0 -1
- package/lib/apis/restartTask.js +0 -14
- package/lib/apis/restartTask.js.map +0 -1
- package/lib/appRouter.d.ts +0 -335
- package/lib/appRouter.d.ts.map +0 -1
- package/lib/appRouter.js +0 -22
- package/lib/appRouter.js.map +0 -1
- package/lib/createCloudpackClient.d.ts +0 -17
- package/lib/createCloudpackClient.d.ts.map +0 -1
- package/lib/createCloudpackClient.js +0 -57
- package/lib/createCloudpackClient.js.map +0 -1
- package/lib/createCloudpackServer.d.ts +0 -49
- package/lib/createCloudpackServer.d.ts.map +0 -1
- package/lib/createCloudpackServer.js +0 -26
- package/lib/createCloudpackServer.js.map +0 -1
- package/lib/createCloudpackWebClient.d.ts +0 -2
- package/lib/createCloudpackWebClient.d.ts.map +0 -1
- package/lib/createCloudpackWebClient.js +0 -9
- package/lib/createCloudpackWebClient.js.map +0 -1
- package/lib/createContextFactory.d.ts.map +0 -1
- package/lib/createContextFactory.js.map +0 -1
- package/lib/trpc-adapters/httpAdapter.d.ts.map +0 -1
- package/lib/trpc-adapters/httpAdapter.js +0 -37
- package/lib/trpc-adapters/httpAdapter.js.map +0 -1
- package/lib/trpc-adapters/httpsAdapter.d.ts +0 -1
- package/lib/trpc-adapters/httpsAdapter.d.ts.map +0 -1
- package/lib/trpc-adapters/httpsAdapter.js +0 -2
- package/lib/trpc-adapters/httpsAdapter.js.map +0 -1
- package/lib/trpc.d.ts.map +0 -1
- package/lib/trpc.js.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const restartAllTasks: import("@trpc/server").BuildProcedure<"mutation", {
|
|
2
|
-
_config: import("@trpc/server").RootConfig<{
|
|
3
|
-
ctx: {
|
|
4
|
-
session: import("../index.js").Session;
|
|
5
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
6
|
-
allTasks: Map<string, import("../index.js").TaskDescription>;
|
|
7
|
-
taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
|
|
8
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
9
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
10
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
11
|
-
};
|
|
12
|
-
meta: object;
|
|
13
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
14
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
15
|
-
}>;
|
|
16
|
-
_ctx_out: {
|
|
17
|
-
session: import("../index.js").Session;
|
|
18
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
19
|
-
allTasks: Map<string, import("../index.js").TaskDescription>;
|
|
20
|
-
taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
|
|
21
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
22
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
23
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
24
|
-
};
|
|
25
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
|
26
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
|
27
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
28
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
29
|
-
_meta: object;
|
|
30
|
-
}, void>;
|
|
31
|
-
//# sourceMappingURL=restartAllTasks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restartAllTasks.d.ts","sourceRoot":"","sources":["../../src/apis/restartAllTasks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgB1B,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { emptyDir } from 'fs-extra/esm';
|
|
2
|
-
import { publicProcedure } from '../trpc.js';
|
|
3
|
-
import { getCachePath } from '../utilities/getCachePath.js';
|
|
4
|
-
import { notifyReload } from '../utilities/notifyReload.js';
|
|
5
|
-
export const restartAllTasks = publicProcedure.mutation(async ({ ctx: { allTasks, session, bus, taskRunner } }) => {
|
|
6
|
-
console.log('ApiServer: Restarting all tasks');
|
|
7
|
-
// Clear entire local cache.
|
|
8
|
-
await emptyDir(getCachePath());
|
|
9
|
-
// All tasks can be removed as notifyReload()
|
|
10
|
-
// will cause the client to add the tasks again.
|
|
11
|
-
allTasks.forEach((_, id) => {
|
|
12
|
-
taskRunner.remove(id);
|
|
13
|
-
});
|
|
14
|
-
// Update session version.
|
|
15
|
-
session.incrementSessionVersion();
|
|
16
|
-
notifyReload({ bus });
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=restartAllTasks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restartAllTasks.js","sourceRoot":"","sources":["../../src/apis/restartAllTasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;IAChH,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAE/C,4BAA4B;IAC5B,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC;IAE/B,6CAA6C;IAC7C,gDAAgD;IAChD,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE;QACzB,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,0BAA0B;IAC1B,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAElC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC","sourcesContent":["import { emptyDir } from 'fs-extra/esm';\nimport { publicProcedure } from '../trpc.js';\nimport { getCachePath } from '../utilities/getCachePath.js';\nimport { notifyReload } from '../utilities/notifyReload.js';\n\nexport const restartAllTasks = publicProcedure.mutation(async ({ ctx: { allTasks, session, bus, taskRunner } }) => {\n console.log('ApiServer: Restarting all tasks');\n\n // Clear entire local cache.\n await emptyDir(getCachePath());\n\n // All tasks can be removed as notifyReload()\n // will cause the client to add the tasks again.\n allTasks.forEach((_, id) => {\n taskRunner.remove(id);\n });\n\n // Update session version.\n session.incrementSessionVersion();\n\n notifyReload({ bus });\n});\n"]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const restartTask: import("@trpc/server").BuildProcedure<"mutation", {
|
|
2
|
-
_config: import("@trpc/server").RootConfig<{
|
|
3
|
-
ctx: {
|
|
4
|
-
session: import("../index.js").Session;
|
|
5
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
6
|
-
allTasks: Map<string, import("../index.js").TaskDescription>;
|
|
7
|
-
taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
|
|
8
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
9
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
10
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
11
|
-
};
|
|
12
|
-
meta: object;
|
|
13
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
14
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
15
|
-
}>;
|
|
16
|
-
_meta: object;
|
|
17
|
-
_ctx_out: {
|
|
18
|
-
session: import("../index.js").Session;
|
|
19
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
20
|
-
allTasks: Map<string, import("../index.js").TaskDescription>;
|
|
21
|
-
taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
|
|
22
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
23
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
24
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
25
|
-
};
|
|
26
|
-
_input_in: {
|
|
27
|
-
id: string;
|
|
28
|
-
inputPath: string;
|
|
29
|
-
};
|
|
30
|
-
_input_out: {
|
|
31
|
-
id: string;
|
|
32
|
-
inputPath: string;
|
|
33
|
-
};
|
|
34
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
35
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
36
|
-
}, void>;
|
|
37
|
-
//# sourceMappingURL=restartTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restartTask.d.ts","sourceRoot":"","sources":["../../src/apis/restartTask.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAWpB,CAAC"}
|
package/lib/apis/restartTask.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { publicProcedure } from '../trpc.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { notifyReload } from '../utilities/notifyReload.js';
|
|
4
|
-
export const restartTask = publicProcedure
|
|
5
|
-
.input(z.object({
|
|
6
|
-
id: z.string(),
|
|
7
|
-
inputPath: z.string(),
|
|
8
|
-
}))
|
|
9
|
-
.mutation(({ input: { id, inputPath }, ctx: { bus, taskRunner, session } }) => {
|
|
10
|
-
taskRunner.remove(id);
|
|
11
|
-
session.incrementTargetVersion(inputPath);
|
|
12
|
-
notifyReload({ bus });
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=restartTask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restartTask.js","sourceRoot":"","sources":["../../src/apis/restartTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe;KACvC,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CACH;KACA,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;IAC5E,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtB,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC1C,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC","sourcesContent":["import { publicProcedure } from '../trpc.js';\nimport { z } from 'zod';\nimport { notifyReload } from '../utilities/notifyReload.js';\n\nexport const restartTask = publicProcedure\n .input(\n z.object({\n id: z.string(),\n inputPath: z.string(),\n }),\n )\n .mutation(({ input: { id, inputPath }, ctx: { bus, taskRunner, session } }) => {\n taskRunner.remove(id);\n session.incrementTargetVersion(inputPath);\n notifyReload({ bus });\n });\n"]}
|
package/lib/appRouter.d.ts
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
export declare const appRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
|
2
|
-
ctx: {
|
|
3
|
-
session: import("./index.js").Session;
|
|
4
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
5
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
6
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
7
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
8
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
9
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
10
|
-
};
|
|
11
|
-
meta: object;
|
|
12
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
13
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
14
|
-
}>, {
|
|
15
|
-
addPackageOverride: import("@trpc/server").BuildProcedure<"mutation", {
|
|
16
|
-
_config: import("@trpc/server").RootConfig<{
|
|
17
|
-
ctx: {
|
|
18
|
-
session: import("./index.js").Session;
|
|
19
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
20
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
21
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
22
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
23
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
24
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
25
|
-
};
|
|
26
|
-
meta: object;
|
|
27
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
28
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
29
|
-
}>;
|
|
30
|
-
_meta: object;
|
|
31
|
-
_ctx_out: {
|
|
32
|
-
session: import("./index.js").Session;
|
|
33
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
34
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
35
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
36
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
37
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
38
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
39
|
-
};
|
|
40
|
-
_input_in: {
|
|
41
|
-
packageName: string;
|
|
42
|
-
importPath: string;
|
|
43
|
-
};
|
|
44
|
-
_input_out: {
|
|
45
|
-
packageName: string;
|
|
46
|
-
importPath: string;
|
|
47
|
-
};
|
|
48
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
49
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
50
|
-
}, void>;
|
|
51
|
-
bus: import("@trpc/server").BuildProcedure<"subscription", {
|
|
52
|
-
_config: import("@trpc/server").RootConfig<{
|
|
53
|
-
ctx: {
|
|
54
|
-
session: import("./index.js").Session;
|
|
55
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
56
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
57
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
58
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
59
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
60
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
61
|
-
};
|
|
62
|
-
meta: object;
|
|
63
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
64
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
65
|
-
}>;
|
|
66
|
-
_meta: object;
|
|
67
|
-
_ctx_out: {
|
|
68
|
-
session: import("./index.js").Session;
|
|
69
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
70
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
71
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
72
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
73
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
74
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
75
|
-
};
|
|
76
|
-
_input_in: {
|
|
77
|
-
path: string[];
|
|
78
|
-
};
|
|
79
|
-
_input_out: {
|
|
80
|
-
path: string[];
|
|
81
|
-
};
|
|
82
|
-
_output_in: any;
|
|
83
|
-
_output_out: any;
|
|
84
|
-
}, import("@trpc/server/observable").Observable<any, unknown>>;
|
|
85
|
-
openCodeEditor: import("@trpc/server").BuildProcedure<"mutation", {
|
|
86
|
-
_config: import("@trpc/server").RootConfig<{
|
|
87
|
-
ctx: {
|
|
88
|
-
session: import("./index.js").Session;
|
|
89
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
90
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
91
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
92
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
93
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
94
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
95
|
-
};
|
|
96
|
-
meta: object;
|
|
97
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
98
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
99
|
-
}>;
|
|
100
|
-
_meta: object;
|
|
101
|
-
_ctx_out: {
|
|
102
|
-
session: import("./index.js").Session;
|
|
103
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
104
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
105
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
106
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
107
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
108
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
109
|
-
};
|
|
110
|
-
_input_in: {
|
|
111
|
-
rootPath: string;
|
|
112
|
-
relativePath: string;
|
|
113
|
-
line?: number | undefined;
|
|
114
|
-
column?: number | undefined;
|
|
115
|
-
};
|
|
116
|
-
_input_out: {
|
|
117
|
-
rootPath: string;
|
|
118
|
-
relativePath: string;
|
|
119
|
-
line?: number | undefined;
|
|
120
|
-
column?: number | undefined;
|
|
121
|
-
};
|
|
122
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
123
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
124
|
-
}, void>;
|
|
125
|
-
openConfigEditor: import("@trpc/server").BuildProcedure<"mutation", {
|
|
126
|
-
_config: import("@trpc/server").RootConfig<{
|
|
127
|
-
ctx: {
|
|
128
|
-
session: import("./index.js").Session;
|
|
129
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
130
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
131
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
132
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
133
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
134
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
135
|
-
};
|
|
136
|
-
meta: object;
|
|
137
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
138
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
139
|
-
}>;
|
|
140
|
-
_ctx_out: {
|
|
141
|
-
session: import("./index.js").Session;
|
|
142
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
143
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
144
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
145
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
146
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
147
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
148
|
-
};
|
|
149
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
|
150
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
|
151
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
152
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
153
|
-
_meta: object;
|
|
154
|
-
}, void>;
|
|
155
|
-
openFilePath: import("@trpc/server").BuildProcedure<"query", {
|
|
156
|
-
_config: import("@trpc/server").RootConfig<{
|
|
157
|
-
ctx: {
|
|
158
|
-
session: import("./index.js").Session;
|
|
159
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
160
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
161
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
162
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
163
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
164
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
165
|
-
};
|
|
166
|
-
meta: object;
|
|
167
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
168
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
169
|
-
}>;
|
|
170
|
-
_meta: object;
|
|
171
|
-
_ctx_out: {
|
|
172
|
-
session: import("./index.js").Session;
|
|
173
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
174
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
175
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
176
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
177
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
178
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
179
|
-
};
|
|
180
|
-
_input_in: {
|
|
181
|
-
rootPath: string;
|
|
182
|
-
relativePath: string;
|
|
183
|
-
};
|
|
184
|
-
_input_out: {
|
|
185
|
-
rootPath: string;
|
|
186
|
-
relativePath: string;
|
|
187
|
-
};
|
|
188
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
189
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
190
|
-
}, void>;
|
|
191
|
-
reportMetric: import("@trpc/server").BuildProcedure<"mutation", {
|
|
192
|
-
_config: import("@trpc/server").RootConfig<{
|
|
193
|
-
ctx: {
|
|
194
|
-
session: import("./index.js").Session;
|
|
195
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
196
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
197
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
198
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
199
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
200
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
201
|
-
};
|
|
202
|
-
meta: object;
|
|
203
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
204
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
205
|
-
}>;
|
|
206
|
-
_meta: object;
|
|
207
|
-
_ctx_out: {
|
|
208
|
-
session: import("./index.js").Session;
|
|
209
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
210
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
211
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
212
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
213
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
214
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
215
|
-
};
|
|
216
|
-
_input_in: {
|
|
217
|
-
metric: string;
|
|
218
|
-
value: number;
|
|
219
|
-
};
|
|
220
|
-
_input_out: {
|
|
221
|
-
metric: string;
|
|
222
|
-
value: number;
|
|
223
|
-
};
|
|
224
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
225
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
226
|
-
}, void>;
|
|
227
|
-
restartAllTasks: import("@trpc/server").BuildProcedure<"mutation", {
|
|
228
|
-
_config: import("@trpc/server").RootConfig<{
|
|
229
|
-
ctx: {
|
|
230
|
-
session: import("./index.js").Session;
|
|
231
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
232
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
233
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
234
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
235
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
236
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
237
|
-
};
|
|
238
|
-
meta: object;
|
|
239
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
240
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
241
|
-
}>;
|
|
242
|
-
_ctx_out: {
|
|
243
|
-
session: import("./index.js").Session;
|
|
244
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
245
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
246
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
247
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
248
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
249
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
250
|
-
};
|
|
251
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
|
252
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
|
253
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
254
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
255
|
-
_meta: object;
|
|
256
|
-
}, void>;
|
|
257
|
-
restartTask: import("@trpc/server").BuildProcedure<"mutation", {
|
|
258
|
-
_config: import("@trpc/server").RootConfig<{
|
|
259
|
-
ctx: {
|
|
260
|
-
session: import("./index.js").Session;
|
|
261
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
262
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
263
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
264
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
265
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
266
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
267
|
-
};
|
|
268
|
-
meta: object;
|
|
269
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
270
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
271
|
-
}>;
|
|
272
|
-
_meta: object;
|
|
273
|
-
_ctx_out: {
|
|
274
|
-
session: import("./index.js").Session;
|
|
275
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
276
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
277
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
278
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
279
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
280
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
281
|
-
};
|
|
282
|
-
_input_in: {
|
|
283
|
-
id: string;
|
|
284
|
-
inputPath: string;
|
|
285
|
-
};
|
|
286
|
-
_input_out: {
|
|
287
|
-
id: string;
|
|
288
|
-
inputPath: string;
|
|
289
|
-
};
|
|
290
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
291
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
292
|
-
}, void>;
|
|
293
|
-
validatePackageOverride: import("@trpc/server").BuildProcedure<"query", {
|
|
294
|
-
_config: import("@trpc/server").RootConfig<{
|
|
295
|
-
ctx: {
|
|
296
|
-
session: import("./index.js").Session;
|
|
297
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
298
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
299
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
300
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
301
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
302
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
303
|
-
};
|
|
304
|
-
meta: object;
|
|
305
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
306
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
307
|
-
}>;
|
|
308
|
-
_meta: object;
|
|
309
|
-
_ctx_out: {
|
|
310
|
-
session: import("./index.js").Session;
|
|
311
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
312
|
-
allTasks: Map<string, import("./index.js").TaskDescription>;
|
|
313
|
-
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
314
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
315
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
316
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
317
|
-
};
|
|
318
|
-
_input_in: {
|
|
319
|
-
packageName: string;
|
|
320
|
-
importPath: string;
|
|
321
|
-
};
|
|
322
|
-
_input_out: {
|
|
323
|
-
packageName: string;
|
|
324
|
-
importPath: string;
|
|
325
|
-
};
|
|
326
|
-
_output_in: {
|
|
327
|
-
fixable: boolean;
|
|
328
|
-
};
|
|
329
|
-
_output_out: {
|
|
330
|
-
fixable: boolean;
|
|
331
|
-
};
|
|
332
|
-
}, unknown>;
|
|
333
|
-
}>;
|
|
334
|
-
export type AppRouter = typeof appRouter;
|
|
335
|
-
//# sourceMappingURL=appRouter.d.ts.map
|
package/lib/appRouter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appRouter.d.ts","sourceRoot":"","sources":["../src/appRouter.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC"}
|
package/lib/appRouter.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { addPackageOverride } from './apis/addPackageOverride.js';
|
|
2
|
-
import { bus } from './apis/bus.js';
|
|
3
|
-
import { openCodeEditor } from './apis/openCodeEditor.js';
|
|
4
|
-
import { openConfigEditor } from './apis/openConfigEditor.js';
|
|
5
|
-
import { openFilePath } from './apis/openFilePath.js';
|
|
6
|
-
import { reportMetric } from './apis/reportMetric.js';
|
|
7
|
-
import { restartAllTasks } from './apis/restartAllTasks.js';
|
|
8
|
-
import { restartTask } from './apis/restartTask.js';
|
|
9
|
-
import { validatePackageOverride } from './apis/validatePackageOverride.js';
|
|
10
|
-
import { router } from './trpc.js';
|
|
11
|
-
export const appRouter = router({
|
|
12
|
-
addPackageOverride,
|
|
13
|
-
bus,
|
|
14
|
-
openCodeEditor,
|
|
15
|
-
openConfigEditor,
|
|
16
|
-
openFilePath,
|
|
17
|
-
reportMetric,
|
|
18
|
-
restartAllTasks,
|
|
19
|
-
restartTask,
|
|
20
|
-
validatePackageOverride,
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=appRouter.js.map
|
package/lib/appRouter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appRouter.js","sourceRoot":"","sources":["../src/appRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC;IAC9B,kBAAkB;IAClB,GAAG;IACH,cAAc;IACd,gBAAgB;IAChB,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,WAAW;IACX,uBAAuB;CACxB,CAAC,CAAC","sourcesContent":["import { addPackageOverride } from './apis/addPackageOverride.js';\nimport { bus } from './apis/bus.js';\nimport { openCodeEditor } from './apis/openCodeEditor.js';\nimport { openConfigEditor } from './apis/openConfigEditor.js';\nimport { openFilePath } from './apis/openFilePath.js';\nimport { reportMetric } from './apis/reportMetric.js';\nimport { restartAllTasks } from './apis/restartAllTasks.js';\nimport { restartTask } from './apis/restartTask.js';\nimport { validatePackageOverride } from './apis/validatePackageOverride.js';\nimport { router } from './trpc.js';\n\nexport const appRouter = router({\n addPackageOverride,\n bus,\n openCodeEditor,\n openConfigEditor,\n openFilePath,\n reportMetric,\n restartAllTasks,\n restartTask,\n validatePackageOverride,\n});\n\nexport type AppRouter = typeof appRouter;\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { CreateTRPCProxyClient } from '@trpc/client';
|
|
2
|
-
import type { AppRouter } from './appRouter.js';
|
|
3
|
-
import { type DisposeFunction } from '@ms-cloudpack/data-bus';
|
|
4
|
-
declare function createInnerClient(options: {
|
|
5
|
-
url: string;
|
|
6
|
-
sessionId: string;
|
|
7
|
-
}): Promise<CreateTRPCProxyClient<AppRouter>>;
|
|
8
|
-
export type CloudpackClient = Awaited<ReturnType<typeof createInnerClient>> & {
|
|
9
|
-
getData(path: string[]): any;
|
|
10
|
-
subscribe(path: string[], callback: (value: unknown) => void): DisposeFunction;
|
|
11
|
-
};
|
|
12
|
-
export declare function createCloudpackClient(options: {
|
|
13
|
-
url: string;
|
|
14
|
-
sessionId: string;
|
|
15
|
-
}): Promise<CloudpackClient>;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=createCloudpackClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCloudpackClient.d.ts","sourceRoot":"","sources":["../src/createCloudpackClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAA+B,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAI3F,iBAAe,iBAAiB,CAAC,OAAO,EAAE;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,CAkB5C;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,GAAG;IAE5E,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,eAAe,CAAC;CAChF,CAAC;AAEF,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAqBjH"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { createTRPCProxyClient, createWSClient, httpBatchLink, splitLink, wsLink } from '@trpc/client';
|
|
2
|
-
import { createDataBus } from '@ms-cloudpack/data-bus';
|
|
3
|
-
import { ensureWebsocketDefined } from './utilities/ensureWebsocketDefined.js';
|
|
4
|
-
async function createInnerClient(options) {
|
|
5
|
-
await ensureWebsocketDefined();
|
|
6
|
-
const wsClient = createWSClient(options);
|
|
7
|
-
return createTRPCProxyClient({
|
|
8
|
-
links: [
|
|
9
|
-
splitLink({
|
|
10
|
-
condition(op) {
|
|
11
|
-
return op.type === 'subscription';
|
|
12
|
-
},
|
|
13
|
-
true: wsLink({
|
|
14
|
-
client: wsClient,
|
|
15
|
-
}),
|
|
16
|
-
false: httpBatchLink(options),
|
|
17
|
-
}),
|
|
18
|
-
],
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
export async function createCloudpackClient(options) {
|
|
22
|
-
const { sessionId } = options;
|
|
23
|
-
const localBus = createDataBus();
|
|
24
|
-
const innerClient = await createInnerClient(options);
|
|
25
|
-
const client = {
|
|
26
|
-
...innerClient,
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
-
getData(path) {
|
|
29
|
-
return localBus.getData(path);
|
|
30
|
-
},
|
|
31
|
-
subscribe(path, callback) {
|
|
32
|
-
return localBus.subscribe(path, callback);
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
connectBusToClient({ bus: localBus, client, sessionId });
|
|
36
|
-
return client;
|
|
37
|
-
}
|
|
38
|
-
function connectBusToClient({ bus, client, sessionId, }) {
|
|
39
|
-
const subIds = {};
|
|
40
|
-
bus.addProvider({
|
|
41
|
-
path: [],
|
|
42
|
-
onActivate: ({ path }) => {
|
|
43
|
-
const id = path.join('/');
|
|
44
|
-
subIds[id] = client.bus.subscribe({ path: [sessionId, ...path] }, {
|
|
45
|
-
onData(value) {
|
|
46
|
-
bus.publish(path, value);
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
onDeactivate: ({ path }) => {
|
|
51
|
-
const id = path.join('/');
|
|
52
|
-
subIds[id].unsubscribe();
|
|
53
|
-
delete subIds[id];
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=createCloudpackClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../src/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGvG,OAAO,EAAE,aAAa,EAAsC,MAAM,wBAAwB,CAAC;AAE3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,KAAK,UAAU,iBAAiB,CAAC,OAGhC;IACC,MAAM,sBAAsB,EAAE,CAAC;IAE/B,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzC,OAAO,qBAAqB,CAAY;QACtC,KAAK,EAAE;YACL,SAAS,CAAC;gBACR,SAAS,CAAC,EAAE;oBACV,OAAO,EAAE,CAAC,IAAI,KAAK,cAAc,CAAC;gBACpC,CAAC;gBACD,IAAI,EAAE,MAAM,CAAC;oBACX,MAAM,EAAE,QAAQ;iBACjB,CAAC;gBACF,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;aAC9B,CAAC;SACH;KACF,CAAC,CAAC;AACL,CAAC;AAQD,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAA2C;IACrF,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC9B,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAC;IACjC,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAErD,MAAM,MAAM,GAAG;QACb,GAAG,WAAW;QAEd,8DAA8D;QAC9D,OAAO,CAAC,IAAc;YACpB,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;QAED,SAAS,CAAC,IAAc,EAAE,QAAkC;YAC1D,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC;IAEF,kBAAkB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAEzD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,GAAG,EACH,MAAM,EACN,SAAS,GAKV;IACC,MAAM,MAAM,GAAmC,EAAE,CAAC;IAElD,GAAG,CAAC,WAAW,CAAC;QACd,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YACvB,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAE1B,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAC/B,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,EAAE,EAC9B;gBACE,MAAM,CAAC,KAAK;oBACV,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC3B,CAAC;aACF,CACF,CAAC;QACJ,CAAC;QACD,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YACzB,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC1B,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;YACzB,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { createTRPCProxyClient, createWSClient, httpBatchLink, splitLink, wsLink } from '@trpc/client';\nimport type { CreateTRPCProxyClient } from '@trpc/client';\nimport type { AppRouter } from './appRouter.js';\nimport { createDataBus, type DataBus, type DisposeFunction } from '@ms-cloudpack/data-bus';\nimport type { Unsubscribable } from '@trpc/server/observable';\nimport { ensureWebsocketDefined } from './utilities/ensureWebsocketDefined.js';\n\nasync function createInnerClient(options: {\n url: string;\n sessionId: string;\n}): Promise<CreateTRPCProxyClient<AppRouter>> {\n await ensureWebsocketDefined();\n\n const wsClient = createWSClient(options);\n\n return createTRPCProxyClient<AppRouter>({\n links: [\n splitLink({\n condition(op) {\n return op.type === 'subscription';\n },\n true: wsLink({\n client: wsClient,\n }),\n false: httpBatchLink(options),\n }),\n ],\n });\n}\n\nexport type CloudpackClient = Awaited<ReturnType<typeof createInnerClient>> & {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n getData(path: string[]): any;\n subscribe(path: string[], callback: (value: unknown) => void): DisposeFunction;\n};\n\nexport async function createCloudpackClient(options: { url: string; sessionId: string }): Promise<CloudpackClient> {\n const { sessionId } = options;\n const localBus = createDataBus();\n const innerClient = await createInnerClient(options);\n\n const client = {\n ...innerClient,\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n getData(path: string[]): any {\n return localBus.getData(path);\n },\n\n subscribe(path: string[], callback: (value: unknown) => void) {\n return localBus.subscribe(path, callback);\n },\n };\n\n connectBusToClient({ bus: localBus, client, sessionId });\n\n return client;\n}\n\nfunction connectBusToClient({\n bus,\n client,\n sessionId,\n}: {\n bus: DataBus;\n client: Awaited<ReturnType<typeof createInnerClient>>;\n sessionId: string;\n}) {\n const subIds: Record<string, Unsubscribable> = {};\n\n bus.addProvider({\n path: [],\n onActivate: ({ path }) => {\n const id = path.join('/');\n\n subIds[id] = client.bus.subscribe(\n { path: [sessionId, ...path] },\n {\n onData(value) {\n bus.publish(path, value);\n },\n },\n );\n },\n onDeactivate: ({ path }) => {\n const id = path.join('/');\n subIds[id].unsubscribe();\n delete subIds[id];\n },\n });\n}\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { TaskReporter } from '@ms-cloudpack/task-reporter';
|
|
2
|
-
import type { Span } from '@ms-cloudpack/telemetry';
|
|
3
|
-
import type { Session } from './index.js';
|
|
4
|
-
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
5
|
-
export declare function createCloudpackServer(options: {
|
|
6
|
-
session: Session;
|
|
7
|
-
rootSpan: Span | undefined;
|
|
8
|
-
reporter: TaskReporter;
|
|
9
|
-
packages: PackageDefinitionsCache;
|
|
10
|
-
}): Promise<Omit<{
|
|
11
|
-
addPackageOverride: (input: {
|
|
12
|
-
packageName: string;
|
|
13
|
-
importPath: string;
|
|
14
|
-
}) => Promise<void>;
|
|
15
|
-
bus: (input: {
|
|
16
|
-
path: string[];
|
|
17
|
-
}) => Promise<import("@trpc/server/observable").Observable<any, unknown>>;
|
|
18
|
-
openCodeEditor: (input: {
|
|
19
|
-
rootPath: string;
|
|
20
|
-
relativePath: string;
|
|
21
|
-
line?: number | undefined;
|
|
22
|
-
column?: number | undefined;
|
|
23
|
-
}) => Promise<void>;
|
|
24
|
-
openConfigEditor: (input: void | undefined) => Promise<void>;
|
|
25
|
-
openFilePath: (input: {
|
|
26
|
-
rootPath: string;
|
|
27
|
-
relativePath: string;
|
|
28
|
-
}) => Promise<void>;
|
|
29
|
-
reportMetric: (input: {
|
|
30
|
-
metric: string;
|
|
31
|
-
value: number;
|
|
32
|
-
}) => Promise<void>;
|
|
33
|
-
restartAllTasks: (input: void | undefined) => Promise<void>;
|
|
34
|
-
restartTask: (input: {
|
|
35
|
-
id: string;
|
|
36
|
-
inputPath: string;
|
|
37
|
-
}) => Promise<void>;
|
|
38
|
-
validatePackageOverride: (input: {
|
|
39
|
-
packageName: string;
|
|
40
|
-
importPath: string;
|
|
41
|
-
}) => Promise<{
|
|
42
|
-
fixable: boolean;
|
|
43
|
-
}>;
|
|
44
|
-
} & {
|
|
45
|
-
query: <TProcedure extends {}[TPath], TPath extends never>(path: TPath, ...args: import("@trpc/server").ProcedureArgs<import("@trpc/server").inferProcedureParams<TProcedure>>) => Promise<import("@trpc/server").inferProcedureOutput<TProcedure>>;
|
|
46
|
-
mutation: <TProcedure extends {}[TPath], TPath extends never>(path: TPath, ...args: import("@trpc/server").ProcedureArgs<import("@trpc/server").inferProcedureParams<TProcedure>>) => Promise<import("@trpc/server").inferProcedureOutput<TProcedure>>;
|
|
47
|
-
subscription: <TProcedure extends {}[TPath], TPath extends never>(path: TPath, ...args: import("@trpc/server").ProcedureArgs<import("@trpc/server").inferProcedureParams<TProcedure>>) => Promise<import("@trpc/server").inferProcedureOutput<TProcedure>>;
|
|
48
|
-
}, "query" | "mutation" | "subscription">>;
|
|
49
|
-
//# sourceMappingURL=createCloudpackServer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCloudpackServer.d.ts","sourceRoot":"","sources":["../src/createCloudpackServer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAwBA"}
|