History

Add GitHub sync and self-host custom tools wiring

Rhys Sullivan committed 4 months ago

Commit 275446e1 parent 41eb3ae19 files · +1665 −40Browse files

Showing the changes to packages/plugins/apps/src/plugin/runtime.ts (1 of 19 files). Show all

Unified · Split

packages/plugins/apps/src/plugin/runtime.ts+5−1
@@ -13,7 +13,7 @@ import { · 12 unmodified lines
13 type PublishOutput,13 type PublishOutput,
14} from "../pipeline/publish";14} from "../pipeline/publish";
15import { PublishError } from "../pipeline/discover";15import { PublishError } from "../pipeline/discover";
16import type { AppDescriptor, ToolDescriptor } from "../pipeline/descriptor";16import type { AppDescriptor, AppSourceRef, ToolDescriptor } from "../pipeline/descriptor";
17import { bundleEntry } from "../pipeline/bundle";17import { bundleEntry } from "../pipeline/bundle";
18import {18import {
19 buildBridge,19 buildBridge,
@@ -42,6 +42,8 @@ export interface AppsRuntime { · 22 unmodified lines
42 readonly scope: string;42 readonly scope: string;
43 readonly files: ReadonlyMap<string, string>;43 readonly files: ReadonlyMap<string, string>;
44 readonly message?: string;44 readonly message?: string;
45 readonly description?: string;
46 readonly source?: AppSourceRef;
45 }) => Effect.Effect<PublishOutput, PublishError>;47 }) => Effect.Effect<PublishOutput, PublishError>;
46 readonly getDescriptor: (scope: string) => Effect.Effect<AppDescriptor | null>;48 readonly getDescriptor: (scope: string) => Effect.Effect<AppDescriptor | null>;
47 /** Re-derive the published-descriptor pointer from the latest committed49 /** Re-derive the published-descriptor pointer from the latest committed
@@ -264,6 +266,8 @@ export const makeAppsRuntime = (deps: AppsRuntimeDeps): AppsRuntime => { · 216 unmodified lines
264 scope: input.scope,266 scope: input.scope,
265 files: input.files,267 files: input.files,
266 commitMessage: input.message,268 commitMessage: input.message,
269 description: input.description,
270 source: input.source,
267 },271 },
268 );272 );
269 yield* putDescriptorPointer(out.descriptor);273 yield* putDescriptorPointer(out.descriptor);