@ycodium-ai/agent-antigravity 0.2.2866 → 0.2.2870
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/index.js +11 -10
- package/locales/zh-CN.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -26970,7 +26970,8 @@ function modelSelectionStateFromSetup(setup) {
|
|
|
26970
26970
|
sessionModelsAdvertised: sessionModels !== void 0,
|
|
26971
26971
|
modelConfigId,
|
|
26972
26972
|
currentModelId,
|
|
26973
|
-
advertisedModelValues: strategy === "config-option" ? modelConfigOption === void 0 ? [] : collectSessionConfigOptionValues(modelConfigOption) : collectSessionModelIds(sessionModels)
|
|
26973
|
+
advertisedModelValues: strategy === "config-option" ? modelConfigOption === void 0 ? [] : collectSessionConfigOptionValues(modelConfigOption) : collectSessionModelIds(sessionModels),
|
|
26974
|
+
configOptions: setup.configOptions
|
|
26974
26975
|
};
|
|
26975
26976
|
}
|
|
26976
26977
|
|
|
@@ -27595,12 +27596,13 @@ function createAcpExecutor(options2) {
|
|
|
27595
27596
|
if (value === input2.state.currentModelId) {
|
|
27596
27597
|
return input2.state;
|
|
27597
27598
|
}
|
|
27599
|
+
let configOptions = input2.state.configOptions;
|
|
27598
27600
|
if (input2.state.strategy === "config-option") {
|
|
27599
|
-
await connection.request(
|
|
27600
|
-
|
|
27601
|
-
configId: input2.state.modelConfigId,
|
|
27602
|
-
|
|
27603
|
-
|
|
27601
|
+
const switched = await connection.request(
|
|
27602
|
+
"session/set_config_option",
|
|
27603
|
+
{ sessionId: input2.acpSessionId, configId: input2.state.modelConfigId, value }
|
|
27604
|
+
);
|
|
27605
|
+
configOptions = switched?.configOptions ?? configOptions;
|
|
27604
27606
|
} else {
|
|
27605
27607
|
await connection.request("session/set_model", {
|
|
27606
27608
|
sessionId: input2.acpSessionId,
|
|
@@ -27610,13 +27612,12 @@ function createAcpExecutor(options2) {
|
|
|
27610
27612
|
if (!isLive(input2.expectedGeneration)) {
|
|
27611
27613
|
throw new AcpExecutorDisposedError();
|
|
27612
27614
|
}
|
|
27613
|
-
return { ...input2.state, currentModelId: value };
|
|
27615
|
+
return { ...input2.state, currentModelId: value, configOptions };
|
|
27614
27616
|
};
|
|
27615
27617
|
const applyRequestedEffort = async (input2) => {
|
|
27616
27618
|
const requested = input2.requestedEffort?.trim();
|
|
27617
27619
|
if (!requested) return;
|
|
27618
|
-
const
|
|
27619
|
-
const effort = findAcpEffortConfig(configOptions);
|
|
27620
|
+
const effort = findAcpEffortConfig(input2.configOptions);
|
|
27620
27621
|
if (effort === void 0) return;
|
|
27621
27622
|
const matched = effort.choices.find((choice) => choice.value === requested);
|
|
27622
27623
|
if (matched === void 0) {
|
|
@@ -27716,7 +27717,7 @@ function createAcpExecutor(options2) {
|
|
|
27716
27717
|
expectedGeneration
|
|
27717
27718
|
});
|
|
27718
27719
|
await applyRequestedEffort({
|
|
27719
|
-
|
|
27720
|
+
configOptions: nextModelSelectionState.configOptions,
|
|
27720
27721
|
acpSessionId: nextSessionId,
|
|
27721
27722
|
requestedEffort: options2.requestedEffort,
|
|
27722
27723
|
expectedGeneration
|
package/locales/zh-CN.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-antigravity",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2870",
|
|
4
4
|
"description": "Google Antigravity executor: runs the Antigravity agent over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vite-plus": "0.2.2",
|
|
33
33
|
"yauzl": "^3.4.0",
|
|
34
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
35
|
-
"ycodium-executor
|
|
36
|
-
"ycodium-
|
|
34
|
+
"@ycodium-ai/plugin-api": "0.2.2870",
|
|
35
|
+
"ycodium-acp-executor": "0.2.2870",
|
|
36
|
+
"ycodium-executor-testing": "0.0.0"
|
|
37
37
|
},
|
|
38
38
|
"ycodium": {
|
|
39
39
|
"plugin": "./dist/index.js",
|