@liberseek/boft-cli-win32-arm64 0.8.4 → 0.8.5
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 +59 -8
- package/app/console-web.js +278 -63
- package/app/desktop-controller.mjs +641 -33
- package/app/host-runtime.mjs +1811 -685
- package/app/plugins/antigravity/plugin.mjs +346 -54
- package/app/plugins/claude-code/plugin.mjs +391 -259
- package/app/plugins/codebuddy/plugin.mjs +231 -134
- package/app/plugins/codex-usage/plugin.mjs +82 -32
- package/app/plugins/copilot/plugin.mjs +107 -57
- package/app/plugins/cursor-cli/plugin.mjs +193 -131
- package/app/plugins/deepseek-harness/plugin.mjs +112 -42
- package/app/plugins/grok/plugin.mjs +371 -115
- package/app/plugins/hermes/plugin.mjs +54 -4
- package/app/plugins/kimi-code/plugin.mjs +69 -19
- package/app/plugins/kiro-cli/plugin.mjs +69 -19
- package/app/plugins/muse/plugin.mjs +59 -9
- package/app/plugins/omp/plugin.mjs +89 -39
- package/app/plugins/opencode/plugin.mjs +111 -61
- package/app/plugins/pi/plugin.mjs +185 -68
- package/app/plugins/qoder/plugin.mjs +79 -29
- package/app/plugins/qoder-cn/plugin.mjs +79 -29
- package/app/plugins/workbuddy/plugin.mjs +231 -134
- package/app/plugins/zcode/plugin.mjs +108 -33
- package/app/renderer-extension.js +2634 -329
- 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/package.json +1 -1
|
@@ -3401,10 +3401,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3401
3401
|
const shape = def.shape;
|
|
3402
3402
|
const propValues = {};
|
|
3403
3403
|
for (const key in shape) {
|
|
3404
|
-
const
|
|
3405
|
-
if (
|
|
3404
|
+
const field2 = shape[key]._zod;
|
|
3405
|
+
if (field2.values) {
|
|
3406
3406
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3407
|
-
for (const v of
|
|
3407
|
+
for (const v of field2.values)
|
|
3408
3408
|
propValues[key].add(v);
|
|
3409
3409
|
}
|
|
3410
3410
|
}
|
|
@@ -15044,6 +15044,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15044
15044
|
cachedInputTokens: count,
|
|
15045
15045
|
cacheWriteInputTokens: count,
|
|
15046
15046
|
cacheKnownInputTokens: count,
|
|
15047
|
+
cacheHitCachedInputTokens: count,
|
|
15048
|
+
cacheHitInputTokens: count,
|
|
15047
15049
|
outputTokens: count,
|
|
15048
15050
|
reasoningOutputTokens: count,
|
|
15049
15051
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15151,6 +15153,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15151
15153
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15152
15154
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15153
15155
|
|
|
15156
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15157
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15158
|
+
external_exports.object({
|
|
15159
|
+
id: external_exports.string().min(1),
|
|
15160
|
+
type: external_exports.literal("choice"),
|
|
15161
|
+
prompt: external_exports.string(),
|
|
15162
|
+
options: external_exports.array(external_exports.object({
|
|
15163
|
+
value: external_exports.string().min(1),
|
|
15164
|
+
label: external_exports.string(),
|
|
15165
|
+
description: external_exports.string().optional()
|
|
15166
|
+
})).min(1),
|
|
15167
|
+
multiple: external_exports.boolean(),
|
|
15168
|
+
allowOther: external_exports.boolean(),
|
|
15169
|
+
optional: external_exports.boolean()
|
|
15170
|
+
}),
|
|
15171
|
+
external_exports.object({
|
|
15172
|
+
id: external_exports.string().min(1),
|
|
15173
|
+
type: external_exports.literal("text"),
|
|
15174
|
+
prompt: external_exports.string(),
|
|
15175
|
+
multiline: external_exports.boolean(),
|
|
15176
|
+
secret: external_exports.literal(false),
|
|
15177
|
+
optional: external_exports.boolean(),
|
|
15178
|
+
placeholder: external_exports.string().optional(),
|
|
15179
|
+
prefill: external_exports.string().optional()
|
|
15180
|
+
})
|
|
15181
|
+
]);
|
|
15182
|
+
var threadQuestionSchema = external_exports.object({
|
|
15183
|
+
interactionId: external_exports.string().min(1),
|
|
15184
|
+
turnId: external_exports.string().min(1),
|
|
15185
|
+
title: external_exports.string().optional(),
|
|
15186
|
+
questions: external_exports.array(field).min(1)
|
|
15187
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15188
|
+
message: "Shared cards require at least one multi-select question"
|
|
15189
|
+
});
|
|
15190
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15191
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15192
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15193
|
+
threadId: external_exports.string().min(1),
|
|
15194
|
+
turnId: external_exports.string().min(1),
|
|
15195
|
+
interactionId: external_exports.string().min(1),
|
|
15196
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15197
|
+
cancelled: external_exports.boolean().default(false)
|
|
15198
|
+
});
|
|
15199
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15200
|
+
|
|
15154
15201
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15155
15202
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15156
15203
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15920,7 +15967,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15920
15967
|
harnessId: harnessPluginIdSchema,
|
|
15921
15968
|
model: harnessModelRefSchema.optional(),
|
|
15922
15969
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15923
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15970
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15971
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15972
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15973
|
+
prewarm: external_exports.literal(true).optional()
|
|
15924
15974
|
}).strict();
|
|
15925
15975
|
|
|
15926
15976
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -3521,10 +3521,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3521
3521
|
const shape = def.shape;
|
|
3522
3522
|
const propValues = {};
|
|
3523
3523
|
for (const key in shape) {
|
|
3524
|
-
const
|
|
3525
|
-
if (
|
|
3524
|
+
const field2 = shape[key]._zod;
|
|
3525
|
+
if (field2.values) {
|
|
3526
3526
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3527
|
-
for (const v of
|
|
3527
|
+
for (const v of field2.values)
|
|
3528
3528
|
propValues[key].add(v);
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
@@ -15164,6 +15164,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15164
15164
|
cachedInputTokens: count,
|
|
15165
15165
|
cacheWriteInputTokens: count,
|
|
15166
15166
|
cacheKnownInputTokens: count,
|
|
15167
|
+
cacheHitCachedInputTokens: count,
|
|
15168
|
+
cacheHitInputTokens: count,
|
|
15167
15169
|
outputTokens: count,
|
|
15168
15170
|
reasoningOutputTokens: count,
|
|
15169
15171
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15271,6 +15273,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15271
15273
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15272
15274
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15273
15275
|
|
|
15276
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15277
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15278
|
+
external_exports.object({
|
|
15279
|
+
id: external_exports.string().min(1),
|
|
15280
|
+
type: external_exports.literal("choice"),
|
|
15281
|
+
prompt: external_exports.string(),
|
|
15282
|
+
options: external_exports.array(external_exports.object({
|
|
15283
|
+
value: external_exports.string().min(1),
|
|
15284
|
+
label: external_exports.string(),
|
|
15285
|
+
description: external_exports.string().optional()
|
|
15286
|
+
})).min(1),
|
|
15287
|
+
multiple: external_exports.boolean(),
|
|
15288
|
+
allowOther: external_exports.boolean(),
|
|
15289
|
+
optional: external_exports.boolean()
|
|
15290
|
+
}),
|
|
15291
|
+
external_exports.object({
|
|
15292
|
+
id: external_exports.string().min(1),
|
|
15293
|
+
type: external_exports.literal("text"),
|
|
15294
|
+
prompt: external_exports.string(),
|
|
15295
|
+
multiline: external_exports.boolean(),
|
|
15296
|
+
secret: external_exports.literal(false),
|
|
15297
|
+
optional: external_exports.boolean(),
|
|
15298
|
+
placeholder: external_exports.string().optional(),
|
|
15299
|
+
prefill: external_exports.string().optional()
|
|
15300
|
+
})
|
|
15301
|
+
]);
|
|
15302
|
+
var threadQuestionSchema = external_exports.object({
|
|
15303
|
+
interactionId: external_exports.string().min(1),
|
|
15304
|
+
turnId: external_exports.string().min(1),
|
|
15305
|
+
title: external_exports.string().optional(),
|
|
15306
|
+
questions: external_exports.array(field).min(1)
|
|
15307
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15308
|
+
message: "Shared cards require at least one multi-select question"
|
|
15309
|
+
});
|
|
15310
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15311
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15312
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15313
|
+
threadId: external_exports.string().min(1),
|
|
15314
|
+
turnId: external_exports.string().min(1),
|
|
15315
|
+
interactionId: external_exports.string().min(1),
|
|
15316
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15317
|
+
cancelled: external_exports.boolean().default(false)
|
|
15318
|
+
});
|
|
15319
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15320
|
+
|
|
15274
15321
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15275
15322
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15276
15323
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -16040,7 +16087,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
16040
16087
|
harnessId: harnessPluginIdSchema,
|
|
16041
16088
|
model: harnessModelRefSchema.optional(),
|
|
16042
16089
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
16043
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
16090
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
16091
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
16092
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
16093
|
+
prewarm: external_exports.literal(true).optional()
|
|
16044
16094
|
}).strict();
|
|
16045
16095
|
|
|
16046
16096
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -16655,26 +16705,26 @@ function parseHostUsage(value) {
|
|
|
16655
16705
|
}
|
|
16656
16706
|
}
|
|
16657
16707
|
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
16658
|
-
for (const
|
|
16708
|
+
for (const field2 of [
|
|
16659
16709
|
"totalCredits",
|
|
16660
16710
|
"contextUsagePercent",
|
|
16661
16711
|
"apiOutputTokensPerSecond"
|
|
16662
16712
|
]) {
|
|
16663
|
-
const candidate = value[
|
|
16713
|
+
const candidate = value[field2];
|
|
16664
16714
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16665
|
-
throw new Error(`Harness Usage '${
|
|
16715
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16666
16716
|
}
|
|
16667
16717
|
}
|
|
16668
|
-
for (const
|
|
16669
|
-
const candidate = value[
|
|
16718
|
+
for (const field2 of tokenFields) {
|
|
16719
|
+
const candidate = value[field2];
|
|
16670
16720
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16671
|
-
throw new Error(`Harness Usage '${
|
|
16721
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16672
16722
|
}
|
|
16673
16723
|
}
|
|
16674
|
-
for (const
|
|
16675
|
-
const candidate = value[
|
|
16724
|
+
for (const field2 of safeIntegerFields) {
|
|
16725
|
+
const candidate = value[field2];
|
|
16676
16726
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16677
|
-
throw new Error(`Harness Usage '${
|
|
16727
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16678
16728
|
}
|
|
16679
16729
|
}
|
|
16680
16730
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -16683,16 +16733,16 @@ function parseHostUsage(value) {
|
|
|
16683
16733
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
16684
16734
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
16685
16735
|
}
|
|
16686
|
-
for (const
|
|
16687
|
-
const candidate = value[
|
|
16736
|
+
for (const field2 of ["totalCredits", "contextUsagePercent"]) {
|
|
16737
|
+
const candidate = value[field2];
|
|
16688
16738
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16689
|
-
throw new Error(`Harness Usage '${
|
|
16739
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16690
16740
|
}
|
|
16691
16741
|
}
|
|
16692
|
-
for (const
|
|
16693
|
-
const candidate = value[
|
|
16742
|
+
for (const field2 of percentFields) {
|
|
16743
|
+
const candidate = value[field2];
|
|
16694
16744
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
16695
|
-
throw new Error(`Harness Usage '${
|
|
16745
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
16696
16746
|
}
|
|
16697
16747
|
}
|
|
16698
16748
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -3380,10 +3380,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3380
3380
|
const shape = def.shape;
|
|
3381
3381
|
const propValues = {};
|
|
3382
3382
|
for (const key in shape) {
|
|
3383
|
-
const
|
|
3384
|
-
if (
|
|
3383
|
+
const field2 = shape[key]._zod;
|
|
3384
|
+
if (field2.values) {
|
|
3385
3385
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3386
|
-
for (const v of
|
|
3386
|
+
for (const v of field2.values)
|
|
3387
3387
|
propValues[key].add(v);
|
|
3388
3388
|
}
|
|
3389
3389
|
}
|
|
@@ -15023,6 +15023,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15023
15023
|
cachedInputTokens: count,
|
|
15024
15024
|
cacheWriteInputTokens: count,
|
|
15025
15025
|
cacheKnownInputTokens: count,
|
|
15026
|
+
cacheHitCachedInputTokens: count,
|
|
15027
|
+
cacheHitInputTokens: count,
|
|
15026
15028
|
outputTokens: count,
|
|
15027
15029
|
reasoningOutputTokens: count,
|
|
15028
15030
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15130,6 +15132,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15130
15132
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15131
15133
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15132
15134
|
|
|
15135
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15136
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15137
|
+
external_exports.object({
|
|
15138
|
+
id: external_exports.string().min(1),
|
|
15139
|
+
type: external_exports.literal("choice"),
|
|
15140
|
+
prompt: external_exports.string(),
|
|
15141
|
+
options: external_exports.array(external_exports.object({
|
|
15142
|
+
value: external_exports.string().min(1),
|
|
15143
|
+
label: external_exports.string(),
|
|
15144
|
+
description: external_exports.string().optional()
|
|
15145
|
+
})).min(1),
|
|
15146
|
+
multiple: external_exports.boolean(),
|
|
15147
|
+
allowOther: external_exports.boolean(),
|
|
15148
|
+
optional: external_exports.boolean()
|
|
15149
|
+
}),
|
|
15150
|
+
external_exports.object({
|
|
15151
|
+
id: external_exports.string().min(1),
|
|
15152
|
+
type: external_exports.literal("text"),
|
|
15153
|
+
prompt: external_exports.string(),
|
|
15154
|
+
multiline: external_exports.boolean(),
|
|
15155
|
+
secret: external_exports.literal(false),
|
|
15156
|
+
optional: external_exports.boolean(),
|
|
15157
|
+
placeholder: external_exports.string().optional(),
|
|
15158
|
+
prefill: external_exports.string().optional()
|
|
15159
|
+
})
|
|
15160
|
+
]);
|
|
15161
|
+
var threadQuestionSchema = external_exports.object({
|
|
15162
|
+
interactionId: external_exports.string().min(1),
|
|
15163
|
+
turnId: external_exports.string().min(1),
|
|
15164
|
+
title: external_exports.string().optional(),
|
|
15165
|
+
questions: external_exports.array(field).min(1)
|
|
15166
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15167
|
+
message: "Shared cards require at least one multi-select question"
|
|
15168
|
+
});
|
|
15169
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15170
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15171
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15172
|
+
threadId: external_exports.string().min(1),
|
|
15173
|
+
turnId: external_exports.string().min(1),
|
|
15174
|
+
interactionId: external_exports.string().min(1),
|
|
15175
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15176
|
+
cancelled: external_exports.boolean().default(false)
|
|
15177
|
+
});
|
|
15178
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15179
|
+
|
|
15133
15180
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15134
15181
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15135
15182
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15899,7 +15946,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15899
15946
|
harnessId: harnessPluginIdSchema,
|
|
15900
15947
|
model: harnessModelRefSchema.optional(),
|
|
15901
15948
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15902
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15949
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15950
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15951
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15952
|
+
prewarm: external_exports.literal(true).optional()
|
|
15903
15953
|
}).strict();
|
|
15904
15954
|
|
|
15905
15955
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -16510,26 +16560,26 @@ function parseHostUsage(value) {
|
|
|
16510
16560
|
}
|
|
16511
16561
|
}
|
|
16512
16562
|
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
16513
|
-
for (const
|
|
16563
|
+
for (const field2 of [
|
|
16514
16564
|
"totalCredits",
|
|
16515
16565
|
"contextUsagePercent",
|
|
16516
16566
|
"apiOutputTokensPerSecond"
|
|
16517
16567
|
]) {
|
|
16518
|
-
const candidate = value[
|
|
16568
|
+
const candidate = value[field2];
|
|
16519
16569
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16520
|
-
throw new Error(`Harness Usage '${
|
|
16570
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16521
16571
|
}
|
|
16522
16572
|
}
|
|
16523
|
-
for (const
|
|
16524
|
-
const candidate = value[
|
|
16573
|
+
for (const field2 of tokenFields) {
|
|
16574
|
+
const candidate = value[field2];
|
|
16525
16575
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16526
|
-
throw new Error(`Harness Usage '${
|
|
16576
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16527
16577
|
}
|
|
16528
16578
|
}
|
|
16529
|
-
for (const
|
|
16530
|
-
const candidate = value[
|
|
16579
|
+
for (const field2 of safeIntegerFields) {
|
|
16580
|
+
const candidate = value[field2];
|
|
16531
16581
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16532
|
-
throw new Error(`Harness Usage '${
|
|
16582
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16533
16583
|
}
|
|
16534
16584
|
}
|
|
16535
16585
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -16538,16 +16588,16 @@ function parseHostUsage(value) {
|
|
|
16538
16588
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
16539
16589
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
16540
16590
|
}
|
|
16541
|
-
for (const
|
|
16542
|
-
const candidate = value[
|
|
16591
|
+
for (const field2 of ["totalCredits", "contextUsagePercent"]) {
|
|
16592
|
+
const candidate = value[field2];
|
|
16543
16593
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16544
|
-
throw new Error(`Harness Usage '${
|
|
16594
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16545
16595
|
}
|
|
16546
16596
|
}
|
|
16547
|
-
for (const
|
|
16548
|
-
const candidate = value[
|
|
16597
|
+
for (const field2 of percentFields) {
|
|
16598
|
+
const candidate = value[field2];
|
|
16549
16599
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
16550
|
-
throw new Error(`Harness Usage '${
|
|
16600
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
16551
16601
|
}
|
|
16552
16602
|
}
|
|
16553
16603
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -3289,10 +3289,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3289
3289
|
const shape = def.shape;
|
|
3290
3290
|
const propValues = {};
|
|
3291
3291
|
for (const key in shape) {
|
|
3292
|
-
const
|
|
3293
|
-
if (
|
|
3292
|
+
const field2 = shape[key]._zod;
|
|
3293
|
+
if (field2.values) {
|
|
3294
3294
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3295
|
-
for (const v of
|
|
3295
|
+
for (const v of field2.values)
|
|
3296
3296
|
propValues[key].add(v);
|
|
3297
3297
|
}
|
|
3298
3298
|
}
|
|
@@ -14932,6 +14932,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
14932
14932
|
cachedInputTokens: count,
|
|
14933
14933
|
cacheWriteInputTokens: count,
|
|
14934
14934
|
cacheKnownInputTokens: count,
|
|
14935
|
+
cacheHitCachedInputTokens: count,
|
|
14936
|
+
cacheHitInputTokens: count,
|
|
14935
14937
|
outputTokens: count,
|
|
14936
14938
|
reasoningOutputTokens: count,
|
|
14937
14939
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15039,6 +15041,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15039
15041
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15040
15042
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15041
15043
|
|
|
15044
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15045
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15046
|
+
external_exports.object({
|
|
15047
|
+
id: external_exports.string().min(1),
|
|
15048
|
+
type: external_exports.literal("choice"),
|
|
15049
|
+
prompt: external_exports.string(),
|
|
15050
|
+
options: external_exports.array(external_exports.object({
|
|
15051
|
+
value: external_exports.string().min(1),
|
|
15052
|
+
label: external_exports.string(),
|
|
15053
|
+
description: external_exports.string().optional()
|
|
15054
|
+
})).min(1),
|
|
15055
|
+
multiple: external_exports.boolean(),
|
|
15056
|
+
allowOther: external_exports.boolean(),
|
|
15057
|
+
optional: external_exports.boolean()
|
|
15058
|
+
}),
|
|
15059
|
+
external_exports.object({
|
|
15060
|
+
id: external_exports.string().min(1),
|
|
15061
|
+
type: external_exports.literal("text"),
|
|
15062
|
+
prompt: external_exports.string(),
|
|
15063
|
+
multiline: external_exports.boolean(),
|
|
15064
|
+
secret: external_exports.literal(false),
|
|
15065
|
+
optional: external_exports.boolean(),
|
|
15066
|
+
placeholder: external_exports.string().optional(),
|
|
15067
|
+
prefill: external_exports.string().optional()
|
|
15068
|
+
})
|
|
15069
|
+
]);
|
|
15070
|
+
var threadQuestionSchema = external_exports.object({
|
|
15071
|
+
interactionId: external_exports.string().min(1),
|
|
15072
|
+
turnId: external_exports.string().min(1),
|
|
15073
|
+
title: external_exports.string().optional(),
|
|
15074
|
+
questions: external_exports.array(field).min(1)
|
|
15075
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15076
|
+
message: "Shared cards require at least one multi-select question"
|
|
15077
|
+
});
|
|
15078
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15079
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15080
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15081
|
+
threadId: external_exports.string().min(1),
|
|
15082
|
+
turnId: external_exports.string().min(1),
|
|
15083
|
+
interactionId: external_exports.string().min(1),
|
|
15084
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15085
|
+
cancelled: external_exports.boolean().default(false)
|
|
15086
|
+
});
|
|
15087
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15088
|
+
|
|
15042
15089
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15043
15090
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15044
15091
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15808,7 +15855,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15808
15855
|
harnessId: harnessPluginIdSchema,
|
|
15809
15856
|
model: harnessModelRefSchema.optional(),
|
|
15810
15857
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15811
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15858
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15859
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15860
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15861
|
+
prewarm: external_exports.literal(true).optional()
|
|
15812
15862
|
}).strict();
|
|
15813
15863
|
|
|
15814
15864
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -17840,9 +17890,9 @@ var MuseHarnessSession = class {
|
|
|
17840
17890
|
const text = typeof params.delta === "string" ? params.delta : "";
|
|
17841
17891
|
if (!item || !text)
|
|
17842
17892
|
return;
|
|
17843
|
-
const
|
|
17844
|
-
const asOutput =
|
|
17845
|
-
if (item.type === "commandExecution" && (asOutput ||
|
|
17893
|
+
const field2 = typeof params.field === "string" && params.field ? params.field : "text";
|
|
17894
|
+
const asOutput = field2 === "output";
|
|
17895
|
+
if (item.type === "commandExecution" && (asOutput || field2 === "text")) {
|
|
17846
17896
|
const suffix = text;
|
|
17847
17897
|
item.output = `${item.output ?? ""}${suffix}`;
|
|
17848
17898
|
this.#emit({
|
|
@@ -17856,7 +17906,7 @@ var MuseHarnessSession = class {
|
|
|
17856
17906
|
});
|
|
17857
17907
|
return;
|
|
17858
17908
|
}
|
|
17859
|
-
if (item.type === "toolExecution" && (asOutput ||
|
|
17909
|
+
if (item.type === "toolExecution" && (asOutput || field2 === "text")) {
|
|
17860
17910
|
const suffix = text;
|
|
17861
17911
|
const next = `${toolOutputText(item)}${suffix}`;
|
|
17862
17912
|
item.output = { content: [{ type: "text", text: next }] };
|
|
@@ -17872,7 +17922,7 @@ var MuseHarnessSession = class {
|
|
|
17872
17922
|
return;
|
|
17873
17923
|
}
|
|
17874
17924
|
if (item.type === "agentMessage" || item.type === "reasoning") {
|
|
17875
|
-
if (item.type === "agentMessage" &&
|
|
17925
|
+
if (item.type === "agentMessage" && field2 !== "text")
|
|
17876
17926
|
return;
|
|
17877
17927
|
const suffix = text;
|
|
17878
17928
|
item.text += suffix;
|