bincode-cli 1.0.1
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/AGENTS.md +27 -0
- package/README.md +15 -0
- package/bin/bincode +98 -0
- package/bunfig.toml +4 -0
- package/package.json +124 -0
- package/parsers-config.ts +239 -0
- package/script/build.ts +167 -0
- package/script/postinstall.mjs +206 -0
- package/script/publish.ts +99 -0
- package/script/schema.ts +47 -0
- package/src/acp/README.md +164 -0
- package/src/acp/agent.ts +1051 -0
- package/src/acp/session.ts +101 -0
- package/src/acp/types.ts +22 -0
- package/src/agent/agent.ts +398 -0
- package/src/agent/generate.txt +75 -0
- package/src/agent/prompt/compaction.txt +12 -0
- package/src/agent/prompt/explore.txt +18 -0
- package/src/agent/prompt/summary.txt +10 -0
- package/src/agent/prompt/title.txt +36 -0
- package/src/auth/bineric-login.ts +506 -0
- package/src/auth/index.ts +70 -0
- package/src/bun/index.ts +114 -0
- package/src/bus/bus-event.ts +43 -0
- package/src/bus/global.ts +10 -0
- package/src/bus/index.ts +105 -0
- package/src/cli/auth-check.ts +61 -0
- package/src/cli/bootstrap.ts +21 -0
- package/src/cli/cmd/acp.ts +88 -0
- package/src/cli/cmd/agent.ts +256 -0
- package/src/cli/cmd/auth.ts +436 -0
- package/src/cli/cmd/cmd.ts +7 -0
- package/src/cli/cmd/debug/config.ts +15 -0
- package/src/cli/cmd/debug/file.ts +91 -0
- package/src/cli/cmd/debug/index.ts +43 -0
- package/src/cli/cmd/debug/lsp.ts +48 -0
- package/src/cli/cmd/debug/ripgrep.ts +83 -0
- package/src/cli/cmd/debug/scrap.ts +15 -0
- package/src/cli/cmd/debug/skill.ts +15 -0
- package/src/cli/cmd/debug/snapshot.ts +48 -0
- package/src/cli/cmd/export.ts +88 -0
- package/src/cli/cmd/generate.ts +38 -0
- package/src/cli/cmd/github.ts +1399 -0
- package/src/cli/cmd/import.ts +98 -0
- package/src/cli/cmd/login.ts +112 -0
- package/src/cli/cmd/logout.ts +38 -0
- package/src/cli/cmd/mcp.ts +654 -0
- package/src/cli/cmd/models.ts +77 -0
- package/src/cli/cmd/pr.ts +112 -0
- package/src/cli/cmd/run.ts +368 -0
- package/src/cli/cmd/serve.ts +31 -0
- package/src/cli/cmd/session.ts +106 -0
- package/src/cli/cmd/stats.ts +298 -0
- package/src/cli/cmd/tui/app.tsx +669 -0
- package/src/cli/cmd/tui/attach.ts +30 -0
- package/src/cli/cmd/tui/component/border.tsx +21 -0
- package/src/cli/cmd/tui/component/dialog-agent.tsx +31 -0
- package/src/cli/cmd/tui/component/dialog-command.tsx +123 -0
- package/src/cli/cmd/tui/component/dialog-mcp.tsx +86 -0
- package/src/cli/cmd/tui/component/dialog-model.tsx +223 -0
- package/src/cli/cmd/tui/component/dialog-provider.tsx +224 -0
- package/src/cli/cmd/tui/component/dialog-session-list.tsx +102 -0
- package/src/cli/cmd/tui/component/dialog-session-rename.tsx +31 -0
- package/src/cli/cmd/tui/component/dialog-status.tsx +162 -0
- package/src/cli/cmd/tui/component/dialog-tag.tsx +44 -0
- package/src/cli/cmd/tui/component/dialog-theme-list.tsx +50 -0
- package/src/cli/cmd/tui/component/logo.tsx +32 -0
- package/src/cli/cmd/tui/component/prompt/autocomplete.tsx +560 -0
- package/src/cli/cmd/tui/component/prompt/history.tsx +108 -0
- package/src/cli/cmd/tui/component/prompt/index.tsx +1052 -0
- package/src/cli/cmd/tui/context/args.tsx +14 -0
- package/src/cli/cmd/tui/context/directory.ts +13 -0
- package/src/cli/cmd/tui/context/exit.tsx +23 -0
- package/src/cli/cmd/tui/context/helper.tsx +25 -0
- package/src/cli/cmd/tui/context/keybind.tsx +101 -0
- package/src/cli/cmd/tui/context/kv.tsx +49 -0
- package/src/cli/cmd/tui/context/local.tsx +339 -0
- package/src/cli/cmd/tui/context/prompt.tsx +18 -0
- package/src/cli/cmd/tui/context/route.tsx +46 -0
- package/src/cli/cmd/tui/context/sdk.tsx +74 -0
- package/src/cli/cmd/tui/context/sync.tsx +372 -0
- package/src/cli/cmd/tui/context/theme/aura.json +69 -0
- package/src/cli/cmd/tui/context/theme/ayu.json +80 -0
- package/src/cli/cmd/tui/context/theme/bincode.json +245 -0
- package/src/cli/cmd/tui/context/theme/catppuccin-frappe.json +233 -0
- package/src/cli/cmd/tui/context/theme/catppuccin-macchiato.json +233 -0
- package/src/cli/cmd/tui/context/theme/catppuccin.json +112 -0
- package/src/cli/cmd/tui/context/theme/cobalt2.json +228 -0
- package/src/cli/cmd/tui/context/theme/cursor.json +249 -0
- package/src/cli/cmd/tui/context/theme/dracula.json +219 -0
- package/src/cli/cmd/tui/context/theme/everforest.json +241 -0
- package/src/cli/cmd/tui/context/theme/flexoki.json +237 -0
- package/src/cli/cmd/tui/context/theme/github.json +233 -0
- package/src/cli/cmd/tui/context/theme/gruvbox.json +95 -0
- package/src/cli/cmd/tui/context/theme/kanagawa.json +77 -0
- package/src/cli/cmd/tui/context/theme/lucent-orng.json +227 -0
- package/src/cli/cmd/tui/context/theme/material.json +235 -0
- package/src/cli/cmd/tui/context/theme/matrix.json +77 -0
- package/src/cli/cmd/tui/context/theme/mercury.json +252 -0
- package/src/cli/cmd/tui/context/theme/monokai.json +221 -0
- package/src/cli/cmd/tui/context/theme/nightowl.json +221 -0
- package/src/cli/cmd/tui/context/theme/nord.json +223 -0
- package/src/cli/cmd/tui/context/theme/one-dark.json +84 -0
- package/src/cli/cmd/tui/context/theme/orng.json +245 -0
- package/src/cli/cmd/tui/context/theme/palenight.json +222 -0
- package/src/cli/cmd/tui/context/theme/rosepine.json +234 -0
- package/src/cli/cmd/tui/context/theme/solarized.json +223 -0
- package/src/cli/cmd/tui/context/theme/synthwave84.json +226 -0
- package/src/cli/cmd/tui/context/theme/tokyonight.json +243 -0
- package/src/cli/cmd/tui/context/theme/vercel.json +245 -0
- package/src/cli/cmd/tui/context/theme/vesper.json +218 -0
- package/src/cli/cmd/tui/context/theme/zenburn.json +223 -0
- package/src/cli/cmd/tui/context/theme.tsx +1109 -0
- package/src/cli/cmd/tui/event.ts +40 -0
- package/src/cli/cmd/tui/routes/home.tsx +105 -0
- package/src/cli/cmd/tui/routes/session/dialog-fork-from-timeline.tsx +64 -0
- package/src/cli/cmd/tui/routes/session/dialog-message.tsx +109 -0
- package/src/cli/cmd/tui/routes/session/dialog-subagent.tsx +26 -0
- package/src/cli/cmd/tui/routes/session/dialog-timeline.tsx +47 -0
- package/src/cli/cmd/tui/routes/session/footer.tsx +88 -0
- package/src/cli/cmd/tui/routes/session/header.tsx +141 -0
- package/src/cli/cmd/tui/routes/session/index.tsx +1888 -0
- package/src/cli/cmd/tui/routes/session/sidebar.tsx +321 -0
- package/src/cli/cmd/tui/spawn.ts +60 -0
- package/src/cli/cmd/tui/thread.ts +120 -0
- package/src/cli/cmd/tui/ui/dialog-alert.tsx +57 -0
- package/src/cli/cmd/tui/ui/dialog-confirm.tsx +83 -0
- package/src/cli/cmd/tui/ui/dialog-help.tsx +38 -0
- package/src/cli/cmd/tui/ui/dialog-prompt.tsx +77 -0
- package/src/cli/cmd/tui/ui/dialog-select.tsx +330 -0
- package/src/cli/cmd/tui/ui/dialog.tsx +170 -0
- package/src/cli/cmd/tui/ui/spinner.ts +368 -0
- package/src/cli/cmd/tui/ui/toast.tsx +100 -0
- package/src/cli/cmd/tui/util/clipboard.ts +127 -0
- package/src/cli/cmd/tui/util/editor.ts +32 -0
- package/src/cli/cmd/tui/util/terminal.ts +114 -0
- package/src/cli/cmd/tui/worker.ts +63 -0
- package/src/cli/cmd/uninstall.ts +344 -0
- package/src/cli/cmd/upgrade.ts +67 -0
- package/src/cli/cmd/web.ts +84 -0
- package/src/cli/error.ts +55 -0
- package/src/cli/ui.ts +84 -0
- package/src/cli/upgrade.ts +25 -0
- package/src/command/index.ts +80 -0
- package/src/command/template/initialize.txt +10 -0
- package/src/command/template/review.txt +97 -0
- package/src/config/config.ts +995 -0
- package/src/config/markdown.ts +41 -0
- package/src/env/index.ts +26 -0
- package/src/file/ignore.ts +83 -0
- package/src/file/index.ts +328 -0
- package/src/file/ripgrep.ts +393 -0
- package/src/file/time.ts +64 -0
- package/src/file/watcher.ts +103 -0
- package/src/flag/flag.ts +46 -0
- package/src/format/formatter.ts +315 -0
- package/src/format/index.ts +137 -0
- package/src/global/index.ts +52 -0
- package/src/id/id.ts +73 -0
- package/src/ide/index.ts +76 -0
- package/src/index.ts +217 -0
- package/src/installation/index.ts +196 -0
- package/src/lsp/client.ts +229 -0
- package/src/lsp/index.ts +485 -0
- package/src/lsp/language.ts +116 -0
- package/src/lsp/server.ts +1895 -0
- package/src/mcp/auth.ts +135 -0
- package/src/mcp/index.ts +654 -0
- package/src/mcp/oauth-callback.ts +200 -0
- package/src/mcp/oauth-provider.ts +154 -0
- package/src/patch/index.ts +622 -0
- package/src/permission/index.ts +199 -0
- package/src/plugin/index.ts +101 -0
- package/src/project/bootstrap.ts +31 -0
- package/src/project/instance.ts +78 -0
- package/src/project/project.ts +221 -0
- package/src/project/state.ts +65 -0
- package/src/project/vcs.ts +76 -0
- package/src/provider/auth.ts +143 -0
- package/src/provider/models-macro.ts +11 -0
- package/src/provider/models.ts +106 -0
- package/src/provider/provider.ts +1071 -0
- package/src/provider/sdk/openai-compatible/src/README.md +5 -0
- package/src/provider/sdk/openai-compatible/src/index.ts +2 -0
- package/src/provider/sdk/openai-compatible/src/openai-compatible-provider.ts +101 -0
- package/src/provider/sdk/openai-compatible/src/responses/convert-to-openai-responses-input.ts +303 -0
- package/src/provider/sdk/openai-compatible/src/responses/map-openai-responses-finish-reason.ts +22 -0
- package/src/provider/sdk/openai-compatible/src/responses/openai-config.ts +18 -0
- package/src/provider/sdk/openai-compatible/src/responses/openai-error.ts +22 -0
- package/src/provider/sdk/openai-compatible/src/responses/openai-responses-api-types.ts +207 -0
- package/src/provider/sdk/openai-compatible/src/responses/openai-responses-language-model.ts +1713 -0
- package/src/provider/sdk/openai-compatible/src/responses/openai-responses-prepare-tools.ts +177 -0
- package/src/provider/sdk/openai-compatible/src/responses/openai-responses-settings.ts +1 -0
- package/src/provider/sdk/openai-compatible/src/responses/tool/code-interpreter.ts +88 -0
- package/src/provider/sdk/openai-compatible/src/responses/tool/file-search.ts +128 -0
- package/src/provider/sdk/openai-compatible/src/responses/tool/image-generation.ts +115 -0
- package/src/provider/sdk/openai-compatible/src/responses/tool/local-shell.ts +65 -0
- package/src/provider/sdk/openai-compatible/src/responses/tool/web-search-preview.ts +104 -0
- package/src/provider/sdk/openai-compatible/src/responses/tool/web-search.ts +103 -0
- package/src/provider/transform.ts +455 -0
- package/src/pty/index.ts +231 -0
- package/src/server/error.ts +36 -0
- package/src/server/project.ts +79 -0
- package/src/server/server.ts +2642 -0
- package/src/server/tui.ts +71 -0
- package/src/session/compaction.ts +223 -0
- package/src/session/index.ts +458 -0
- package/src/session/llm.ts +201 -0
- package/src/session/message-v2.ts +659 -0
- package/src/session/message.ts +189 -0
- package/src/session/processor.ts +409 -0
- package/src/session/prompt/anthropic-20250930.txt +166 -0
- package/src/session/prompt/anthropic.txt +104 -0
- package/src/session/prompt/anthropic_spoof.txt +1 -0
- package/src/session/prompt/beast.txt +147 -0
- package/src/session/prompt/build-switch.txt +5 -0
- package/src/session/prompt/codex.txt +318 -0
- package/src/session/prompt/copilot-gpt-5.txt +143 -0
- package/src/session/prompt/gemini.txt +155 -0
- package/src/session/prompt/max-steps.txt +16 -0
- package/src/session/prompt/plan-reminder-anthropic.txt +67 -0
- package/src/session/prompt/plan.txt +26 -0
- package/src/session/prompt/polaris.txt +106 -0
- package/src/session/prompt/qwen.txt +109 -0
- package/src/session/prompt.ts +1446 -0
- package/src/session/retry.ts +86 -0
- package/src/session/revert.ts +108 -0
- package/src/session/status.ts +76 -0
- package/src/session/summary.ts +194 -0
- package/src/session/system.ts +120 -0
- package/src/session/todo.ts +37 -0
- package/src/share/share-next.ts +194 -0
- package/src/share/share.ts +87 -0
- package/src/shell/shell.ts +67 -0
- package/src/skill/index.ts +1 -0
- package/src/skill/skill.ts +83 -0
- package/src/snapshot/index.ts +197 -0
- package/src/storage/storage.ts +226 -0
- package/src/tool/bash.ts +306 -0
- package/src/tool/bash.txt +158 -0
- package/src/tool/batch.ts +175 -0
- package/src/tool/batch.txt +24 -0
- package/src/tool/codesearch.ts +138 -0
- package/src/tool/codesearch.txt +12 -0
- package/src/tool/edit.ts +675 -0
- package/src/tool/edit.txt +10 -0
- package/src/tool/glob.ts +65 -0
- package/src/tool/glob.txt +6 -0
- package/src/tool/grep.ts +121 -0
- package/src/tool/grep.txt +8 -0
- package/src/tool/invalid.ts +17 -0
- package/src/tool/ls.ts +110 -0
- package/src/tool/ls.txt +1 -0
- package/src/tool/lsp-diagnostics.ts +26 -0
- package/src/tool/lsp-diagnostics.txt +1 -0
- package/src/tool/lsp-hover.ts +31 -0
- package/src/tool/lsp-hover.txt +1 -0
- package/src/tool/lsp.ts +87 -0
- package/src/tool/lsp.txt +19 -0
- package/src/tool/multiedit.ts +46 -0
- package/src/tool/multiedit.txt +41 -0
- package/src/tool/patch.ts +233 -0
- package/src/tool/patch.txt +1 -0
- package/src/tool/read.ts +219 -0
- package/src/tool/read.txt +12 -0
- package/src/tool/registry.ts +162 -0
- package/src/tool/skill.ts +100 -0
- package/src/tool/task.ts +136 -0
- package/src/tool/task.txt +60 -0
- package/src/tool/todo.ts +39 -0
- package/src/tool/todoread.txt +14 -0
- package/src/tool/todowrite.txt +167 -0
- package/src/tool/tool.ts +71 -0
- package/src/tool/webfetch.ts +187 -0
- package/src/tool/webfetch.txt +13 -0
- package/src/tool/websearch.ts +150 -0
- package/src/tool/websearch.txt +11 -0
- package/src/tool/write.ts +110 -0
- package/src/tool/write.txt +8 -0
- package/src/util/archive.ts +16 -0
- package/src/util/color.ts +19 -0
- package/src/util/context.ts +25 -0
- package/src/util/defer.ts +12 -0
- package/src/util/eventloop.ts +20 -0
- package/src/util/filesystem.ts +83 -0
- package/src/util/fn.ts +11 -0
- package/src/util/iife.ts +3 -0
- package/src/util/keybind.ts +102 -0
- package/src/util/lazy.ts +11 -0
- package/src/util/locale.ts +81 -0
- package/src/util/lock.ts +98 -0
- package/src/util/log.ts +180 -0
- package/src/util/queue.ts +32 -0
- package/src/util/rpc.ts +42 -0
- package/src/util/scrap.ts +10 -0
- package/src/util/signal.ts +12 -0
- package/src/util/timeout.ts +14 -0
- package/src/util/token.ts +7 -0
- package/src/util/wildcard.ts +54 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BusEvent } from "@/bus/bus-event"
|
|
2
|
+
import { Bus } from "@/bus"
|
|
3
|
+
import z from "zod"
|
|
4
|
+
|
|
5
|
+
export const TuiEvent = {
|
|
6
|
+
PromptAppend: BusEvent.define("tui.prompt.append", z.object({ text: z.string() })),
|
|
7
|
+
CommandExecute: BusEvent.define(
|
|
8
|
+
"tui.command.execute",
|
|
9
|
+
z.object({
|
|
10
|
+
command: z.union([
|
|
11
|
+
z.enum([
|
|
12
|
+
"session.list",
|
|
13
|
+
"session.new",
|
|
14
|
+
"session.share",
|
|
15
|
+
"session.interrupt",
|
|
16
|
+
"session.compact",
|
|
17
|
+
"session.page.up",
|
|
18
|
+
"session.page.down",
|
|
19
|
+
"session.half.page.up",
|
|
20
|
+
"session.half.page.down",
|
|
21
|
+
"session.first",
|
|
22
|
+
"session.last",
|
|
23
|
+
"prompt.clear",
|
|
24
|
+
"prompt.submit",
|
|
25
|
+
"agent.cycle",
|
|
26
|
+
]),
|
|
27
|
+
z.string(),
|
|
28
|
+
]),
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
ToastShow: BusEvent.define(
|
|
32
|
+
"tui.toast.show",
|
|
33
|
+
z.object({
|
|
34
|
+
title: z.string().optional(),
|
|
35
|
+
message: z.string(),
|
|
36
|
+
variant: z.enum(["info", "success", "warning", "error"]),
|
|
37
|
+
duration: z.number().default(5000).optional().describe("Duration in milliseconds"),
|
|
38
|
+
}),
|
|
39
|
+
),
|
|
40
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Prompt, type PromptRef } from "@tui/component/prompt"
|
|
2
|
+
import { createMemo, Match, onMount, Show, Switch } from "solid-js"
|
|
3
|
+
import { useTheme } from "@tui/context/theme"
|
|
4
|
+
import { Logo } from "../component/logo"
|
|
5
|
+
import { Locale } from "@/util/locale"
|
|
6
|
+
import { useSync } from "../context/sync"
|
|
7
|
+
import { Toast } from "../ui/toast"
|
|
8
|
+
import { useArgs } from "../context/args"
|
|
9
|
+
import { useDirectory } from "../context/directory"
|
|
10
|
+
import { useRoute, useRouteData } from "@tui/context/route"
|
|
11
|
+
import { usePromptRef } from "../context/prompt"
|
|
12
|
+
import { Installation } from "@/installation"
|
|
13
|
+
|
|
14
|
+
// TODO: what is the best way to do this?
|
|
15
|
+
let once = false
|
|
16
|
+
|
|
17
|
+
export function Home() {
|
|
18
|
+
const sync = useSync()
|
|
19
|
+
const { theme } = useTheme()
|
|
20
|
+
const route = useRouteData("home")
|
|
21
|
+
const promptRef = usePromptRef()
|
|
22
|
+
const mcp = createMemo(() => Object.keys(sync.data.mcp).length > 0)
|
|
23
|
+
const mcpError = createMemo(() => {
|
|
24
|
+
return Object.values(sync.data.mcp).some((x) => x.status === "failed")
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const connectedMcpCount = createMemo(() => {
|
|
28
|
+
return Object.values(sync.data.mcp).filter((x) => x.status === "connected").length
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const Hint = (
|
|
32
|
+
<Show when={connectedMcpCount() > 0}>
|
|
33
|
+
<box flexShrink={0} flexDirection="row" gap={1}>
|
|
34
|
+
<text fg={theme.text}>
|
|
35
|
+
<Switch>
|
|
36
|
+
<Match when={mcpError()}>
|
|
37
|
+
<span style={{ fg: theme.error }}>•</span> mcp errors{" "}
|
|
38
|
+
<span style={{ fg: theme.textMuted }}>ctrl+x s</span>
|
|
39
|
+
</Match>
|
|
40
|
+
<Match when={true}>
|
|
41
|
+
<span style={{ fg: theme.success }}>•</span>{" "}
|
|
42
|
+
{Locale.pluralize(connectedMcpCount(), "{} mcp server", "{} mcp servers")}
|
|
43
|
+
</Match>
|
|
44
|
+
</Switch>
|
|
45
|
+
</text>
|
|
46
|
+
</box>
|
|
47
|
+
</Show>
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
let prompt: PromptRef
|
|
51
|
+
const args = useArgs()
|
|
52
|
+
onMount(() => {
|
|
53
|
+
if (once) return
|
|
54
|
+
if (route.initialPrompt) {
|
|
55
|
+
prompt.set(route.initialPrompt)
|
|
56
|
+
once = true
|
|
57
|
+
} else if (args.prompt) {
|
|
58
|
+
prompt.set({ input: args.prompt, parts: [] })
|
|
59
|
+
once = true
|
|
60
|
+
prompt.submit()
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
const directory = useDirectory()
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<>
|
|
67
|
+
<box flexGrow={1} justifyContent="center" alignItems="center" paddingLeft={2} paddingRight={2} gap={1}>
|
|
68
|
+
<Logo />
|
|
69
|
+
<box width="100%" maxWidth={75} zIndex={1000} paddingTop={1}>
|
|
70
|
+
<Prompt
|
|
71
|
+
ref={(r) => {
|
|
72
|
+
prompt = r
|
|
73
|
+
promptRef.set(r)
|
|
74
|
+
}}
|
|
75
|
+
hint={Hint}
|
|
76
|
+
/>
|
|
77
|
+
</box>
|
|
78
|
+
<Toast />
|
|
79
|
+
</box>
|
|
80
|
+
<box paddingTop={1} paddingBottom={1} paddingLeft={2} paddingRight={2} flexDirection="row" flexShrink={0} gap={2}>
|
|
81
|
+
<text fg={theme.textMuted}>{directory()}</text>
|
|
82
|
+
<box gap={1} flexDirection="row" flexShrink={0}>
|
|
83
|
+
<Show when={mcp()}>
|
|
84
|
+
<text fg={theme.text}>
|
|
85
|
+
<Switch>
|
|
86
|
+
<Match when={mcpError()}>
|
|
87
|
+
<span style={{ fg: theme.error }}>⊙ </span>
|
|
88
|
+
</Match>
|
|
89
|
+
<Match when={true}>
|
|
90
|
+
<span style={{ fg: theme.success }}>⊙ </span>
|
|
91
|
+
</Match>
|
|
92
|
+
</Switch>
|
|
93
|
+
{connectedMcpCount()} MCP
|
|
94
|
+
</text>
|
|
95
|
+
<text fg={theme.textMuted}>/status</text>
|
|
96
|
+
</Show>
|
|
97
|
+
</box>
|
|
98
|
+
<box flexGrow={1} />
|
|
99
|
+
<box flexShrink={0}>
|
|
100
|
+
<text fg={theme.textMuted}>{Installation.VERSION}</text>
|
|
101
|
+
</box>
|
|
102
|
+
</box>
|
|
103
|
+
</>
|
|
104
|
+
)
|
|
105
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createMemo, onMount } from "solid-js"
|
|
2
|
+
import { useSync } from "@tui/context/sync"
|
|
3
|
+
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
|
|
4
|
+
import type { TextPart } from "@bincode-ai/sdk/v2"
|
|
5
|
+
import { Locale } from "@/util/locale"
|
|
6
|
+
import { useSDK } from "@tui/context/sdk"
|
|
7
|
+
import { useRoute } from "@tui/context/route"
|
|
8
|
+
import { useDialog } from "../../ui/dialog"
|
|
9
|
+
import type { PromptInfo } from "@tui/component/prompt/history"
|
|
10
|
+
|
|
11
|
+
export function DialogForkFromTimeline(props: { sessionID: string; onMove: (messageID: string) => void }) {
|
|
12
|
+
const sync = useSync()
|
|
13
|
+
const dialog = useDialog()
|
|
14
|
+
const sdk = useSDK()
|
|
15
|
+
const route = useRoute()
|
|
16
|
+
|
|
17
|
+
onMount(() => {
|
|
18
|
+
dialog.setSize("large")
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const options = createMemo((): DialogSelectOption<string>[] => {
|
|
22
|
+
const messages = sync.data.message[props.sessionID] ?? []
|
|
23
|
+
const result = [] as DialogSelectOption<string>[]
|
|
24
|
+
for (const message of messages) {
|
|
25
|
+
if (message.role !== "user") continue
|
|
26
|
+
const part = (sync.data.part[message.id] ?? []).find(
|
|
27
|
+
(x) => x.type === "text" && !x.synthetic && !x.ignored,
|
|
28
|
+
) as TextPart
|
|
29
|
+
if (!part) continue
|
|
30
|
+
result.push({
|
|
31
|
+
title: part.text.replace(/\n/g, " "),
|
|
32
|
+
value: message.id,
|
|
33
|
+
footer: Locale.time(message.time.created),
|
|
34
|
+
onSelect: async (dialog) => {
|
|
35
|
+
const forked = await sdk.client.session.fork({
|
|
36
|
+
sessionID: props.sessionID,
|
|
37
|
+
messageID: message.id,
|
|
38
|
+
})
|
|
39
|
+
const parts = sync.data.part[message.id] ?? []
|
|
40
|
+
const initialPrompt = parts.reduce(
|
|
41
|
+
(agg, part) => {
|
|
42
|
+
if (part.type === "text") {
|
|
43
|
+
if (!part.synthetic) agg.input += part.text
|
|
44
|
+
}
|
|
45
|
+
if (part.type === "file") agg.parts.push(part)
|
|
46
|
+
return agg
|
|
47
|
+
},
|
|
48
|
+
{ input: "", parts: [] as PromptInfo["parts"] },
|
|
49
|
+
)
|
|
50
|
+
route.navigate({
|
|
51
|
+
sessionID: forked.data!.id,
|
|
52
|
+
type: "session",
|
|
53
|
+
initialPrompt,
|
|
54
|
+
})
|
|
55
|
+
dialog.clear()
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
result.reverse()
|
|
60
|
+
return result
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
return <DialogSelect onMove={(option) => props.onMove(option.value)} title="Fork from message" options={options()} />
|
|
64
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { createMemo } from "solid-js"
|
|
2
|
+
import { useSync } from "@tui/context/sync"
|
|
3
|
+
import { DialogSelect } from "@tui/ui/dialog-select"
|
|
4
|
+
import { useSDK } from "@tui/context/sdk"
|
|
5
|
+
import { useRoute } from "@tui/context/route"
|
|
6
|
+
import { Clipboard } from "@tui/util/clipboard"
|
|
7
|
+
import type { PromptInfo } from "@tui/component/prompt/history"
|
|
8
|
+
|
|
9
|
+
export function DialogMessage(props: {
|
|
10
|
+
messageID: string
|
|
11
|
+
sessionID: string
|
|
12
|
+
setPrompt?: (prompt: PromptInfo) => void
|
|
13
|
+
}) {
|
|
14
|
+
const sync = useSync()
|
|
15
|
+
const sdk = useSDK()
|
|
16
|
+
const message = createMemo(() => sync.data.message[props.sessionID]?.find((x) => x.id === props.messageID))
|
|
17
|
+
const route = useRoute()
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<DialogSelect
|
|
21
|
+
title="Message Actions"
|
|
22
|
+
options={[
|
|
23
|
+
{
|
|
24
|
+
title: "Revert",
|
|
25
|
+
value: "session.revert",
|
|
26
|
+
description: "undo messages and file changes",
|
|
27
|
+
onSelect: (dialog) => {
|
|
28
|
+
const msg = message()
|
|
29
|
+
if (!msg) return
|
|
30
|
+
|
|
31
|
+
sdk.client.session.revert({
|
|
32
|
+
sessionID: props.sessionID,
|
|
33
|
+
messageID: msg.id,
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
if (props.setPrompt) {
|
|
37
|
+
const parts = sync.data.part[msg.id]
|
|
38
|
+
const promptInfo = parts.reduce(
|
|
39
|
+
(agg, part) => {
|
|
40
|
+
if (part.type === "text") {
|
|
41
|
+
if (!part.synthetic) agg.input += part.text
|
|
42
|
+
}
|
|
43
|
+
if (part.type === "file") agg.parts.push(part)
|
|
44
|
+
return agg
|
|
45
|
+
},
|
|
46
|
+
{ input: "", parts: [] as PromptInfo["parts"] },
|
|
47
|
+
)
|
|
48
|
+
props.setPrompt(promptInfo)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
dialog.clear()
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: "Copy",
|
|
56
|
+
value: "message.copy",
|
|
57
|
+
description: "message text to clipboard",
|
|
58
|
+
onSelect: async (dialog) => {
|
|
59
|
+
const msg = message()
|
|
60
|
+
if (!msg) return
|
|
61
|
+
|
|
62
|
+
const parts = sync.data.part[msg.id]
|
|
63
|
+
const text = parts.reduce((agg, part) => {
|
|
64
|
+
if (part.type === "text" && !part.synthetic) {
|
|
65
|
+
agg += part.text
|
|
66
|
+
}
|
|
67
|
+
return agg
|
|
68
|
+
}, "")
|
|
69
|
+
|
|
70
|
+
await Clipboard.copy(text)
|
|
71
|
+
dialog.clear()
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: "Fork",
|
|
76
|
+
value: "session.fork",
|
|
77
|
+
description: "create a new session",
|
|
78
|
+
onSelect: async (dialog) => {
|
|
79
|
+
const result = await sdk.client.session.fork({
|
|
80
|
+
sessionID: props.sessionID,
|
|
81
|
+
messageID: props.messageID,
|
|
82
|
+
})
|
|
83
|
+
const initialPrompt = (() => {
|
|
84
|
+
const msg = message()
|
|
85
|
+
if (!msg) return undefined
|
|
86
|
+
const parts = sync.data.part[msg.id]
|
|
87
|
+
return parts.reduce(
|
|
88
|
+
(agg, part) => {
|
|
89
|
+
if (part.type === "text") {
|
|
90
|
+
if (!part.synthetic) agg.input += part.text
|
|
91
|
+
}
|
|
92
|
+
if (part.type === "file") agg.parts.push(part)
|
|
93
|
+
return agg
|
|
94
|
+
},
|
|
95
|
+
{ input: "", parts: [] as PromptInfo["parts"] },
|
|
96
|
+
)
|
|
97
|
+
})()
|
|
98
|
+
route.navigate({
|
|
99
|
+
sessionID: result.data!.id,
|
|
100
|
+
type: "session",
|
|
101
|
+
initialPrompt,
|
|
102
|
+
})
|
|
103
|
+
dialog.clear()
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
]}
|
|
107
|
+
/>
|
|
108
|
+
)
|
|
109
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DialogSelect } from "@tui/ui/dialog-select"
|
|
2
|
+
import { useRoute } from "@tui/context/route"
|
|
3
|
+
|
|
4
|
+
export function DialogSubagent(props: { sessionID: string }) {
|
|
5
|
+
const route = useRoute()
|
|
6
|
+
|
|
7
|
+
return (
|
|
8
|
+
<DialogSelect
|
|
9
|
+
title="Subagent Actions"
|
|
10
|
+
options={[
|
|
11
|
+
{
|
|
12
|
+
title: "Open",
|
|
13
|
+
value: "subagent.view",
|
|
14
|
+
description: "the subagent's session",
|
|
15
|
+
onSelect: (dialog) => {
|
|
16
|
+
route.navigate({
|
|
17
|
+
type: "session",
|
|
18
|
+
sessionID: props.sessionID,
|
|
19
|
+
})
|
|
20
|
+
dialog.clear()
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
]}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createMemo, onMount } from "solid-js"
|
|
2
|
+
import { useSync } from "@tui/context/sync"
|
|
3
|
+
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
|
|
4
|
+
import type { TextPart } from "@bincode-ai/sdk/v2"
|
|
5
|
+
import { Locale } from "@/util/locale"
|
|
6
|
+
import { DialogMessage } from "./dialog-message"
|
|
7
|
+
import { useDialog } from "../../ui/dialog"
|
|
8
|
+
import type { PromptInfo } from "../../component/prompt/history"
|
|
9
|
+
|
|
10
|
+
export function DialogTimeline(props: {
|
|
11
|
+
sessionID: string
|
|
12
|
+
onMove: (messageID: string) => void
|
|
13
|
+
setPrompt?: (prompt: PromptInfo) => void
|
|
14
|
+
}) {
|
|
15
|
+
const sync = useSync()
|
|
16
|
+
const dialog = useDialog()
|
|
17
|
+
|
|
18
|
+
onMount(() => {
|
|
19
|
+
dialog.setSize("large")
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const options = createMemo((): DialogSelectOption<string>[] => {
|
|
23
|
+
const messages = sync.data.message[props.sessionID] ?? []
|
|
24
|
+
const result = [] as DialogSelectOption<string>[]
|
|
25
|
+
for (const message of messages) {
|
|
26
|
+
if (message.role !== "user") continue
|
|
27
|
+
const part = (sync.data.part[message.id] ?? []).find(
|
|
28
|
+
(x) => x.type === "text" && !x.synthetic && !x.ignored,
|
|
29
|
+
) as TextPart
|
|
30
|
+
if (!part) continue
|
|
31
|
+
result.push({
|
|
32
|
+
title: part.text.replace(/\n/g, " "),
|
|
33
|
+
value: message.id,
|
|
34
|
+
footer: Locale.time(message.time.created),
|
|
35
|
+
onSelect: (dialog) => {
|
|
36
|
+
dialog.replace(() => (
|
|
37
|
+
<DialogMessage messageID={message.id} sessionID={props.sessionID} setPrompt={props.setPrompt} />
|
|
38
|
+
))
|
|
39
|
+
},
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
result.reverse()
|
|
43
|
+
return result
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
return <DialogSelect onMove={(option) => props.onMove(option.value)} title="Timeline" options={options()} />
|
|
47
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { createMemo, Match, onCleanup, onMount, Show, Switch } from "solid-js"
|
|
2
|
+
import { useTheme } from "../../context/theme"
|
|
3
|
+
import { useSync } from "../../context/sync"
|
|
4
|
+
import { useDirectory } from "../../context/directory"
|
|
5
|
+
import { useConnected } from "../../component/dialog-model"
|
|
6
|
+
import { createStore } from "solid-js/store"
|
|
7
|
+
import { useRoute } from "../../context/route"
|
|
8
|
+
|
|
9
|
+
export function Footer() {
|
|
10
|
+
const { theme } = useTheme()
|
|
11
|
+
const sync = useSync()
|
|
12
|
+
const route = useRoute()
|
|
13
|
+
const mcp = createMemo(() => Object.values(sync.data.mcp).filter((x) => x.status === "connected").length)
|
|
14
|
+
const mcpError = createMemo(() => Object.values(sync.data.mcp).some((x) => x.status === "failed"))
|
|
15
|
+
const lsp = createMemo(() => Object.keys(sync.data.lsp))
|
|
16
|
+
const permissions = createMemo(() => {
|
|
17
|
+
if (route.data.type !== "session") return []
|
|
18
|
+
return sync.data.permission[route.data.sessionID] ?? []
|
|
19
|
+
})
|
|
20
|
+
const directory = useDirectory()
|
|
21
|
+
const connected = useConnected()
|
|
22
|
+
|
|
23
|
+
const [store, setStore] = createStore({
|
|
24
|
+
welcome: false,
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
onMount(() => {
|
|
28
|
+
function tick() {
|
|
29
|
+
if (connected()) return
|
|
30
|
+
if (!store.welcome) {
|
|
31
|
+
setStore("welcome", true)
|
|
32
|
+
timeout = setTimeout(() => tick(), 5000)
|
|
33
|
+
return
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (store.welcome) {
|
|
37
|
+
setStore("welcome", false)
|
|
38
|
+
timeout = setTimeout(() => tick(), 10_000)
|
|
39
|
+
return
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let timeout = setTimeout(() => tick(), 10_000)
|
|
43
|
+
|
|
44
|
+
onCleanup(() => {
|
|
45
|
+
clearTimeout(timeout)
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<box flexDirection="row" justifyContent="space-between" gap={1} flexShrink={0}>
|
|
51
|
+
<text fg={theme.textMuted}>{directory()}</text>
|
|
52
|
+
<box gap={2} flexDirection="row" flexShrink={0}>
|
|
53
|
+
<Switch>
|
|
54
|
+
<Match when={store.welcome}>
|
|
55
|
+
<text fg={theme.text}>
|
|
56
|
+
Get started <span style={{ fg: theme.textMuted }}>/connect</span>
|
|
57
|
+
</text>
|
|
58
|
+
</Match>
|
|
59
|
+
<Match when={connected()}>
|
|
60
|
+
<Show when={permissions().length > 0}>
|
|
61
|
+
<text fg={theme.warning}>
|
|
62
|
+
<span style={{ fg: theme.warning }}>◉</span> {permissions().length} Permission
|
|
63
|
+
{permissions().length > 1 ? "s" : ""}
|
|
64
|
+
</text>
|
|
65
|
+
</Show>
|
|
66
|
+
<text fg={theme.text}>
|
|
67
|
+
<span style={{ fg: theme.success }}>•</span> {lsp().length} LSP
|
|
68
|
+
</text>
|
|
69
|
+
<Show when={mcp()}>
|
|
70
|
+
<text fg={theme.text}>
|
|
71
|
+
<Switch>
|
|
72
|
+
<Match when={mcpError()}>
|
|
73
|
+
<span style={{ fg: theme.error }}>⊙ </span>
|
|
74
|
+
</Match>
|
|
75
|
+
<Match when={true}>
|
|
76
|
+
<span style={{ fg: theme.success }}>⊙ </span>
|
|
77
|
+
</Match>
|
|
78
|
+
</Switch>
|
|
79
|
+
{mcp()} MCP
|
|
80
|
+
</text>
|
|
81
|
+
</Show>
|
|
82
|
+
<text fg={theme.textMuted}>/status</text>
|
|
83
|
+
</Match>
|
|
84
|
+
</Switch>
|
|
85
|
+
</box>
|
|
86
|
+
</box>
|
|
87
|
+
)
|
|
88
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type Accessor, createMemo, Match, Show, Switch } from "solid-js"
|
|
2
|
+
import { useRouteData } from "@tui/context/route"
|
|
3
|
+
import { useSync } from "@tui/context/sync"
|
|
4
|
+
import { useTheme } from "@tui/context/theme"
|
|
5
|
+
import { EmptyBorder } from "@tui/component/border"
|
|
6
|
+
import type { Session } from "@bincode-ai/sdk/v2"
|
|
7
|
+
import { useKeybind } from "../../context/keybind"
|
|
8
|
+
import { useTerminalDimensions } from "@opentui/solid"
|
|
9
|
+
|
|
10
|
+
const Title = (props: { session: Accessor<Session>; truncate?: boolean }) => {
|
|
11
|
+
const { theme } = useTheme()
|
|
12
|
+
return (
|
|
13
|
+
<text fg={theme.text} wrapMode={props.truncate ? "none" : undefined} flexShrink={props.truncate ? 1 : 0}>
|
|
14
|
+
<span style={{ bold: true }}>#</span> <span style={{ bold: true }}>{props.session().title}</span>
|
|
15
|
+
</text>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function Header() {
|
|
20
|
+
const route = useRouteData("session")
|
|
21
|
+
const sync = useSync()
|
|
22
|
+
const session = createMemo(() => sync.session.get(route.sessionID)!)
|
|
23
|
+
const shareEnabled = createMemo(() => sync.data.config.share !== "disabled")
|
|
24
|
+
const showShare = createMemo(() => shareEnabled() && !session()?.share?.url)
|
|
25
|
+
|
|
26
|
+
const { theme } = useTheme()
|
|
27
|
+
const keybind = useKeybind()
|
|
28
|
+
const dimensions = useTerminalDimensions()
|
|
29
|
+
const tall = createMemo(() => dimensions().height > 40)
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<box flexShrink={0}>
|
|
33
|
+
<box
|
|
34
|
+
height={1}
|
|
35
|
+
border={["left"]}
|
|
36
|
+
borderColor={theme.border}
|
|
37
|
+
customBorderChars={{
|
|
38
|
+
...EmptyBorder,
|
|
39
|
+
vertical: theme.backgroundPanel.a !== 0 ? "╻" : " ",
|
|
40
|
+
}}
|
|
41
|
+
>
|
|
42
|
+
<box
|
|
43
|
+
height={1}
|
|
44
|
+
border={["top"]}
|
|
45
|
+
borderColor={theme.backgroundPanel}
|
|
46
|
+
customBorderChars={
|
|
47
|
+
theme.backgroundPanel.a !== 0
|
|
48
|
+
? {
|
|
49
|
+
...EmptyBorder,
|
|
50
|
+
horizontal: "▄",
|
|
51
|
+
}
|
|
52
|
+
: {
|
|
53
|
+
...EmptyBorder,
|
|
54
|
+
horizontal: " ",
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/>
|
|
58
|
+
</box>
|
|
59
|
+
<box
|
|
60
|
+
border={["left"]}
|
|
61
|
+
borderColor={theme.border}
|
|
62
|
+
customBorderChars={{
|
|
63
|
+
...EmptyBorder,
|
|
64
|
+
vertical: "┃",
|
|
65
|
+
bottomLeft: "╹",
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
<box
|
|
69
|
+
paddingTop={tall() ? 1 : 0}
|
|
70
|
+
paddingBottom={tall() ? 1 : 0}
|
|
71
|
+
paddingLeft={2}
|
|
72
|
+
paddingRight={1}
|
|
73
|
+
flexShrink={0}
|
|
74
|
+
flexGrow={1}
|
|
75
|
+
backgroundColor={theme.backgroundPanel}
|
|
76
|
+
>
|
|
77
|
+
<Switch>
|
|
78
|
+
<Match when={session()?.parentID}>
|
|
79
|
+
<box flexDirection="row" gap={2}>
|
|
80
|
+
<text fg={theme.text}>
|
|
81
|
+
<b>Subagent session</b>
|
|
82
|
+
</text>
|
|
83
|
+
<text fg={theme.text}>
|
|
84
|
+
Parent <span style={{ fg: theme.textMuted }}>{keybind.print("session_parent")}</span>
|
|
85
|
+
</text>
|
|
86
|
+
<text fg={theme.text}>
|
|
87
|
+
Prev <span style={{ fg: theme.textMuted }}>{keybind.print("session_child_cycle_reverse")}</span>
|
|
88
|
+
</text>
|
|
89
|
+
<text fg={theme.text}>
|
|
90
|
+
Next <span style={{ fg: theme.textMuted }}>{keybind.print("session_child_cycle")}</span>
|
|
91
|
+
</text>
|
|
92
|
+
<box flexGrow={1} flexShrink={1} />
|
|
93
|
+
{/* <Show when={showShare()}>
|
|
94
|
+
<text fg={theme.textMuted} wrapMode="none" flexShrink={0}>
|
|
95
|
+
/share{" "}
|
|
96
|
+
</text>
|
|
97
|
+
</Show> */}
|
|
98
|
+
</box>
|
|
99
|
+
</Match>
|
|
100
|
+
<Match when={true}>
|
|
101
|
+
<box flexDirection="row" justifyContent="space-between" gap={1}>
|
|
102
|
+
<Title session={session} truncate={!tall()} />
|
|
103
|
+
{/* <Show when={showShare()}>
|
|
104
|
+
<text fg={theme.textMuted} wrapMode="none" flexShrink={0}>
|
|
105
|
+
/share{" "}
|
|
106
|
+
</text>
|
|
107
|
+
</Show> */}
|
|
108
|
+
</box>
|
|
109
|
+
</Match>
|
|
110
|
+
</Switch>
|
|
111
|
+
</box>
|
|
112
|
+
</box>
|
|
113
|
+
<box
|
|
114
|
+
height={1}
|
|
115
|
+
border={["left"]}
|
|
116
|
+
borderColor={theme.border}
|
|
117
|
+
customBorderChars={{
|
|
118
|
+
...EmptyBorder,
|
|
119
|
+
vertical: theme.backgroundPanel.a !== 0 ? "╹" : " ",
|
|
120
|
+
}}
|
|
121
|
+
>
|
|
122
|
+
<box
|
|
123
|
+
height={1}
|
|
124
|
+
border={["bottom"]}
|
|
125
|
+
borderColor={theme.backgroundPanel}
|
|
126
|
+
customBorderChars={
|
|
127
|
+
theme.backgroundPanel.a !== 0
|
|
128
|
+
? {
|
|
129
|
+
...EmptyBorder,
|
|
130
|
+
horizontal: "▀",
|
|
131
|
+
}
|
|
132
|
+
: {
|
|
133
|
+
...EmptyBorder,
|
|
134
|
+
horizontal: " ",
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/>
|
|
138
|
+
</box>
|
|
139
|
+
</box>
|
|
140
|
+
)
|
|
141
|
+
}
|