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
1313 type PublishOutput,
1414 } from "../pipeline/publish";
1515 import { PublishError } from "../pipeline/discover";
16−import type { AppDescriptor, ToolDescriptor } from "../pipeline/descriptor";
16+import type { AppDescriptor, AppSourceRef, ToolDescriptor } from "../pipeline/descriptor";
1717 import { bundleEntry } from "../pipeline/bundle";
1818 import {
1919 buildBridge,
@@ -42,6 +42,8 @@ export interface AppsRuntime { · 22 unmodified lines
4242 readonly scope: string;
4343 readonly files: ReadonlyMap<string, string>;
4444 readonly message?: string;
45+ readonly description?: string;
46+ readonly source?: AppSourceRef;
4547 }) => Effect.Effect<PublishOutput, PublishError>;
4648 readonly getDescriptor: (scope: string) => Effect.Effect<AppDescriptor | null>;
4749 /** Re-derive the published-descriptor pointer from the latest committed
@@ -264,6 +266,8 @@ export const makeAppsRuntime = (deps: AppsRuntimeDeps): AppsRuntime => { · 216 unmodified lines
264266 scope: input.scope,
265267 files: input.files,
266268 commitMessage: input.message,
269+ description: input.description,
270+ source: input.source,
267271 },
268272 );
269273 yield* putDescriptorPointer(out.descriptor);