@karlorz/codexhost-cli-win32-x64 0.14.0-2 → 0.14.0-4
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/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +62 -6
- package/app/console-web.js +90 -34
- package/app/cpa-live-voice-hook.js +123 -30
- package/app/desktop-controller.mjs +60 -3
- package/app/host-runtime.mjs +621 -405
- package/app/plugins/antigravity/plugin.mjs +62 -3
- package/app/plugins/claude-code/plugin.mjs +83 -24
- package/app/plugins/codebuddy/plugin.mjs +80 -21
- package/app/plugins/codex-usage/plugin.mjs +84 -28
- package/app/plugins/copilot/plugin.mjs +112 -53
- package/app/plugins/cursor-cli/plugin.mjs +80 -21
- package/app/plugins/deepseek-harness/plugin.mjs +91 -32
- package/app/plugins/grok/plugin.mjs +411 -87
- package/app/plugins/hermes/plugin.mjs +62 -3
- package/app/plugins/kimi-code/plugin.mjs +74 -15
- package/app/plugins/kiro-cli/plugin.mjs +74 -15
- package/app/plugins/omp/plugin.mjs +94 -35
- package/app/plugins/opencode/plugin.mjs +116 -57
- package/app/plugins/pi/plugin.mjs +96 -37
- package/app/plugins/qoder/plugin.mjs +84 -25
- package/app/plugins/qoder-cn/plugin.mjs +84 -25
- package/app/plugins/workbuddy/plugin.mjs +80 -21
- package/app/plugins/zcode/plugin.mjs +85 -26
- package/app/renderer-extension.js +884 -158
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @karlorz/codexhost-cli@0.14.0-
|
|
10
|
+
npm install -g @karlorz/codexhost-cli@0.14.0-4
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@karlorz/codexhost-cli`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.14.0-
|
|
1
|
+
{"schemaVersion":1,"version":"0.14.0-4","distribution":"npm","target":"windows-x64"}
|
package/app/console-server.mjs
CHANGED
|
@@ -3926,10 +3926,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3926
3926
|
const shape = def.shape;
|
|
3927
3927
|
const propValues = {};
|
|
3928
3928
|
for (const key in shape) {
|
|
3929
|
-
const
|
|
3930
|
-
if (
|
|
3929
|
+
const field2 = shape[key]._zod;
|
|
3930
|
+
if (field2.values) {
|
|
3931
3931
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3932
|
-
for (const v of
|
|
3932
|
+
for (const v of field2.values)
|
|
3933
3933
|
propValues[key].add(v);
|
|
3934
3934
|
}
|
|
3935
3935
|
}
|
|
@@ -15759,6 +15759,62 @@ function isConsoleHostMethod(method) {
|
|
|
15759
15759
|
// packages/shared-contracts/dist/version.js
|
|
15760
15760
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
15761
15761
|
|
|
15762
|
+
// packages/shared-contracts/dist/thread-questions.js
|
|
15763
|
+
var threadQuestionsParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
15764
|
+
var field = { id: external_exports.string().min(1), prompt: external_exports.string(), optional: external_exports.boolean() };
|
|
15765
|
+
var questionAutoResolutionSchema = external_exports.strictObject({
|
|
15766
|
+
deadlineUnixMs: external_exports.number().int().min(0).max(864e13),
|
|
15767
|
+
action: external_exports.enum(["recommended", "decline"]),
|
|
15768
|
+
resetOnActivity: external_exports.boolean().optional()
|
|
15769
|
+
});
|
|
15770
|
+
var threadQuestionSchema = external_exports.strictObject({
|
|
15771
|
+
interactionId: hostInteractionIdSchema,
|
|
15772
|
+
turnId: hostTurnIdSchema,
|
|
15773
|
+
title: external_exports.string().optional(),
|
|
15774
|
+
expiresAt: external_exports.string().optional(),
|
|
15775
|
+
autoResolution: questionAutoResolutionSchema.optional(),
|
|
15776
|
+
questions: external_exports.array(external_exports.discriminatedUnion("type", [
|
|
15777
|
+
external_exports.strictObject({
|
|
15778
|
+
...field,
|
|
15779
|
+
type: external_exports.literal("choice"),
|
|
15780
|
+
multiple: external_exports.boolean(),
|
|
15781
|
+
allowOther: external_exports.boolean(),
|
|
15782
|
+
options: external_exports.array(external_exports.strictObject({
|
|
15783
|
+
value: external_exports.string().min(1),
|
|
15784
|
+
label: external_exports.string(),
|
|
15785
|
+
description: external_exports.string().optional()
|
|
15786
|
+
})).min(1)
|
|
15787
|
+
}),
|
|
15788
|
+
external_exports.strictObject({
|
|
15789
|
+
...field,
|
|
15790
|
+
type: external_exports.literal("text"),
|
|
15791
|
+
multiline: external_exports.boolean(),
|
|
15792
|
+
secret: external_exports.literal(false),
|
|
15793
|
+
placeholder: external_exports.string().optional(),
|
|
15794
|
+
prefill: external_exports.string().optional()
|
|
15795
|
+
})
|
|
15796
|
+
])).min(1)
|
|
15797
|
+
});
|
|
15798
|
+
var threadQuestionsResultSchema = external_exports.strictObject({
|
|
15799
|
+
questions: external_exports.array(threadQuestionSchema)
|
|
15800
|
+
});
|
|
15801
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15802
|
+
threadId: hostThreadIdSchema,
|
|
15803
|
+
interactionId: hostInteractionIdSchema,
|
|
15804
|
+
turnId: hostTurnIdSchema,
|
|
15805
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15806
|
+
cancelled: external_exports.boolean().optional()
|
|
15807
|
+
});
|
|
15808
|
+
var threadQuestionRespondResultSchema = external_exports.strictObject({ accepted: external_exports.literal(true) });
|
|
15809
|
+
var threadQuestionActivityParamsSchema = external_exports.strictObject({
|
|
15810
|
+
threadId: hostThreadIdSchema,
|
|
15811
|
+
interactionId: hostInteractionIdSchema,
|
|
15812
|
+
turnId: hostTurnIdSchema
|
|
15813
|
+
});
|
|
15814
|
+
var threadQuestionActivityResultSchema = external_exports.strictObject({
|
|
15815
|
+
autoResolution: questionAutoResolutionSchema.nullable()
|
|
15816
|
+
});
|
|
15817
|
+
|
|
15762
15818
|
// packages/shared-contracts/dist/idle-release.js
|
|
15763
15819
|
var IDLE_RELEASE_TIMEOUT_MINUTES_MIN = 5;
|
|
15764
15820
|
var IDLE_RELEASE_TIMEOUT_MINUTES_MAX = 1440;
|
|
@@ -17992,9 +18048,9 @@ function parseAnnouncement(document) {
|
|
|
17992
18048
|
const fields = /* @__PURE__ */ new Map();
|
|
17993
18049
|
for (const line of (match[1] ?? "").split("\n")) {
|
|
17994
18050
|
if (!line.trim()) continue;
|
|
17995
|
-
const
|
|
17996
|
-
if (!
|
|
17997
|
-
fields.set(
|
|
18051
|
+
const field2 = /^(enabled|title|type):[ \t]*(.+?)\s*$/u.exec(line);
|
|
18052
|
+
if (!field2?.[1] || !field2[2] || fields.has(field2[1])) return null;
|
|
18053
|
+
fields.set(field2[1], field2[2]);
|
|
17998
18054
|
}
|
|
17999
18055
|
if (fields.get("enabled") !== "true") return null;
|
|
18000
18056
|
let title = fields.get("title");
|
package/app/console-web.js
CHANGED
|
@@ -3105,10 +3105,10 @@
|
|
|
3105
3105
|
const shape = def.shape;
|
|
3106
3106
|
const propValues = {};
|
|
3107
3107
|
for (const key in shape) {
|
|
3108
|
-
const
|
|
3109
|
-
if (
|
|
3108
|
+
const field2 = shape[key]._zod;
|
|
3109
|
+
if (field2.values) {
|
|
3110
3110
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3111
|
-
for (const v of
|
|
3111
|
+
for (const v of field2.values)
|
|
3112
3112
|
propValues[key].add(v);
|
|
3113
3113
|
}
|
|
3114
3114
|
}
|
|
@@ -14977,6 +14977,62 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14977
14977
|
// ../shared-contracts/dist/version.js
|
|
14978
14978
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
14979
14979
|
|
|
14980
|
+
// ../shared-contracts/dist/thread-questions.js
|
|
14981
|
+
var threadQuestionsParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
14982
|
+
var field = { id: external_exports.string().min(1), prompt: external_exports.string(), optional: external_exports.boolean() };
|
|
14983
|
+
var questionAutoResolutionSchema = external_exports.strictObject({
|
|
14984
|
+
deadlineUnixMs: external_exports.number().int().min(0).max(864e13),
|
|
14985
|
+
action: external_exports.enum(["recommended", "decline"]),
|
|
14986
|
+
resetOnActivity: external_exports.boolean().optional()
|
|
14987
|
+
});
|
|
14988
|
+
var threadQuestionSchema = external_exports.strictObject({
|
|
14989
|
+
interactionId: hostInteractionIdSchema,
|
|
14990
|
+
turnId: hostTurnIdSchema,
|
|
14991
|
+
title: external_exports.string().optional(),
|
|
14992
|
+
expiresAt: external_exports.string().optional(),
|
|
14993
|
+
autoResolution: questionAutoResolutionSchema.optional(),
|
|
14994
|
+
questions: external_exports.array(external_exports.discriminatedUnion("type", [
|
|
14995
|
+
external_exports.strictObject({
|
|
14996
|
+
...field,
|
|
14997
|
+
type: external_exports.literal("choice"),
|
|
14998
|
+
multiple: external_exports.boolean(),
|
|
14999
|
+
allowOther: external_exports.boolean(),
|
|
15000
|
+
options: external_exports.array(external_exports.strictObject({
|
|
15001
|
+
value: external_exports.string().min(1),
|
|
15002
|
+
label: external_exports.string(),
|
|
15003
|
+
description: external_exports.string().optional()
|
|
15004
|
+
})).min(1)
|
|
15005
|
+
}),
|
|
15006
|
+
external_exports.strictObject({
|
|
15007
|
+
...field,
|
|
15008
|
+
type: external_exports.literal("text"),
|
|
15009
|
+
multiline: external_exports.boolean(),
|
|
15010
|
+
secret: external_exports.literal(false),
|
|
15011
|
+
placeholder: external_exports.string().optional(),
|
|
15012
|
+
prefill: external_exports.string().optional()
|
|
15013
|
+
})
|
|
15014
|
+
])).min(1)
|
|
15015
|
+
});
|
|
15016
|
+
var threadQuestionsResultSchema = external_exports.strictObject({
|
|
15017
|
+
questions: external_exports.array(threadQuestionSchema)
|
|
15018
|
+
});
|
|
15019
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15020
|
+
threadId: hostThreadIdSchema,
|
|
15021
|
+
interactionId: hostInteractionIdSchema,
|
|
15022
|
+
turnId: hostTurnIdSchema,
|
|
15023
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15024
|
+
cancelled: external_exports.boolean().optional()
|
|
15025
|
+
});
|
|
15026
|
+
var threadQuestionRespondResultSchema = external_exports.strictObject({ accepted: external_exports.literal(true) });
|
|
15027
|
+
var threadQuestionActivityParamsSchema = external_exports.strictObject({
|
|
15028
|
+
threadId: hostThreadIdSchema,
|
|
15029
|
+
interactionId: hostInteractionIdSchema,
|
|
15030
|
+
turnId: hostTurnIdSchema
|
|
15031
|
+
});
|
|
15032
|
+
var threadQuestionActivityResultSchema = external_exports.strictObject({
|
|
15033
|
+
autoResolution: questionAutoResolutionSchema.nullable()
|
|
15034
|
+
});
|
|
15035
|
+
|
|
14980
15036
|
// ../shared-contracts/dist/idle-release.js
|
|
14981
15037
|
var IDLE_RELEASE_SETTINGS_METHOD = "codexhost/settings/idle-release/set";
|
|
14982
15038
|
var IDLE_RELEASE_TIMEOUT_MINUTES_MIN = 5;
|
|
@@ -19188,8 +19244,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19188
19244
|
return input;
|
|
19189
19245
|
}
|
|
19190
19246
|
function createNumberField(document2, input) {
|
|
19191
|
-
const
|
|
19192
|
-
|
|
19247
|
+
const field2 = document2.createElement("div");
|
|
19248
|
+
field2.className = "flex h-8 shrink-0 items-center gap-1.5 rounded-md border border-settings-border bg-settings-surface px-2.5 transition-colors focus-within:border-settings-focus data-[invalid=true]:border-settings-danger";
|
|
19193
19249
|
const control = document2.createElement("input");
|
|
19194
19250
|
control.type = "number";
|
|
19195
19251
|
control.id = input.id;
|
|
@@ -19202,8 +19258,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19202
19258
|
unit.className = "text-xs text-settings-muted";
|
|
19203
19259
|
unit.setAttribute("aria-hidden", "true");
|
|
19204
19260
|
unit.textContent = input.unit;
|
|
19205
|
-
|
|
19206
|
-
return { field, control };
|
|
19261
|
+
field2.append(control, unit);
|
|
19262
|
+
return { field: field2, control };
|
|
19207
19263
|
}
|
|
19208
19264
|
|
|
19209
19265
|
// src/settings/voice-messages.ts
|
|
@@ -22574,7 +22630,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22574
22630
|
var DECIMAL = /^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/iu;
|
|
22575
22631
|
function modelPriceDraft(key, price) {
|
|
22576
22632
|
const prices = Object.fromEntries(
|
|
22577
|
-
MODEL_PRICE_FIELDS.map((
|
|
22633
|
+
MODEL_PRICE_FIELDS.map((field2) => [field2, price?.[field2]?.toString() ?? ""])
|
|
22578
22634
|
);
|
|
22579
22635
|
return { model: key, prices };
|
|
22580
22636
|
}
|
|
@@ -22585,18 +22641,18 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22585
22641
|
return { error: { kind: "duplicate", key } };
|
|
22586
22642
|
}
|
|
22587
22643
|
const price = {};
|
|
22588
|
-
for (const
|
|
22589
|
-
const text = draft.prices[
|
|
22644
|
+
for (const field2 of MODEL_PRICE_FIELDS) {
|
|
22645
|
+
const text = draft.prices[field2].trim();
|
|
22590
22646
|
if (text === "") {
|
|
22591
|
-
if (
|
|
22592
|
-
return { error: { kind: "priceRequired", field } };
|
|
22647
|
+
if (field2 === "input" || field2 === "output")
|
|
22648
|
+
return { error: { kind: "priceRequired", field: field2 } };
|
|
22593
22649
|
continue;
|
|
22594
22650
|
}
|
|
22595
22651
|
const value = Number(text);
|
|
22596
22652
|
if (!DECIMAL.test(text) || !Number.isFinite(value)) {
|
|
22597
|
-
return { error: { kind: "priceInvalid", field } };
|
|
22653
|
+
return { error: { kind: "priceInvalid", field: field2 } };
|
|
22598
22654
|
}
|
|
22599
|
-
price[
|
|
22655
|
+
price[field2] = value;
|
|
22600
22656
|
}
|
|
22601
22657
|
return {
|
|
22602
22658
|
change: {
|
|
@@ -22616,7 +22672,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22616
22672
|
}
|
|
22617
22673
|
function formatPrice(messages, price) {
|
|
22618
22674
|
return MODEL_PRICE_FIELDS.map(
|
|
22619
|
-
(
|
|
22675
|
+
(field2) => `${messages.fields[field2]} ${price[field2] ?? messages.unset}`
|
|
22620
22676
|
).join(" \xB7 ");
|
|
22621
22677
|
}
|
|
22622
22678
|
function draftErrorText(messages, error51) {
|
|
@@ -22684,18 +22740,18 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22684
22740
|
function renderEditor(modelId, view, isCurrent) {
|
|
22685
22741
|
const existing = view.entries.find((entry) => entry.key === modelId);
|
|
22686
22742
|
const draft = modelPriceDraft(modelId, existing?.price ?? null);
|
|
22687
|
-
const
|
|
22743
|
+
const field2 = (label, value, placeholder = "") => h(document2, "input", {
|
|
22688
22744
|
type: "text",
|
|
22689
22745
|
className: "console-input",
|
|
22690
22746
|
value,
|
|
22691
22747
|
placeholder,
|
|
22692
22748
|
"aria-label": label
|
|
22693
22749
|
});
|
|
22694
|
-
const model2 =
|
|
22750
|
+
const model2 = field2(messages.model, modelId);
|
|
22695
22751
|
model2.readOnly = true;
|
|
22696
22752
|
const prices = Object.fromEntries(
|
|
22697
22753
|
MODEL_PRICE_FIELDS.map((name) => {
|
|
22698
|
-
const input =
|
|
22754
|
+
const input = field2(
|
|
22699
22755
|
messages.fields[name],
|
|
22700
22756
|
draft.prices[name],
|
|
22701
22757
|
name === "input" || name === "output" ? messages.required : messages.notSet
|
|
@@ -23507,8 +23563,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23507
23563
|
for (const cell of options.cells) {
|
|
23508
23564
|
const key = options.singleDay ? cell.hour : cell.weekday * 24 + cell.hour;
|
|
23509
23565
|
const totals2 = byHour.get(key) ?? emptyTotals();
|
|
23510
|
-
for (const
|
|
23511
|
-
totals2[
|
|
23566
|
+
for (const field2 of Object.keys(totals2))
|
|
23567
|
+
totals2[field2] += cell.totals[field2];
|
|
23512
23568
|
byHour.set(key, totals2);
|
|
23513
23569
|
}
|
|
23514
23570
|
const max = Math.max(0, ...[...byHour.values()].map((totals2) => measured(totals2, measure)));
|
|
@@ -23871,8 +23927,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23871
23927
|
save();
|
|
23872
23928
|
load();
|
|
23873
23929
|
}
|
|
23874
|
-
function toggleFilter(
|
|
23875
|
-
view[
|
|
23930
|
+
function toggleFilter(field2, key) {
|
|
23931
|
+
view[field2] = view[field2] === key ? "" : key;
|
|
23876
23932
|
changed();
|
|
23877
23933
|
}
|
|
23878
23934
|
function selectDate(next) {
|
|
@@ -24288,8 +24344,8 @@ ${messages.creditsCoverage}: ${value.reportedRequests} / ${row.requests}` : void
|
|
|
24288
24344
|
}
|
|
24289
24345
|
];
|
|
24290
24346
|
}
|
|
24291
|
-
function rowFilter(
|
|
24292
|
-
const selected = view[
|
|
24347
|
+
function rowFilter(field2, key, label, detail) {
|
|
24348
|
+
const selected = view[field2] === key;
|
|
24293
24349
|
const button2 = focusKey(
|
|
24294
24350
|
h(
|
|
24295
24351
|
document2,
|
|
@@ -24303,9 +24359,9 @@ ${detail}` : ""}`
|
|
|
24303
24359
|
},
|
|
24304
24360
|
label
|
|
24305
24361
|
),
|
|
24306
|
-
`${
|
|
24362
|
+
`${field2}:row:${key}`
|
|
24307
24363
|
);
|
|
24308
|
-
button2.addEventListener("click", () => toggleFilter(
|
|
24364
|
+
button2.addEventListener("click", () => toggleFilter(field2, key));
|
|
24309
24365
|
return button2;
|
|
24310
24366
|
}
|
|
24311
24367
|
function panel(title, content, extra = null, wide = false) {
|
|
@@ -25145,7 +25201,7 @@ ${detail}` : ""}`
|
|
|
25145
25201
|
);
|
|
25146
25202
|
if (!dialog) return;
|
|
25147
25203
|
const document2 = options.container.ownerDocument;
|
|
25148
|
-
const
|
|
25204
|
+
const field2 = (label, value, placeholder = "", hint = "") => {
|
|
25149
25205
|
const wrapper = remoteElement(document2, "div", "settings-credential-dialog__field");
|
|
25150
25206
|
const input = remoteElement(document2, "input");
|
|
25151
25207
|
input.id = preferenceId("remote-field");
|
|
@@ -25165,13 +25221,13 @@ ${detail}` : ""}`
|
|
|
25165
25221
|
dialog.body.append(wrapper);
|
|
25166
25222
|
return input;
|
|
25167
25223
|
};
|
|
25168
|
-
const name =
|
|
25224
|
+
const name = field2(t("\u540D\u79F0", "Name"), previous?.displayName ?? "");
|
|
25169
25225
|
name.required = true;
|
|
25170
25226
|
const addressHint = t(
|
|
25171
25227
|
"user@hostname\uFF0C\u6216 ~/.ssh/config \u4E2D\u7684\u4E3B\u673A\u522B\u540D",
|
|
25172
25228
|
"user@hostname, or a host alias from ~/.ssh/config"
|
|
25173
25229
|
);
|
|
25174
|
-
const hostname3 =
|
|
25230
|
+
const hostname3 = field2(
|
|
25175
25231
|
t("SSH \u5730\u5740", "SSH address"),
|
|
25176
25232
|
previous?.sshHost ?? "",
|
|
25177
25233
|
"user@hostname",
|
|
@@ -25180,7 +25236,7 @@ ${detail}` : ""}`
|
|
|
25180
25236
|
hostname3.required = true;
|
|
25181
25237
|
hostname3.pattern = "[^\\s\\-]\\S*";
|
|
25182
25238
|
hostname3.title = addressHint;
|
|
25183
|
-
const port =
|
|
25239
|
+
const port = field2(
|
|
25184
25240
|
t("\u7AEF\u53E3\uFF08\u53EF\u9009\uFF09", "Port (optional)"),
|
|
25185
25241
|
previous?.sshPort?.toString() ?? "",
|
|
25186
25242
|
"22"
|
|
@@ -25189,7 +25245,7 @@ ${detail}` : ""}`
|
|
|
25189
25245
|
port.min = "1";
|
|
25190
25246
|
port.max = "65535";
|
|
25191
25247
|
port.step = "1";
|
|
25192
|
-
const identity =
|
|
25248
|
+
const identity = field2(
|
|
25193
25249
|
t("\u79C1\u94A5\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09", "Identity file (optional)"),
|
|
25194
25250
|
previous?.identity ?? "",
|
|
25195
25251
|
"~/.ssh/id_ed25519"
|
|
@@ -28154,14 +28210,14 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28154
28210
|
description: messages.idleReleaseTimeoutDescription,
|
|
28155
28211
|
controlId: minutesId
|
|
28156
28212
|
});
|
|
28157
|
-
const { field, control: minutes } = createNumberField(document2, {
|
|
28213
|
+
const { field: field2, control: minutes } = createNumberField(document2, {
|
|
28158
28214
|
id: minutesId,
|
|
28159
28215
|
describedBy: timeout.description.id,
|
|
28160
28216
|
unit: messages.idleReleaseMinutes,
|
|
28161
28217
|
min: IDLE_RELEASE_TIMEOUT_MINUTES_MIN,
|
|
28162
28218
|
max: IDLE_RELEASE_TIMEOUT_MINUTES_MAX
|
|
28163
28219
|
});
|
|
28164
|
-
timeout.item.append(
|
|
28220
|
+
timeout.item.append(field2);
|
|
28165
28221
|
timeout.item.id = preferenceId("idle-release-timeout");
|
|
28166
28222
|
enabled.setAttribute("aria-controls", timeout.item.id);
|
|
28167
28223
|
card.append(toggle.item, timeout.item);
|
|
@@ -28182,7 +28238,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28182
28238
|
statusText.textContent = value === "applied" ? "" : statusMessages[value];
|
|
28183
28239
|
};
|
|
28184
28240
|
const setInvalid = (invalid) => {
|
|
28185
|
-
|
|
28241
|
+
field2.dataset.invalid = String(invalid);
|
|
28186
28242
|
timeout.description.dataset.invalid = String(invalid);
|
|
28187
28243
|
timeout.description.textContent = invalid ? messages.idleReleaseInvalid : messages.idleReleaseTimeoutDescription;
|
|
28188
28244
|
minutes.setAttribute("aria-invalid", String(invalid));
|
|
@@ -3035,10 +3035,10 @@
|
|
|
3035
3035
|
const shape = def.shape;
|
|
3036
3036
|
const propValues = {};
|
|
3037
3037
|
for (const key in shape) {
|
|
3038
|
-
const
|
|
3039
|
-
if (
|
|
3038
|
+
const field2 = shape[key]._zod;
|
|
3039
|
+
if (field2.values) {
|
|
3040
3040
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3041
|
-
for (const v of
|
|
3041
|
+
for (const v of field2.values)
|
|
3042
3042
|
propValues[key].add(v);
|
|
3043
3043
|
}
|
|
3044
3044
|
}
|
|
@@ -14885,6 +14885,62 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14885
14885
|
// ../shared-contracts/dist/version.js
|
|
14886
14886
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
14887
14887
|
|
|
14888
|
+
// ../shared-contracts/dist/thread-questions.js
|
|
14889
|
+
var threadQuestionsParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
14890
|
+
var field = { id: external_exports.string().min(1), prompt: external_exports.string(), optional: external_exports.boolean() };
|
|
14891
|
+
var questionAutoResolutionSchema = external_exports.strictObject({
|
|
14892
|
+
deadlineUnixMs: external_exports.number().int().min(0).max(864e13),
|
|
14893
|
+
action: external_exports.enum(["recommended", "decline"]),
|
|
14894
|
+
resetOnActivity: external_exports.boolean().optional()
|
|
14895
|
+
});
|
|
14896
|
+
var threadQuestionSchema = external_exports.strictObject({
|
|
14897
|
+
interactionId: hostInteractionIdSchema,
|
|
14898
|
+
turnId: hostTurnIdSchema,
|
|
14899
|
+
title: external_exports.string().optional(),
|
|
14900
|
+
expiresAt: external_exports.string().optional(),
|
|
14901
|
+
autoResolution: questionAutoResolutionSchema.optional(),
|
|
14902
|
+
questions: external_exports.array(external_exports.discriminatedUnion("type", [
|
|
14903
|
+
external_exports.strictObject({
|
|
14904
|
+
...field,
|
|
14905
|
+
type: external_exports.literal("choice"),
|
|
14906
|
+
multiple: external_exports.boolean(),
|
|
14907
|
+
allowOther: external_exports.boolean(),
|
|
14908
|
+
options: external_exports.array(external_exports.strictObject({
|
|
14909
|
+
value: external_exports.string().min(1),
|
|
14910
|
+
label: external_exports.string(),
|
|
14911
|
+
description: external_exports.string().optional()
|
|
14912
|
+
})).min(1)
|
|
14913
|
+
}),
|
|
14914
|
+
external_exports.strictObject({
|
|
14915
|
+
...field,
|
|
14916
|
+
type: external_exports.literal("text"),
|
|
14917
|
+
multiline: external_exports.boolean(),
|
|
14918
|
+
secret: external_exports.literal(false),
|
|
14919
|
+
placeholder: external_exports.string().optional(),
|
|
14920
|
+
prefill: external_exports.string().optional()
|
|
14921
|
+
})
|
|
14922
|
+
])).min(1)
|
|
14923
|
+
});
|
|
14924
|
+
var threadQuestionsResultSchema = external_exports.strictObject({
|
|
14925
|
+
questions: external_exports.array(threadQuestionSchema)
|
|
14926
|
+
});
|
|
14927
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
14928
|
+
threadId: hostThreadIdSchema,
|
|
14929
|
+
interactionId: hostInteractionIdSchema,
|
|
14930
|
+
turnId: hostTurnIdSchema,
|
|
14931
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
14932
|
+
cancelled: external_exports.boolean().optional()
|
|
14933
|
+
});
|
|
14934
|
+
var threadQuestionRespondResultSchema = external_exports.strictObject({ accepted: external_exports.literal(true) });
|
|
14935
|
+
var threadQuestionActivityParamsSchema = external_exports.strictObject({
|
|
14936
|
+
threadId: hostThreadIdSchema,
|
|
14937
|
+
interactionId: hostInteractionIdSchema,
|
|
14938
|
+
turnId: hostTurnIdSchema
|
|
14939
|
+
});
|
|
14940
|
+
var threadQuestionActivityResultSchema = external_exports.strictObject({
|
|
14941
|
+
autoResolution: questionAutoResolutionSchema.nullable()
|
|
14942
|
+
});
|
|
14943
|
+
|
|
14888
14944
|
// ../shared-contracts/dist/idle-release.js
|
|
14889
14945
|
var IDLE_RELEASE_TIMEOUT_MINUTES_MIN = 5;
|
|
14890
14946
|
var IDLE_RELEASE_TIMEOUT_MINUTES_MAX = 1440;
|
|
@@ -16137,6 +16193,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16137
16193
|
enabled: true,
|
|
16138
16194
|
auditedDesktopVersion: value.auditedDesktopVersion,
|
|
16139
16195
|
auditedAppInitialAsset: value.auditedAppInitialAsset,
|
|
16196
|
+
...typeof value.desktopPlatform === "string" ? { desktopPlatform: value.desktopPlatform } : {},
|
|
16140
16197
|
...typeof value.desktopVersion === "string" ? { desktopVersion: value.desktopVersion } : {}
|
|
16141
16198
|
};
|
|
16142
16199
|
}
|
|
@@ -16263,21 +16320,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16263
16320
|
function supportsVoiceVersion(profiles, version2) {
|
|
16264
16321
|
return version2 === void 0 || profiles.some((profile) => profile.version === version2);
|
|
16265
16322
|
}
|
|
16266
|
-
function selectVoiceAssets(profiles, names, version2) {
|
|
16323
|
+
function selectVoiceAssets(profiles, names, version2, platform) {
|
|
16267
16324
|
const present = profiles.filter(
|
|
16268
|
-
(
|
|
16325
|
+
(profile) => [profile.initial, profile.shared].some((asset) => auditedAppInitialAssetPresent(names, asset))
|
|
16269
16326
|
);
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16274
|
-
const complete = [profile2.initial, profile2.shared].every(
|
|
16327
|
+
const matchesMetadata = (profile) => (version2 === void 0 || profile.version === version2) && (platform === void 0 || profile.platform === platform);
|
|
16328
|
+
if (present.length > 0) {
|
|
16329
|
+
const profile = present.length === 1 ? present[0] : void 0;
|
|
16330
|
+
return profile && matchesMetadata(profile) && [profile.initial, profile.shared].every(
|
|
16275
16331
|
(asset) => auditedAppInitialAssetPresent(names, asset)
|
|
16276
|
-
);
|
|
16277
|
-
return complete || present.length === 0 ? profile2 : void 0;
|
|
16332
|
+
) ? profile : void 0;
|
|
16278
16333
|
}
|
|
16279
|
-
|
|
16280
|
-
|
|
16334
|
+
if (version2 === void 0) return void 0;
|
|
16335
|
+
const candidates = profiles.filter(matchesMetadata);
|
|
16336
|
+
return candidates.length === 1 ? candidates[0] : void 0;
|
|
16281
16337
|
}
|
|
16282
16338
|
|
|
16283
16339
|
// src/renderer-chat-voice-debug.ts
|
|
@@ -16307,6 +16363,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16307
16363
|
var CLIENT_OWNED_VOICE_OVERLAY_ASSET = "avatar-overlay-native-page-d549db3706f1.js";
|
|
16308
16364
|
var CLIENT_OWNED_VOICE_ASSETS = [
|
|
16309
16365
|
{
|
|
16366
|
+
platform: "darwin",
|
|
16310
16367
|
version: CLIENT_OWNED_VOICE_VERSION,
|
|
16311
16368
|
initial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
|
|
16312
16369
|
shared: CLIENT_OWNED_VOICE_SHARED_ASSET,
|
|
@@ -16320,6 +16377,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16320
16377
|
inferenceGateFamily: "Cnr"
|
|
16321
16378
|
},
|
|
16322
16379
|
{
|
|
16380
|
+
platform: "win32",
|
|
16381
|
+
version: CLIENT_OWNED_VOICE_VERSION,
|
|
16382
|
+
initial: "app-initial-438d1df57f70.js",
|
|
16383
|
+
shared: "app-shared-955d52676f9c.js",
|
|
16384
|
+
overlay: "avatar-overlay-native-page-1549fe5955e1.js",
|
|
16385
|
+
fetch: "Htr",
|
|
16386
|
+
fetchFrom: "initial",
|
|
16387
|
+
bridge: "bIt",
|
|
16388
|
+
services: "Qot",
|
|
16389
|
+
capabilityInit: "l0n",
|
|
16390
|
+
capabilityFamily: "c0n",
|
|
16391
|
+
inferenceGateFamily: "Cnr"
|
|
16392
|
+
},
|
|
16393
|
+
{
|
|
16394
|
+
platform: "darwin",
|
|
16323
16395
|
version: "26.1016.62342",
|
|
16324
16396
|
initial: "app-initial-dddef47d6ef6.js",
|
|
16325
16397
|
shared: "app-shared-fc3316d48427.js",
|
|
@@ -16334,6 +16406,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16334
16406
|
inferenceGateFamily: "uBr"
|
|
16335
16407
|
},
|
|
16336
16408
|
{
|
|
16409
|
+
platform: "darwin",
|
|
16337
16410
|
version: "26.1016.61520",
|
|
16338
16411
|
initial: "app-initial-c95ddb62696e.js",
|
|
16339
16412
|
shared: "app-shared-2eda13eb7044.js",
|
|
@@ -16574,7 +16647,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16574
16647
|
const attempt = async () => {
|
|
16575
16648
|
if (disposed) return;
|
|
16576
16649
|
const names = loadedAssetNames(target.document, target.performance);
|
|
16577
|
-
const assets = selectVoiceAssets(
|
|
16650
|
+
const assets = selectVoiceAssets(
|
|
16651
|
+
CLIENT_OWNED_VOICE_ASSETS,
|
|
16652
|
+
names,
|
|
16653
|
+
config2.desktopVersion,
|
|
16654
|
+
config2.desktopPlatform
|
|
16655
|
+
);
|
|
16578
16656
|
if (assets) {
|
|
16579
16657
|
try {
|
|
16580
16658
|
const sharedModule = await importModule(`app://-/assets/${assets.shared}`);
|
|
@@ -17402,26 +17480,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17402
17480
|
for (const restore of restores.reverse()) restore();
|
|
17403
17481
|
throw error51;
|
|
17404
17482
|
}
|
|
17483
|
+
const alignedSnapshot = ({ subscriber, instance }) => {
|
|
17484
|
+
try {
|
|
17485
|
+
const snapshot = subscriber.getSnapshot();
|
|
17486
|
+
const instanceSnapshot = instance.getSnapshot();
|
|
17487
|
+
if (!capable(snapshot) || !capable(instanceSnapshot) || !equal(snapshot, instanceSnapshot))
|
|
17488
|
+
return void 0;
|
|
17489
|
+
return snapshot;
|
|
17490
|
+
} catch {
|
|
17491
|
+
return void 0;
|
|
17492
|
+
}
|
|
17493
|
+
};
|
|
17405
17494
|
return {
|
|
17406
17495
|
dispose() {
|
|
17407
17496
|
for (const restore of restores.splice(0).reverse()) restore();
|
|
17408
17497
|
},
|
|
17409
17498
|
current() {
|
|
17410
17499
|
const current = [...currentFibers()].flatMap(hooks);
|
|
17411
|
-
return bindings.every((
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
return
|
|
17418
|
-
|
|
17419
|
-
return Array.isArray(hook.memoizedState) && hook.memoizedState[0] === subscriber && hook.memoizedState[1]?.[0] === signal && hook.next?.queue === instance && capable(committed) && equal(committed, snapshot) && (!realtimeOnly || snapshot.isCapable);
|
|
17420
|
-
});
|
|
17421
|
-
} catch {
|
|
17422
|
-
return false;
|
|
17423
|
-
}
|
|
17500
|
+
return bindings.every((binding) => {
|
|
17501
|
+
const snapshot = alignedSnapshot(binding);
|
|
17502
|
+
if (!snapshot) return false;
|
|
17503
|
+
const { subscriber, signal, instance } = binding;
|
|
17504
|
+
return current.some((hook) => {
|
|
17505
|
+
const committed = hook.next?.memoizedState;
|
|
17506
|
+
return Array.isArray(hook.memoizedState) && hook.memoizedState[0] === subscriber && hook.memoizedState[1]?.[0] === signal && hook.next?.queue === instance && capable(committed) && equal(committed, snapshot) && (!realtimeOnly || snapshot.isCapable);
|
|
17507
|
+
});
|
|
17424
17508
|
});
|
|
17509
|
+
},
|
|
17510
|
+
projectedCapable() {
|
|
17511
|
+
return bindings.length > 0 && bindings.every((binding) => alignedSnapshot(binding)?.isCapable === true);
|
|
17425
17512
|
}
|
|
17426
17513
|
};
|
|
17427
17514
|
}
|
|
@@ -17515,7 +17602,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17515
17602
|
if (disposed) return;
|
|
17516
17603
|
try {
|
|
17517
17604
|
const names = loadedAssetNames(target.document, target.performance);
|
|
17518
|
-
const assets = selectVoiceAssets(
|
|
17605
|
+
const assets = selectVoiceAssets(
|
|
17606
|
+
CLIENT_OWNED_VOICE_ASSETS,
|
|
17607
|
+
names,
|
|
17608
|
+
config2.desktopVersion,
|
|
17609
|
+
config2.desktopPlatform
|
|
17610
|
+
);
|
|
17519
17611
|
if (assets) {
|
|
17520
17612
|
const shared = await importModule(`app://-/assets/${assets.shared}`);
|
|
17521
17613
|
const init = "init" in assets ? assets.init : void 0;
|
|
@@ -17555,7 +17647,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17555
17647
|
if (selectVoiceAssets(
|
|
17556
17648
|
CLIENT_OWNED_VOICE_ASSETS,
|
|
17557
17649
|
names2,
|
|
17558
|
-
config2.desktopVersion
|
|
17650
|
+
config2.desktopVersion,
|
|
17651
|
+
config2.desktopPlatform
|
|
17559
17652
|
) !== assets)
|
|
17560
17653
|
throw new Error("Unaudited voice starter");
|
|
17561
17654
|
const [initial, overlay] = await Promise.all([
|