@otto-code/protocol 0.6.6 → 0.7.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.
@@ -12,6 +12,8 @@ export declare const GitHostingCapabilitiesSchema: z.ZodObject<{
12
12
  draftPrs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
13
  reviewDecisions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14
14
  issues: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
+ listRepositories: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
16
+ createRepository: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
17
  }, z.core.$strip>;
16
18
  export type GitHostingProviderId = z.infer<typeof GitHostingProviderIdSchema>;
17
19
  export type GitHostingCapabilities = z.infer<typeof GitHostingCapabilitiesSchema>;
@@ -22,6 +22,12 @@ export const GitHostingCapabilitiesSchema = z.object({
22
22
  draftPrs: z.boolean().optional().default(false),
23
23
  reviewDecisions: z.boolean().optional().default(false),
24
24
  issues: z.boolean().optional().default(false),
25
+ // COMPAT(projectScaffold): added in v0.6.9. Repository-level operations used
26
+ // by the New project page — enumerate the repos/owners you can reach, and
27
+ // create a brand-new remote repository. Absent on older daemons, which is
28
+ // read as "can't", so the page hides those choices rather than emulating them.
29
+ listRepositories: z.boolean().optional().default(false),
30
+ createRepository: z.boolean().optional().default(false),
25
31
  });
26
32
  export const GIT_HOSTING_PROVIDER_IDS = GitHostingProviderIdSchema.options;
27
33
  export function isGitHostingProviderId(value) {