+
+
Import source
+
+ Choose a GitHub repo, direct URL, or local folder to import from.
+
+
+
+
+ {(
+ [
+ { key: "github", icon: Github, label: "GitHub repo" },
+ { key: "url", icon: Link2, label: "Direct URL" },
+ { key: "local", icon: Upload, label: "Local folder" },
+ ] as const
+ ).map(({ key, icon: Icon, label }) => (
+
+ ))}
+
+
+ {sourceMode === "local" ? (
+
+
+
+
+ {localPackage && (
+
+ {localPackage.rootPath ?? "package"} with{" "}
+ {Object.keys(localPackage.files).length} file
+ {Object.keys(localPackage.files).length === 1 ? "" : "s"}
+
+ )}
+
+ {!localPackage && (
+
+ Select a folder that contains COMPANY.md and any referenced AGENTS.md files.
+
+ )}
+
+ ) : (
+
+ {
+ setImportUrl(e.target.value);
+ setImportPreview(null);
+ }}
+ />
+
+ )}
+
+
+
+
+
+
+
+
+
+
+ {targetMode === "new" && (
+
+ setNewCompanyName(e.target.value)}
+ placeholder="Imported Company"
+ />
+
+ )}
+
+
+
+
+
+
+ {/* Preview results */}
+ {importPreview && (
+ <>
+ {/* Sticky import action bar */}
+
+
+ {/* Warnings */}
+ {importPreview.warnings.length > 0 && (
+
+ )}
+
+ {/* Errors */}
+ {importPreview.errors.length > 0 && (
+