@love-moon/conductor-sdk 0.7.0 → 0.7.1
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.
- package/CHANGELOG.md +6 -0
- package/dist/context/project_context.js +10 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -178,7 +178,7 @@ export function normalizeGitRemoteUrl(raw) {
|
|
|
178
178
|
// `pathname` preserves the leading slash so `${host}${pathname}` reads
|
|
179
179
|
// naturally; we drop trailing `/` and trailing `.git` afterwards.
|
|
180
180
|
const path = parsed.pathname.replace(/\/+$/, '');
|
|
181
|
-
const combined = `${parsed.host}${path}`.replace(/\.git$/i, '');
|
|
181
|
+
const combined = `${canonicalGitRemoteHost(parsed.host)}${path}`.replace(/\.git$/i, '');
|
|
182
182
|
return combined.toLowerCase() || null;
|
|
183
183
|
}
|
|
184
184
|
// scp form: `[user@]host:path`. The host segment must not contain `/`
|
|
@@ -187,7 +187,7 @@ export function normalizeGitRemoteUrl(raw) {
|
|
|
187
187
|
// remote URL anyway).
|
|
188
188
|
const scpMatch = trimmed.match(/^(?:[^@/:]+@)?([^/:]+):(?!\/)(.*)$/);
|
|
189
189
|
if (scpMatch) {
|
|
190
|
-
const host = scpMatch[1];
|
|
190
|
+
const host = canonicalGitRemoteHost(scpMatch[1]);
|
|
191
191
|
const path = scpMatch[2].replace(/\/+$/, '').replace(/\.git$/i, '');
|
|
192
192
|
return `${host}/${path}`.toLowerCase() || null;
|
|
193
193
|
}
|
|
@@ -196,6 +196,14 @@ export function normalizeGitRemoteUrl(raw) {
|
|
|
196
196
|
// real upstream URL.
|
|
197
197
|
return null;
|
|
198
198
|
}
|
|
199
|
+
function canonicalGitRemoteHost(host) {
|
|
200
|
+
const normalized = host.trim().toLowerCase();
|
|
201
|
+
// SSH config alias used for GitHub remotes in our deployments.
|
|
202
|
+
if (normalized === 'github-duinodu') {
|
|
203
|
+
return 'github.com';
|
|
204
|
+
}
|
|
205
|
+
return normalized;
|
|
206
|
+
}
|
|
199
207
|
function* walkFiles(root) {
|
|
200
208
|
const entries = fs.readdirSync(root, { withFileTypes: true });
|
|
201
209
|
for (const entry of entries) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@love-moon/conductor-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/lovemoon-ai/conductor.git"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"typescript": "^5.6.3",
|
|
34
34
|
"vitest": "^2.1.4"
|
|
35
35
|
},
|
|
36
|
-
"gitCommitId": "
|
|
36
|
+
"gitCommitId": "7e2be9c"
|
|
37
37
|
}
|