replicas-engine 0.1.620 → 0.1.622
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 +15 -7
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -5321,6 +5321,9 @@ var MEDIA_KINDS = [MEDIA_KIND.IMAGE, MEDIA_KIND.VIDEO, MEDIA_KIND.AUDIO, MEDIA_K
|
|
|
5321
5321
|
var PUBLIC_MEDIA_KINDS = [MEDIA_KIND.IMAGE, MEDIA_KIND.VIDEO, MEDIA_KIND.AUDIO];
|
|
5322
5322
|
var MAX_ENGINE_LOG_BYTES = 50 * 1024 * 1024;
|
|
5323
5323
|
|
|
5324
|
+
// ../shared/src/memory.ts
|
|
5325
|
+
var MEMORY_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/memories`;
|
|
5326
|
+
|
|
5324
5327
|
// ../shared/src/skill-registry.ts
|
|
5325
5328
|
var SKILL_REGISTRY_MANIFEST_VERSION = 1;
|
|
5326
5329
|
function isSkillRegistryManifest(value) {
|
|
@@ -5995,11 +5998,11 @@ var GitService = class {
|
|
|
5995
5998
|
let complete = discovered.complete;
|
|
5996
5999
|
for (const repo of discovered.repos) {
|
|
5997
6000
|
try {
|
|
5998
|
-
const [persistedState, currentBranchRaw, gitDiff,
|
|
6001
|
+
const [persistedState, currentBranchRaw, gitDiff, codeHost] = await Promise.all([
|
|
5999
6002
|
loadRepoState(repo.name),
|
|
6000
6003
|
getCurrentBranch(repo.path),
|
|
6001
6004
|
this.getGitDiffStats(repo.path, repo.defaultBranch),
|
|
6002
|
-
this.
|
|
6005
|
+
this.resolveCodeHost(repo.path)
|
|
6003
6006
|
]);
|
|
6004
6007
|
const currentBranch = currentBranchRaw ?? repo.defaultBranch;
|
|
6005
6008
|
const fullDiff = includeDiffs && gitDiff ? await this.getFullGitDiff(repo.path, repo.defaultBranch) : void 0;
|
|
@@ -6013,7 +6016,7 @@ var GitService = class {
|
|
|
6013
6016
|
prUrls: persistedState?.prUrls ?? [],
|
|
6014
6017
|
gitDiff: includeDiffs && gitDiff ? { ...gitDiff, ...fullDiff === null ? {} : { fullDiff } } : gitDiff,
|
|
6015
6018
|
startHooksCompleted: persistedState?.startHooksCompleted ?? false,
|
|
6016
|
-
|
|
6019
|
+
...codeHost
|
|
6017
6020
|
});
|
|
6018
6021
|
} catch {
|
|
6019
6022
|
complete = false;
|
|
@@ -6292,9 +6295,14 @@ var GitService = class {
|
|
|
6292
6295
|
return { status: "error" };
|
|
6293
6296
|
}
|
|
6294
6297
|
}
|
|
6295
|
-
async
|
|
6298
|
+
async resolveCodeHost(repoPath) {
|
|
6296
6299
|
const origin = await this.getOriginInfo(repoPath);
|
|
6297
|
-
|
|
6300
|
+
if (origin.provider === "unknown") return {};
|
|
6301
|
+
if (origin.provider === "github") return { provider: origin.provider };
|
|
6302
|
+
return {
|
|
6303
|
+
provider: origin.provider,
|
|
6304
|
+
repositoryUrl: `${origin.gitLab.instanceUrl}/${origin.gitLab.projectPath}`
|
|
6305
|
+
};
|
|
6298
6306
|
}
|
|
6299
6307
|
async getRepositoryOriginHost(repoPath, refresh = false) {
|
|
6300
6308
|
if (refresh) this.originInfoCache.delete(repoPath);
|
|
@@ -6403,7 +6411,7 @@ var GitService = class {
|
|
|
6403
6411
|
prUrls,
|
|
6404
6412
|
gitDiff: includeDiffs && gitDiff ? { ...gitDiff, ...fullDiff === null ? {} : { fullDiff } } : gitDiff,
|
|
6405
6413
|
startHooksCompleted,
|
|
6406
|
-
|
|
6414
|
+
...await this.resolveCodeHost(repo.path)
|
|
6407
6415
|
};
|
|
6408
6416
|
await saveRepoState(repo.name, state, state);
|
|
6409
6417
|
return state;
|
|
@@ -10909,7 +10917,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
10909
10917
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
10910
10918
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
10911
10919
|
var codexCliVersionEnsured = null;
|
|
10912
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
10920
|
+
var ENGINE_PACKAGE_VERSION = "0.1.622";
|
|
10913
10921
|
var INITIALIZE_METHOD = "initialize";
|
|
10914
10922
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
10915
10923
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|