@morlay/dsh-conversation 0.0.0-stage → 0.2.0-alpha.0
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/LICENSE +21 -0
- package/README.md +49 -2
- package/dist/contract-DgH7vjO7.mjs +20 -0
- package/dist/contract.d.mts +3 -0
- package/dist/contract.mjs +3 -0
- package/dist/decorate-g56z_1VW.mjs +8 -0
- package/dist/endpoint.d.mts +42 -0
- package/dist/endpoint.mjs +50 -0
- package/dist/first-prompt-llm.service-BYX1KK4Z.mjs +100 -0
- package/dist/first-prompt-llm.service-DVcR15W4.d.mts +55 -0
- package/dist/index-BOtIdC0T.d.mts +45 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +6 -0
- package/dist/server.d.mts +211 -0
- package/dist/server.mjs +372 -0
- package/dist/session-title.contract-1UPlQFwN.mjs +17 -0
- package/dist/session-title.contract-C3tGUiK2.d.mts +132 -0
- package/dist/testing.d.mts +14 -0
- package/dist/testing.mjs +24 -0
- package/dist/tool-results.group-BEGx5hXv.mjs +17 -0
- package/dist/tool-results.group-BUjXDYDr.d.mts +16 -0
- package/dist/ui.d.mts +531 -0
- package/dist/ui.mjs +6678 -0
- package/package.json +120 -3
- package/src/contract/api-session.contract.ts +182 -0
- package/src/contract/conversation-client.contract.ts +13 -0
- package/src/contract/index.ts +26 -0
- package/src/contract/input-triggers.contract.ts +15 -0
- package/src/contract/session-controller.contract.ts +11 -0
- package/src/contract/session-title.contract.ts +30 -0
- package/src/contract/ui-conversation.contract.ts +15 -0
- package/src/contract/ui-session-status.contract.ts +15 -0
- package/src/contract/ui-session.contract.ts +16 -0
- package/src/contract/ui-workspace.contract.ts +83 -0
- package/src/deliverable.service.ts +74 -0
- package/src/endpoint/file-references.group.ts +43 -0
- package/src/endpoint/index.ts +8 -0
- package/src/endpoint/session-reference.group.ts +43 -0
- package/src/endpoint/tool-results.group.ts +35 -0
- package/src/first-prompt-llm.service.ts +38 -0
- package/src/index.ts +16 -0
- package/src/server/api-session.provide.ts +232 -0
- package/src/server/client-settings-defaults.service.ts +39 -0
- package/src/server/conversation-server.provide.ts +33 -0
- package/src/server/deliverable.provide.ts +5 -0
- package/src/server/first-prompt-llm.provide.ts +5 -0
- package/src/server/index.ts +24 -0
- package/src/server/open-in-app.service.ts +52 -0
- package/src/server/session-controller.remote.ts +11 -0
- package/src/server/session-reference.provide.ts +15 -0
- package/src/server/session-reference.service.ts +58 -0
- package/src/server/session-remote.provide.ts +31 -0
- package/src/server/session-status.service.ts +36 -0
- package/src/server/session-title.provide.ts +5 -0
- package/src/server/tool-results-endpoint.service.ts +56 -0
- package/src/server/tool-results.service.ts +59 -0
- package/src/session-title.service.ts +38 -0
- package/src/testing/index.ts +35 -0
- package/src/ui/agent-scopes.service.ts +20 -0
- package/src/ui/approval-slot.ts +33 -0
- package/src/ui/approval.provide.ts +5 -0
- package/src/ui/approval.service.ts +12 -0
- package/src/ui/conversation/attachment-slots.ts +23 -0
- package/src/ui/conversation/chat-slots.ts +67 -0
- package/src/ui/conversation/conversation-slots.ts +90 -0
- package/src/ui/conversation/conversation.token.ts +6 -0
- package/src/ui/conversation/file-actions-slots.ts +40 -0
- package/src/ui/conversation/index.ts +13 -0
- package/src/ui/conversation/message-quotes-slot.ts +34 -0
- package/src/ui/conversation/open-in-app-slots.ts +64 -0
- package/src/ui/conversation/secret-mask-slot.ts +23 -0
- package/src/ui/conversation/subagent-slots.ts +31 -0
- package/src/ui/conversation/tool-slots.ts +27 -0
- package/src/ui/conversation/trajectory-slot.ts +49 -0
- package/src/ui/conversation/workflow-run-slot.ts +31 -0
- package/src/ui/conversation-ui.provide.ts +32 -0
- package/src/ui/deliverable.provide.ts +14 -0
- package/src/ui/deliverable.slot.ts +46 -0
- package/src/ui/index.ts +64 -0
- package/src/ui/input/command-ui-slot.ts +45 -0
- package/src/ui/input/index.ts +5 -0
- package/src/ui/input/input-trigger-slot.ts +27 -0
- package/src/ui/input/input.token.ts +2 -0
- package/src/ui/input/reference-slot.ts +42 -0
- package/src/ui/model-selection-slots.ts +50 -0
- package/src/ui/permission-slots.provide.ts +10 -0
- package/src/ui/permission-ui.provide.ts +5 -0
- package/src/ui/ports.ts +3 -0
- package/src/ui/projections/projections.service.ts +220 -0
- package/src/ui/projections/provide.ts +11 -0
- package/src/ui/remote-namespace.ts +24 -0
- package/src/ui/remote-session.ts +220 -0
- package/src/ui/session-controller.service.ts +335 -0
- package/src/ui/session-layout.ts +44 -0
- package/src/ui/session-reference-endpoint.client.ts +37 -0
- package/src/ui/session-scope.contribution.ts +81 -0
- package/src/ui/session-status-slots.ts +45 -0
- package/src/ui/session-submission.ts +108 -0
- package/src/ui/session-ui.provide.ts +51 -0
- package/src/ui/sessions.provide.ts +48 -0
- package/src/ui/setting-ui.provide.ts +35 -0
- package/src/ui/settings-general-slots.ts +66 -0
- package/src/ui/settings-host.ts +28 -0
- package/src/ui/settings-models-slots.ts +43 -0
- package/src/ui/shell/directory-picker-native-slots.ts +83 -0
- package/src/ui/shell/index.ts +74 -0
- package/src/ui/shell/rightbar-seats.ts +321 -0
- package/src/ui/shell/session-panel-slots.ts +33 -0
- package/src/ui/shell/sidebar-document-preview-slots.ts +62 -0
- package/src/ui/shell/sidebar-slots.ts +33 -0
- package/src/ui/shell/workspace-slots.ts +75 -0
- package/src/ui/ui-permission.service.ts +78 -0
- package/src/ui/ui-session.token.ts +5 -0
- package/src/ui/ui-settings.token.ts +9 -0
- package/src/ui/upstream-context.ts +27 -0
- package/src/ui/user-questions-slots.ts +39 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// `sessionReferenceResolver/candidates` 的宿主面:上游 `SessionReferenceResolver`(`fromCordis` 接管)+
|
|
2
|
+
// 一条 wire 端点。
|
|
3
|
+
//
|
|
4
|
+
// 上游 `static inject = ['sessionQuery']`(`vendor/.../context/session-reference/src/index.ts:89`),
|
|
5
|
+
// `@Remote('candidates') remoteExportCandidates(agent, query, signal)`(同文件 `:281`)。
|
|
6
|
+
// 本行只做两件事:把 `SessionQuery` 交给它的 `mount`;把「wire 上的 `SessionId` → `Agent`」解析好再转发。
|
|
7
|
+
import SessionReferenceResolver from "@deepseek-ai/dsh-session-reference";
|
|
8
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
9
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
10
|
+
import { SessionQuery } from "@morlay/dsh-session";
|
|
11
|
+
import { AgentDirectory } from "@morlay/dsh-agent";
|
|
12
|
+
/** 上游 `SessionReferenceResolver` 里本行要转发的成员(形状直接取上游)。 */
|
|
13
|
+
type SessionReferenceFace = Pick<SessionReferenceResolver, "remoteExportCandidates">;
|
|
14
|
+
/**
|
|
15
|
+
* 适配面拿到的上游实例是 `unknown`(上游没发布服务时 `undefined`):按运行时校验收窄。
|
|
16
|
+
* @param value - 适配行挂载后拿到的上游实例。
|
|
17
|
+
* @returns `remoteExportCandidates` 是函数时是真。
|
|
18
|
+
*/
|
|
19
|
+
function isSessionReferenceFace(value: unknown): value is SessionReferenceFace {
|
|
20
|
+
return (
|
|
21
|
+
value !== null &&
|
|
22
|
+
typeof value === "object" &&
|
|
23
|
+
"remoteExportCandidates" in value &&
|
|
24
|
+
typeof value.remoteExportCandidates === "function"
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `maxReferenceBytes`:上游 schema 里是**必填**(`z.number().step(1).min(1)`,无默认),
|
|
29
|
+
* 由装配面给一个确定的部署值。8 MiB 与上游 web-app bundle 的会话引用上限同一量级:
|
|
30
|
+
* 引用进上下文的字节预算,超过就不再引用更多会话。
|
|
31
|
+
*/
|
|
32
|
+
const MAX_REFERENCE_BYTES = 8 * 1024 * 1024;
|
|
33
|
+
/**
|
|
34
|
+
* 契约:上游 `SessionReferenceResolver` 挂载后不向容器提供对外服务(对象/函数插件),面为空。
|
|
35
|
+
*
|
|
36
|
+
* 写出来是硬要求——`fromCordis(契约, 实现)` 必须先说清这个插件是什么面。
|
|
37
|
+
*/
|
|
38
|
+
@Injectable()
|
|
39
|
+
abstract class SessionReferenceDefaultContract {}
|
|
40
|
+
@Injectable()
|
|
41
|
+
export class SessionReferenceDefault extends fromCordis(
|
|
42
|
+
SessionReferenceDefaultContract,
|
|
43
|
+
SessionReferenceResolver,
|
|
44
|
+
) {
|
|
45
|
+
private readonly sessionQuery = inject(SessionQuery);
|
|
46
|
+
private readonly agents = inject(AgentDirectory);
|
|
47
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
48
|
+
// 配置走 `mount` 的第二个参数:上游 `Config` 在 `mount` 里按 schema 归一化(`maxReferenceBytes` 必填)。
|
|
49
|
+
const resolver = await this.mount(
|
|
50
|
+
ctx,
|
|
51
|
+
{ maxReferenceBytes: MAX_REFERENCE_BYTES },
|
|
52
|
+
{ sessionQuery: this.sessionQuery },
|
|
53
|
+
);
|
|
54
|
+
if (resolver === undefined || !isSessionReferenceFace(resolver)) {
|
|
55
|
+
throw new Error("sessionReferenceResolver: 上游实例缺少 remoteExportCandidates");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { provide } from "@morlay/zephyr";
|
|
2
|
+
// 这三份 root 与端点实现的 home 是会话数据面(`@morlay/dsh-session/server`):对话域只装配它们。
|
|
3
|
+
import {
|
|
4
|
+
provideSession,
|
|
5
|
+
provideSessionProjection,
|
|
6
|
+
provideSessionQuerySqlite,
|
|
7
|
+
} from "@morlay/dsh-session/server";
|
|
8
|
+
import { OpenInAppHostRow } from "./open-in-app.service.ts";
|
|
9
|
+
import { ToolResultsDefault } from "./tool-results.service.ts";
|
|
10
|
+
import { ToolResultsEndpointRow } from "./tool-results-endpoint.service.ts";
|
|
11
|
+
|
|
12
|
+
// 上游 wire 的宿主行:`remote.session`(`SessionController`),
|
|
13
|
+
// 外加 `remote.toolResults`(`ui-trajectory` 的 host 入口)与 `remote.fileReferences`(输入框 `@` 的文件候选)。
|
|
14
|
+
// `remote.skills`(`SessionSkillCatalog`)是技能域的面,随 `dsh-skill` 的装配装。
|
|
15
|
+
// 它们要 agent / 附件 / 上传 / 工作区 / working-directory / storage domain 那一整套服务,
|
|
16
|
+
// 所以单独成清单,由应用装配显式装上。
|
|
17
|
+
//
|
|
18
|
+
// **自带它读的三份 root**(真 store / 投影 / 查询):装配面只装这一面,不必再单列那三个。
|
|
19
|
+
export const provideSessionRemote = provide([
|
|
20
|
+
...provideSession(),
|
|
21
|
+
...provideSessionProjection(),
|
|
22
|
+
...provideSessionQuerySqlite(),
|
|
23
|
+
// `session` 组与 `fileReferences` 组的端点由 `provideApiSession()` 提供(上游实现)。
|
|
24
|
+
// 它**不在这里**:`api-session.provide.ts` 依赖 agent / attachment 等域的实现包,直接 import 会与本
|
|
25
|
+
// 文件形成循环(`provideApiSession is not iterable`)。装配面显式并列装上这两份清单即可。
|
|
26
|
+
// 「装上游」与「接 wire」是两行:前者发布 `SessionToolResults` 的 `watch`,后者继承契约把它注册到 wire 上。
|
|
27
|
+
ToolResultsDefault,
|
|
28
|
+
ToolResultsEndpointRow,
|
|
29
|
+
// 「打开方式」的 HTTP 端点(`/open-in-app/apps|icon|open`):不装它,界面上按钮在、点开是空的。
|
|
30
|
+
OpenInAppHostRow,
|
|
31
|
+
]);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// 「会话已读状态」的**宿主半**:上游 `SessionStatusService`(服务名 `sessionStatus`,Remote 命名空间同名)。
|
|
2
|
+
//
|
|
3
|
+
// 浏览器半(`SessionStatusSlots`)会 `$mount` 那份 descriptor 并调 `sessionStatus/follow`;
|
|
4
|
+
// 宿主缺这一行时 wire 上是
|
|
5
|
+
// `typert gateway: sessionStatus/follow: no active Remote method exports this endpoint`,
|
|
6
|
+
// 界面上表现为「提醒同步不了、请刷新页面重连」。
|
|
7
|
+
//
|
|
8
|
+
// 上游的 `static inject` 是 `['remoteAccess', 'sessions', 'sessionPersistence', 'typert']`:
|
|
9
|
+
// 四个都按下文显式交给它。
|
|
10
|
+
import { SessionStatusService } from "@deepseek-ai/dsh-client-ui-session-status";
|
|
11
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
12
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
13
|
+
import { RemoteAccess, TypertGateway } from "@morlay/zephyr-app";
|
|
14
|
+
import { SessionStore } from "@morlay/dsh-session";
|
|
15
|
+
import { SessionPersistence } from "@morlay/dsh-session-persistence";
|
|
16
|
+
|
|
17
|
+
/** 会话已读状态的宿主行。 */
|
|
18
|
+
@Injectable()
|
|
19
|
+
export class SessionStatusHost extends fromCordis(SessionStatusService) {
|
|
20
|
+
private readonly remoteAccess = inject(RemoteAccess);
|
|
21
|
+
|
|
22
|
+
private readonly sessions = inject(SessionStore);
|
|
23
|
+
|
|
24
|
+
private readonly sessionPersistence = inject(SessionPersistence);
|
|
25
|
+
|
|
26
|
+
private readonly typert = inject(TypertGateway);
|
|
27
|
+
|
|
28
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
29
|
+
await this.mount(ctx, undefined, {
|
|
30
|
+
remoteAccess: this.remoteAccess,
|
|
31
|
+
sessions: this.sessions,
|
|
32
|
+
sessionPersistence: this.sessionPersistence,
|
|
33
|
+
typert: this.typert,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// `toolResults` 组的**宿主实现**:继承 `endpoint/` 的契约类,转发到上游 `SessionToolResults`。
|
|
2
|
+
//
|
|
3
|
+
// 组名与方法名都来自契约(`@RemoteGroup` / `@RemoteMethod({ mode: "stream" })`),
|
|
4
|
+
// `registerRemoteGroup` 按 `mode` 自动走 `registerStream`——这里不出现 `"toolResults/watch"` 这种字符串。
|
|
5
|
+
import type {
|
|
6
|
+
SessionToolResultRequest,
|
|
7
|
+
SessionToolResultValue,
|
|
8
|
+
} from "@deepseek-ai/dsh-client-ui-trajectory";
|
|
9
|
+
import { SessionId } from "@morlay/dsh-session/endpoint";
|
|
10
|
+
import { inject, Injectable, type OnDispose } from "@morlay/zephyr";
|
|
11
|
+
import { RemoteHandlers } from "@morlay/zephyr-app";
|
|
12
|
+
import { RemoteGroup, registerRemoteGroup } from "@morlay/zephyr-app/remote";
|
|
13
|
+
import { ToolResultsEndpoint } from "../endpoint/tool-results.group.ts";
|
|
14
|
+
import { isToolResultsFace, ToolResultsDefault } from "./tool-results.service.ts";
|
|
15
|
+
|
|
16
|
+
/** `toolResults` 组的宿主实现。 */
|
|
17
|
+
@RemoteGroup()
|
|
18
|
+
@Injectable()
|
|
19
|
+
export class ToolResultsEndpointRow extends ToolResultsEndpoint implements OnDispose {
|
|
20
|
+
private readonly handlers = inject(RemoteHandlers);
|
|
21
|
+
|
|
22
|
+
/** 上游 `SessionToolResults` 的适配行发布的就是它本身(那条 `watch` 流)。 */
|
|
23
|
+
private readonly results = inject(ToolResultsDefault);
|
|
24
|
+
|
|
25
|
+
private readonly disposers: (() => void)[] = [];
|
|
26
|
+
|
|
27
|
+
onInit(): void {
|
|
28
|
+
// 装配期就报「上游实例与 wire 面不同步」,而不是等第一次请求炸成
|
|
29
|
+
// `this.results.watch is not a function`。
|
|
30
|
+
if (!isToolResultsFace(this.results)) {
|
|
31
|
+
throw new Error("toolResults: 上游实例缺少 watch");
|
|
32
|
+
}
|
|
33
|
+
this.disposers.push(registerRemoteGroup(this.handlers, this));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 逐帧给出某条工具结果的「可用性 + 当前值」。
|
|
38
|
+
* @param request - wire 的 `request`(`{ sessionId, seq }`;上游生成面也可能发平铺的同名字段)。
|
|
39
|
+
* @param signal - wire 的取消信号。
|
|
40
|
+
* @returns 逐帧的工具结果。
|
|
41
|
+
*/
|
|
42
|
+
override watch(
|
|
43
|
+
request: SessionToolResultRequest,
|
|
44
|
+
signal: AbortSignal,
|
|
45
|
+
): AsyncIterable<SessionToolResultValue> {
|
|
46
|
+
// 品牌与数字在边界上收一次:wire 上进来的是裸字符串 / 数字。
|
|
47
|
+
return this.results.watch(
|
|
48
|
+
{ sessionId: SessionId(String(request.sessionId)), seq: Number(request.seq) },
|
|
49
|
+
signal,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
onDispose(): void {
|
|
54
|
+
for (const dispose of this.disposers.splice(0)) dispose();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// 上游 `SessionToolResults`(`ui-trajectory` 的 host 入口)的**适配行**:只负责把它装起来。
|
|
2
|
+
//
|
|
3
|
+
// 上游 `static inject = ['sessions','typert']`(`client/ui-trajectory/src/index.ts:32`):它按会话保留
|
|
4
|
+
// 工具结果(`tools/result` 与 `session/event` 的通知),`watch(request, signal)` 逐帧给出
|
|
5
|
+
// 「可用性 + 当前值」。
|
|
6
|
+
//
|
|
7
|
+
// 为什么拆成两行:wire 端点行要 `extends ToolResultsEndpoint`(组名与方法名从契约的原型链上取),
|
|
8
|
+
// 而 `fromCordis(...)` 也是继承,不能同时继承。所以「装上游」在这里,「接 wire」在
|
|
9
|
+
// `server/tool-results-endpoint.service.ts`。
|
|
10
|
+
import SessionToolResults, {
|
|
11
|
+
type SessionToolResultValue,
|
|
12
|
+
} from "@deepseek-ai/dsh-client-ui-trajectory";
|
|
13
|
+
import { SessionStore } from "@morlay/dsh-session";
|
|
14
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
15
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
16
|
+
import { Typert } from "@morlay/zephyr-app";
|
|
17
|
+
|
|
18
|
+
/** 上游 `SessionToolResults` 里本行要转发的成员(形状直接取上游)。 */
|
|
19
|
+
export type ToolResultsFace = Pick<SessionToolResults, "watch">;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 适配面拿到的上游实例是 `unknown`(上游没发布服务时 `undefined`):按运行时校验收窄。
|
|
23
|
+
* @param value - 适配行挂载后拿到的上游实例。
|
|
24
|
+
* @returns `watch` 是函数时是真。
|
|
25
|
+
*/
|
|
26
|
+
export function isToolResultsFace(value: unknown): value is ToolResultsFace {
|
|
27
|
+
return (
|
|
28
|
+
value !== null &&
|
|
29
|
+
typeof value === "object" &&
|
|
30
|
+
"watch" in value &&
|
|
31
|
+
typeof value.watch === "function"
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** 契约:上游 `SessionToolResults` 对外的面(本行只声明 `watch`,类型直接取上游成员,不手抄)。 */
|
|
36
|
+
@Injectable()
|
|
37
|
+
abstract class SessionToolResultsContract {
|
|
38
|
+
/** 逐帧给出「可用性 + 当前值」(`watch(request, signal)`)。 */
|
|
39
|
+
abstract readonly watch: SessionToolResults["watch"];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* `remote.toolResults` 的上游宿主服务。
|
|
44
|
+
*
|
|
45
|
+
* 适配行**发布的是上游实例**:`inject(ToolResultsDefault)` 拿到的就是 `SessionToolResults`
|
|
46
|
+
* (它挂上来的那一面),wire 端点行因此直接调 `watch`。
|
|
47
|
+
*/
|
|
48
|
+
@Injectable()
|
|
49
|
+
export class ToolResultsDefault extends fromCordis(SessionToolResultsContract, SessionToolResults) {
|
|
50
|
+
private readonly sessions = inject(SessionStore);
|
|
51
|
+
|
|
52
|
+
private readonly typert = inject(Typert);
|
|
53
|
+
|
|
54
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
55
|
+
await this.mount(ctx, undefined, { sessions: this.sessions, typert: this.typert });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type { SessionToolResultValue };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AgentDirectory } from "@morlay/dsh-agent";
|
|
2
|
+
import { SessionStore } from "@morlay/dsh-session";
|
|
3
|
+
import { SessionProjectionStore } from "@morlay/dsh-session";
|
|
4
|
+
import SessionTitleService, {
|
|
5
|
+
type Config as SessionTitleConfig,
|
|
6
|
+
} from "@deepseek-ai/dsh-session-title";
|
|
7
|
+
import { Injectable, inject, type Context } from "@morlay/zephyr";
|
|
8
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
9
|
+
import { SessionTitle } from "./contract/session-title.contract.ts";
|
|
10
|
+
|
|
11
|
+
/** 默认预算:字数、字节与最终标题上限(装配面用 `configure` 覆盖)。 */
|
|
12
|
+
const DEFAULT_CONFIG: SessionTitleConfig = {
|
|
13
|
+
fallbackMaxWords: 5,
|
|
14
|
+
fallbackMaxBytes: 40,
|
|
15
|
+
maxTitleBytes: 80,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
@Injectable()
|
|
19
|
+
export class SessionTitleDefault extends fromCordis(SessionTitle, SessionTitleService) {
|
|
20
|
+
sessions = inject(SessionStore);
|
|
21
|
+
|
|
22
|
+
sessionProjections = inject(SessionProjectionStore);
|
|
23
|
+
|
|
24
|
+
agents = inject(AgentDirectory);
|
|
25
|
+
|
|
26
|
+
/** 行配置(清单条目的 `config`,`configure` 可覆盖):基类已接住,缺省用本文件的 `DEFAULT_CONFIG`。 */
|
|
27
|
+
private get rowOptions(): SessionTitleConfig {
|
|
28
|
+
return (this.rowConfig ?? DEFAULT_CONFIG) as SessionTitleConfig;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
32
|
+
await this.mount(ctx, this.rowOptions, {
|
|
33
|
+
sessions: this.sessions,
|
|
34
|
+
sessionProjections: this.sessionProjections,
|
|
35
|
+
agents: this.agents,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// `@morlay/dsh-conversation/testing`:本包 UI 测试的入口 = base 的 `test` + **每个用例自动跑的收尾**。
|
|
2
|
+
//
|
|
3
|
+
// 为什么是 fixture 而不是全局 `setupFiles`:`auto: true` 挂在**这个包导出的 `test`** 上,
|
|
4
|
+
// 谁 import 谁就得到这份收尾——从 import 行就读得出来,spec 里也不用写 `afterEach(cleanup)`。
|
|
5
|
+
import { cleanup } from "@testing-library/react";
|
|
6
|
+
import { test as base } from "@morlay/zephyr-app/testing";
|
|
7
|
+
import { vi } from "vitest";
|
|
8
|
+
|
|
9
|
+
export { describe, expect } from "@morlay/zephyr/testing";
|
|
10
|
+
export type { AppEnvFixture, AppEnvFixtures, TestingAppEnv } from "@morlay/zephyr-app/testing";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 挂了本包 `test` 的 spec 自动得到:
|
|
14
|
+
*
|
|
15
|
+
* - `rtlCleanup`:卸载本轮渲染的 DOM(`@testing-library/react` 的 `cleanup`);
|
|
16
|
+
* - `stubRestore`:还原 `vi.stubEnv` / `vi.stubGlobal` / `vi.spyOn`(不靠 vitest 的隐式全局开关)。
|
|
17
|
+
*/
|
|
18
|
+
export const test = base.extend({
|
|
19
|
+
rtlCleanup: [
|
|
20
|
+
async ({}, use: (value: undefined) => Promise<void>) => {
|
|
21
|
+
await use(undefined);
|
|
22
|
+
cleanup();
|
|
23
|
+
},
|
|
24
|
+
{ auto: true },
|
|
25
|
+
],
|
|
26
|
+
stubRestore: [
|
|
27
|
+
async ({}, use: (value: undefined) => Promise<void>) => {
|
|
28
|
+
await use(undefined);
|
|
29
|
+
vi.unstubAllEnvs();
|
|
30
|
+
vi.unstubAllGlobals();
|
|
31
|
+
vi.restoreAllMocks();
|
|
32
|
+
},
|
|
33
|
+
{ auto: true },
|
|
34
|
+
],
|
|
35
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 客户端侧的作用域解析:**会话域**知道 id ↔ 作用域,wire 只认 id(框架契约 `ClientScopeResolver`)。
|
|
2
|
+
//
|
|
3
|
+
// 为什么必须有:转发的请求(审批、用户提问)到浏览器只剩 `agentId`,而 listener 要靠
|
|
4
|
+
// `sessions.scopeOf(this)` 认出会话——解析不出来就直接 `next()`,用户看到的是一张卡都不弹。
|
|
5
|
+
//
|
|
6
|
+
// 本行实现框架契约 `ClientScopeResolver`,由 `Remote` **按名字晚绑定**读取:写成注入会成环
|
|
7
|
+
// (本行依赖 `SessionController`,而它依赖 `Remote`),环上的 fiber 永远停在 pending。
|
|
8
|
+
import { inject, Injectable } from "@morlay/zephyr";
|
|
9
|
+
import { ClientScopeResolver } from "@morlay/zephyr-app/client";
|
|
10
|
+
import { SessionId } from "@morlay/dsh-session/endpoint";
|
|
11
|
+
import { SessionController } from "@morlay/dsh-conversation/contract";
|
|
12
|
+
|
|
13
|
+
@Injectable()
|
|
14
|
+
export class AgentScopesDefault extends ClientScopeResolver {
|
|
15
|
+
private readonly sessions = inject(SessionController);
|
|
16
|
+
|
|
17
|
+
resolve(agentId: string): object | undefined {
|
|
18
|
+
return this.sessions.scope(SessionId(agentId));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// 上游审批卡片(client 行):`approval/request` 事件 → 会话里的批准/拒绝面。
|
|
2
|
+
//
|
|
3
|
+
// inject:`sessions` / `remote` / `uiSession` / `slots` / `locale`。审批请求靠 `remote.$on('approval/request')`
|
|
4
|
+
// 到达;宿主还没有这个事件源时它只是不弹卡片,不影响装配。
|
|
5
|
+
import * as UiApprovalPlugin from "@deepseek-ai/dsh-client-ui-approval/client";
|
|
6
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
7
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
8
|
+
import { Locale, Remote, Slots } from "@morlay/zephyr-app/client";
|
|
9
|
+
import { SessionController } from "@morlay/dsh-conversation/contract";
|
|
10
|
+
import { UiSession } from "./ui-session.token.ts";
|
|
11
|
+
|
|
12
|
+
@Injectable()
|
|
13
|
+
export class ApprovalSlot extends fromCordis(UiApprovalPlugin) {
|
|
14
|
+
private readonly sessions = inject(SessionController);
|
|
15
|
+
|
|
16
|
+
private readonly remote = inject(Remote);
|
|
17
|
+
|
|
18
|
+
private readonly uiSession = inject(UiSession);
|
|
19
|
+
|
|
20
|
+
private readonly slots = inject(Slots);
|
|
21
|
+
|
|
22
|
+
private readonly locale = inject(Locale);
|
|
23
|
+
|
|
24
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
25
|
+
await this.mount(ctx, undefined, {
|
|
26
|
+
sessions: this.sessions,
|
|
27
|
+
remote: this.remote,
|
|
28
|
+
uiSession: this.uiSession,
|
|
29
|
+
slots: this.slots,
|
|
30
|
+
locale: this.locale,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 注意:下面这个包根的 `apply()` 是空的(node 半),装它不注册任何东西——审批卡片由
|
|
2
|
+
// `approval-slot.ts` 的 `/client` 行提供。为什么先留着,见债务「`provideApproval()` 装的是空 apply」。
|
|
3
|
+
import { Injectable, type Context } from "@morlay/zephyr";
|
|
4
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
5
|
+
import * as UiApprovalPlugin from "@deepseek-ai/dsh-client-ui-approval";
|
|
6
|
+
|
|
7
|
+
@Injectable()
|
|
8
|
+
export class UiApproval extends fromCordis(UiApprovalPlugin) {
|
|
9
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
10
|
+
await this.mount(ctx);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// 上游附件 UI(client 行):作者区的附件按钮与共享画廊。
|
|
2
|
+
//
|
|
3
|
+
// inject 是 `slots` 与 `fileDrag`:前者是输入区与画廊的座位,后者是拖拽传输面(上游 `ui-file-drag` 行提供,
|
|
4
|
+
// 名字由上游 `ctx.provide` 留在那一行的作用域里,这里按字面键传)。
|
|
5
|
+
import * as UiAttachmentPlugin from "@deepseek-ai/dsh-client-ui-attachment/client";
|
|
6
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
7
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
8
|
+
import { FileDragDefault, Slots } from "@morlay/zephyr-app/client";
|
|
9
|
+
|
|
10
|
+
@Injectable()
|
|
11
|
+
export class AttachmentSlots extends fromCordis(UiAttachmentPlugin) {
|
|
12
|
+
private readonly slots = inject(Slots);
|
|
13
|
+
|
|
14
|
+
private readonly fileDrag = inject(FileDragDefault);
|
|
15
|
+
|
|
16
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
17
|
+
await this.mount(ctx, undefined, {
|
|
18
|
+
slots: this.slots,
|
|
19
|
+
// 字面键:上游按 `ctx.fileDrag` 读它。
|
|
20
|
+
fileDrag: this.fileDrag,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// 上游会话消息渲染(client 行):`ui-chat` 注册消息、步骤、工具调用等节点的渲染器。
|
|
2
|
+
//
|
|
3
|
+
// inject 是 10 个名字:`slots` / `sessions` / `uiWorkspace` / `uiSession` / `uiConversation` / `locale` /
|
|
4
|
+
// `configForms` / `remote` / 「会话组」 / `sidebarRight`。其中三个是本仓发布的服务令牌
|
|
5
|
+
// (`uiWorkspace`、`uiSession`、`uiConversation`、`sidebarRight`),带点的 「会话组」 按字面键给。
|
|
6
|
+
import * as UiChatPlugin from "@deepseek-ai/dsh-client-ui-chat/client";
|
|
7
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
8
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
9
|
+
import {
|
|
10
|
+
ConfigForms,
|
|
11
|
+
ClientConnection,
|
|
12
|
+
FileDragDefault,
|
|
13
|
+
Locale,
|
|
14
|
+
Remote,
|
|
15
|
+
Slots,
|
|
16
|
+
} from "@morlay/zephyr-app/client";
|
|
17
|
+
import { SessionController } from "@morlay/dsh-conversation/contract";
|
|
18
|
+
import { UiConversation } from "./conversation.token.ts";
|
|
19
|
+
import { SidebarRight } from "../ports.ts";
|
|
20
|
+
import { UiSession } from "../ui-session.token.ts";
|
|
21
|
+
import { UiWorkspace } from "@morlay/dsh-conversation/contract";
|
|
22
|
+
import { sessionGroupName } from "@morlay/dsh-session/endpoint";
|
|
23
|
+
import { remoteNamespaceKey } from "@morlay/zephyr-app/client/remote";
|
|
24
|
+
|
|
25
|
+
@Injectable()
|
|
26
|
+
export class ChatSlots extends fromCordis(UiChatPlugin) {
|
|
27
|
+
private readonly slots = inject(Slots);
|
|
28
|
+
|
|
29
|
+
private readonly sessions = inject(SessionController);
|
|
30
|
+
|
|
31
|
+
private readonly uiWorkspace = inject(UiWorkspace);
|
|
32
|
+
|
|
33
|
+
private readonly uiSession = inject(UiSession);
|
|
34
|
+
|
|
35
|
+
private readonly uiConversation = inject(UiConversation);
|
|
36
|
+
|
|
37
|
+
private readonly locale = inject(Locale);
|
|
38
|
+
|
|
39
|
+
private readonly configForms = inject(ConfigForms);
|
|
40
|
+
|
|
41
|
+
private readonly remote = inject(Remote);
|
|
42
|
+
|
|
43
|
+
private readonly sidebarRight = inject(SidebarRight);
|
|
44
|
+
|
|
45
|
+
private readonly connection = inject(ClientConnection);
|
|
46
|
+
|
|
47
|
+
private readonly fileDrag = inject(FileDragDefault);
|
|
48
|
+
|
|
49
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
50
|
+
await this.mount(ctx, undefined, {
|
|
51
|
+
slots: this.slots,
|
|
52
|
+
sessions: this.sessions,
|
|
53
|
+
uiWorkspace: this.uiWorkspace,
|
|
54
|
+
uiSession: this.uiSession,
|
|
55
|
+
uiConversation: this.uiConversation,
|
|
56
|
+
locale: this.locale,
|
|
57
|
+
configForms: this.configForms,
|
|
58
|
+
remote: this.remote,
|
|
59
|
+
// 带点的名字按**字面键**给出(`fromCordis` 的 deps 校验逐字匹配)。
|
|
60
|
+
[remoteNamespaceKey(sessionGroupName())]: this.remote,
|
|
61
|
+
sidebarRight: this.sidebarRight,
|
|
62
|
+
connection: this.connection,
|
|
63
|
+
// 字面键:上游按 `ctx.fileDrag` 读它。
|
|
64
|
+
fileDrag: this.fileDrag,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// 上游会话主视图(client 行):消息流、输入框、草案、会话头与右侧面板的座位。
|
|
2
|
+
//
|
|
3
|
+
// 它的 inject 是 8 个名字:`slots` / `sessions` / `fileUpload` / `uiSession` / `uiWorkspace` /
|
|
4
|
+
// `locale` / `configForms` / `uiResponsive`(最后一个是 alpha.3 新增的响应式行)。其中 `uiSession`、
|
|
5
|
+
// `uiWorkspace` 是另外两行内部的服务(走令牌发布),
|
|
6
|
+
// `fileUpload` 是 upload 域的运行时(`@morlay/dsh-upload/ui` 的契约):上游的
|
|
7
|
+
// `ConversationController` 靠它把粘贴/拖入的图片暂存到宿主(`uploadImage`)。
|
|
8
|
+
import * as UiConversationPlugin from "@deepseek-ai/dsh-client-ui-conversation/client";
|
|
9
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
10
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
11
|
+
import {
|
|
12
|
+
ConfigForms,
|
|
13
|
+
fixedSyncedConfig,
|
|
14
|
+
Locale,
|
|
15
|
+
Slots,
|
|
16
|
+
UiResponsive,
|
|
17
|
+
} from "@morlay/zephyr-app/client";
|
|
18
|
+
import { SessionController } from "@morlay/dsh-conversation/contract";
|
|
19
|
+
import { UiSession } from "../ui-session.token.ts";
|
|
20
|
+
import { UiConversation } from "./conversation.token.ts";
|
|
21
|
+
import { FileUpload } from "./conversation.token.ts";
|
|
22
|
+
import { UiWorkspace } from "@morlay/dsh-conversation/contract";
|
|
23
|
+
|
|
24
|
+
@Injectable()
|
|
25
|
+
export class ConversationSlots extends fromCordis(
|
|
26
|
+
// **单契约**:`UiConversation`(装配面)。上游 `apply` 里 `ctx.plugin(ConversationController, …)`
|
|
27
|
+
// 在行 ctx 的分层下建出会话控制器,控制器实例由它自己的 fiber 管,不需要我们再立一个令牌。
|
|
28
|
+
UiConversation,
|
|
29
|
+
UiConversationPlugin,
|
|
30
|
+
) {
|
|
31
|
+
private readonly slots = inject(Slots);
|
|
32
|
+
|
|
33
|
+
private readonly sessions = inject(SessionController);
|
|
34
|
+
|
|
35
|
+
private readonly uiSession = inject(UiSession);
|
|
36
|
+
|
|
37
|
+
private readonly uiWorkspace = inject(UiWorkspace);
|
|
38
|
+
|
|
39
|
+
private readonly locale = inject(Locale);
|
|
40
|
+
|
|
41
|
+
private readonly configForms = inject(ConfigForms);
|
|
42
|
+
|
|
43
|
+
private readonly fileUpload = inject(FileUpload);
|
|
44
|
+
|
|
45
|
+
private readonly uiResponsive = inject(UiResponsive);
|
|
46
|
+
|
|
47
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
48
|
+
// 上游 0.2.3 起这份 client 的 `Config` 由 Host 同步(`busyEnter` / `maxConcurrentFileUploads`)。
|
|
49
|
+
await this.mount(ctx, fixedSyncedConfig(["busyEnter", "maxConcurrentFileUploads"]), {
|
|
50
|
+
slots: this.slots,
|
|
51
|
+
sessions: this.sessions,
|
|
52
|
+
fileUpload: this.fileUpload,
|
|
53
|
+
uiSession: this.uiSession,
|
|
54
|
+
uiWorkspace: reportedUiWorkspace(this.uiWorkspace),
|
|
55
|
+
locale: this.locale,
|
|
56
|
+
configForms: this.configForms,
|
|
57
|
+
uiResponsive: this.uiResponsive,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 给上游一份「打开失败会说话」的 `uiWorkspace` 面。
|
|
64
|
+
*
|
|
65
|
+
* 上游 hero 的「选择工作区」在 `ConversationContent` 里是「void selectWorkspace(id).catch(回退 pending)」——
|
|
66
|
+
* 失败被吞掉,界面上只剩「点了没反应」(宿主零请求、控制台零输出,这次排查的成本全在这里)。
|
|
67
|
+
* 这里只包**会拒绝**的那一个入口:拒绝原样抛给调用方(语义不变),另外先打一条带原因的日志。
|
|
68
|
+
* @param face - `uiWorkspace` 契约实例(上游服务)。
|
|
69
|
+
* @returns 同一个面:`openWorkspace` 换成带报告的转发,其余成员随原型链原样可见。
|
|
70
|
+
*/
|
|
71
|
+
function reportedUiWorkspace(face: UiWorkspace): UiWorkspace {
|
|
72
|
+
return new Proxy(face, {
|
|
73
|
+
get: (target, property, receiver) => {
|
|
74
|
+
const value: unknown = Reflect.get(target, property, receiver);
|
|
75
|
+
if (property !== "openWorkspace" || typeof value !== "function") return value;
|
|
76
|
+
return (...args: never[]): unknown => {
|
|
77
|
+
const opening: unknown = Reflect.apply(value, target, args);
|
|
78
|
+
if (opening instanceof Promise) {
|
|
79
|
+
void opening.catch((reason: unknown) => {
|
|
80
|
+
console.error(
|
|
81
|
+
"[ui-conversation] 打开工作区失败(上游 hero 会把这条错误吞掉):",
|
|
82
|
+
reason,
|
|
83
|
+
);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return opening;
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// 会话域用到的两个跨行令牌:`uiConversation` 的 home 在对话域契约面(技能等域也要读它,行与令牌同一个
|
|
2
|
+
// owner);`fileUpload` 归 upload 域。
|
|
3
|
+
export { UiConversation } from "@morlay/dsh-conversation/contract";
|
|
4
|
+
|
|
5
|
+
// `FileUpload` 的**契约**归 upload 域(服务由那一域的运行时提供),这里转出,行与本文件其余令牌一起用。
|
|
6
|
+
export { FileUpload } from "@morlay/dsh-upload/ui";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// 上游 `ui-file-actions` 的 client 行:右键文件路径时的「显示」与「复制路径」。
|
|
2
|
+
//
|
|
3
|
+
// 上游 `export const inject = []`,真正的依赖在 `apply` 里的 `ctx.inject([...])`:
|
|
4
|
+
// `contextMenus` / `slots` / `locale` / `remote` / `remote.workspaceFiles` / `remote.session`。
|
|
5
|
+
import * as UiFileActionsPlugin from "@deepseek-ai/dsh-client-ui-file-actions/client";
|
|
6
|
+
import { inject, Injectable, type Context } from "@morlay/zephyr";
|
|
7
|
+
import { fromCordis } from "@morlay/zephyr/compat";
|
|
8
|
+
import { ContextMenus, Locale, Remote, Slots } from "@morlay/zephyr-app/client";
|
|
9
|
+
import { remoteNamespaceKey } from "@morlay/zephyr-app/client/remote";
|
|
10
|
+
import { sessionGroupName } from "@morlay/dsh-session/endpoint";
|
|
11
|
+
import { workspaceFilesGroupName } from "@morlay/dsh-workspace/endpoint";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* \`fileActions\` 的契约:与 \`OpenInApp\` 同理——这一行只注册菜单项,不提供服务。
|
|
15
|
+
*/
|
|
16
|
+
@Injectable()
|
|
17
|
+
export abstract class FileActions {}
|
|
18
|
+
|
|
19
|
+
@Injectable()
|
|
20
|
+
export class FileActionsSlots extends fromCordis(FileActions, UiFileActionsPlugin) {
|
|
21
|
+
private readonly contextMenus = inject(ContextMenus);
|
|
22
|
+
|
|
23
|
+
private readonly slots = inject(Slots);
|
|
24
|
+
|
|
25
|
+
private readonly locale = inject(Locale);
|
|
26
|
+
|
|
27
|
+
private readonly remote = inject(Remote);
|
|
28
|
+
|
|
29
|
+
override async onInit(ctx: Context): Promise<void> {
|
|
30
|
+
await this.mount(ctx, undefined, {
|
|
31
|
+
contextMenus: this.contextMenus,
|
|
32
|
+
slots: this.slots,
|
|
33
|
+
locale: this.locale,
|
|
34
|
+
remote: this.remote,
|
|
35
|
+
// 带点的名字是**字面键**。
|
|
36
|
+
[remoteNamespaceKey(sessionGroupName())]: this.remote,
|
|
37
|
+
[remoteNamespaceKey(workspaceFilesGroupName())]: this.remote,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// 会话界面(session 域的前端实现):主视图、内容渲染、输入区、会话内卡片。
|
|
2
|
+
export { ConversationSlots } from "./conversation-slots.ts";
|
|
3
|
+
export { ChatSlots } from "./chat-slots.ts";
|
|
4
|
+
export { MessageQuotesSlot } from "./message-quotes-slot.ts";
|
|
5
|
+
export { ToolSlots } from "./tool-slots.ts";
|
|
6
|
+
export { AttachmentSlots } from "./attachment-slots.ts";
|
|
7
|
+
export { FileActions, FileActionsSlots } from "./file-actions-slots.ts";
|
|
8
|
+
export { OpenInApp, OpenInAppSlots } from "./open-in-app-slots.ts";
|
|
9
|
+
export { SecretMaskSlot } from "./secret-mask-slot.ts";
|
|
10
|
+
export { SubagentSlots } from "./subagent-slots.ts";
|
|
11
|
+
export { TrajectorySlot } from "./trajectory-slot.ts";
|
|
12
|
+
export { WorkflowRunSlot } from "./workflow-run-slot.ts";
|
|
13
|
+
export { FileUpload, UiConversation } from "./conversation.token.ts";
|