Skip to content

Commit d4f6c53

Browse files
author
linyuan.yang
committed
调整布局
1 parent 7ac4e42 commit d4f6c53

12 files changed

Lines changed: 528 additions & 106 deletions

File tree

‎packages/admin/src/components/ResourceRefs.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const { t } = useI18n()
4747
border-radius: 8px;
4848
margin-left: var(--sui-sp-3);
4949
vertical-align: middle;
50+
white-space: nowrap;
5051
}
5152
.config-badge-ref { background: #dcfce7; color: #15803d; }
5253
.config-badge-unused { background: #fee2e2; color: #b91c1c; }

‎packages/chat-ui/src/WebSocketTransport.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FsUploadOptions, IChatTransport, ShellOption } from './transport'
1+
import type { CommandInfo, FsUploadOptions, IChatTransport, ShellOption } from './transport'
22
import {
33
ChatEventType,
44
type ChatEvent,
@@ -170,6 +170,11 @@ export class WebSocketTransport implements IChatTransport {
170170
return res.data ?? res ?? { agents: {}, savers: {}, notes: {}, wikis: {} }
171171
}
172172

173+
async listCommands(): Promise<CommandInfo[]> {
174+
const res = await this.api('/api/commands')
175+
return res.data ?? res ?? []
176+
}
177+
173178
async getSessionStatus(profileId: string): Promise<SessionStatus | null> {
174179
try {
175180
const res = await this.api(`/api/session-status?profileId=${encodeURIComponent(profileId)}`)

0 commit comments

Comments
 (0)