@myagentroam/protocol 0.11.1 → 0.11.3

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.
@@ -37,6 +37,7 @@ const workspaceFileResourceSchema = z
37
37
  kind: z.literal('WORKSPACE_FILE'),
38
38
  workspaceId: resourceIdentifierSchema,
39
39
  path: relativePathSchema,
40
+ repositoryPath: z.string().max(4096).optional(),
40
41
  worktreePath: relativePathSchema.optional()
41
42
  })
42
43
  .strict();
@@ -77,6 +78,14 @@ const directUploadDescriptorSchema = directTransferDescriptorBaseSchema
77
78
  })
78
79
  .strict()
79
80
  .superRefine((descriptor, context) => {
81
+ if (descriptor.resource.kind === 'WORKSPACE_FILE' &&
82
+ (descriptor.resource.repositoryPath !== undefined ||
83
+ descriptor.resource.worktreePath !== undefined))
84
+ context.addIssue({
85
+ code: 'custom',
86
+ path: ['resource'],
87
+ message: 'Git file targets are read-only'
88
+ });
80
89
  if (descriptor.resumeOffset !== undefined && descriptor.resumeOffset > descriptor.size)
81
90
  context.addIssue({
82
91
  code: 'custom',
@@ -482,10 +482,13 @@ export declare const personalGitSummarySchema: z.ZodObject<{
482
482
  export type PersonalGitSummary = z.infer<typeof personalGitSummarySchema>;
483
483
  export declare const workspaceGitSettingsSchema: z.ZodObject<{
484
484
  preserveGitConfig: z.ZodBoolean;
485
+ includeParentRepository: z.ZodOptional<z.ZodBoolean>;
485
486
  }, "strict", z.ZodTypeAny, {
486
487
  preserveGitConfig: boolean;
488
+ includeParentRepository?: boolean | undefined;
487
489
  }, {
488
490
  preserveGitConfig: boolean;
491
+ includeParentRepository?: boolean | undefined;
489
492
  }>;
490
493
  /** Reject unsupported persisted Git configuration shapes at the owning boundary. */
491
494
  export declare function parsePersonalGitRuntime(value: unknown): PersonalGitRuntime;
@@ -242,7 +242,12 @@ export const personalGitSummarySchema = z
242
242
  credentials: z.array(gitCredentialSummarySchema).max(64)
243
243
  })
244
244
  .strict();
245
- export const workspaceGitSettingsSchema = z.object({ preserveGitConfig: z.boolean() }).strict();
245
+ export const workspaceGitSettingsSchema = z
246
+ .object({
247
+ preserveGitConfig: z.boolean(),
248
+ includeParentRepository: z.boolean().optional()
249
+ })
250
+ .strict();
246
251
  /** Reject unsupported persisted Git configuration shapes at the owning boundary. */
247
252
  export function parsePersonalGitRuntime(value) {
248
253
  const current = personalGitRuntimeSchema.safeParse(value);