@liberseek/boft-cli-win32-arm64 0.8.5 → 0.8.6
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 +2 -2
- package/THIRD_PARTY_NOTICES.txt +6 -2
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +70 -20
- package/app/console-web.js +61 -18
- package/app/desktop-controller.mjs +1142 -69
- package/app/host-runtime.mjs +3804 -1949
- package/app/plugins/antigravity/plugin.mjs +77 -9
- package/app/plugins/claude-code/plugin.mjs +27 -6
- package/app/plugins/codebuddy/plugin.mjs +25 -0
- package/app/plugins/codex-usage/plugin.mjs +15 -0
- package/app/plugins/copilot/plugin.mjs +15 -0
- package/app/plugins/cursor-cli/plugin.mjs +43 -8
- package/app/plugins/deepseek-harness/plugin.mjs +472 -44
- package/app/plugins/devin/assets/icon.svg +1 -0
- package/app/plugins/devin/manifest.json +30 -0
- package/app/plugins/devin/plugin.mjs +23425 -0
- package/app/plugins/enabled.json +2 -0
- package/app/plugins/grok/plugin.mjs +470 -387
- package/app/plugins/hermes/plugin.mjs +468 -196
- package/app/plugins/kimi-code/plugin.mjs +65 -3
- package/app/plugins/kiro-cli/plugin.mjs +15 -0
- package/app/plugins/muse/plugin.mjs +15 -0
- package/app/plugins/omp/plugin.mjs +15 -0
- package/app/plugins/opencode/plugin.mjs +15 -0
- package/app/plugins/pi/plugin.mjs +1595 -411
- package/app/plugins/qoder/plugin.mjs +9539 -8654
- package/app/plugins/qoder-cn/plugin.mjs +9539 -8654
- package/app/plugins/qwen-code/assets/icon.svg +1 -0
- package/app/plugins/qwen-code/manifest.json +29 -0
- package/app/plugins/qwen-code/plugin.mjs +29366 -0
- package/app/plugins/workbuddy/plugin.mjs +25 -0
- package/app/plugins/zcode/plugin.mjs +157 -9
- package/app/renderer-extension.js +727 -274
- 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/Qwen-Code-SDK-LICENSE.txt +203 -0
- package/package.json +2 -2
|
@@ -16077,6 +16077,21 @@ var threadSteeringInspectParamsSchema = external_exports.object({
|
|
|
16077
16077
|
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16078
16078
|
text: external_exports.string().optional()
|
|
16079
16079
|
}).strict();
|
|
16080
|
+
var threadSteeringContextSchema = external_exports.object({
|
|
16081
|
+
kind: external_exports.literal("application"),
|
|
16082
|
+
value: external_exports.string().transform((text, context) => {
|
|
16083
|
+
try {
|
|
16084
|
+
return JSON.parse(text);
|
|
16085
|
+
} catch {
|
|
16086
|
+
context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
|
|
16087
|
+
return external_exports.NEVER;
|
|
16088
|
+
}
|
|
16089
|
+
}).pipe(external_exports.object({
|
|
16090
|
+
expectedTurnId: hostTurnIdSchema,
|
|
16091
|
+
clientUserMessageId: external_exports.string().min(1),
|
|
16092
|
+
delivery: external_exports.enum(["newTurn", "activeTurn"])
|
|
16093
|
+
}).strict())
|
|
16094
|
+
}).strict().transform((context) => context.value);
|
|
16080
16095
|
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16081
16096
|
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16082
16097
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
@@ -24438,6 +24453,38 @@ function formatKimiCommandOutput(text) {
|
|
|
24438
24453
|
return cleaned;
|
|
24439
24454
|
}
|
|
24440
24455
|
|
|
24456
|
+
// dist/plan-approval.js
|
|
24457
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24458
|
+
function projectKimiPlanApprovalRequest(turnId, request) {
|
|
24459
|
+
const { options } = request;
|
|
24460
|
+
if (request.toolCall.title !== "ExitPlanMode" || !options.some(({ optionId, kind }) => optionId === "plan_revise" && kind === "reject_once") || !options.some(({ optionId, kind }) => optionId === "plan_reject_and_exit" && kind === "reject_once") || !options.some(({ kind }) => kind === "allow_once") || new Set(options.map(({ optionId }) => optionId)).size !== options.length || new Set(options.map(({ name }) => name)).size !== options.length || !options.every(({ optionId, kind, name }) => name.trim().length > 0 && (kind === "allow_once" ? optionId === "plan_approve" || /^plan_opt_\d+$/.test(optionId) : kind === "reject_once" && (optionId === "plan_revise" || optionId === "plan_reject_and_exit"))))
|
|
24461
|
+
return null;
|
|
24462
|
+
return {
|
|
24463
|
+
interaction: {
|
|
24464
|
+
type: "question",
|
|
24465
|
+
interactionId: hostInteractionIdSchema.parse(randomUUID3()),
|
|
24466
|
+
turnId,
|
|
24467
|
+
title: "Kimi Code 计划审批",
|
|
24468
|
+
questions: [
|
|
24469
|
+
{
|
|
24470
|
+
id: "planApproval",
|
|
24471
|
+
type: "choice",
|
|
24472
|
+
prompt: readAcpToolContentText(request.toolCall.content) || "ExitPlanMode",
|
|
24473
|
+
options: options.map(({ optionId, name }) => ({ value: optionId, label: name })),
|
|
24474
|
+
multiple: false,
|
|
24475
|
+
allowOther: false,
|
|
24476
|
+
optional: false
|
|
24477
|
+
}
|
|
24478
|
+
]
|
|
24479
|
+
},
|
|
24480
|
+
schemaProperties: { planApproval: { type: "string" } },
|
|
24481
|
+
parseResponse(response) {
|
|
24482
|
+
const selected = response.action === "accept" ? response.content?.planApproval : void 0;
|
|
24483
|
+
return typeof selected === "string" && options.some(({ optionId }) => optionId === selected) ? { outcome: { outcome: "selected", optionId: selected } } : { outcome: { outcome: "cancelled" } };
|
|
24484
|
+
}
|
|
24485
|
+
};
|
|
24486
|
+
}
|
|
24487
|
+
|
|
24441
24488
|
// dist/kimi-session.js
|
|
24442
24489
|
var kimiHarnessId2 = harnessIdSchema.parse("kimi-code");
|
|
24443
24490
|
var defaultNativeTurnFlushTimeoutMs = 6e3;
|
|
@@ -24977,6 +25024,19 @@ var KimiSession = class {
|
|
|
24977
25024
|
if (currentAgentMessage) {
|
|
24978
25025
|
completeAgentMessage("commentary");
|
|
24979
25026
|
}
|
|
25027
|
+
const plan = projectKimiPlanApprovalRequest(turnId, request);
|
|
25028
|
+
if (plan) {
|
|
25029
|
+
return new Promise((resolve) => {
|
|
25030
|
+
this.#activeInteractions.set(plan.interaction.interactionId, {
|
|
25031
|
+
id: plan.interaction.interactionId,
|
|
25032
|
+
type: "question",
|
|
25033
|
+
interaction: plan.interaction,
|
|
25034
|
+
metadata: plan.schemaProperties,
|
|
25035
|
+
resolve: (value) => resolve(plan.parseResponse(value))
|
|
25036
|
+
});
|
|
25037
|
+
this.#channel.emit({ kind: "interaction", interaction: plan.interaction });
|
|
25038
|
+
});
|
|
25039
|
+
}
|
|
24980
25040
|
const projected = projectKimiApprovalRequest(turnId, request);
|
|
24981
25041
|
return new Promise((resolve) => {
|
|
24982
25042
|
this.#activeInteractions.set(projected.interaction.interactionId, {
|
|
@@ -25592,8 +25652,9 @@ var KimiAdapter = class {
|
|
|
25592
25652
|
if (this.#closed) {
|
|
25593
25653
|
return err2("invalidState", "Adapter is closed");
|
|
25594
25654
|
}
|
|
25595
|
-
|
|
25596
|
-
|
|
25655
|
+
const unattended = input.kind === "create" && input.executionPolicy === "unattended-full-access";
|
|
25656
|
+
if (unattended && input.permissionModeId && input.permissionModeId !== "yolo") {
|
|
25657
|
+
return err2("invalidRequest", "Kimi Code unattended execution requires the yolo Permission Mode");
|
|
25597
25658
|
}
|
|
25598
25659
|
if (input.kind === "resume" && input.nativeRef.harnessId !== this.harnessId || input.kind === "rollbackLastTurn" && input.sourceRef.harnessId !== this.harnessId) {
|
|
25599
25660
|
return err2("invalidRequest", "Native Session belongs to a different Harness");
|
|
@@ -25653,10 +25714,11 @@ var KimiAdapter = class {
|
|
|
25653
25714
|
if (input.permissionModeId && !isKimiModeId(input.permissionModeId)) {
|
|
25654
25715
|
throw new Error(`Unsupported permission mode: ${input.permissionModeId}`);
|
|
25655
25716
|
}
|
|
25717
|
+
const permissionModeId = input.permissionModeId ?? (unattended ? "yolo" : void 0);
|
|
25656
25718
|
const requested = [
|
|
25657
25719
|
...input.model ? [{ id: "model", value: decodeKimiModelRefId(input.model.id) }] : [],
|
|
25658
25720
|
...input.thinkingOptionId ? [{ id: "thinking", value: input.thinkingOptionId }] : [],
|
|
25659
|
-
...
|
|
25721
|
+
...permissionModeId ? [{ id: "mode", value: permissionModeId }] : []
|
|
25660
25722
|
];
|
|
25661
25723
|
const configOptions = await applyRequestedConfig(transport, sessionInfo.configOptions, requested);
|
|
25662
25724
|
const state = stateFromConfig(sessionInfo.sessionId, cwd, configOptions);
|
|
@@ -15936,6 +15936,21 @@ var threadSteeringInspectParamsSchema = external_exports.object({
|
|
|
15936
15936
|
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15937
15937
|
text: external_exports.string().optional()
|
|
15938
15938
|
}).strict();
|
|
15939
|
+
var threadSteeringContextSchema = external_exports.object({
|
|
15940
|
+
kind: external_exports.literal("application"),
|
|
15941
|
+
value: external_exports.string().transform((text, context) => {
|
|
15942
|
+
try {
|
|
15943
|
+
return JSON.parse(text);
|
|
15944
|
+
} catch {
|
|
15945
|
+
context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
|
|
15946
|
+
return external_exports.NEVER;
|
|
15947
|
+
}
|
|
15948
|
+
}).pipe(external_exports.object({
|
|
15949
|
+
expectedTurnId: hostTurnIdSchema,
|
|
15950
|
+
clientUserMessageId: external_exports.string().min(1),
|
|
15951
|
+
delivery: external_exports.enum(["newTurn", "activeTurn"])
|
|
15952
|
+
}).strict())
|
|
15953
|
+
}).strict().transform((context) => context.value);
|
|
15939
15954
|
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15940
15955
|
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15941
15956
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
@@ -15845,6 +15845,21 @@ var threadSteeringInspectParamsSchema = external_exports.object({
|
|
|
15845
15845
|
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15846
15846
|
text: external_exports.string().optional()
|
|
15847
15847
|
}).strict();
|
|
15848
|
+
var threadSteeringContextSchema = external_exports.object({
|
|
15849
|
+
kind: external_exports.literal("application"),
|
|
15850
|
+
value: external_exports.string().transform((text, context) => {
|
|
15851
|
+
try {
|
|
15852
|
+
return JSON.parse(text);
|
|
15853
|
+
} catch {
|
|
15854
|
+
context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
|
|
15855
|
+
return external_exports.NEVER;
|
|
15856
|
+
}
|
|
15857
|
+
}).pipe(external_exports.object({
|
|
15858
|
+
expectedTurnId: hostTurnIdSchema,
|
|
15859
|
+
clientUserMessageId: external_exports.string().min(1),
|
|
15860
|
+
delivery: external_exports.enum(["newTurn", "activeTurn"])
|
|
15861
|
+
}).strict())
|
|
15862
|
+
}).strict().transform((context) => context.value);
|
|
15848
15863
|
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15849
15864
|
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15850
15865
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
@@ -16139,6 +16139,21 @@ var threadSteeringInspectParamsSchema = external_exports.object({
|
|
|
16139
16139
|
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16140
16140
|
text: external_exports.string().optional()
|
|
16141
16141
|
}).strict();
|
|
16142
|
+
var threadSteeringContextSchema = external_exports.object({
|
|
16143
|
+
kind: external_exports.literal("application"),
|
|
16144
|
+
value: external_exports.string().transform((text, context) => {
|
|
16145
|
+
try {
|
|
16146
|
+
return JSON.parse(text);
|
|
16147
|
+
} catch {
|
|
16148
|
+
context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
|
|
16149
|
+
return external_exports.NEVER;
|
|
16150
|
+
}
|
|
16151
|
+
}).pipe(external_exports.object({
|
|
16152
|
+
expectedTurnId: hostTurnIdSchema,
|
|
16153
|
+
clientUserMessageId: external_exports.string().min(1),
|
|
16154
|
+
delivery: external_exports.enum(["newTurn", "activeTurn"])
|
|
16155
|
+
}).strict())
|
|
16156
|
+
}).strict().transform((context) => context.value);
|
|
16142
16157
|
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16143
16158
|
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16144
16159
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
@@ -16136,6 +16136,21 @@ var threadSteeringInspectParamsSchema = external_exports.object({
|
|
|
16136
16136
|
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16137
16137
|
text: external_exports.string().optional()
|
|
16138
16138
|
}).strict();
|
|
16139
|
+
var threadSteeringContextSchema = external_exports.object({
|
|
16140
|
+
kind: external_exports.literal("application"),
|
|
16141
|
+
value: external_exports.string().transform((text, context) => {
|
|
16142
|
+
try {
|
|
16143
|
+
return JSON.parse(text);
|
|
16144
|
+
} catch {
|
|
16145
|
+
context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
|
|
16146
|
+
return external_exports.NEVER;
|
|
16147
|
+
}
|
|
16148
|
+
}).pipe(external_exports.object({
|
|
16149
|
+
expectedTurnId: hostTurnIdSchema,
|
|
16150
|
+
clientUserMessageId: external_exports.string().min(1),
|
|
16151
|
+
delivery: external_exports.enum(["newTurn", "activeTurn"])
|
|
16152
|
+
}).strict())
|
|
16153
|
+
}).strict().transform((context) => context.value);
|
|
16139
16154
|
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16140
16155
|
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16141
16156
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|