mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-28 21:46:15 +01:00
Implement markdown-first company package import export
This commit is contained in:
1 parent
2975aa950b
commit
271c2b9018
5 files changed
+1230
-157
No files matched your search
@@ -49,6 +49,7 @@ export interface CompanyPortabilityManifest {
|
||||
}
|
||||
|
||||
export interface CompanyPortabilityExportResult {
|
||||
rootPath: string;
|
||||
manifest: CompanyPortabilityManifest;
|
||||
files: Record<string, string>;
|
||||
warnings: string[];
|
||||
@@ -57,7 +58,7 @@ export interface CompanyPortabilityExportResult {
|
||||
export type CompanyPortabilitySource =
|
||||
| {
|
||||
type: "inline";
|
||||
manifest: CompanyPortabilityManifest;
|
||||
rootPath?: string | null;
|
||||
files: Record<string, string>;
|
||||
}
|
||||
| {
|
||||
|
||||
@@ -60,7 +60,7 @@ export const portabilityManifestSchema = z.object({
|
||||
export const portabilitySourceSchema = z.discriminatedUnion("type", [
|
||||
z.object({
|
||||
type: z.literal("inline"),
|
||||
manifest: portabilityManifestSchema,
|
||||
rootPath: z.string().min(1).optional().nullable(),
|
||||
files: z.record(z.string()),
|
||||
}),
|
||||
z.object({
|
||||
|
||||
Reference in new issue
Block a user