GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(provider-core): replace the unused string override with a bo… · pingdotgg/t3code@50b7a66

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/provider
    • ProviderInstanceRegistry.ts
  • packages
    • provider-acp-registry/src/server
      • driver.ts
    • provider-core/src/server
      • driver.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/provider/ProviderInstanceRegistry.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/provider/ProviderInstanceRegistry.ts
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const runtimeEqual = (a: ProviderInstanceConfig, b: ProviderInstanceConfig): boo
8585
const withLivePresentation = (
8686
instance: ProviderInstance,
8787
created: ProviderInstanceConfig,
88-
defaultSnapshotDisplayName: string | null,
88+
defaultSnapshotDisplayName: string | undefined,
8989
) => {
9090
let current = created;
9191
const restamp = <S extends ServerProvider>(snapshot: S): S => {
@@ -408,9 +408,7 @@ const buildEntry = Effect.fn("ProviderInstanceRegistry.buildEntry")(function* <R
408408
const { instance, setPresentation } = withLivePresentation(
409409
createResult.success,
410410
entry,
411-
driver.metadata.defaultSnapshotDisplayName === undefined
412-
? driver.metadata.displayName
413-
: driver.metadata.defaultSnapshotDisplayName,
411+
driver.metadata.snapshotOmitsDisplayName ? undefined : driver.metadata.displayName,
414412
);
415413
return {
416414
kind: "live" as const,
Collapse file

‎packages/provider-acp-registry/src/server/driver.ts‎

Copy file name to clipboardExpand all lines: packages/provider-acp-registry/src/server/driver.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export const AcpRegistryDriver: ProviderDriver<AcpRegistrySettings, AcpRegistryD
616616
driverKind: DRIVER_KIND,
617617
metadata: {
618618
displayName: "ACP Registry",
619-
defaultSnapshotDisplayName: null,
619+
snapshotOmitsDisplayName: true,
620620
supportsMultipleInstances: true,
621621
hasDefaultInstance: false,
622622
},
Collapse file

‎packages/provider-core/src/server/driver.ts‎

Copy file name to clipboardExpand all lines: packages/provider-core/src/server/driver.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import type { ProviderUsageReader } from "./usage.ts";
2525

2626
export interface ProviderDriverMetadata {
2727
readonly displayName: string;
28-
/** Overrides displayName for unlabeled snapshots. Null means the snapshot omits the name. */
29-
readonly defaultSnapshotDisplayName?: string | null;
28+
/** Unlabeled snapshots leave displayName out instead of reporting this one. */
29+
readonly snapshotOmitsDisplayName?: boolean;
3030
/** Defaults to true; false rejects multiple instances of a global resource. */
3131
readonly supportsMultipleInstances?: boolean;
3232
readonly hasDefaultInstance?: boolean;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.