@baseplate-dev/project-builder-server 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/diff/diff-project.action.d.ts +13 -55
- package/dist/actions/diff/diff-project.action.d.ts.map +1 -1
- package/dist/actions/diff/diff-project.action.js +4 -4
- package/dist/actions/diff/diff-project.action.js.map +1 -1
- package/dist/actions/registry.d.ts +109 -180
- package/dist/actions/registry.d.ts.map +1 -1
- package/dist/actions/snapshot/snapshot-add.action.d.ts +4 -4
- package/dist/actions/snapshot/snapshot-add.action.d.ts.map +1 -1
- package/dist/actions/snapshot/snapshot-add.action.js +4 -4
- package/dist/actions/snapshot/snapshot-add.action.js.map +1 -1
- package/dist/actions/snapshot/snapshot-remove.action.d.ts +4 -4
- package/dist/actions/snapshot/snapshot-remove.action.d.ts.map +1 -1
- package/dist/actions/snapshot/snapshot-remove.action.js +4 -4
- package/dist/actions/snapshot/snapshot-remove.action.js.map +1 -1
- package/dist/actions/snapshot/snapshot-save.action.d.ts +3 -3
- package/dist/actions/snapshot/snapshot-save.action.d.ts.map +1 -1
- package/dist/actions/snapshot/snapshot-save.action.js +4 -4
- package/dist/actions/snapshot/snapshot-save.action.js.map +1 -1
- package/dist/actions/snapshot/snapshot-show.action.d.ts +7 -27
- package/dist/actions/snapshot/snapshot-show.action.d.ts.map +1 -1
- package/dist/actions/snapshot/snapshot-show.action.js +4 -4
- package/dist/actions/snapshot/snapshot-show.action.js.map +1 -1
- package/dist/actions/sync/sync-all-projects.action.d.ts +37 -14
- package/dist/actions/sync/sync-all-projects.action.d.ts.map +1 -1
- package/dist/actions/sync/sync-all-projects.action.js +12 -5
- package/dist/actions/sync/sync-all-projects.action.js.map +1 -1
- package/dist/actions/sync/sync-project.action.d.ts +31 -4
- package/dist/actions/sync/sync-project.action.d.ts.map +1 -1
- package/dist/actions/sync/sync-project.action.js +11 -5
- package/dist/actions/sync/sync-project.action.js.map +1 -1
- package/dist/actions/template-extractor/discover-generators.action.d.ts +5 -29
- package/dist/actions/template-extractor/discover-generators.action.d.ts.map +1 -1
- package/dist/actions/template-extractor/discover-generators.action.js +4 -4
- package/dist/actions/template-extractor/discover-generators.action.js.map +1 -1
- package/dist/actions/template-extractor/extract-templates.action.d.ts +3 -3
- package/dist/actions/template-extractor/extract-templates.action.d.ts.map +1 -1
- package/dist/actions/template-extractor/extract-templates.action.js +4 -4
- package/dist/actions/template-extractor/extract-templates.action.js.map +1 -1
- package/dist/actions/template-extractor/generate-templates.action.d.ts +3 -3
- package/dist/actions/template-extractor/generate-templates.action.d.ts.map +1 -1
- package/dist/actions/template-extractor/generate-templates.action.js +4 -4
- package/dist/actions/template-extractor/generate-templates.action.js.map +1 -1
- package/dist/actions/templates/configure-raw-template.action.d.ts +3 -3
- package/dist/actions/templates/configure-raw-template.action.d.ts.map +1 -1
- package/dist/actions/templates/configure-raw-template.action.js +4 -4
- package/dist/actions/templates/configure-raw-template.action.js.map +1 -1
- package/dist/actions/templates/configure-text-template.action.d.ts +4 -10
- package/dist/actions/templates/configure-text-template.action.d.ts.map +1 -1
- package/dist/actions/templates/configure-text-template.action.js +5 -5
- package/dist/actions/templates/configure-text-template.action.js.map +1 -1
- package/dist/actions/templates/configure-ts-template.action.d.ts +4 -4
- package/dist/actions/templates/configure-ts-template.action.d.ts.map +1 -1
- package/dist/actions/templates/configure-ts-template.action.js +4 -4
- package/dist/actions/templates/configure-ts-template.action.js.map +1 -1
- package/dist/actions/templates/delete-template.action.d.ts +3 -3
- package/dist/actions/templates/delete-template.action.d.ts.map +1 -1
- package/dist/actions/templates/delete-template.action.js +4 -4
- package/dist/actions/templates/delete-template.action.js.map +1 -1
- package/dist/actions/templates/list-templates.action.d.ts +4 -18
- package/dist/actions/templates/list-templates.action.d.ts.map +1 -1
- package/dist/actions/templates/list-templates.action.js +7 -5
- package/dist/actions/templates/list-templates.action.js.map +1 -1
- package/dist/actions/templates/show-template-metadata.action.d.ts +3 -3
- package/dist/actions/templates/show-template-metadata.action.d.ts.map +1 -1
- package/dist/actions/templates/show-template-metadata.action.js +5 -5
- package/dist/actions/templates/show-template-metadata.action.js.map +1 -1
- package/dist/actions/types.d.ts +6 -6
- package/dist/actions/types.d.ts.map +1 -1
- package/dist/actions/types.js.map +1 -1
- package/dist/actions/utils/cli.d.ts +1 -1
- package/dist/actions/utils/cli.d.ts.map +1 -1
- package/dist/actions/utils/cli.js +5 -3
- package/dist/actions/utils/cli.js.map +1 -1
- package/dist/actions/utils/run-in-worker.d.ts +1 -1
- package/dist/actions/utils/run-in-worker.d.ts.map +1 -1
- package/dist/actions/utils/run-in-worker.js +4 -1
- package/dist/actions/utils/run-in-worker.js.map +1 -1
- package/dist/actions/utils/trpc.d.ts +9 -7
- package/dist/actions/utils/trpc.d.ts.map +1 -1
- package/dist/actions/utils/trpc.js +6 -7
- package/dist/actions/utils/trpc.js.map +1 -1
- package/dist/actions/utils/worker-script.d.ts.map +1 -1
- package/dist/actions/utils/worker-script.js +1 -2
- package/dist/actions/utils/worker-script.js.map +1 -1
- package/dist/api/index.d.ts +44 -27
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/plugins.d.ts +5 -4
- package/dist/api/plugins.d.ts.map +1 -1
- package/dist/api/projects.d.ts +8 -4
- package/dist/api/projects.d.ts.map +1 -1
- package/dist/api/sync.d.ts +22 -11
- package/dist/api/sync.d.ts.map +1 -1
- package/dist/api/trpc.d.ts +8 -8
- package/dist/api/trpc.d.ts.map +1 -1
- package/dist/api/version.d.ts +5 -4
- package/dist/api/version.d.ts.map +1 -1
- package/dist/compiler/backend/fastify.d.ts.map +1 -1
- package/dist/compiler/backend/fastify.js +1 -7
- package/dist/compiler/backend/fastify.js.map +1 -1
- package/dist/compiler/root/root-package-compiler.d.ts.map +1 -1
- package/dist/compiler/root/root-package-compiler.js +1 -0
- package/dist/compiler/root/root-package-compiler.js.map +1 -1
- package/dist/compiler/web/admin/crud/inputs.d.ts.map +1 -1
- package/dist/compiler/web/admin/crud/inputs.js +4 -0
- package/dist/compiler/web/admin/crud/inputs.js.map +1 -1
- package/dist/compiler/web/web-compiler.d.ts.map +1 -1
- package/dist/compiler/web/web-compiler.js +6 -20
- package/dist/compiler/web/web-compiler.js.map +1 -1
- package/dist/dev-server/api/router.d.ts +87 -54
- package/dist/dev-server/api/router.d.ts.map +1 -1
- package/dist/dev-server/api/trpc.d.ts +4 -4
- package/dist/dev-server/api/trpc.d.ts.map +1 -1
- package/dist/dev-server/get-or-create-config.d.ts +1 -7
- package/dist/dev-server/get-or-create-config.d.ts.map +1 -1
- package/dist/dev-server/mcp/fastify.js +3 -9
- package/dist/dev-server/mcp/fastify.js.map +1 -1
- package/dist/dev-server/mcp/server.js.map +1 -1
- package/dist/dev-server/server.d.ts.map +1 -1
- package/dist/dev-server/server.js +5 -3
- package/dist/dev-server/server.js.map +1 -1
- package/dist/diff/snapshot/snapshot-manifest.js +2 -2
- package/dist/diff/snapshot/snapshot-manifest.js.map +1 -1
- package/dist/diff/snapshot/snapshot-types.d.ts +10 -76
- package/dist/diff/snapshot/snapshot-types.d.ts.map +1 -1
- package/dist/plugins/plugin-discovery.js +2 -2
- package/dist/plugins/plugin-discovery.js.map +1 -1
- package/dist/server/builder-service-manager.d.ts +2 -2
- package/dist/server/builder-service-manager.d.ts.map +1 -1
- package/dist/server/builder-service-manager.js +4 -6
- package/dist/server/builder-service-manager.js.map +1 -1
- package/dist/server/plugin.js +2 -2
- package/dist/server/plugin.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +3 -1
- package/dist/server/server.js.map +1 -1
- package/dist/service/builder-service.d.ts +4 -1
- package/dist/service/builder-service.d.ts.map +1 -1
- package/dist/service/builder-service.js +35 -13
- package/dist/service/builder-service.js.map +1 -1
- package/dist/sync/file-id-map.js +2 -2
- package/dist/sync/file-id-map.js.map +1 -1
- package/dist/sync/sync-metadata.d.ts +78 -378
- package/dist/sync/sync-metadata.d.ts.map +1 -1
- package/dist/sync/sync-project.d.ts +5 -1
- package/dist/sync/sync-project.d.ts.map +1 -1
- package/dist/sync/sync-project.js +3 -1
- package/dist/sync/sync-project.js.map +1 -1
- package/dist/template-extractor/discover-generators.d.ts.map +1 -1
- package/dist/template-extractor/discover-generators.js +2 -1
- package/dist/template-extractor/discover-generators.js.map +1 -1
- package/dist/templates/list/list-templates.d.ts.map +1 -1
- package/dist/templates/list/list-templates.js +2 -1
- package/dist/templates/list/list-templates.js.map +1 -1
- package/dist/user-config/user-config-schema.d.ts +2 -34
- package/dist/user-config/user-config-schema.d.ts.map +1 -1
- package/package.json +16 -15
- package/dist/index.js.map +0 -1
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
* @returns The result of the service action.
|
|
8
8
|
*/
|
|
9
9
|
export async function invokeServiceActionAsCli(action, input, context) {
|
|
10
|
-
const
|
|
11
|
-
action.
|
|
12
|
-
|
|
10
|
+
const parsedInput = action.inputSchema.parse(input);
|
|
11
|
+
const result = await action.handler(parsedInput, context);
|
|
12
|
+
const parsedResult = action.outputSchema.parse(result);
|
|
13
|
+
action.writeCliOutput?.(parsedResult, parsedInput);
|
|
14
|
+
return parsedResult;
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/actions/utils/cli.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAI5C,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/actions/utils/cli.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAI5C,MAA8C,EAC9C,KAA0B,EAC1B,OAA6B;IAE7B,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1D,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvD,MAAM,CAAC,cAAc,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAEnD,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -9,5 +9,5 @@ import type { ServiceAction, ServiceActionContext } from '../types.js';
|
|
|
9
9
|
* @param context - Service action context (must be serializable)
|
|
10
10
|
* @returns Promise that resolves with the action result
|
|
11
11
|
*/
|
|
12
|
-
export declare function runActionInWorker<
|
|
12
|
+
export declare function runActionInWorker<TInputType extends z.ZodType, TOutputType extends z.ZodType>(serviceAction: ServiceAction<TInputType, TOutputType>, input: z.output<TInputType>, context: ServiceActionContext): Promise<z.input<TOutputType>>;
|
|
13
13
|
//# sourceMappingURL=run-in-worker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-in-worker.d.ts","sourceRoot":"","sources":["../../../src/actions/utils/run-in-worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"run-in-worker.d.ts","sourceRoot":"","sources":["../../../src/actions/utils/run-in-worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAUvE;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,SAAS,CAAC,CAAC,OAAO,EAC5B,WAAW,SAAS,CAAC,CAAC,OAAO,EAE7B,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,EACrD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAC3B,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAiF/B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { Worker } from 'node:worker_threads';
|
|
3
|
+
const WORKER_SCRIPT_PATH = path.join(import.meta.dirname, process.env.NODE_ENV === 'test'
|
|
4
|
+
? 'worker-script.test-helper.ts'
|
|
5
|
+
: 'worker-script.js');
|
|
3
6
|
/**
|
|
4
7
|
* Executes an action in a new worker thread.
|
|
5
8
|
* Each execution gets a fresh worker thread that loads the latest version of the action file.
|
|
@@ -18,7 +21,7 @@ export async function runActionInWorker(serviceAction, input, context) {
|
|
|
18
21
|
input,
|
|
19
22
|
name: serviceAction.name,
|
|
20
23
|
});
|
|
21
|
-
const worker = new Worker(
|
|
24
|
+
const worker = new Worker(WORKER_SCRIPT_PATH, {
|
|
22
25
|
workerData: {
|
|
23
26
|
actionName: serviceAction.name,
|
|
24
27
|
input,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-in-worker.js","sourceRoot":"","sources":["../../../src/actions/utils/run-in-worker.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAIrC,
|
|
1
|
+
{"version":3,"file":"run-in-worker.js","sourceRoot":"","sources":["../../../src/actions/utils/run-in-worker.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAClC,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM;IAC7B,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CAAC,GAAG,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACzB,YAAY,CAAC,OAAO,CAAC,CAAC;YACtB,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;gBACf,MAAM,CACJ,IAAI,KAAK,CACP,iCAAiC,IAAI,eAAe,aAAa,CAAC,IAAI,EAAE,CACzE,CACF,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { TRPCMutationProcedure, TRPCQueryProcedure } from '@trpc/server';
|
|
2
2
|
import type { ProcedureBuilder } from '@trpc/server/unstable-core-do-not-import';
|
|
3
|
-
import z from 'zod';
|
|
3
|
+
import type z from 'zod';
|
|
4
4
|
import type { ServiceAction, ServiceActionContext } from '../types.js';
|
|
5
5
|
export interface TrpcFromActionBuilder {
|
|
6
|
-
mutation: <
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
mutation: <TInputType extends z.ZodType, TOutputType extends z.ZodType>(action: ServiceAction<TInputType, TOutputType>) => TRPCMutationProcedure<{
|
|
7
|
+
meta: unknown;
|
|
8
|
+
input: z.input<TInputType>;
|
|
9
|
+
output: z.output<TOutputType>;
|
|
9
10
|
}>;
|
|
10
|
-
query: <
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
query: <TInputType extends z.ZodType, TOutputType extends z.ZodType>(action: ServiceAction<TInputType, TOutputType>) => TRPCQueryProcedure<{
|
|
12
|
+
meta: unknown;
|
|
13
|
+
input: z.input<TInputType>;
|
|
14
|
+
output: z.input<TOutputType>;
|
|
13
15
|
}>;
|
|
14
16
|
}
|
|
15
17
|
export declare function makeTrpcFromActionBuilder<Ctx extends ServiceActionContext>(baseProcedure: ProcedureBuilder<Ctx, any, any, any, any, any, any, false>): TrpcFromActionBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../../../src/actions/utils/trpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../../../src/actions/utils/trpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAIvE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,CAAC,UAAU,SAAS,CAAC,CAAC,OAAO,EAAE,WAAW,SAAS,CAAC,CAAC,OAAO,EACpE,MAAM,EAAE,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,KAC3C,qBAAqB,CAAC;QACzB,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;KAC/B,CAAC,CAAC;IAEH,KAAK,EAAE,CAAC,UAAU,SAAS,CAAC,CAAC,OAAO,EAAE,WAAW,SAAS,CAAC,CAAC,OAAO,EACjE,MAAM,EAAE,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,KAC3C,kBAAkB,CAAC;QACtB,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;KAC9B,CAAC,CAAC;CACJ;AAED,wBAAgB,yBAAyB,CAAC,GAAG,SAAS,oBAAoB,EAExE,aAAa,EAAE,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GACxE,qBAAqB,CAyCvB"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
1
|
import { runActionInWorker } from './run-in-worker.js';
|
|
3
2
|
export function makeTrpcFromActionBuilder(
|
|
4
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
4
|
baseProcedure) {
|
|
6
5
|
return {
|
|
7
6
|
mutation: (action) => baseProcedure
|
|
8
|
-
.input(
|
|
9
|
-
.output(
|
|
10
|
-
//
|
|
7
|
+
.input(action.inputSchema)
|
|
8
|
+
.output(action.outputSchema)
|
|
9
|
+
// The types of TRPC are quite complex and we need to cast to never to avoid type errors
|
|
11
10
|
.mutation(({ input, ctx }) => runActionInWorker(action, input, ctx)),
|
|
12
11
|
query: (action) => baseProcedure
|
|
13
|
-
.input(
|
|
14
|
-
.output(
|
|
15
|
-
//
|
|
12
|
+
.input(action.inputSchema)
|
|
13
|
+
.output(action.outputSchema)
|
|
14
|
+
// The types of TRPC are quite complex and we need to cast to never to avoid type errors
|
|
16
15
|
.query(({ input, ctx }) => runActionInWorker(action, input, ctx)),
|
|
17
16
|
};
|
|
18
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc.js","sourceRoot":"","sources":["../../../src/actions/utils/trpc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trpc.js","sourceRoot":"","sources":["../../../src/actions/utils/trpc.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAoBvD,MAAM,UAAU,yBAAyB;AACvC,8DAA8D;AAC9D,aAAyE;IAEzE,OAAO;QACL,QAAQ,EAAE,CACR,MAA8C,EAC9C,EAAE,CACF,aAAa;aACV,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC;aACzB,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;YAC5B,wFAAwF;aACvF,QAAQ,CACP,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CACjB,iBAAiB,CACf,MAAM,EACN,KAAwC,EACxC,GAAG,CACK,CAKd;QACJ,KAAK,EAAE,CACL,MAA8C,EAC9C,EAAE,CACF,aAAa;aACV,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC;aACzB,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;YAC5B,wFAAwF;aACvF,KAAK,CACJ,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CACjB,iBAAiB,CACf,MAAM,EACN,KAAwC,EACxC,GAAG,CACK,CAKd;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-script.d.ts","sourceRoot":"","sources":["../../../src/actions/utils/worker-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"worker-script.d.ts","sourceRoot":"","sources":["../../../src/actions/utils/worker-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,KAAK,EAAiB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEvE,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;CAC/C;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,kBAAkB,GAClB,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createEventedLogger } from '@baseplate-dev/sync';
|
|
2
2
|
import { parentPort, workerData } from 'node:worker_threads';
|
|
3
|
-
import z from 'zod';
|
|
4
3
|
const { actionName, input, context } = workerData;
|
|
5
4
|
function sendMessage(message) {
|
|
6
5
|
if (!parentPort) {
|
|
@@ -28,7 +27,7 @@ try {
|
|
|
28
27
|
});
|
|
29
28
|
});
|
|
30
29
|
const result = await action.handler(input, contextWithLogger);
|
|
31
|
-
const validatedResult =
|
|
30
|
+
const validatedResult = action.outputSchema.parse(result);
|
|
32
31
|
sendMessage({ type: 'success', result: validatedResult });
|
|
33
32
|
}
|
|
34
33
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-script.js","sourceRoot":"","sources":["../../../src/actions/utils/worker-script.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"worker-script.js","sourceRoot":"","sources":["../../../src/actions/utils/worker-script.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,UAAU,EA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AE,CAAC,CAAC;AAC5D,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,sCAAsC;IACtC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,WAAW,CAAC;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,IAAI,EAAE,KAAK,CAAC,IAAI;aACjB;SACF,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,WAAW,CAAC;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC;aACvB;SACF,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { ProjectInfo } from './projects.js';
|
|
2
2
|
export type { ClientVersionInfo } from './version.js';
|
|
3
|
-
export declare const appRouter: import("@trpc/server
|
|
3
|
+
export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
4
4
|
ctx: {
|
|
5
5
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
6
6
|
cliVersion: string;
|
|
@@ -17,17 +17,17 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
17
17
|
data: {
|
|
18
18
|
isUserVisible: boolean;
|
|
19
19
|
descriptionText: string | undefined;
|
|
20
|
-
code: import("@trpc/server
|
|
20
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
21
21
|
httpStatus: number;
|
|
22
22
|
path?: string;
|
|
23
23
|
stack?: string;
|
|
24
24
|
};
|
|
25
25
|
message: string;
|
|
26
|
-
code: import("@trpc/server
|
|
26
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
27
27
|
};
|
|
28
28
|
transformer: false;
|
|
29
|
-
}, import("@trpc/server
|
|
30
|
-
projects: import("@trpc/server
|
|
29
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
30
|
+
projects: import("@trpc/server").TRPCBuiltRouter<{
|
|
31
31
|
ctx: {
|
|
32
32
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
33
33
|
cliVersion: string;
|
|
@@ -44,19 +44,20 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
44
44
|
data: {
|
|
45
45
|
isUserVisible: boolean;
|
|
46
46
|
descriptionText: string | undefined;
|
|
47
|
-
code: import("@trpc/server
|
|
47
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
48
48
|
httpStatus: number;
|
|
49
49
|
path?: string;
|
|
50
50
|
stack?: string;
|
|
51
51
|
};
|
|
52
52
|
message: string;
|
|
53
|
-
code: import("@trpc/server
|
|
53
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
54
54
|
};
|
|
55
55
|
transformer: false;
|
|
56
|
-
}, import("@trpc/server
|
|
56
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
57
57
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
58
58
|
input: void;
|
|
59
59
|
output: import("@baseplate-dev/project-builder-lib").ProjectInfo[];
|
|
60
|
+
meta: object;
|
|
60
61
|
}>;
|
|
61
62
|
readDefinition: import("@trpc/server").TRPCQueryProcedure<{
|
|
62
63
|
input: {
|
|
@@ -65,12 +66,14 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
65
66
|
output: {
|
|
66
67
|
contents: import("../index.js").ProjectDefinitionFilePayload;
|
|
67
68
|
};
|
|
69
|
+
meta: object;
|
|
68
70
|
}>;
|
|
69
71
|
onProjectJsonChanged: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
70
72
|
input: {
|
|
71
73
|
id: string;
|
|
72
74
|
};
|
|
73
75
|
output: AsyncIterable<import("../index.js").ProjectDefinitionFilePayload, void, any>;
|
|
76
|
+
meta: object;
|
|
74
77
|
}>;
|
|
75
78
|
writeDefinition: import("@trpc/server").TRPCMutationProcedure<{
|
|
76
79
|
input: {
|
|
@@ -81,9 +84,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
81
84
|
output: {
|
|
82
85
|
result: import("../index.js").ProjectDefinitionFileWriteResult;
|
|
83
86
|
};
|
|
87
|
+
meta: object;
|
|
84
88
|
}>;
|
|
85
89
|
}>>;
|
|
86
|
-
sync: import("@trpc/server
|
|
90
|
+
sync: import("@trpc/server").TRPCBuiltRouter<{
|
|
87
91
|
ctx: {
|
|
88
92
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
89
93
|
cliVersion: string;
|
|
@@ -100,16 +104,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
100
104
|
data: {
|
|
101
105
|
isUserVisible: boolean;
|
|
102
106
|
descriptionText: string | undefined;
|
|
103
|
-
code: import("@trpc/server
|
|
107
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
104
108
|
httpStatus: number;
|
|
105
109
|
path?: string;
|
|
106
110
|
stack?: string;
|
|
107
111
|
};
|
|
108
112
|
message: string;
|
|
109
|
-
code: import("@trpc/server
|
|
113
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
110
114
|
};
|
|
111
115
|
transformer: false;
|
|
112
|
-
}, import("@trpc/server
|
|
116
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
113
117
|
startSync: import("@trpc/server").TRPCMutationProcedure<{
|
|
114
118
|
input: {
|
|
115
119
|
id: string;
|
|
@@ -117,42 +121,47 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
117
121
|
output: {
|
|
118
122
|
success: boolean;
|
|
119
123
|
};
|
|
124
|
+
meta: object;
|
|
120
125
|
}>;
|
|
121
126
|
cancelSync: import("@trpc/server").TRPCMutationProcedure<{
|
|
122
127
|
input: {
|
|
123
128
|
id: string;
|
|
124
129
|
};
|
|
125
130
|
output: void;
|
|
131
|
+
meta: object;
|
|
126
132
|
}>;
|
|
127
133
|
onConsoleEmitted: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
128
134
|
input: {
|
|
129
135
|
id: string;
|
|
130
136
|
};
|
|
131
137
|
output: AsyncIterable<import("../index.js").CommandConsoleEmittedPayload, void, any>;
|
|
138
|
+
meta: object;
|
|
132
139
|
}>;
|
|
133
140
|
getCurrentSyncConsoleOutput: import("@trpc/server").TRPCQueryProcedure<{
|
|
134
141
|
input: {
|
|
135
142
|
id: string;
|
|
136
143
|
};
|
|
137
144
|
output: string[];
|
|
145
|
+
meta: object;
|
|
138
146
|
}>;
|
|
139
147
|
onSyncMetadataChanged: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
140
148
|
input: {
|
|
141
149
|
id: string;
|
|
142
150
|
};
|
|
143
151
|
output: AsyncIterable<import("../index.js").SyncMetadataChangedPayload, void, any>;
|
|
152
|
+
meta: object;
|
|
144
153
|
}>;
|
|
145
154
|
getSyncMetadata: import("@trpc/server").TRPCQueryProcedure<{
|
|
146
155
|
input: {
|
|
147
156
|
id: string;
|
|
148
157
|
};
|
|
149
158
|
output: {
|
|
150
|
-
status: "
|
|
159
|
+
status: "success" | "error" | "in-progress" | "cancelled" | "not-started";
|
|
151
160
|
packages: Record<string, {
|
|
152
|
-
path: string;
|
|
153
|
-
status: "not-synced" | "in-progress" | "success" | "unknown-error" | "conflicts" | "command-error" | "cancelled";
|
|
154
161
|
name: string;
|
|
162
|
+
path: string;
|
|
155
163
|
order: number;
|
|
164
|
+
status: "success" | "not-synced" | "in-progress" | "unknown-error" | "conflicts" | "command-error" | "cancelled";
|
|
156
165
|
statusMessage?: string | undefined;
|
|
157
166
|
result?: {
|
|
158
167
|
completedAt: string;
|
|
@@ -174,50 +183,56 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
174
183
|
wasCancelled?: boolean | undefined;
|
|
175
184
|
} | undefined;
|
|
176
185
|
}>;
|
|
177
|
-
completedAt?: string | undefined;
|
|
178
186
|
globalErrors?: string[] | undefined;
|
|
179
187
|
startedAt?: string | undefined;
|
|
188
|
+
completedAt?: string | undefined;
|
|
180
189
|
cliFilePath?: string | undefined;
|
|
181
190
|
};
|
|
191
|
+
meta: object;
|
|
182
192
|
}>;
|
|
183
193
|
onSyncStarted: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
184
194
|
input: {
|
|
185
195
|
id: string;
|
|
186
196
|
};
|
|
187
197
|
output: AsyncIterable<import("../index.js").SyncStartedPayload, void, any>;
|
|
198
|
+
meta: object;
|
|
188
199
|
}>;
|
|
189
200
|
onSyncCompleted: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
190
201
|
input: {
|
|
191
202
|
id: string;
|
|
192
203
|
};
|
|
193
204
|
output: AsyncIterable<import("../index.js").SyncCompletedPayload, void, any>;
|
|
205
|
+
meta: object;
|
|
194
206
|
}>;
|
|
195
207
|
openEditor: import("@trpc/server").TRPCMutationProcedure<{
|
|
196
208
|
input: {
|
|
197
209
|
id: string;
|
|
198
|
-
relativePath: string;
|
|
199
210
|
packageId: string;
|
|
211
|
+
relativePath: string;
|
|
200
212
|
};
|
|
201
213
|
output: void;
|
|
214
|
+
meta: object;
|
|
202
215
|
}>;
|
|
203
216
|
deleteConflictFile: import("@trpc/server").TRPCMutationProcedure<{
|
|
204
217
|
input: {
|
|
205
218
|
id: string;
|
|
206
|
-
relativePath: string;
|
|
207
219
|
packageId: string;
|
|
220
|
+
relativePath: string;
|
|
208
221
|
};
|
|
209
222
|
output: void;
|
|
223
|
+
meta: object;
|
|
210
224
|
}>;
|
|
211
225
|
keepConflictFile: import("@trpc/server").TRPCMutationProcedure<{
|
|
212
226
|
input: {
|
|
213
227
|
id: string;
|
|
214
|
-
relativePath: string;
|
|
215
228
|
packageId: string;
|
|
229
|
+
relativePath: string;
|
|
216
230
|
};
|
|
217
231
|
output: void;
|
|
232
|
+
meta: object;
|
|
218
233
|
}>;
|
|
219
234
|
}>>;
|
|
220
|
-
version: import("@trpc/server
|
|
235
|
+
version: import("@trpc/server").TRPCBuiltRouter<{
|
|
221
236
|
ctx: {
|
|
222
237
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
223
238
|
cliVersion: string;
|
|
@@ -234,22 +249,23 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
234
249
|
data: {
|
|
235
250
|
isUserVisible: boolean;
|
|
236
251
|
descriptionText: string | undefined;
|
|
237
|
-
code: import("@trpc/server
|
|
252
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
238
253
|
httpStatus: number;
|
|
239
254
|
path?: string;
|
|
240
255
|
stack?: string;
|
|
241
256
|
};
|
|
242
257
|
message: string;
|
|
243
|
-
code: import("@trpc/server
|
|
258
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
244
259
|
};
|
|
245
260
|
transformer: false;
|
|
246
|
-
}, import("@trpc/server
|
|
261
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
247
262
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
248
263
|
input: void;
|
|
249
264
|
output: import("./version.js").ClientVersionInfo;
|
|
265
|
+
meta: object;
|
|
250
266
|
}>;
|
|
251
267
|
}>>;
|
|
252
|
-
plugins: import("@trpc/server
|
|
268
|
+
plugins: import("@trpc/server").TRPCBuiltRouter<{
|
|
253
269
|
ctx: {
|
|
254
270
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
255
271
|
cliVersion: string;
|
|
@@ -266,21 +282,22 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
266
282
|
data: {
|
|
267
283
|
isUserVisible: boolean;
|
|
268
284
|
descriptionText: string | undefined;
|
|
269
|
-
code: import("@trpc/server
|
|
285
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
270
286
|
httpStatus: number;
|
|
271
287
|
path?: string;
|
|
272
288
|
stack?: string;
|
|
273
289
|
};
|
|
274
290
|
message: string;
|
|
275
|
-
code: import("@trpc/server
|
|
291
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
276
292
|
};
|
|
277
293
|
transformer: false;
|
|
278
|
-
}, import("@trpc/server
|
|
294
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
279
295
|
getAvailablePlugins: import("@trpc/server").TRPCMutationProcedure<{
|
|
280
296
|
input: {
|
|
281
297
|
projectId: string;
|
|
282
298
|
};
|
|
283
299
|
output: import("@baseplate-dev/project-builder-lib").PluginMetadataWithPaths[];
|
|
300
|
+
meta: object;
|
|
284
301
|
}>;
|
|
285
302
|
}>>;
|
|
286
303
|
}>>;
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAMA,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAMA,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC;AAEzC,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,oCAAoC,CAAC"}
|
package/dist/api/plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const pluginsRouter: import("@trpc/server
|
|
1
|
+
export declare const pluginsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
2
|
ctx: {
|
|
3
3
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
4
4
|
cliVersion: string;
|
|
@@ -15,21 +15,22 @@ export declare const pluginsRouter: import("@trpc/server/unstable-core-do-not-im
|
|
|
15
15
|
data: {
|
|
16
16
|
isUserVisible: boolean;
|
|
17
17
|
descriptionText: string | undefined;
|
|
18
|
-
code: import("@trpc/server
|
|
18
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
19
19
|
httpStatus: number;
|
|
20
20
|
path?: string;
|
|
21
21
|
stack?: string;
|
|
22
22
|
};
|
|
23
23
|
message: string;
|
|
24
|
-
code: import("@trpc/server
|
|
24
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
25
25
|
};
|
|
26
26
|
transformer: false;
|
|
27
|
-
}, import("@trpc/server
|
|
27
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
28
28
|
getAvailablePlugins: import("@trpc/server").TRPCMutationProcedure<{
|
|
29
29
|
input: {
|
|
30
30
|
projectId: string;
|
|
31
31
|
};
|
|
32
32
|
output: import("@baseplate-dev/project-builder-lib").PluginMetadataWithPaths[];
|
|
33
|
+
meta: object;
|
|
33
34
|
}>;
|
|
34
35
|
}>>;
|
|
35
36
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/api/plugins.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/api/plugins.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYxB,CAAC"}
|
package/dist/api/projects.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { ProjectInfo } from '@baseplate-dev/project-builder-lib';
|
|
2
|
-
export declare const projectsRouter: import("@trpc/server
|
|
2
|
+
export declare const projectsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
3
3
|
ctx: {
|
|
4
4
|
getApi: (projectId: string) => import("../index.js").ProjectBuilderService;
|
|
5
5
|
cliVersion: string;
|
|
@@ -16,19 +16,20 @@ export declare const projectsRouter: import("@trpc/server/unstable-core-do-not-i
|
|
|
16
16
|
data: {
|
|
17
17
|
isUserVisible: boolean;
|
|
18
18
|
descriptionText: string | undefined;
|
|
19
|
-
code: import("@trpc/server
|
|
19
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
20
20
|
httpStatus: number;
|
|
21
21
|
path?: string;
|
|
22
22
|
stack?: string;
|
|
23
23
|
};
|
|
24
24
|
message: string;
|
|
25
|
-
code: import("@trpc/server
|
|
25
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
26
26
|
};
|
|
27
27
|
transformer: false;
|
|
28
|
-
}, import("@trpc/server
|
|
28
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
29
29
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
30
30
|
input: void;
|
|
31
31
|
output: import("@baseplate-dev/project-builder-lib").ProjectInfo[];
|
|
32
|
+
meta: object;
|
|
32
33
|
}>;
|
|
33
34
|
readDefinition: import("@trpc/server").TRPCQueryProcedure<{
|
|
34
35
|
input: {
|
|
@@ -37,12 +38,14 @@ export declare const projectsRouter: import("@trpc/server/unstable-core-do-not-i
|
|
|
37
38
|
output: {
|
|
38
39
|
contents: import("../index.js").ProjectDefinitionFilePayload;
|
|
39
40
|
};
|
|
41
|
+
meta: object;
|
|
40
42
|
}>;
|
|
41
43
|
onProjectJsonChanged: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
42
44
|
input: {
|
|
43
45
|
id: string;
|
|
44
46
|
};
|
|
45
47
|
output: AsyncIterable<import("../index.js").ProjectDefinitionFilePayload, void, any>;
|
|
48
|
+
meta: object;
|
|
46
49
|
}>;
|
|
47
50
|
writeDefinition: import("@trpc/server").TRPCMutationProcedure<{
|
|
48
51
|
input: {
|
|
@@ -53,6 +56,7 @@ export declare const projectsRouter: import("@trpc/server/unstable-core-do-not-i
|
|
|
53
56
|
output: {
|
|
54
57
|
result: import("../index.js").ProjectDefinitionFileWriteResult;
|
|
55
58
|
};
|
|
59
|
+
meta: object;
|
|
56
60
|
}>;
|
|
57
61
|
}>>;
|
|
58
62
|
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/api/projects.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/api/projects.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCzB,CAAC"}
|