replicas-engine 0.1.620 → 0.1.621
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/dist/src/index.js +12 -7
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -5995,11 +5995,11 @@ var GitService = class {
|
|
|
5995
5995
|
let complete = discovered.complete;
|
|
5996
5996
|
for (const repo of discovered.repos) {
|
|
5997
5997
|
try {
|
|
5998
|
-
const [persistedState, currentBranchRaw, gitDiff,
|
|
5998
|
+
const [persistedState, currentBranchRaw, gitDiff, codeHost] = await Promise.all([
|
|
5999
5999
|
loadRepoState(repo.name),
|
|
6000
6000
|
getCurrentBranch(repo.path),
|
|
6001
6001
|
this.getGitDiffStats(repo.path, repo.defaultBranch),
|
|
6002
|
-
this.
|
|
6002
|
+
this.resolveCodeHost(repo.path)
|
|
6003
6003
|
]);
|
|
6004
6004
|
const currentBranch = currentBranchRaw ?? repo.defaultBranch;
|
|
6005
6005
|
const fullDiff = includeDiffs && gitDiff ? await this.getFullGitDiff(repo.path, repo.defaultBranch) : void 0;
|
|
@@ -6013,7 +6013,7 @@ var GitService = class {
|
|
|
6013
6013
|
prUrls: persistedState?.prUrls ?? [],
|
|
6014
6014
|
gitDiff: includeDiffs && gitDiff ? { ...gitDiff, ...fullDiff === null ? {} : { fullDiff } } : gitDiff,
|
|
6015
6015
|
startHooksCompleted: persistedState?.startHooksCompleted ?? false,
|
|
6016
|
-
|
|
6016
|
+
...codeHost
|
|
6017
6017
|
});
|
|
6018
6018
|
} catch {
|
|
6019
6019
|
complete = false;
|
|
@@ -6292,9 +6292,14 @@ var GitService = class {
|
|
|
6292
6292
|
return { status: "error" };
|
|
6293
6293
|
}
|
|
6294
6294
|
}
|
|
6295
|
-
async
|
|
6295
|
+
async resolveCodeHost(repoPath) {
|
|
6296
6296
|
const origin = await this.getOriginInfo(repoPath);
|
|
6297
|
-
|
|
6297
|
+
if (origin.provider === "unknown") return {};
|
|
6298
|
+
if (origin.provider === "github") return { provider: origin.provider };
|
|
6299
|
+
return {
|
|
6300
|
+
provider: origin.provider,
|
|
6301
|
+
repositoryUrl: `${origin.gitLab.instanceUrl}/${origin.gitLab.projectPath}`
|
|
6302
|
+
};
|
|
6298
6303
|
}
|
|
6299
6304
|
async getRepositoryOriginHost(repoPath, refresh = false) {
|
|
6300
6305
|
if (refresh) this.originInfoCache.delete(repoPath);
|
|
@@ -6403,7 +6408,7 @@ var GitService = class {
|
|
|
6403
6408
|
prUrls,
|
|
6404
6409
|
gitDiff: includeDiffs && gitDiff ? { ...gitDiff, ...fullDiff === null ? {} : { fullDiff } } : gitDiff,
|
|
6405
6410
|
startHooksCompleted,
|
|
6406
|
-
|
|
6411
|
+
...await this.resolveCodeHost(repo.path)
|
|
6407
6412
|
};
|
|
6408
6413
|
await saveRepoState(repo.name, state, state);
|
|
6409
6414
|
return state;
|
|
@@ -10909,7 +10914,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
10909
10914
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
10910
10915
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
10911
10916
|
var codexCliVersionEnsured = null;
|
|
10912
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
10917
|
+
var ENGINE_PACKAGE_VERSION = "0.1.621";
|
|
10913
10918
|
var INITIALIZE_METHOD = "initialize";
|
|
10914
10919
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
10915
10920
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|