@liberseek/boft-cli-win32-arm64 0.7.8 → 0.8.0
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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.txt +8 -0
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +16801 -16440
- package/app/console-web.js +9774 -3685
- package/app/desktop-controller.mjs +16475 -374
- package/app/host-runtime.mjs +9052 -1793
- package/app/plugins/antigravity/manifest.json +18 -1
- package/app/plugins/antigravity/plugin.mjs +357 -42
- package/app/plugins/claude-code/manifest.json +28 -0
- package/app/plugins/claude-code/plugin.mjs +1448 -491
- package/app/plugins/codebuddy/manifest.json +17 -0
- package/app/plugins/codebuddy/plugin.mjs +6589 -5423
- package/app/plugins/codex-usage/manifest.json +9 -0
- package/app/plugins/codex-usage/plugin.mjs +16750 -0
- package/app/plugins/cursor-cli/manifest.json +18 -1
- package/app/plugins/cursor-cli/plugin.mjs +782 -197
- package/app/plugins/deepseek-harness/assets/icon.svg +1 -0
- package/app/plugins/deepseek-harness/manifest.json +35 -2
- package/app/plugins/deepseek-harness/plugin.mjs +879 -242
- package/app/plugins/enabled.json +3 -1
- package/app/plugins/grok/manifest.json +21 -1
- package/app/plugins/grok/plugin.mjs +1274 -241
- package/app/plugins/hermes/assets/icon.png +0 -0
- package/app/plugins/hermes/manifest.json +30 -2
- package/app/plugins/hermes/plugin.mjs +3493 -7686
- package/app/plugins/kimi-code/assets/icon.svg +5 -0
- package/app/plugins/kimi-code/manifest.json +25 -2
- package/app/plugins/kimi-code/plugin.mjs +922 -76
- package/app/plugins/kiro-cli/assets/kiro-agent.svg +11 -0
- package/app/plugins/kiro-cli/manifest.json +18 -1
- package/app/plugins/kiro-cli/plugin.mjs +658 -57
- package/app/plugins/muse/manifest.json +18 -1
- package/app/plugins/muse/plugin.mjs +332 -17
- package/app/plugins/omp/manifest.json +21 -1
- package/app/plugins/omp/plugin.mjs +2320 -1131
- package/app/plugins/opencode/manifest.json +18 -1
- package/app/plugins/opencode/plugin.mjs +979 -184
- package/app/plugins/pi/manifest.json +32 -0
- package/app/plugins/pi/plugin.mjs +2785 -2090
- package/app/plugins/qoder/manifest.json +18 -1
- package/app/plugins/qoder/plugin.mjs +832 -82
- package/app/plugins/qoder-cn/manifest.json +18 -1
- package/app/plugins/qoder-cn/plugin.mjs +832 -82
- package/app/plugins/workbuddy/manifest.json +18 -0
- package/app/plugins/workbuddy/plugin.mjs +6947 -5773
- package/app/plugins/zcode/assets/icon.svg +8 -0
- package/app/plugins/zcode/manifest.json +32 -0
- package/app/plugins/zcode/plugin.mjs +20110 -0
- package/app/renderer-extension.js +4762 -2470
- package/bin/boft.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +0 -0
- package/licenses/Cordis-LICENSE.txt +21 -0
- package/licenses/Cosmokit-LICENSE.txt +21 -0
- package/package.json +1 -1
- package/app/plugins/kiro-cli/assets/icon.svg +0 -5
|
@@ -3,8 +3,25 @@
|
|
|
3
3
|
"id": "antigravity",
|
|
4
4
|
"name": "Antigravity CLI",
|
|
5
5
|
"version": "0.0.0",
|
|
6
|
+
"installation": {
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
10
|
+
"command": "curl -fsSL https://antigravity.google/cli/install.sh | bash"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"terminal": "Windows · PowerShell",
|
|
14
|
+
"command": "irm https://antigravity.google/cli/install.ps1 | iex"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"after": {
|
|
18
|
+
"en": "After installation, run agy to complete login or setup.",
|
|
19
|
+
"zh-CN": "安装后运行 agy,完成登录或配置。"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
6
22
|
"links": {
|
|
7
|
-
"
|
|
23
|
+
"website": "https://antigravity.google/",
|
|
24
|
+
"installation": "https://antigravity.google/download#antigravity-cli"
|
|
8
25
|
},
|
|
9
26
|
"adapterApiVersion": 1,
|
|
10
27
|
"entry": "plugin.mjs",
|
|
@@ -5053,8 +5053,8 @@ function az_default() {
|
|
|
5053
5053
|
}
|
|
5054
5054
|
|
|
5055
5055
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
5056
|
-
function getBelarusianPlural(
|
|
5057
|
-
const absCount = Math.abs(
|
|
5056
|
+
function getBelarusianPlural(count2, one, few, many) {
|
|
5057
|
+
const absCount = Math.abs(count2);
|
|
5058
5058
|
const lastDigit = absCount % 10;
|
|
5059
5059
|
const lastTwoDigits = absCount % 100;
|
|
5060
5060
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7132,8 +7132,8 @@ function hu_default() {
|
|
|
7132
7132
|
}
|
|
7133
7133
|
|
|
7134
7134
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7135
|
-
function getArmenianPlural(
|
|
7136
|
-
return Math.abs(
|
|
7135
|
+
function getArmenianPlural(count2, one, many) {
|
|
7136
|
+
return Math.abs(count2) === 1 ? one : many;
|
|
7137
7137
|
}
|
|
7138
7138
|
function withDefiniteArticle(word) {
|
|
7139
7139
|
if (!word)
|
|
@@ -9261,8 +9261,8 @@ function ro_default() {
|
|
|
9261
9261
|
}
|
|
9262
9262
|
|
|
9263
9263
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9264
|
-
function getRussianPlural(
|
|
9265
|
-
const absCount = Math.abs(
|
|
9264
|
+
function getRussianPlural(count2, one, few, many) {
|
|
9265
|
+
const absCount = Math.abs(count2);
|
|
9266
9266
|
const lastDigit = absCount % 10;
|
|
9267
9267
|
const lastTwoDigits = absCount % 100;
|
|
9268
9268
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -14931,6 +14931,15 @@ function date4(params) {
|
|
|
14931
14931
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14932
14932
|
config(en_default());
|
|
14933
14933
|
|
|
14934
|
+
// ../../shared-contracts/dist/delegation-read.js
|
|
14935
|
+
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
14936
|
+
var delegationReadParamsSchema = external_exports.strictObject({
|
|
14937
|
+
threadId: external_exports.string().min(1).max(1024),
|
|
14938
|
+
view: external_exports.enum(["result", "messages"]),
|
|
14939
|
+
cursor: external_exports.string().min(1).max(8192).optional(),
|
|
14940
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
14941
|
+
});
|
|
14942
|
+
|
|
14934
14943
|
// ../../shared-contracts/dist/credential-imports.js
|
|
14935
14944
|
var credentialSourceSchema = external_exports.object({
|
|
14936
14945
|
id: external_exports.string().min(1).max(256),
|
|
@@ -15001,6 +15010,153 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
15001
15010
|
initializeOnly: external_exports.boolean().optional()
|
|
15002
15011
|
});
|
|
15003
15012
|
|
|
15013
|
+
// ../../shared-contracts/dist/model-price-overrides.js
|
|
15014
|
+
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
15015
|
+
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
15016
|
+
input: usdPerMillionTokens,
|
|
15017
|
+
output: usdPerMillionTokens,
|
|
15018
|
+
cacheRead: usdPerMillionTokens.optional(),
|
|
15019
|
+
cacheWrite: usdPerMillionTokens.optional(),
|
|
15020
|
+
cacheWrite1h: usdPerMillionTokens.optional()
|
|
15021
|
+
});
|
|
15022
|
+
var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
|
|
15023
|
+
var modelPriceOverridesSchema = external_exports.strictObject({
|
|
15024
|
+
/** Absolute path of the Host's `pricing.json`. */
|
|
15025
|
+
path: external_exports.string(),
|
|
15026
|
+
entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
|
|
15027
|
+
/** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
|
|
15028
|
+
error: external_exports.string().nullable()
|
|
15029
|
+
});
|
|
15030
|
+
var modelPriceOverridesGetSchema = external_exports.strictObject({});
|
|
15031
|
+
var modelPriceOverridesSetSchema = external_exports.strictObject({
|
|
15032
|
+
key: modelPriceKeySchema,
|
|
15033
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15034
|
+
previousKey: modelPriceKeySchema.optional()
|
|
15035
|
+
});
|
|
15036
|
+
var modelPriceDefaultParamsSchema = external_exports.strictObject({
|
|
15037
|
+
model: modelPriceKeySchema
|
|
15038
|
+
});
|
|
15039
|
+
var modelPriceSuggestionSchema = external_exports.strictObject({
|
|
15040
|
+
/** Verified from catalog canonical links, not inferred from names or equal prices. */
|
|
15041
|
+
official: external_exports.boolean().optional(),
|
|
15042
|
+
canonicalModelId: external_exports.string().min(1).optional(),
|
|
15043
|
+
provider: external_exports.string().min(1).max(512),
|
|
15044
|
+
model: external_exports.string().min(1).max(512),
|
|
15045
|
+
price: modelPriceOverrideSchema
|
|
15046
|
+
});
|
|
15047
|
+
var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
15048
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15049
|
+
/** Local catalog suggestions only; never used automatically for pricing. */
|
|
15050
|
+
suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
|
|
15051
|
+
});
|
|
15052
|
+
|
|
15053
|
+
// ../../shared-contracts/dist/usage-statistics.js
|
|
15054
|
+
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
15055
|
+
var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15056
|
+
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15057
|
+
var harness = external_exports.string().min(1).max(128);
|
|
15058
|
+
var model = external_exports.string().min(1).max(512);
|
|
15059
|
+
var project = external_exports.string().min(1).max(4096);
|
|
15060
|
+
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15061
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15062
|
+
harness: harness.optional(),
|
|
15063
|
+
model: model.nullable().optional(),
|
|
15064
|
+
project: project.nullable().optional(),
|
|
15065
|
+
/** One local date inside the range. */
|
|
15066
|
+
date: localDate.optional()
|
|
15067
|
+
});
|
|
15068
|
+
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15069
|
+
requests: count,
|
|
15070
|
+
inputTokens: count,
|
|
15071
|
+
cachedInputTokens: count,
|
|
15072
|
+
cacheWriteInputTokens: count,
|
|
15073
|
+
cacheKnownInputTokens: count,
|
|
15074
|
+
outputTokens: count,
|
|
15075
|
+
reasoningOutputTokens: count,
|
|
15076
|
+
/** USD at the public price, summed over the priced requests only. */
|
|
15077
|
+
costUsd: external_exports.number().finite().min(0),
|
|
15078
|
+
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15079
|
+
unpricedRequests: count,
|
|
15080
|
+
/**
|
|
15081
|
+
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15082
|
+
* cost, and not as unpriced.
|
|
15083
|
+
*/
|
|
15084
|
+
unmeteredRequests: count
|
|
15085
|
+
});
|
|
15086
|
+
var totals = usageStatisticsTotalsSchema.shape;
|
|
15087
|
+
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
15088
|
+
harness,
|
|
15089
|
+
sessionId: external_exports.string().min(1).max(512),
|
|
15090
|
+
project: project.nullable(),
|
|
15091
|
+
/** Models the session used, most requests first. */
|
|
15092
|
+
models: external_exports.array(model).max(16),
|
|
15093
|
+
firstAtMs: count,
|
|
15094
|
+
lastAtMs: count,
|
|
15095
|
+
...totals
|
|
15096
|
+
});
|
|
15097
|
+
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15098
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15099
|
+
/** First local date of the range; null for all time. */
|
|
15100
|
+
from: localDate.nullable(),
|
|
15101
|
+
to: localDate,
|
|
15102
|
+
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
15103
|
+
filters: external_exports.strictObject({
|
|
15104
|
+
harness: harness.nullable(),
|
|
15105
|
+
model: model.nullable(),
|
|
15106
|
+
unknownModel: external_exports.boolean(),
|
|
15107
|
+
project: project.nullable(),
|
|
15108
|
+
unknownProject: external_exports.boolean(),
|
|
15109
|
+
date: localDate.nullable()
|
|
15110
|
+
}),
|
|
15111
|
+
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15112
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
|
|
15113
|
+
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15114
|
+
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15115
|
+
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
15116
|
+
options: external_exports.strictObject({
|
|
15117
|
+
harnesses: external_exports.array(harness).max(256),
|
|
15118
|
+
models: external_exports.array(model.nullable()).max(4096),
|
|
15119
|
+
projects: external_exports.array(project.nullable()).max(4096)
|
|
15120
|
+
}),
|
|
15121
|
+
/** Current display metadata, scoped by Harness. Never a pricing or filter identity.
|
|
15122
|
+
* Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
|
|
15123
|
+
*/
|
|
15124
|
+
modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
|
|
15125
|
+
/** Native credits, all filters applied, never combined across Harnesses or treated as USD.
|
|
15126
|
+
* Only groups with at least one reported value appear; reportedRequests exposes partial data.
|
|
15127
|
+
*/
|
|
15128
|
+
credits: external_exports.array(external_exports.strictObject({
|
|
15129
|
+
harness,
|
|
15130
|
+
model: model.nullable(),
|
|
15131
|
+
credits: external_exports.number().finite().min(0),
|
|
15132
|
+
reportedRequests: count,
|
|
15133
|
+
requests: count
|
|
15134
|
+
})).max(4096).optional(),
|
|
15135
|
+
/** All filters applied. */
|
|
15136
|
+
totals: usageStatisticsTotalsSchema,
|
|
15137
|
+
/** Each date and Harness of the range: every filter except the day. */
|
|
15138
|
+
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15139
|
+
/** Local weekday (0 = Sunday) and hour, all filters applied. */
|
|
15140
|
+
hourly: external_exports.array(external_exports.strictObject({
|
|
15141
|
+
weekday: external_exports.number().int().min(0).max(6),
|
|
15142
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15143
|
+
...totals
|
|
15144
|
+
})).max(168),
|
|
15145
|
+
byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
|
|
15146
|
+
byModel: external_exports.array(external_exports.strictObject({
|
|
15147
|
+
model: model.nullable(),
|
|
15148
|
+
...totals,
|
|
15149
|
+
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15150
|
+
harnessPricedRequests: count
|
|
15151
|
+
})).max(4096),
|
|
15152
|
+
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15153
|
+
/**
|
|
15154
|
+
* The sessions that spent the most, by cost and by tokens without cache, all filters applied;
|
|
15155
|
+
* requests without a native session are not listed here but count everywhere else.
|
|
15156
|
+
*/
|
|
15157
|
+
sessions: external_exports.array(usageStatisticsSessionSchema).max(100)
|
|
15158
|
+
});
|
|
15159
|
+
|
|
15004
15160
|
// ../../shared-contracts/dist/ids.js
|
|
15005
15161
|
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
15006
15162
|
message: "Identifier must not be empty or whitespace"
|
|
@@ -15011,6 +15167,10 @@ var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
|
15011
15167
|
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
15012
15168
|
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
15013
15169
|
|
|
15170
|
+
// ../../shared-contracts/dist/thread-prewarm.js
|
|
15171
|
+
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15172
|
+
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15173
|
+
|
|
15014
15174
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15015
15175
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15016
15176
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15018,13 +15178,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
|
|
|
15018
15178
|
var harnessPluginIdSchema = external_exports.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).refine((id) => id !== "codex", "The official Codex identity is reserved").pipe(harnessIdSchema);
|
|
15019
15179
|
var relativeResourceSchema = external_exports.string().min(1).max(512).refine((value) => !/[\\\u0000:#?]/u.test(value) && !value.startsWith("/") && !value.split("/").some((part) => part === ".." || part === ""), "Plugin resources must be relative paths inside the plugin");
|
|
15020
15180
|
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15181
|
+
var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
|
|
15182
|
+
var harnessInstallationGuideSchema = external_exports.object({
|
|
15183
|
+
commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
|
|
15184
|
+
before: localizedTextSchema.optional(),
|
|
15185
|
+
after: localizedTextSchema.optional(),
|
|
15186
|
+
downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
|
|
15187
|
+
}).strict();
|
|
15021
15188
|
var pluginPresentationShape = {
|
|
15022
15189
|
id: harnessPluginIdSchema,
|
|
15023
15190
|
name: external_exports.string().trim().min(1).max(128),
|
|
15024
15191
|
version: external_exports.string().min(1).max(128),
|
|
15192
|
+
/** Capability-only plugin; omitted for existing session-capable plugins. */
|
|
15193
|
+
kind: external_exports.literal("usage").optional(),
|
|
15194
|
+
/** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
|
|
15195
|
+
iconStyle: external_exports.object({
|
|
15196
|
+
vector: external_exports.object({
|
|
15197
|
+
viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
|
|
15198
|
+
color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
|
|
15199
|
+
paths: external_exports.array(external_exports.object({
|
|
15200
|
+
d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
|
|
15201
|
+
fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
|
|
15202
|
+
fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
|
|
15203
|
+
}).strict()).min(1).max(32)
|
|
15204
|
+
}).strict().optional(),
|
|
15205
|
+
background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
|
|
15206
|
+
borderRadius: external_exports.number().min(0).max(50).optional(),
|
|
15207
|
+
paddingRatio: external_exports.number().min(0).max(0.25).optional()
|
|
15208
|
+
}).strict().optional(),
|
|
15209
|
+
installation: harnessInstallationGuideSchema.optional(),
|
|
15210
|
+
notice: localizedTextSchema.optional(),
|
|
15025
15211
|
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
15026
15212
|
launchCommand: external_exports.literal(true).optional(),
|
|
15027
15213
|
links: external_exports.object({
|
|
15214
|
+
website: documentationUrlSchema.optional(),
|
|
15028
15215
|
documentation: documentationUrlSchema.optional(),
|
|
15029
15216
|
installation: documentationUrlSchema.optional()
|
|
15030
15217
|
}).strict().optional()
|
|
@@ -15078,6 +15265,9 @@ var consoleOpenResultSchema = external_exports.strictObject({
|
|
|
15078
15265
|
url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
|
|
15079
15266
|
});
|
|
15080
15267
|
var CONSOLE_HOST_METHODS = Object.freeze([
|
|
15268
|
+
"codexhost/console/remote-connections",
|
|
15269
|
+
"codexhost/runtime/status",
|
|
15270
|
+
"codexhost/remote/ssh-setup",
|
|
15081
15271
|
"codexhost/harness/plugins/list",
|
|
15082
15272
|
"codexhost/harness/display-settings/get",
|
|
15083
15273
|
"codexhost/harness/display-settings/set",
|
|
@@ -15098,6 +15288,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15098
15288
|
"codexhost/account/list",
|
|
15099
15289
|
"codexhost/account/refresh",
|
|
15100
15290
|
"codexhost/account/usage/inspect",
|
|
15291
|
+
"codexhost/usage/model-prices/get",
|
|
15292
|
+
"codexhost/usage/model-prices/set",
|
|
15293
|
+
"codexhost/usage/model-prices/default",
|
|
15294
|
+
"codexhost/usage/statistics/get",
|
|
15101
15295
|
"codexhost/update/check",
|
|
15102
15296
|
"codexhost/update/start",
|
|
15103
15297
|
"codexhost/update/status"
|
|
@@ -15162,6 +15356,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15162
15356
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15163
15357
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15164
15358
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15359
|
+
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15165
15360
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15166
15361
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15167
15362
|
totalCostUsd: finiteNonNegativeNumberSchema.optional(),
|
|
@@ -15173,7 +15368,11 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15173
15368
|
planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15174
15369
|
planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15175
15370
|
planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15176
|
-
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
|
|
15371
|
+
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15372
|
+
sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
|
|
15373
|
+
timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
|
|
15374
|
+
costSource: external_exports.enum(["publicPrice", "native"]).optional(),
|
|
15375
|
+
unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
|
|
15177
15376
|
}).strict().superRefine((usage, context) => {
|
|
15178
15377
|
if (Object.keys(usage).length === 0) {
|
|
15179
15378
|
context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
|
|
@@ -15194,6 +15393,20 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15194
15393
|
path: ["contextWindowTokens"]
|
|
15195
15394
|
});
|
|
15196
15395
|
}
|
|
15396
|
+
if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
|
|
15397
|
+
context.addIssue({
|
|
15398
|
+
code: "custom",
|
|
15399
|
+
message: "Thread Usage costSource must be provided with totalCostUsd",
|
|
15400
|
+
path: ["costSource"]
|
|
15401
|
+
});
|
|
15402
|
+
}
|
|
15403
|
+
if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
|
|
15404
|
+
context.addIssue({
|
|
15405
|
+
code: "custom",
|
|
15406
|
+
message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
|
|
15407
|
+
path: ["unpricedModels"]
|
|
15408
|
+
});
|
|
15409
|
+
}
|
|
15197
15410
|
if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
|
|
15198
15411
|
context.addIssue({
|
|
15199
15412
|
code: "custom",
|
|
@@ -15463,27 +15676,27 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15463
15676
|
}).strict().superRefine((catalog, context) => {
|
|
15464
15677
|
const refs = /* @__PURE__ */ new Set();
|
|
15465
15678
|
const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
|
|
15466
|
-
for (const [index,
|
|
15467
|
-
if (refs.has(
|
|
15679
|
+
for (const [index, model2] of catalog.models.entries()) {
|
|
15680
|
+
if (refs.has(model2.ref.id)) {
|
|
15468
15681
|
context.addIssue({
|
|
15469
15682
|
code: "custom",
|
|
15470
15683
|
message: "Model Catalog refs must be unique",
|
|
15471
15684
|
path: ["models", index, "ref", "id"]
|
|
15472
15685
|
});
|
|
15473
15686
|
}
|
|
15474
|
-
refs.add(
|
|
15475
|
-
if (
|
|
15476
|
-
if (refs.has(
|
|
15687
|
+
refs.add(model2.ref.id);
|
|
15688
|
+
if (model2.fastModel) {
|
|
15689
|
+
if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
|
|
15477
15690
|
context.addIssue({
|
|
15478
15691
|
code: "custom",
|
|
15479
15692
|
message: "Fast Model refs must be distinct and unique",
|
|
15480
15693
|
path: ["models", index, "fastModel"]
|
|
15481
15694
|
});
|
|
15482
15695
|
}
|
|
15483
|
-
refs.add(
|
|
15696
|
+
refs.add(model2.fastModel.id);
|
|
15484
15697
|
}
|
|
15485
15698
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15486
|
-
for (const [optionIndex, optionId] of (
|
|
15699
|
+
for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
|
|
15487
15700
|
if (supportedThinkingIds.has(optionId)) {
|
|
15488
15701
|
context.addIssue({
|
|
15489
15702
|
code: "custom",
|
|
@@ -16023,6 +16236,85 @@ var updateStatusResultSchema = external_exports.strictObject({
|
|
|
16023
16236
|
status: updateStatusSchema.nullable()
|
|
16024
16237
|
});
|
|
16025
16238
|
|
|
16239
|
+
// ../../shared-contracts/dist/remote-runtime.js
|
|
16240
|
+
var remoteUpdatePhaseSchema = external_exports.enum([
|
|
16241
|
+
"idle",
|
|
16242
|
+
"installing",
|
|
16243
|
+
"restarting",
|
|
16244
|
+
"succeeded",
|
|
16245
|
+
"failed"
|
|
16246
|
+
]);
|
|
16247
|
+
var runtimeStatusSchema = external_exports.object({
|
|
16248
|
+
runningVersion: external_exports.string().nullable(),
|
|
16249
|
+
installedVersion: external_exports.string().nullable(),
|
|
16250
|
+
restartRequired: external_exports.boolean(),
|
|
16251
|
+
remote: external_exports.boolean(),
|
|
16252
|
+
updateSupported: external_exports.boolean(),
|
|
16253
|
+
update: external_exports.object({
|
|
16254
|
+
phase: remoteUpdatePhaseSchema,
|
|
16255
|
+
targetVersion: external_exports.string().nullable(),
|
|
16256
|
+
error: external_exports.string().nullable()
|
|
16257
|
+
})
|
|
16258
|
+
});
|
|
16259
|
+
var remoteUpdateParamsSchema = external_exports.object({
|
|
16260
|
+
version: external_exports.string().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u)
|
|
16261
|
+
}).strict();
|
|
16262
|
+
var remoteSshSetupParamsSchema = external_exports.object({
|
|
16263
|
+
hostname: external_exports.string().min(1).max(1024).refine((value) => !value.startsWith("-") && !/\s/u.test(value)),
|
|
16264
|
+
port: external_exports.number().int().min(1).max(65535).nullable(),
|
|
16265
|
+
identity: external_exports.string().max(4096).nullable(),
|
|
16266
|
+
action: external_exports.enum(["inspect", "install", "update", "repair", "uninstall"]),
|
|
16267
|
+
uninstallPackage: external_exports.boolean().optional(),
|
|
16268
|
+
version: external_exports.string().regex(/^\d+\.\d+\.\d+$/u).nullable()
|
|
16269
|
+
}).strict();
|
|
16270
|
+
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16271
|
+
|
|
16272
|
+
// ../../shared-contracts/dist/remote-connections.js
|
|
16273
|
+
var hostId = external_exports.string().min(1).max(1024);
|
|
16274
|
+
var codexSshConnectionSchema = external_exports.object({
|
|
16275
|
+
hostId,
|
|
16276
|
+
displayName: external_exports.string().min(1).max(1024),
|
|
16277
|
+
source: external_exports.enum(["codex-managed", "discovered"]),
|
|
16278
|
+
sshAlias: external_exports.string().max(1024).nullable(),
|
|
16279
|
+
sshHost: external_exports.string().min(1).max(1024),
|
|
16280
|
+
sshPort: external_exports.number().int().min(1).max(65535).nullable(),
|
|
16281
|
+
identity: external_exports.string().max(4096).nullable(),
|
|
16282
|
+
autoConnect: external_exports.boolean(),
|
|
16283
|
+
connectionAnalyticsId: external_exports.string().max(1024).optional()
|
|
16284
|
+
});
|
|
16285
|
+
var codexSshDraftSchema = external_exports.strictObject({
|
|
16286
|
+
displayName: external_exports.string().min(1).max(1024),
|
|
16287
|
+
hostname: external_exports.string().min(1).max(1024),
|
|
16288
|
+
sshPort: external_exports.number().int().min(1).max(65535).nullable(),
|
|
16289
|
+
identity: external_exports.string().max(4096).nullable()
|
|
16290
|
+
});
|
|
16291
|
+
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16292
|
+
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16293
|
+
external_exports.strictObject({
|
|
16294
|
+
action: external_exports.literal("read-thread"),
|
|
16295
|
+
hostId: hostId.refine((id) => id !== "local"),
|
|
16296
|
+
input: delegationReadParamsSchema
|
|
16297
|
+
}),
|
|
16298
|
+
external_exports.strictObject({
|
|
16299
|
+
action: external_exports.literal("save"),
|
|
16300
|
+
draft: codexSshDraftSchema,
|
|
16301
|
+
previous: codexSshConnectionSchema.nullable()
|
|
16302
|
+
}),
|
|
16303
|
+
external_exports.strictObject({ action: external_exports.literal("remove"), previous: codexSshConnectionSchema }),
|
|
16304
|
+
external_exports.strictObject({ action: external_exports.literal("connect"), hostId, enabled: external_exports.boolean() }),
|
|
16305
|
+
external_exports.strictObject({ action: external_exports.literal("state"), hostId }),
|
|
16306
|
+
external_exports.strictObject({ action: external_exports.literal("runtime"), hostId }),
|
|
16307
|
+
external_exports.strictObject({
|
|
16308
|
+
action: external_exports.literal("update"),
|
|
16309
|
+
hostId: hostId.refine((id) => id !== "local"),
|
|
16310
|
+
version: remoteUpdateParamsSchema.shape.version
|
|
16311
|
+
})
|
|
16312
|
+
]);
|
|
16313
|
+
var remoteConnectionsReplySchema = external_exports.union([
|
|
16314
|
+
external_exports.strictObject({ result: jsonValueSchema }),
|
|
16315
|
+
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16316
|
+
]);
|
|
16317
|
+
|
|
16026
16318
|
// ../../shared-contracts/dist/index.js
|
|
16027
16319
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16028
16320
|
|
|
@@ -16126,7 +16418,6 @@ var tokenFields = [
|
|
|
16126
16418
|
"cachedInputTokens",
|
|
16127
16419
|
"cacheWriteInputTokens",
|
|
16128
16420
|
"outputTokens",
|
|
16129
|
-
"outputTokensPerSecond",
|
|
16130
16421
|
"reasoningOutputTokens",
|
|
16131
16422
|
"totalTokens",
|
|
16132
16423
|
"contextWindowTokens",
|
|
@@ -16134,10 +16425,12 @@ var tokenFields = [
|
|
|
16134
16425
|
];
|
|
16135
16426
|
var safeIntegerFields = [
|
|
16136
16427
|
"planFiveHourResetsAtUnix",
|
|
16137
|
-
"planSevenDayResetsAtUnix"
|
|
16428
|
+
"planSevenDayResetsAtUnix",
|
|
16429
|
+
"timeToFirstOutputMs"
|
|
16138
16430
|
];
|
|
16139
16431
|
var percentFields = [
|
|
16140
16432
|
"cacheHitRatePercent",
|
|
16433
|
+
"sessionCacheHitRatePercent",
|
|
16141
16434
|
"planFiveHourUsedPercent",
|
|
16142
16435
|
"planSevenDayUsedPercent"
|
|
16143
16436
|
];
|
|
@@ -16145,9 +16438,31 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16145
16438
|
...tokenFields,
|
|
16146
16439
|
...safeIntegerFields,
|
|
16147
16440
|
...percentFields,
|
|
16441
|
+
"sessionCacheUsage",
|
|
16148
16442
|
"totalCostUsd",
|
|
16149
16443
|
"totalCredits",
|
|
16150
|
-
"contextUsagePercent"
|
|
16444
|
+
"contextUsagePercent",
|
|
16445
|
+
"outputTokensPerSecond",
|
|
16446
|
+
"apiOutputTokensPerSecond",
|
|
16447
|
+
"costSource",
|
|
16448
|
+
"unpricedModels"
|
|
16449
|
+
]);
|
|
16450
|
+
var requestTokenFields = [
|
|
16451
|
+
"inputTokens",
|
|
16452
|
+
"cachedInputTokens",
|
|
16453
|
+
"cacheWriteInputTokens",
|
|
16454
|
+
"cacheWrite1hInputTokens",
|
|
16455
|
+
"outputTokens",
|
|
16456
|
+
"reasoningOutputTokens",
|
|
16457
|
+
"startedAtMs",
|
|
16458
|
+
"completedAtMs"
|
|
16459
|
+
];
|
|
16460
|
+
var requestFields = /* @__PURE__ */ new Set([
|
|
16461
|
+
...requestTokenFields,
|
|
16462
|
+
"requestId",
|
|
16463
|
+
"historical",
|
|
16464
|
+
"model",
|
|
16465
|
+
"provider"
|
|
16151
16466
|
]);
|
|
16152
16467
|
|
|
16153
16468
|
// dist/command.js
|
|
@@ -16312,14 +16627,14 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16312
16627
|
const file2 = historyPath(input.environment);
|
|
16313
16628
|
const nativeSessionId = input.nativeSessionId ?? null;
|
|
16314
16629
|
let turns = [];
|
|
16315
|
-
let
|
|
16630
|
+
let model2;
|
|
16316
16631
|
let thinkingOptionId;
|
|
16317
16632
|
if (file2 && nativeSessionId) {
|
|
16318
16633
|
try {
|
|
16319
16634
|
const parsed = historySchema.safeParse(JSON.parse(await readFile(file2, "utf8")));
|
|
16320
16635
|
if (parsed.success && parsed.data.nativeSessionId === nativeSessionId) {
|
|
16321
16636
|
turns = parsed.data.turns;
|
|
16322
|
-
|
|
16637
|
+
model2 = parsed.data.model;
|
|
16323
16638
|
thinkingOptionId = parsed.data.thinkingOptionId;
|
|
16324
16639
|
}
|
|
16325
16640
|
} catch {
|
|
@@ -16340,7 +16655,7 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16340
16655
|
file: file2,
|
|
16341
16656
|
nativeSessionId,
|
|
16342
16657
|
turns,
|
|
16343
|
-
...
|
|
16658
|
+
...model2 ? { model: model2 } : {},
|
|
16344
16659
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16345
16660
|
});
|
|
16346
16661
|
}
|
|
@@ -16422,8 +16737,8 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16422
16737
|
this.#nativeSessionId = nativeSessionId;
|
|
16423
16738
|
this.#queueWrite();
|
|
16424
16739
|
}
|
|
16425
|
-
setSelection(
|
|
16426
|
-
this.#model =
|
|
16740
|
+
setSelection(model2, thinkingOptionId) {
|
|
16741
|
+
this.#model = model2;
|
|
16427
16742
|
this.#thinkingOptionId = thinkingOptionId;
|
|
16428
16743
|
this.#queueWrite();
|
|
16429
16744
|
}
|
|
@@ -16452,7 +16767,7 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16452
16767
|
const file2 = this.#file;
|
|
16453
16768
|
const nativeSessionId = this.#nativeSessionId;
|
|
16454
16769
|
const turns = this.#turns.map(jsonTurn);
|
|
16455
|
-
const
|
|
16770
|
+
const model2 = this.#model;
|
|
16456
16771
|
const thinkingOptionId = this.#thinkingOptionId;
|
|
16457
16772
|
this.#write = this.#write.catch(() => void 0).then(async () => {
|
|
16458
16773
|
const directory = path5.dirname(file2);
|
|
@@ -16463,7 +16778,7 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16463
16778
|
formatVersion: HISTORY_VERSION,
|
|
16464
16779
|
nativeSessionId,
|
|
16465
16780
|
turns,
|
|
16466
|
-
...
|
|
16781
|
+
...model2 ? { model: model2 } : {},
|
|
16467
16782
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16468
16783
|
})}
|
|
16469
16784
|
`, { mode: 384 });
|
|
@@ -16672,14 +16987,14 @@ async function forkAntigravitySession(options) {
|
|
|
16672
16987
|
}
|
|
16673
16988
|
} : {}
|
|
16674
16989
|
}));
|
|
16675
|
-
const
|
|
16990
|
+
const model2 = sourceSession?.model ?? sourceHistory.model;
|
|
16676
16991
|
const thinkingOptionId = sourceSession?.thinkingOptionId ?? sourceHistory.thinkingOptionId;
|
|
16677
16992
|
const permissionMode = sourceSession?.permissionMode ?? "dangerously-skip-permissions";
|
|
16678
16993
|
const forkedHistory = await AntigravityHistory.createDerived({
|
|
16679
16994
|
environment: sessionEnvironment,
|
|
16680
16995
|
nativeSessionId: derivedNativeSessionId,
|
|
16681
16996
|
turns: copiedTurns,
|
|
16682
|
-
...
|
|
16997
|
+
...model2 ? { model: model2 } : {},
|
|
16683
16998
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16684
16999
|
});
|
|
16685
17000
|
await Promise.all([
|
|
@@ -16694,7 +17009,7 @@ async function forkAntigravitySession(options) {
|
|
|
16694
17009
|
const session = createSession({
|
|
16695
17010
|
history: forkedHistory,
|
|
16696
17011
|
nativeRef: derivedNativeRef,
|
|
16697
|
-
...
|
|
17012
|
+
...model2 ? { model: model2 } : {},
|
|
16698
17013
|
...thinkingOptionId ? { thinkingOptionId } : {},
|
|
16699
17014
|
permissionMode,
|
|
16700
17015
|
cwd: input.cwd,
|
|
@@ -16776,19 +17091,19 @@ function parseAntigravityModels(output) {
|
|
|
16776
17091
|
...defaultThinkingOptionId ? { defaultThinkingOptionId } : {}
|
|
16777
17092
|
});
|
|
16778
17093
|
}
|
|
16779
|
-
function antigravityModelArguments(
|
|
16780
|
-
if (!
|
|
17094
|
+
function antigravityModelArguments(model2, thinkingOptionId) {
|
|
17095
|
+
if (!model2)
|
|
16781
17096
|
return [];
|
|
16782
|
-
const arguments_ = ["--model",
|
|
16783
|
-
if (thinkingOptionId && !EFFORT_SUFFIX_PATTERN.test(
|
|
17097
|
+
const arguments_ = ["--model", model2.id];
|
|
17098
|
+
if (thinkingOptionId && !EFFORT_SUFFIX_PATTERN.test(model2.id)) {
|
|
16784
17099
|
arguments_.push("--effort", thinkingOptionId);
|
|
16785
17100
|
}
|
|
16786
17101
|
return arguments_;
|
|
16787
17102
|
}
|
|
16788
|
-
function antigravityAvailableThinkingOptions(catalog,
|
|
16789
|
-
if (!catalog || !
|
|
17103
|
+
function antigravityAvailableThinkingOptions(catalog, model2) {
|
|
17104
|
+
if (!catalog || !model2)
|
|
16790
17105
|
return void 0;
|
|
16791
|
-
const supported = catalog.models.find(({ ref }) => ref.id ===
|
|
17106
|
+
const supported = catalog.models.find(({ ref }) => ref.id === model2.id)?.supportedThinkingOptionIds;
|
|
16792
17107
|
if (!supported)
|
|
16793
17108
|
return void 0;
|
|
16794
17109
|
const options = supported.flatMap((id) => {
|
|
@@ -16886,14 +17201,14 @@ async function rollbackAntigravityLastTurn(options) {
|
|
|
16886
17201
|
}
|
|
16887
17202
|
} : {}
|
|
16888
17203
|
}));
|
|
16889
|
-
const
|
|
17204
|
+
const model2 = sourceSession?.model ?? sourceHistory.model;
|
|
16890
17205
|
const thinkingOptionId = sourceSession?.thinkingOptionId ?? sourceHistory.thinkingOptionId;
|
|
16891
17206
|
const permissionMode = sourceSession?.permissionMode ?? "dangerously-skip-permissions";
|
|
16892
17207
|
const rolledBackHistory = await AntigravityHistory.createDerived({
|
|
16893
17208
|
environment: sessionEnvironment,
|
|
16894
17209
|
nativeSessionId: derivedNativeSessionId,
|
|
16895
17210
|
turns: mappedTurns,
|
|
16896
|
-
...
|
|
17211
|
+
...model2 ? { model: model2 } : {},
|
|
16897
17212
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16898
17213
|
});
|
|
16899
17214
|
await Promise.all([
|
|
@@ -16908,7 +17223,7 @@ async function rollbackAntigravityLastTurn(options) {
|
|
|
16908
17223
|
const session = createSession({
|
|
16909
17224
|
history: rolledBackHistory,
|
|
16910
17225
|
nativeRef: derivedNativeRef,
|
|
16911
|
-
...
|
|
17226
|
+
...model2 ? { model: model2 } : {},
|
|
16912
17227
|
...thinkingOptionId ? { thinkingOptionId } : {},
|
|
16913
17228
|
permissionMode,
|
|
16914
17229
|
cwd: input.cwd,
|
|
@@ -19789,10 +20104,10 @@ var AntigravityAdapter = class {
|
|
|
19789
20104
|
...nativeRef ? { nativeSessionId: nativeRef.nativeSessionId } : {},
|
|
19790
20105
|
...input.kind === "resume" && input.knownTurnRefs ? { knownTurnRefs: input.knownTurnRefs } : {}
|
|
19791
20106
|
});
|
|
19792
|
-
const
|
|
20107
|
+
const model2 = (input.kind === "create" ? input.model : void 0) ?? history.model;
|
|
19793
20108
|
const thinkingOptionId = (input.kind === "create" ? input.thinkingOptionId : void 0) ?? history.thinkingOptionId;
|
|
19794
20109
|
if (thinkingOptionId) {
|
|
19795
|
-
const available = antigravityAvailableThinkingOptions(catalog,
|
|
20110
|
+
const available = antigravityAvailableThinkingOptions(catalog, model2);
|
|
19796
20111
|
if (!available?.some(({ id }) => id === thinkingOptionId)) {
|
|
19797
20112
|
return {
|
|
19798
20113
|
ok: false,
|
|
@@ -19804,15 +20119,15 @@ var AntigravityAdapter = class {
|
|
|
19804
20119
|
};
|
|
19805
20120
|
}
|
|
19806
20121
|
}
|
|
19807
|
-
if (
|
|
19808
|
-
history.setSelection(
|
|
20122
|
+
if (model2 || thinkingOptionId)
|
|
20123
|
+
history.setSelection(model2, thinkingOptionId);
|
|
19809
20124
|
const session = new AntigravitySession({
|
|
19810
20125
|
...catalog ? { catalog } : {},
|
|
19811
20126
|
cwd: input.cwd,
|
|
19812
20127
|
environment: sessionEnvironment,
|
|
19813
20128
|
executable,
|
|
19814
20129
|
history,
|
|
19815
|
-
...
|
|
20130
|
+
...model2 ? { model: model2 } : {},
|
|
19816
20131
|
...nativeRef ? { nativeRef } : {},
|
|
19817
20132
|
permissionMode,
|
|
19818
20133
|
printTimeout: this.#printTimeout,
|