deskbuddy 0.2.0-beta.32 → 0.2.0-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4ICQ3BAL.js → chunk-RHIQGM66.js} +20 -3
- package/dist/cli.js +1532 -292
- package/dist/deskbuddy-dsh.mjs +79 -1
- package/dist/{enable-SIY4AEF7.js → enable-NGQ3J3NW.js} +1 -1
- package/dist/hook.cjs +12 -2
- package/dist/opencode.mjs +257 -2
- package/hook/deskbuddy-dsh.d.mts +3 -0
- package/hook/deskbuddy-dsh.mjs +79 -1
- package/hook/hook-debug.log +18 -0
- package/hook/hook.cjs +12 -2
- package/hook/opencode.d.mts +16 -1
- package/hook/opencode.mjs +257 -2
- package/package.json +1 -1
|
@@ -148,6 +148,7 @@ function loadConfig() {
|
|
|
148
148
|
approvalPolicy: parsed.approvalPolicy === "all" ? "all" : parsed.approvalPolicy === "commands" ? "commands" : void 0,
|
|
149
149
|
codexAppServer: typeof parsed.codexAppServer === "string" ? parsed.codexAppServer : void 0,
|
|
150
150
|
autoUpdate: typeof parsed.autoUpdate === "boolean" ? parsed.autoUpdate : void 0,
|
|
151
|
+
transcript: parsed.transcript === false ? false : void 0,
|
|
151
152
|
disabledTools: Array.isArray(parsed.disabledTools) ? parsed.disabledTools.filter((t) => typeof t === "string") : void 0,
|
|
152
153
|
workbuddySetup: parseWorkbuddySetup(parsed.workbuddySetup),
|
|
153
154
|
workbuddyAppApproval: typeof parsed.workbuddyAppApproval === "boolean" ? parsed.workbuddyAppApproval : void 0,
|
|
@@ -1022,6 +1023,8 @@ var SERVICES = {
|
|
|
1022
1023
|
var DIRS_SERVICE = "com.shifeng.api.service.api.v2.deskbuddy.deskbuddyclientdirsreportapi";
|
|
1023
1024
|
var INSTALL_REDEEM_SERVICE = "com.shifeng.api.service.api.v2.deskbuddy.deskbuddyinstallredeemapi";
|
|
1024
1025
|
var CMD_RESULT_SERVICE = "com.shifeng.api.service.api.v2.deskbuddy.deskbuddycommandresultapi";
|
|
1026
|
+
var TRANSCRIPT_SERVICE = "com.shifeng.api.service.api.v2.deskbuddy.deskbuddytranscriptappendapi";
|
|
1027
|
+
var CODE_NOT_SUPPORT = "5001";
|
|
1025
1028
|
var COMMAND_OUTPUT_MAX = 8e3;
|
|
1026
1029
|
var APPROVAL_SERVICES = {
|
|
1027
1030
|
create: "com.shifeng.api.service.api.v2.deskbuddy.deskbuddyapprovalcreateapi",
|
|
@@ -1167,7 +1170,8 @@ var api = {
|
|
|
1167
1170
|
dirsReport: (payload) => call(DIRS_SERVICE, payload),
|
|
1168
1171
|
installRedeem: (installCode, clientId, hostName) => call(INSTALL_REDEEM_SERVICE, { installCode, clientId, hostName, ...machineInfo() }),
|
|
1169
1172
|
// 2 秒超时、失败不重试(spec §4.1):回报丢了只是设备少一句提示,任务状态仍由会话快照负责
|
|
1170
|
-
commandResult: (payload, timeoutMs = 2e3) => call(CMD_RESULT_SERVICE, payload, timeoutMs)
|
|
1173
|
+
commandResult: (payload, timeoutMs = 2e3) => call(CMD_RESULT_SERVICE, payload, timeoutMs),
|
|
1174
|
+
transcriptAppend: (payload, timeoutMs = 15e3) => call(TRANSCRIPT_SERVICE, payload, timeoutMs)
|
|
1171
1175
|
};
|
|
1172
1176
|
|
|
1173
1177
|
// src/core/registry.ts
|
|
@@ -7703,6 +7707,17 @@ var DumateWatch = class {
|
|
|
7703
7707
|
* 任务总结的读回(spec 2026-10-11 summary-all-tools):GET /session/:id/message + /session/status,按标记认本轮(messagesVerdict)。
|
|
7704
7708
|
* 连不上 / 读不出 → 等(总超时由调用方判);不唤起 App
|
|
7705
7709
|
*/
|
|
7710
|
+
/**
|
|
7711
|
+
* 会话完整对话(spec 2026-10-11 transcript-sync §3):GET /session/:id/message 全量(消息只追加,序号稳定)。
|
|
7712
|
+
* 连不上 / 读不出 → null(游标不动,下次可读再补);不唤起 App
|
|
7713
|
+
*/
|
|
7714
|
+
async transcriptMessages(sessionId) {
|
|
7715
|
+
const t = this.#target ?? this.#discover(false);
|
|
7716
|
+
if (!t) return null;
|
|
7717
|
+
const dir2 = this.#sessionDir.get(sessionId) ?? "";
|
|
7718
|
+
const r = await this.#http(t)(t, { method: "GET", path: `/session/${encodeURIComponent(sessionId)}/message`, ...dir2 ? { directory: dir2 } : {} });
|
|
7719
|
+
return r.status === 200 && Array.isArray(r.body) ? r.body : null;
|
|
7720
|
+
}
|
|
7706
7721
|
async summaryCheck(sessionId, instructionId) {
|
|
7707
7722
|
const wait = { kind: "wait" };
|
|
7708
7723
|
const t = this.#target ?? this.#discover(false);
|
|
@@ -10495,7 +10510,7 @@ var defaultLoginOpenDeps = () => ({
|
|
|
10495
10510
|
});
|
|
10496
10511
|
async function installCodebuddyHooks(log) {
|
|
10497
10512
|
try {
|
|
10498
|
-
const { installTools: installTools2 } = await import("./enable-
|
|
10513
|
+
const { installTools: installTools2 } = await import("./enable-NGQ3J3NW.js");
|
|
10499
10514
|
installTools2(["workbuddy"], () => {
|
|
10500
10515
|
}, null, { auto: true });
|
|
10501
10516
|
} catch (e) {
|
|
@@ -11009,7 +11024,7 @@ function defaultOfferDeps(log) {
|
|
|
11009
11024
|
}),
|
|
11010
11025
|
openLogin: () => defaultOpenLogin(platform),
|
|
11011
11026
|
installHooks: async () => {
|
|
11012
|
-
const { installTools: installTools2 } = await import("./enable-
|
|
11027
|
+
const { installTools: installTools2 } = await import("./enable-NGQ3J3NW.js");
|
|
11013
11028
|
installTools2(["workbuddy"], (l) => log(`[WorkBuddy \u72EC\u7ACB\u7248] ${l}`), null, { auto: true });
|
|
11014
11029
|
},
|
|
11015
11030
|
log: (l) => log(`[WorkBuddy \u72EC\u7ACB\u7248] ${l}`),
|
|
@@ -11263,6 +11278,7 @@ export {
|
|
|
11263
11278
|
qwenworkDataHome,
|
|
11264
11279
|
qoderSettingsPath,
|
|
11265
11280
|
opencodePluginPath,
|
|
11281
|
+
codexHome,
|
|
11266
11282
|
installedHookPath,
|
|
11267
11283
|
loadConfig,
|
|
11268
11284
|
saveConfig,
|
|
@@ -11274,6 +11290,7 @@ export {
|
|
|
11274
11290
|
packageVersion,
|
|
11275
11291
|
installedHookVersion,
|
|
11276
11292
|
syncHookFile,
|
|
11293
|
+
CODE_NOT_SUPPORT,
|
|
11277
11294
|
APP_ID,
|
|
11278
11295
|
APP_SECRET,
|
|
11279
11296
|
sign,
|