@tbox.cn/tboxcode-dsh-bundle 0.1.0-rc.5 → 0.1.0-rc.7
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/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as createConvergenceCore, i as ConvergenceState, n as ConvergenceIO, o as rowsEqual, r as ConvergenceRow, t as ConvergenceCore } from "./convergence-core-C1ZtU17g.js";
|
|
2
2
|
import { r as name, t as apply } from "./convergence-CvqBcQv2.js";
|
|
3
3
|
import { a as SweepResult, l as sweepSessions, n as RetentionKnobs, o as isOwnedHome, r as RetentionScheduler, s as startRetentionScheduler, t as DEFAULT_KNOBS } from "./retention-B2V8Plpx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { C as name$1, _ as handleRetentionRun, a as TboxcodeRemoteGateway, b as handleSkillsUserInvocable, d as handleCommit, f as handleDefaultSelection, g as handleReload, h as handleMode, l as handleCommandsExecute, m as handleHealth, o as TboxcodeRemoteServices, p as handleGitPushWatch, r as GitPushEvent, u as handleCommandsList, v as handleSessionsFlush } from "./remote-BZjKKp64.js";
|
|
5
5
|
import { a as redactTokens, i as createLogger, n as Logger, t as LogLevel } from "./logger-DcHqQwUI.js";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as rowsEqual, t as createConvergenceCore } from "./convergence-core-C
|
|
|
2
2
|
import { r as name, t as apply } from "./convergence-BfoAE48C.js";
|
|
3
3
|
import { a as sweepSessions, n as isOwnedHome, r as startRetentionScheduler, t as DEFAULT_KNOBS } from "./retention-DNEdnIxC.js";
|
|
4
4
|
import { n as redactTokens, t as createLogger } from "./logger-BGwLHZXY.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as handleCommandsList, c as handleGitPushWatch, d as handleReload, f as handleRetentionRun, h as handleSkillsUserInvocable, i as handleCommandsExecute, l as handleHealth, o as handleCommit, p as handleSessionsFlush, s as handleDefaultSelection, t as TboxcodeRemoteGateway, u as handleMode, v as name$1 } from "./remote-lvZ2n78k.js";
|
|
6
6
|
|
|
7
7
|
//#region src/index.ts
|
|
8
8
|
/**
|
|
@@ -16,6 +16,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
16
16
|
'tboxcode/mode-unknown': {
|
|
17
17
|
readonly mode: string;
|
|
18
18
|
};
|
|
19
|
+
'tboxcode/attachments-unavailable': Record<string, never>;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
interface RemoteAgentLike {
|
|
@@ -65,6 +66,10 @@ interface TboxcodeRemoteServices {
|
|
|
65
66
|
};
|
|
66
67
|
/** 进程事件订阅(watch 流源——skills/change / agent/inbox/claimed / agent/error)。 */
|
|
67
68
|
on: (event: string, listener: (payload: unknown) => void) => () => void;
|
|
69
|
+
/** 附件准入面(载体二 image prompt——RpcSessionDeps 经 Remote 调用)。 */
|
|
70
|
+
attachments?: {
|
|
71
|
+
admitPromptContent(input: readonly unknown[]): Promise<readonly unknown[]>;
|
|
72
|
+
};
|
|
68
73
|
sandbox: {
|
|
69
74
|
setSandboxMode(session: unknown, mode: unknown): unknown;
|
|
70
75
|
};
|
|
@@ -100,6 +105,11 @@ declare function handleDefaultSelection(services: TboxcodeRemoteServices): {
|
|
|
100
105
|
declare function handleSkillsUserInvocable(services: TboxcodeRemoteServices, request: {
|
|
101
106
|
agentId: string;
|
|
102
107
|
}): Promise<ReadonlyArray<Record<string, unknown>>>;
|
|
108
|
+
declare function handleAttachmentsAdmit(services: TboxcodeRemoteServices, request: {
|
|
109
|
+
parts: readonly unknown[];
|
|
110
|
+
}): Promise<{
|
|
111
|
+
parts: readonly unknown[];
|
|
112
|
+
}>;
|
|
103
113
|
declare function handleSessionsFlush(services: TboxcodeRemoteServices, request: {
|
|
104
114
|
sessionId: string;
|
|
105
115
|
}): Promise<void>;
|
|
@@ -170,6 +180,11 @@ declare const inject: readonly ["agents", "commands", "skills", "approval", "age
|
|
|
170
180
|
declare class TboxcodeRemoteGateway extends TypertRemoteService {
|
|
171
181
|
static inject: readonly ["agents", "commands", "skills", "approval", "agentDefaultModel", "sessions", "sessionPersistence", "tboxcodeConvergence"];
|
|
172
182
|
constructor(ctx: Context);
|
|
183
|
+
attachmentsAdmit(request: {
|
|
184
|
+
parts: readonly unknown[];
|
|
185
|
+
}): Promise<{
|
|
186
|
+
parts: readonly unknown[];
|
|
187
|
+
}>;
|
|
173
188
|
commandsList(request: {
|
|
174
189
|
agentId: string;
|
|
175
190
|
}): ReadonlyArray<Record<string, unknown>>;
|
|
@@ -218,4 +233,4 @@ declare class TboxcodeRemoteGateway extends TypertRemoteService {
|
|
|
218
233
|
retentionRun(): Promise<SweepResult>;
|
|
219
234
|
}
|
|
220
235
|
//#endregion
|
|
221
|
-
export { name as S,
|
|
236
|
+
export { name as C, inject as S, handleRetentionRun as _, TboxcodeRemoteGateway as a, handleSkillsUserInvocable as b, handleAttachmentsAdmit as c, handleCommit as d, handleDefaultSelection as f, handleReload as g, handleMode as h, RemoteAgentLike as i, handleCommandsExecute as l, handleHealth as m, DefaultModelSelection as n, TboxcodeRemoteServices as o, handleGitPushWatch as p, GitPushEvent as r, handleAgentWatch as s, AgentWatchItem as t, handleCommandsList as u, handleSessionsFlush as v, handleSkillsWatch as x, handleSessionsStat as y };
|
|
@@ -50,6 +50,11 @@ async function handleSkillsUserInvocable(services, request) {
|
|
|
50
50
|
const agent = requireAgent(services, request.agentId);
|
|
51
51
|
return (await services.skills.snapshot({ cwd: agent.session.header.cwd })).skills;
|
|
52
52
|
}
|
|
53
|
+
async function handleAttachmentsAdmit(services, request) {
|
|
54
|
+
const attachments = services.attachments;
|
|
55
|
+
if (attachments === void 0) throw new RemoteError("tboxcode/attachments-unavailable", "附件服务未挂载(image prompt 拒绝)", {});
|
|
56
|
+
return { parts: await attachments.admitPromptContent(request.parts) };
|
|
57
|
+
}
|
|
53
58
|
async function handleSessionsFlush(services, request) {
|
|
54
59
|
const session = services.sessions.get(request.sessionId);
|
|
55
60
|
if (session === void 0) throw new RemoteError("tboxcode/agent-not-found", `会话 ${request.sessionId} 不在内存(flush 须热会话)`, { sessionId: request.sessionId });
|
|
@@ -280,6 +285,7 @@ var TboxcodeRemoteGateway = class extends TypertRemoteService {
|
|
|
280
285
|
approval: remoteCtx.approval,
|
|
281
286
|
agentDefaultModel: remoteCtx.agentDefaultModel,
|
|
282
287
|
sessions: remoteCtx.sessions,
|
|
288
|
+
...remoteCtx.get?.("attachments") === void 0 ? {} : { attachments: remoteCtx.get("attachments") },
|
|
283
289
|
persistence: remoteCtx.sessionPersistence ?? { stat: async () => void 0 },
|
|
284
290
|
on: (event, listener) => remoteCtx.on(event, listener),
|
|
285
291
|
sandbox: { setSandboxMode: (session, mode) => setSandboxMode(session, mode) },
|
|
@@ -289,6 +295,9 @@ var TboxcodeRemoteGateway = class extends TypertRemoteService {
|
|
|
289
295
|
uptime: () => process.uptime() * 1e3
|
|
290
296
|
};
|
|
291
297
|
}
|
|
298
|
+
attachmentsAdmit(request) {
|
|
299
|
+
return handleAttachmentsAdmit(stateOf(this).services, request);
|
|
300
|
+
}
|
|
292
301
|
commandsList(request) {
|
|
293
302
|
return handleCommandsList(stateOf(this).services, request);
|
|
294
303
|
}
|
|
@@ -338,6 +347,10 @@ var TboxcodeRemoteGateway = class extends TypertRemoteService {
|
|
|
338
347
|
}
|
|
339
348
|
};
|
|
340
349
|
const REMOTE_METHODS = [
|
|
350
|
+
{
|
|
351
|
+
method: "attachmentsAdmit",
|
|
352
|
+
exportName: "attachments.admit"
|
|
353
|
+
},
|
|
341
354
|
{
|
|
342
355
|
method: "commandsList",
|
|
343
356
|
exportName: "commands.list"
|
|
@@ -415,4 +428,4 @@ if (markers.length !== REMOTE_METHODS.length || REMOTE_METHODS.some(({ exportNam
|
|
|
415
428
|
var remote_default = TboxcodeRemoteGateway;
|
|
416
429
|
|
|
417
430
|
//#endregion
|
|
418
|
-
export {
|
|
431
|
+
export { inject as _, handleCommandsList as a, handleGitPushWatch as c, handleReload as d, handleRetentionRun as f, handleSkillsWatch as g, handleSkillsUserInvocable as h, handleCommandsExecute as i, handleHealth as l, handleSessionsStat as m, handleAgentWatch as n, handleCommit as o, handleSessionsFlush as p, handleAttachmentsAdmit as r, handleDefaultSelection as s, TboxcodeRemoteGateway as t, handleMode as u, name as v, remote_default as y };
|
package/lib/remote.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./convergence-core-C1ZtU17g.js";
|
|
2
2
|
import "./retention-B2V8Plpx.js";
|
|
3
|
-
import {
|
|
4
|
-
export { AgentWatchItem, DefaultModelSelection, GitPushEvent, RemoteAgentLike, TboxcodeRemoteGateway, TboxcodeRemoteGateway as default, TboxcodeRemoteServices, handleAgentWatch, handleCommandsExecute, handleCommandsList, handleCommit, handleDefaultSelection, handleGitPushWatch, handleHealth, handleMode, handleReload, handleRetentionRun, handleSessionsFlush, handleSessionsStat, handleSkillsUserInvocable, handleSkillsWatch, inject, name };
|
|
3
|
+
import { C as name, S as inject, _ as handleRetentionRun, a as TboxcodeRemoteGateway, b as handleSkillsUserInvocable, c as handleAttachmentsAdmit, d as handleCommit, f as handleDefaultSelection, g as handleReload, h as handleMode, i as RemoteAgentLike, l as handleCommandsExecute, m as handleHealth, n as DefaultModelSelection, o as TboxcodeRemoteServices, p as handleGitPushWatch, r as GitPushEvent, s as handleAgentWatch, t as AgentWatchItem, u as handleCommandsList, v as handleSessionsFlush, x as handleSkillsWatch, y as handleSessionsStat } from "./remote-BZjKKp64.js";
|
|
4
|
+
export { AgentWatchItem, DefaultModelSelection, GitPushEvent, RemoteAgentLike, TboxcodeRemoteGateway, TboxcodeRemoteGateway as default, TboxcodeRemoteServices, handleAgentWatch, handleAttachmentsAdmit, handleCommandsExecute, handleCommandsList, handleCommit, handleDefaultSelection, handleGitPushWatch, handleHealth, handleMode, handleReload, handleRetentionRun, handleSessionsFlush, handleSessionsStat, handleSkillsUserInvocable, handleSkillsWatch, inject, name };
|
package/lib/remote.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./retention-DNEdnIxC.js";
|
|
2
2
|
import "./logger-BGwLHZXY.js";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as inject, a as handleCommandsList, c as handleGitPushWatch, d as handleReload, f as handleRetentionRun, g as handleSkillsWatch, h as handleSkillsUserInvocable, i as handleCommandsExecute, l as handleHealth, m as handleSessionsStat, n as handleAgentWatch, o as handleCommit, p as handleSessionsFlush, r as handleAttachmentsAdmit, s as handleDefaultSelection, t as TboxcodeRemoteGateway, u as handleMode, v as name, y as remote_default } from "./remote-lvZ2n78k.js";
|
|
4
4
|
|
|
5
|
-
export { TboxcodeRemoteGateway, remote_default as default, handleAgentWatch, handleCommandsExecute, handleCommandsList, handleCommit, handleDefaultSelection, handleGitPushWatch, handleHealth, handleMode, handleReload, handleRetentionRun, handleSessionsFlush, handleSessionsStat, handleSkillsUserInvocable, handleSkillsWatch, inject, name };
|
|
5
|
+
export { TboxcodeRemoteGateway, remote_default as default, handleAgentWatch, handleAttachmentsAdmit, handleCommandsExecute, handleCommandsList, handleCommit, handleDefaultSelection, handleGitPushWatch, handleHealth, handleMode, handleReload, handleRetentionRun, handleSessionsFlush, handleSessionsStat, handleSkillsUserInvocable, handleSkillsWatch, inject, name };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/tboxcode-dsh-bundle",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "tboxcode 组合点(host 服务行 + agent 平面 host 行 + profile 模板三件):patch + prompts / reminders 插件 + tboxcode Remote 服务",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"zod": "4.6.7",
|
|
50
|
-
"@tbox.cn/tboxcode-dsh-runtime": "0.1.0-rc.
|
|
51
|
-
"@tbox.cn/tboxcode-dsh-tools": "0.1.0-rc.
|
|
52
|
-
"@tbox.cn/
|
|
53
|
-
"@tbox.cn/dsh-
|
|
50
|
+
"@tbox.cn/tboxcode-dsh-runtime": "0.1.0-rc.7",
|
|
51
|
+
"@tbox.cn/tboxcode-dsh-tools": "0.1.0-rc.7",
|
|
52
|
+
"@tbox.cn/dsh-acp-bridge-core": "0.1.0-rc.7",
|
|
53
|
+
"@tbox.cn/tboxcode-dsh-llm": "0.1.0-rc.7"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@deepseek-ai/cordis": "4.0.5",
|