dsh-output-styles 0.3.2 โ 0.4.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/CHANGELOG.md +21 -0
- package/README.es.md +168 -124
- package/README.hi.md +246 -0
- package/README.md +151 -107
- package/README.pt.md +246 -0
- package/README.zh.md +168 -124
- package/docs/renderer-protocol.md +134 -0
- package/docs/renderer-protocol.zh.md +125 -0
- package/lib/index.js +437 -5
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/config.d.ts +32 -0
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/export.d.ts +76 -0
- package/lib/types/export.d.ts.map +1 -0
- package/lib/types/index.d.ts +12 -12
- package/lib/types/renderers.d.ts +119 -0
- package/lib/types/renderers.d.ts.map +1 -0
- package/lib/types/runtime.d.ts +14 -3
- package/lib/types/runtime.d.ts.map +1 -1
- package/lib/types/types.d.ts +32 -0
- package/lib/types/types.d.ts.map +1 -1
- package/package.json +15 -7
- package/src/config.ts +49 -0
- package/src/export.ts +199 -0
- package/src/renderers.ts +264 -0
- package/src/runtime.ts +115 -2
- package/src/types.ts +28 -0
- package/README.ja.md +0 -202
- package/README.ko.md +0 -202
package/README.ko.md
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
# ๐จ dsh-output-styles
|
|
4
|
-
|
|
5
|
-
**DeepSeek Harness๋ฅผ ์ํ Claude Code `outputStyles`** โโ ๋ฐํ์์, ์ธ์
๋ณ๋ก, ์๊ตฌ์ ์ผ๋ก ๋ชจ๋ธ์ ์ถ๋ ฅ ์คํ์ผ์ ์ ํํฉ๋๋ค.
|
|
6
|
-
|
|
7
|
-
[](LICENSE)
|
|
8
|
-
[](https://github.com/PerryLink/dsh-output-styles/actions/workflows/ci.yml)
|
|
9
|
-
[](#)
|
|
10
|
-
[](#)
|
|
11
|
-
[](#)
|
|
12
|
-
|
|
13
|
-
๐ [English](README.md) ยท [ไธญๆ](README.zh.md) ยท [ๆฅๆฌ่ช](README.ja.md) ยท [ํ๊ตญ์ด](README.ko.md) ยท [Espaรฑol](README.es.md)
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
`/style concise` โโ ์ด์ ๋ถํฐ ๋ชจ๋ ๋ต๋ณ์ด ๊ฐ๊ฒฐํด์ง๋๋ค. `/style step-by-step` โโ ๋ชจ๋ธ์ด ๋ฒํธ ๋งค๊ธด ๋จ๊ณ๋ก ์ค๋ช
ํฉ๋๋ค. `/style off` โโ ํ๋ก์ ํธ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ๋ณต๊ทํฉ๋๋ค. ์ธ์
๋น ๋ช
๋ น ํ๋, ์ฌ์์์๋ ์ ์ง๋๋ฉฐ agent loop ๋ณ๊ฒฝ์ ์ ํ ์์ต๋๋ค.
|
|
20
|
-
|
|
21
|
-
## โจ ๊ธฐ๋ฅ
|
|
22
|
-
|
|
23
|
-
| | |
|
|
24
|
-
|---|---|
|
|
25
|
-
| ๐๏ธ **์คํ์ผ ๋ผ์ด๋ธ๋ฌ๋ฆฌ** | ์คํ์ผ๋น Markdown ํ์ผ ํ๋(`styles/*.md`). frontmatter์ ๋ฉํ๋ฐ์ดํฐ๋ฅผ, ๋ณธ๋ฌธ์ ๋ชจ๋ธ ์ง์๋ฌธ์
๋๋ค. `name`์ ๊ธฐ๋ณธ๊ฐ์ด ํ์ผ๋ช
์ด๋ฉฐ ๊ณต๋ฐฑ์ ํฌํจํ ์ ์์ต๋๋ค(`Diagrams first`). ๋ด์ฅ ์คํ์ผ 6์ข
์ด ํจ๊ป ์ ๊ณต๋๋ฉฐ, Claude Code์ ๋๋ฑํ `proactive`์ `learning`์ ํฌํจํฉ๋๋ค. |
|
|
26
|
-
| โจ๏ธ **`/style` ๋ช
๋ น** | ์ธ์ ์์ด ์คํํ๋ฉด ์คํ์ผ ๋ชฉ๋ก(์ค๋ช
ํฌํจ) + ํ์ฌ ์ ํ์ ํ์ํฉ๋๋ค. `/style <name>`์ผ๋ก ์ ํํ๊ณ `/style off`๋ก ํ๋ก์ ํธ ๊ธฐ๋ณธ๊ฐ์ ๋ณต์ํฉ๋๋ค. `/style` ๋ค์ ๋๋จธ์ง ์ ์ฒด๊ฐ ์คํ์ผ ์ด๋ฆ์
๋๋ค. |
|
|
27
|
-
| ๐พ **์ธ์
๋ฒ์ ์์ํ** | ์ ํ์ `output_style` ์ ์ฅ์ ๋๋ฉ์ธ์ sessionId๋ฅผ ํค๋ก ์ ์ฅ๋์ด, ๋ ์ธ์
์ด ์๋ก ๊ฐ์ญํ์ง ์๊ณ ์ ํ์ ์ฌ์์ ํ์๋ ์ ์ง๋ฉ๋๋ค. |
|
|
28
|
-
| ๐งฉ **์์คํ
ํ๋กฌํํธ ์ฃผ์
** | `systemPrompt.section()` ๊ธฐ์ฌ(order 90)๊ฐ ๋งค ์กฐ๋ฆฝ๋ง๋ค ํ์ฌ ์ธ์
์ ์คํ์ผ ๋ณธ๋ฌธ์ ์ฃผ์
ํฉ๋๋ค. ๋ณธ๋ฌธ์ ์ค์ ๊ฐ๋ฅํ ์์ฐ์ผ๋ก ์๋ฆฝ๋๋ค. |
|
|
29
|
-
| ๐ญ **Claude Code `keep-coding-instructions`** | `keep-coding-instructions: false`(Claude Code์ ๊ฐ์ ๊ธฐ๋ณธ๊ฐ)์ธ ์คํ์ผ์ ์์คํ
ํ๋กฌํํธ ์ ์ฒด๋ฅผ ๊ต์ฒดํฉ๋๋ค โโ ์ํํธ์จ์ด ์์ง๋์ด๋ง์์ ๋ฒ์ด๋๋ ์คํ์ผ์ฉ์
๋๋ค. |
|
|
30
|
-
| ๐ **๊ฐ์ ์คํ์ผ** | Claude Code์ `force-for-plugin`(๋ณ์นญ `force`)์ด ์ธ์
์ ํ์ ๋ฌด์ํ๊ณ ๋ฌด์กฐ๊ฑด ์คํ์ผ์ ์ ์ฉํฉ๋๋ค. ๊ฐ์ ์คํ์ผ์ด ๋์ด๋ฉด ๋ก๋๊ฐ ์คํจํฉ๋๋ค. |
|
|
31
|
-
| ๐ **Claude Code ํธํ์ฑ** | `outputStyles` JSON ์ปฌ๋ ์
(`{ name, description, prompt }`)์ ๋ก๋ํ๋ฉฐ, ๋จ์ผ ํญ๋ชฉ ๋๋ `settings.json` ์คํ์ผ ๋ฐฐ์ด์ ์ง์ํฉ๋๋ค. ํด์ ๋ถ๊ฐ ํญ๋ชฉ์ ๊ฒฝ๊ณ ์ ํจ๊ป ๊ฑด๋๋๋๋ค. |
|
|
32
|
-
| ๐ **๊ณ์ธตํ๋ ๋๋ ํฐ๋ฆฌ** | `stylesDir`์ ๋ชฉ๋ก์ด๋ฉฐ ๋ค์ชฝ ๋๋ ํฐ๋ฆฌ๊ฐ ์์ชฝ์ ์ฌ์ ์ํฉ๋๋ค(๋ด์ฅ `styles/`๊ฐ ์ตํ์ ๊ณ์ธต, `includeBuiltins: false`๋ก ๋นํ์ฑํ). |
|
|
33
|
-
| ๐ **ํซ ๋ฆฌ๋ก๋** | ์คํ์ผ ํ์ผ ๋ณ๊ฒฝ์ด ์ฌ์์ ์์ด ๋ฐ์๋ฉ๋๋ค(`watchStyles: false`๋ก ํด์ ). |
|
|
34
|
-
| โ๏ธ **์ค์ ๊ณผ ํ๋ก์ ํธ ๊ธฐ๋ณธ๊ฐ** | ํ ๋ฒ๋ ์ ํํ์ง ์์ ์ธ์
์ DSH ์ค์ ์ `output-style.style`, ๊ทธ๋ค์ `defaultStyle`๋ก ํด๋ฐฑํฉ๋๋ค. |
|
|
35
|
-
| ๐ฑ๏ธ **์น ํผ์ปค** | `dsh.client` ํญ๋ชฉ(`dsh-output-styles/client`)์ด ํธ์คํธ์ `/style` ๋ช
๋ น์ ํ๋ก์ ์
๊ธฐ๋ฐ ํ์
ํผ์ปค๋ก ๊พธ๋ฐ๋๋ค. |
|
|
36
|
-
| ๐ **์ธ์
ํ๋ก์ ์
** | Web UI์ฉ `style` ํ๋ก์ ์
(`{ options, currentValue }`)์ผ๋ก, ์ธ์
๋ก๊ทธ์์ ํ์ ๋ ๋ช
๋ น์ผ๋ก๋ถํฐ ํด๋ฉ๋ฉ๋๋ค. |
|
|
37
|
-
| ๐งฏ **๋ช
ํํ ์คํจ, ๊น๋ํ ๊ฑด๋๋** | ์๋ชป๋ ์ค์ ์ ๋ก๋ ์ ์์ธ๋ฅผ ๋์ง๋๋ค. ์๋ชป๋ ์คํ์ผ ํ์ผ์ ๊ฒฝ๊ณ ์ ํจ๊ป ๊ฑด๋๋ฐ๋ฉฐ ํ๋กํ์ ๊นจ๋จ๋ฆฌ์ง ์์ต๋๋ค. |
|
|
38
|
-
| ๐ **5๊ฐ ์ธ์ด ๋ฌธ์** | EN ยท ไธญๆ ยท ๆฅๆฌ่ช ยท ํ๊ตญ์ด ยท Espaรฑol. |
|
|
39
|
-
|
|
40
|
-
## ๐ ๋น ๋ฅธ ์์
|
|
41
|
-
|
|
42
|
-
```sh
|
|
43
|
-
# 1. ์ค์น โ ์ด ํจํค์ง๋ ๋ฒ๋ค ๋ ์ด์ด์ด๋ฏ๋ก ํ ๋ช
๋ น์ผ๋ก
|
|
44
|
-
# storage + storage-json + storage-domain + ํ๋ฌ๊ทธ์ธ ํ์ด ๊ตฌ์ฑ๋ฉ๋๋ค:
|
|
45
|
-
dsh plugin --profile <name> add dsh-output-styles
|
|
46
|
-
|
|
47
|
-
# 2. ๋ถํ
ํ๊ณ ์ ํ
|
|
48
|
-
dsh --profile <name>
|
|
49
|
-
/style # โ output style off, ๊ทธ๋ค์ ์คํ์ผ๋ณ ํ ์ค
|
|
50
|
-
/style concise # โ switched to concise
|
|
51
|
-
/style Diagrams first # โ ๊ณต๋ฐฑ ํฌํจ ์ด๋ฆ๋ ๋์
|
|
52
|
-
/style off # โ ํ๋ก์ ํธ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ๋ณต๊ท
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
์ด ๋ ์ด์ด๋ ์น ํ๋กํ์ ๋ํด ๋ฉฑ๋ฑ์ ์
๋๋ค(id ๊ธฐ์ค ์ฝ์
์ด ๋์ผ id ํ์ ๋์ฒด). ์น ํ๋กํ์ `storage`๋ฅผ ๊ธฐ๋ณธ์ผ๋ก ํฌํจํฉ๋๋ค. ์น ํผ์ปค๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด ํ๋กํ์ ํด๋ผ์ด์ธํธ ํ์ ์ถ๊ฐํ์ธ์:
|
|
56
|
-
|
|
57
|
-
```yaml
|
|
58
|
-
- id: output-styles-client
|
|
59
|
-
name: 'dsh-output-styles/client'
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## ๐ฌ ๋ฐ๋ชจ
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
You > /style
|
|
66
|
-
output style off
|
|
67
|
-
concise โ Terse, direct answers โ minimal prose, no preamble. (Daily coding work, tool-heavy sessions, or when prompt length matters.)
|
|
68
|
-
explanatory โ Educational answers with short "Insights" that teach as you work. (Learning a codebase, onboarding, โฆ)
|
|
69
|
-
formal โ Formal, precise prose with complete sentences and defined terms. (Reports, documentation, release notes, โฆ)
|
|
70
|
-
learning โ Collaborative learn-by-doing mode with short "Insights" and small hands-on steps for the user. (Pairing, onboarding, โฆ)
|
|
71
|
-
proactive โ Execute immediately, assume reasonable defaults, and prefer action over planning. (Routine multi-step work, โฆ)
|
|
72
|
-
step-by-step โ Numbered reasoning steps with explicit intermediate results. (Debugging, design decisions, โฆ)
|
|
73
|
-
|
|
74
|
-
You > /style concise
|
|
75
|
-
switched to concise
|
|
76
|
-
|
|
77
|
-
You > ํ ๋ฌธ์ฅ์ผ๋ก๋ง ์๊ธฐ์๊ฐํด ์ฃผ์ธ์.
|
|
78
|
-
AI > ์ ๋ DeepSeek Harness ํ๋ฌ๊ทธ์ธ ํ๋ซํผ์์ ์คํ๋๊ณ deepseek-v4-pro ๋ชจ๋ธ์ ๊ธฐ๋ฐ์ผ๋ก ํ๋ AI ์ฝ๋ฉ ์์ด์ ํธ์
๋๋ค.
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## ๐ง ๋์ ๋ฐฉ์
|
|
82
|
-
|
|
83
|
-
```mermaid
|
|
84
|
-
flowchart LR
|
|
85
|
-
U[/style concise ์
๋ ฅ] --> C[๋ช
๋ น ๋ ์ง์คํธ๋ฆฌ]
|
|
86
|
-
C -->|command/run ๊ธฐ๋ก| L[(์ธ์
๋ก๊ทธ)]
|
|
87
|
-
C -->|put {style, source}| D[(output_style ๋๋ฉ์ธ)]
|
|
88
|
-
D --> R[OutputStyleRuntime]
|
|
89
|
-
R -->|๋งค ์กฐ๋ฆฝ๋ง๋ค ๋ณธ๋ฌธ ์ฃผ์
| S[systemPrompt ์น์
order 90]
|
|
90
|
-
S --> M[๋ชจ๋ธ ์์ฒญ]
|
|
91
|
-
M -->|์ ์ฒด ์์คํ
ํ๋กฌํํธ| H[request/header ๊ธฐ๋ก]
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
๋ชจ๋ธ์ด ๋ณด๋ ๋ชจ๋ ๊ฒ์ ์ธ์
๋ก๊ทธ์์ ์ฌ๊ตฌ์ฑํ ์ ์์ต๋๋ค โโ ์๋ก์ด ์ธ์
์ด๋ฒคํธ ํ์
๋, agent-loop ๋ณ๊ฒฝ๋ ์์ต๋๋ค. ์คํ์ผ ์ด๋ฆ์ `command/run`์์, ์ฃผ์
๋ ์ ํํ ํ
์คํธ๋ `request/header`์์ ๋์ค๋ฉฐ, ์ถ์ฒ ๋ง์ปค `{ kind: 'plugin', plugin: 'dsh-output-styles' }`๋ ๋๋ฉ์ธ ๋ ์ฝ๋์ ๋จ์ต๋๋ค. ์คํ์ผ์ ๋ฉ์ธ ๋ํ์๋ง ์ ์ฉ๋๋ฉฐ, ํ์ ์์ด์ ํธ ์ธ์
์ ์์ฒด ํ๋กฌํํธ๋ฅผ ์ ์งํฉ๋๋ค(Claude Code์ ์ผ์น).
|
|
95
|
-
|
|
96
|
-
## โ๏ธ ์ค์
|
|
97
|
-
|
|
98
|
-
๋ชจ๋ ์กฐ์ ๊ฐ์ ๊ฒ์ฆ๋ Schemastery `Config` ํ๋์
๋๋ค(์๋ชป๋ ๊ฐ์ ๋ก๋ ์คํจ):
|
|
99
|
-
|
|
100
|
-
| ํ๋ | ๊ธฐ๋ณธ๊ฐ | ์๋ฏธ |
|
|
101
|
-
|---|---|---|
|
|
102
|
-
| `stylesDir` | `[]` | ์คํ์ผ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋๋ ํฐ๋ฆฌ. cwd ๊ธฐ์ค์ผ๋ก ํด์๋๋ฉฐ ๋ค์ชฝ ํญ๋ชฉ์ด ์์ชฝ์ ์ฌ์ ์ํฉ๋๋ค. `[]` = ๋ด์ฅ `styles/`๋ง. ๋จ์ ๋ฌธ์์ด์ ๋จ์ผ ๋๋ ํฐ๋ฆฌ ๋ชฉ๋ก์
๋๋ค. |
|
|
103
|
-
| `maxStyleChars` | `4000` | ์คํ์ผ ๋ณธ๋ฌธ ์์ฐ(์ฝ๋ ํฌ์ธํธ, โฅ 1). ๋ ๊ธด ๋ณธ๋ฌธ์ ๋ง์ปค์ ํจ๊ป ์๋ฆฝ๋๋ค. |
|
|
104
|
-
| `defaultStyle` | `''` | ํ ๋ฒ๋ ์ ํํ์ง ์์ ์ธ์
(์ค์ ๊ธฐ๋ณธ๊ฐ๋ ์์)์ ์ ์ฉํ ์คํ์ผ. `''` = ์คํ์ผ ์์. |
|
|
105
|
-
| `compatJson` | `true` | Claude Code `outputStyles` JSON ํญ๋ชฉ(๋จ์ผ ๊ฐ์ฒด ๋๋ ๋ฐฐ์ด)์ ๋ก๋ํฉ๋๋ค. |
|
|
106
|
-
| `sectionOrder` | `90` | ์ฃผ์
์น์
์ ์์(0 = persona, 100โ199 = ๋๊ตฌ ์ง์นจ). |
|
|
107
|
-
| `truncationMarker` | `"\n\n[style truncated]"` | ์๋ฆฐ ์ง์ ์ ์ถ๊ฐ๋๋ ๋ง์ปค. |
|
|
108
|
-
| `includeBuiltins` | `true` | ํจํค์ง ๋ด์ฅ `styles/`๋ฅผ ์ต์ ์ฐ์ ์์ ๊ณ์ธต์ผ๋ก ํฌํจํฉ๋๋ค. |
|
|
109
|
-
| `watchStyles` | `true` | ๋์คํฌ์์ ์คํ์ผ ํ์ผ์ด ๋ณ๊ฒฝ๋๋ฉด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋ค์ ๋ก๋ํฉ๋๋ค. |
|
|
110
|
-
|
|
111
|
-
## ๐ ์คํ์ผ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
|
|
112
|
-
|
|
113
|
-
<details>
|
|
114
|
-
<summary><code>styles/concise.md</code></summary>
|
|
115
|
-
|
|
116
|
-
```markdown
|
|
117
|
-
---
|
|
118
|
-
name: concise
|
|
119
|
-
description: Terse, direct answers โ minimal prose, no preamble.
|
|
120
|
-
whenToUse: Daily coding work, tool-heavy sessions, or when prompt length matters.
|
|
121
|
-
keep-coding-instructions: true
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
You are in the concise output style for this conversation.
|
|
125
|
-
- Lead with the direct answer; skip preamble, restatements, and filler.
|
|
126
|
-
- ๅ็ญ่ฏญ่จ่ท้็จๆท่ฏญ่จ๏ผไธญๆๆ้ฎ็จไธญๆๅ็ญ๏ผ่ฑๆๆ้ฎ็จ่ฑๆๅ็ญใ
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
</details>
|
|
130
|
-
|
|
131
|
-
frontmatter ํ๋:
|
|
132
|
-
|
|
133
|
-
| ํ๋ | ๊ธฐ๋ณธ๊ฐ | ์๋ฏธ |
|
|
134
|
-
|---|---|---|
|
|
135
|
-
| `name` | ํ์ผ๋ช
| ์ ํ ๋์. ๋ฌธ์, ์ซ์, ๊ณต๋ฐฑ, ํ์ดํ(์ ํ/ํํ ๊ณต๋ฐฑ ์์. `off`๋ ์์ฝ๋จ). |
|
|
136
|
-
| `description` | โ(ํ์) | ๋ชฉ๋ก๊ณผ ํผ์ปค์ ํ์๋๋ ํ ๋ฌธ์ฅ. |
|
|
137
|
-
| `whenToUse` | โ | ๋ชฉ๋ก์ ๋ง๋ถ์ด๋ ์ ํ์ ์๋ด. |
|
|
138
|
-
| `keep-coding-instructions` | `false` | `true`๋ฉด ํ๋ค์ค ํ๋กฌํํธ(์ ์ฒด์ฑ, persona, ๋๊ตฌ ์ง์นจ)๋ฅผ ์ ์งํ๊ณ , `false`๋ฉด ์์ ํ ๊ต์ฒดํฉ๋๋ค(Claude Code ์๋ฏธ๋ก ). |
|
|
139
|
-
| `force-for-plugin` | `false` | Claude Code ๊ณต์ ํ๋: ์ธ์
์ ํ์ ๋ฌด์ํ๊ณ ๋ฌด์กฐ๊ฑด ์ ์ฉํฉ๋๋ค. `force`๋ ๋ณ์นญ์ด๋ฉฐ ์ต๋ ํ ์คํ์ผ๋ง ์ค์ ํ ์ ์์ต๋๋ค. |
|
|
140
|
-
|
|
141
|
-
<details>
|
|
142
|
-
<summary>Claude Code <code>outputStyles</code> JSON(<code>compatJson: true</code>)</summary>
|
|
143
|
-
|
|
144
|
-
```json
|
|
145
|
-
{ "name": "explain", "description": "Explain like a teacher.", "prompt": "Teach in small steps." }
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
ํญ๋ชฉ์ Claude Code๊ฐ ์ฐ๋ ๊ทธ๋๋ก `keep-coding-instructions`์ `force-for-plugin` ํ๋๋ฅผ ๋ฐ์ต๋๋ค. ๋ ๊ฑฐ์ `settings.json` ๋ฐฐ์ด(`[{ โฆ }, { โฆ }]`)์ ๊ทธ๋๋ก ๋ก๋๋๊ณ , ์๋ชป๋ ํญ๋ชฉ์ ๊ฒฝ๊ณ ์ ํจ๊ป ๊ฑด๋๋๋๋ค.
|
|
149
|
-
|
|
150
|
-
</details>
|
|
151
|
-
|
|
152
|
-
## โจ๏ธ ๋ช
๋ น ๋ ํผ๋ฐ์ค
|
|
153
|
-
|
|
154
|
-
| ์
๋ ฅ | ๊ฒฐ๊ณผ |
|
|
155
|
-
|---|---|
|
|
156
|
-
| `/style` | ํ์ฌ ์ ํ + ์คํ์ผ๋ณ ํ ์ค(name โ description) ๋์ด |
|
|
157
|
-
| `/style concise` | ์ ํ(์๊ตฌ ๊ธฐ๋ก), `switched to concise` |
|
|
158
|
-
| `/style Diagrams first` | ์ฌ๋ฌ ๋จ์ด ์ด๋ฆ์ ๋๋จธ์ง ์ ์ฒด |
|
|
159
|
-
| `/style off` | ํ๋ก์ ํธ ๊ธฐ๋ณธ๊ฐ ๋ณต์(์ค์ ๊ธฐ๋ณธ๊ฐ, ๊ทธ๋ค์ `defaultStyle`) |
|
|
160
|
-
| `/style nope` | `error: unknown output style "nope" (available: โฆ)` |
|
|
161
|
-
|
|
162
|
-
## ๐ฑ๏ธ ์น ํผ์ปค
|
|
163
|
-
|
|
164
|
-
`dsh.client` ํญ๋ชฉ์ ํธ์คํธ `/style` ๋ช
๋ น์ ์ธ์ ์๋ ํธ์ถ์ ํ์
ํผ์ปค๋ก ๊พธ๋ฐ๋๋ค: ใoffใ ํ + ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์คํ์ผ๋ณ ํ ํ(`description ยท whenToUse`), ํ์ฑ ํ์ด ํ์๋ฉ๋๋ค. ์ ํํ๋ฉด ๋ช
๋ น Remote๋ฅผ ํตํด `/style <name>`์ ์ ์ถํ๋ฏ๋ก, ๋ชจ๋ ์ ํ์ด ํธ์คํธ์ ์๊ตฌ์ ์ธ ๋ช
๋ น ์๋ช
์ฃผ๊ธฐ๋ฅผ ์ ์งํ๊ณ `style` ํ๋ก์ ์
์ด ์ ์ผํ๊ฒ ํ์๋๋ ์ฌ์ค๋ก ๋จ์ต๋๋ค. ํผ์ปค ๋ฌธ๊ตฌ๋ Web UI์ ๋ด์ฅ๋ `zh`/`en` ์ธ์ด ์์ ๋ฐ๋ฆ
๋๋ค.
|
|
165
|
-
|
|
166
|
-
## ๐ ์ถฉ๋ ๊ฒ์ฌ
|
|
167
|
-
|
|
168
|
-
๊ฐ๋ฐ ์ DSH ์ํ๊ณ๋ฅผ ์กฐ์ฌํ์ต๋๋ค(2026-08 ์ค๋
์ท): [topic:dsh-plugin](https://github.com/topics/dsh-plugin) ์๋ `style`/`output-style` ์ ์ฅ์ ์์, 4๋ [awesome ๋ชฉ๋ก](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)์ output-style ์นดํ
๊ณ ๋ฆฌ ์์, [dsh-hub ์นดํ๋ก๊ทธ](https://github.com/omdsh-dev/dsh-hub-workshop)์๋ ํญ๋ชฉ ์์. ๊ฐ์ฅ ๊ฐ๊น์ด ์ด์์ธ [dsh-soul-md](https://github.com/Scorp1o117/dsh-soul-md)(persona)์ [dsh-claude-marketplace](https://github.com/ben7am1n/dsh-claude-marketplace)(์ถ๋ ฅ ์คํ์ผ์ ๋ช
์์ ์ผ๋ก v0.2+๋ก ์ฐ๊ธฐ)์ ์ธ์ ํ์ง๋ง ์ถฉ๋ํ์ง ์์ต๋๋ค.
|
|
169
|
-
|
|
170
|
-
## ๐ Claude Code์์ ์ฐจ์ด
|
|
171
|
-
|
|
172
|
-
| | Claude Code | dsh-output-styles |
|
|
173
|
-
|---|---|---|
|
|
174
|
-
| ์คํ์ผ ํ์ผ | ์ฌ์ฉ์/ํ๋ก์ ํธ/๊ด๋ฆฌ ๊ณ์ธต์ `.claude/output-styles` | `stylesDir` ๋๋ ํฐ๋ฆฌ + ๋ด์ฅ `styles/`, ๋ค์ชฝ ๋๋ ํฐ๋ฆฌ๊ฐ ์ฐ์ |
|
|
175
|
-
| ์ฌ์ฉ์ ์ ์ ์คํ์ผ | Markdown, frontmatter `name`/`description`/`keep-coding-instructions`/`force-for-plugin` | ๋์ผ ํ๋(`force-for-plugin` ๊ทธ๋๋ก ์์ฉ, `force`๋ ๋ณ์นญ) + `whenToUse` |
|
|
176
|
-
| ๋ ๊ฑฐ์ JSON | `settings.json`์ `outputStyles` ๋ฐฐ์ด | ๊ทธ๋๋ก ๋ก๋(`compatJson: true`) |
|
|
177
|
-
| ์ ์ฉ ์์ | `/clear` ํ ๋๋ ์ ์ธ์
| ์ฆ์ โ ์์คํ
ํ๋กฌํํธ๊ฐ ์์ฒญ๋ง๋ค ์ฌ์กฐ๋ฆฝ |
|
|
178
|
-
| ํ์ ์์ด์ ํธ | ์คํ์ผ ๋ฏธ์ ์ฉ | ๋์ผ โ ํ์ ์์ด์ ํธ ์ธ์
์ ์์ฒด ํ๋กฌํํธ ์ ์ง |
|
|
179
|
-
| ์ ํ | `/config` ๋ฉ๋ด ๋๋ `outputStyle` ์ค์ (`/output-style` ๋ช
๋ น์ v2.1.91์์ ์ ๊ฑฐ) | `/style` ๋ช
๋ น + ์น ํผ์ปค + ์ค์ `output-style.style` |
|
|
180
|
-
|
|
181
|
-
## ๐งช ๊ฐ๋ฐ
|
|
182
|
-
|
|
183
|
-
```sh
|
|
184
|
-
pnpm install
|
|
185
|
-
pnpm run typecheck # ๋ tsc ํ๋ก์ ํธ
|
|
186
|
-
pnpm test # vitest โ 93 ํ
์คํธ
|
|
187
|
-
pnpm run verify # typecheck + ํ
์คํธ + ์์ฒด ํฌํจ ๊ฒ์ฌ(prepublishOnly ๊ฒ์ดํธ)
|
|
188
|
-
pnpm run build # lib/ ์ฐ์ถ๋ฌผ(ํธ์คํธ + ํด๋ผ์ด์ธํธ ๋ฒ๋ค)
|
|
189
|
-
pnpm pack # dsh plugin add์ฉ tarball
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
๋ฆด๋ฆฌ์ค: `package.json` ๋ฒ์ ๊ณผ ์ผ์นํ๋ ์ ๋ฏธ์ฌ๋ฅผ ๊ฐ์ง `v*` ํ๊ทธ๋ฅผ pushํ๋ฉด Publish ์ํฌํ๋ก๊ฐ ์คํ๋ฉ๋๋ค โ ์ ์ฒด ๊ฒ์ฆ ํ npm ๊ฒ์(provenance ํฌํจ). ๋ชจ๋ `npm publish`๋ `prepublishOnly`๋ฅผ ํตํด `verify` ๊ฒ์ดํธ๋ฅผ ํต๊ณผํฉ๋๋ค.
|
|
193
|
-
|
|
194
|
-
๊ตฌ์กฐ๋ [omdsh-dev/plugin-template](https://github.com/omdsh-dev/plugin-template)๋ฅผ ๋ฐ๋ฆ
๋๋ค: `src/index.ts`(ํ๋ฌ๊ทธ์ธ ๋ฉํ๋ฐ์ดํฐ), `src/config.ts`(์คํค๋ง), `src/runtime.ts`(๋ฐํ์ ์๋น์ค + ํ์ฑํ), `src/invariant.ts`(๋ถ๋ณ์), `src/client/`(์น ํผ์ปค), `styles/`(๋ด์ฅ ์คํ์ผ).
|
|
195
|
-
|
|
196
|
-
## ๐ ๋ผ์ด์ ์ค
|
|
197
|
-
|
|
198
|
-
[Apache-2.0](LICENSE) ยฉ 2026 dsh-output-styles contributors
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
<sub>Topics: `dsh` ยท `dsh-plugin` ยท `deepseek-harness` ยท `output-styles` ยท `claude-code`</sub>
|