nexarch 0.12.27 → 0.12.29
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.
|
@@ -75,6 +75,11 @@ function normalizeRepoUrl(raw) {
|
|
|
75
75
|
if (u.protocol === "http:" || u.protocol === "https:") {
|
|
76
76
|
u.hash = "";
|
|
77
77
|
u.search = "";
|
|
78
|
+
// Strip embedded credentials (https://user:token@host/...) -- a repo
|
|
79
|
+
// remote URL is provenance data displayed/persisted elsewhere in the
|
|
80
|
+
// graph, never a place to carry a secret through.
|
|
81
|
+
u.username = "";
|
|
82
|
+
u.password = "";
|
|
78
83
|
u.pathname = u.pathname.replace(/\.git$/i, "");
|
|
79
84
|
return u.toString().replace(/\/$/, "");
|
|
80
85
|
}
|
|
@@ -1426,7 +1431,7 @@ export async function initProject(args) {
|
|
|
1426
1431
|
const nowIso = new Date().toISOString();
|
|
1427
1432
|
const repoRef = repoRefOverride ?? detectedRepo?.rawRef ?? dir;
|
|
1428
1433
|
const repoPath = repoPathOverride ?? dir;
|
|
1429
|
-
const repoUrl = repoUrlOverride ?? detectedRepo?.url ?? null;
|
|
1434
|
+
const repoUrl = (repoUrlOverride ? normalizeRepoUrl(repoUrlOverride) ?? repoUrlOverride : null) ?? detectedRepo?.url ?? null;
|
|
1430
1435
|
const sourceVcsType = detectedRepo?.vcsType ?? "unknown";
|
|
1431
1436
|
const sourceProvider = detectedRepo?.provider ?? "unknown";
|
|
1432
1437
|
if (projectConstruct && isMonorepo && (applicationRefOverride || forceCreateApplication) && !asJson) {
|
|
@@ -1872,8 +1877,8 @@ export async function initProject(args) {
|
|
|
1872
1877
|
pendingSteps.push({
|
|
1873
1878
|
step: stepNum++,
|
|
1874
1879
|
action: "describe_project",
|
|
1875
|
-
instruction: `Give the project (repository) entity a short description of what lives in this repo.`,
|
|
1876
|
-
command: `nexarch update-entity --key "${projectEntityKey}" --entity-type "project" --name "
|
|
1880
|
+
instruction: `Give the project (repository) entity a meaningful display name (not the raw directory name "${projectDirName}") and a short description of what lives in this repo.`,
|
|
1881
|
+
command: `nexarch update-entity --key "${projectEntityKey}" --entity-type "project" --name "..." --description "..."`,
|
|
1877
1882
|
});
|
|
1878
1883
|
}
|
|
1879
1884
|
if (!projectConstruct || !isMonorepo) {
|
|
@@ -2144,8 +2149,8 @@ export async function initProject(args) {
|
|
|
2144
2149
|
lines.push("REMAINING STEPS:");
|
|
2145
2150
|
let step = 1;
|
|
2146
2151
|
if (projectConstruct) {
|
|
2147
|
-
lines.push(` ${step++}. nexarch update-entity --key "${projectEntityKey}" --entity-type "project" --name "
|
|
2148
|
-
lines.push(` (short description of what lives in this repository)`);
|
|
2152
|
+
lines.push(` ${step++}. nexarch update-entity --key "${projectEntityKey}" --entity-type "project" --name "..." --description "..."`);
|
|
2153
|
+
lines.push(` (meaningful display name — not the raw directory name "${projectDirName}" — and a short description of what lives in this repository)`);
|
|
2149
2154
|
}
|
|
2150
2155
|
if (!projectConstruct || !isMonorepo) {
|
|
2151
2156
|
lines.push(` ${step++}. nexarch update-entity --key "${projectExternalKey}" --entity-type "${entityTypeOverride}"${entityTypeOverride === "application" ? ' --subtype "<subtype>" --icon "<lucide-icon>"' : ""} --name "..." --description "..."`);
|