replicas-engine 0.1.1050 → 0.1.1051
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/{asp-host-BOMOZPEI.js → asp-host-CBQOHML2.js} +2 -2
- package/dist/src/{chunk-YRXJZQRI.js → chunk-B67WIB7B.js} +4 -3
- package/dist/src/{chunk-TNY3RNBV.js → chunk-D7TBGNYP.js} +3 -3
- package/dist/src/{chunk-IMVXEX2I.js → chunk-HOZ64YBW.js} +1 -1
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +3 -3
- package/package.json +1 -1
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
listRunningCodexModels,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D7TBGNYP.js";
|
|
12
12
|
import "./chunk-2DGMTTR6.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HOZ64YBW.js";
|
|
14
14
|
import "./chunk-YBRC6H4C.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
16
|
import "./chunk-PBIQJJGB.js";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
AspClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HOZ64YBW.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -77,8 +77,9 @@ var OPENCODE_VARIANT_CANDIDATES_BY_THINKING_LEVEL = {
|
|
|
77
77
|
ultracode: ["max", "xhigh", "high"]
|
|
78
78
|
};
|
|
79
79
|
async function fetchOpencodeModelVariants(client, directory, provider) {
|
|
80
|
-
const result = await client.
|
|
81
|
-
|
|
80
|
+
const result = await client.config.providers({ directory }, { throwOnError: true });
|
|
81
|
+
const models = result.data.providers.find((candidate) => candidate.id === provider)?.models ?? {};
|
|
82
|
+
return new Map(Object.entries(models).map(([id, model]) => [id, new Set(Object.keys(model.variants ?? {}))]));
|
|
82
83
|
}
|
|
83
84
|
function opencodeThinkingVariant(variants, thinkingLevel) {
|
|
84
85
|
return thinkingLevel ? OPENCODE_VARIANT_CANDIDATES_BY_THINKING_LEVEL[thinkingLevel].find((variant) => variants?.has(variant)) : void 0;
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HOZ64YBW.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
@@ -291,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
291
291
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
292
292
|
await this.applyCredentialsResponse(data);
|
|
293
293
|
setAgentCredentialSnapshot("codex", data);
|
|
294
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
294
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-CBQOHML2.js");
|
|
295
295
|
await restartCodexAspHostIfRunning2();
|
|
296
296
|
});
|
|
297
297
|
await this.start(true);
|
|
@@ -312,7 +312,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
312
312
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
313
313
|
await this.applyCredentialsResponse(data);
|
|
314
314
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
315
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
315
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-CBQOHML2.js");
|
|
316
316
|
await restartCodexAspHostIfRunning2();
|
|
317
317
|
}
|
|
318
318
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1051";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
recoverCompletedTurn,
|
|
14
14
|
spawnMuseMsp,
|
|
15
15
|
startMuseSession
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B67WIB7B.js";
|
|
17
17
|
import {
|
|
18
18
|
AppServerProcess,
|
|
19
19
|
buildCodexAgentEnv
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HOZ64YBW.js";
|
|
21
21
|
import "./chunk-YBRC6H4C.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT,
|
package/dist/src/index.js
CHANGED
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
spawnMuseMsp,
|
|
65
65
|
startMuseSession,
|
|
66
66
|
uuidV7
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-B67WIB7B.js";
|
|
68
68
|
import {
|
|
69
69
|
publishedPullRequestUrls
|
|
70
70
|
} from "./chunk-VN3EAKA5.js";
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
timestampFromSeconds,
|
|
130
130
|
upsertCredentialFileLines,
|
|
131
131
|
writeSecureCredentialFile
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-D7TBGNYP.js";
|
|
133
133
|
import {
|
|
134
134
|
ENGINE_ENV,
|
|
135
135
|
monolithRequest,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
} from "./chunk-2DGMTTR6.js";
|
|
142
142
|
import {
|
|
143
143
|
getCodexModelProvider
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-HOZ64YBW.js";
|
|
145
145
|
import {
|
|
146
146
|
SUBPROCESS_MAX_BUFFER,
|
|
147
147
|
execAsync,
|