dsh-ai-collab 0.4.3 → 0.5.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/AGENTS.template.md +10 -0
- package/CHANGELOG.md +47 -0
- package/README.md +101 -12
- package/docs/DETAIL.md +36 -7
- package/docs/DISCLAIMER.md +54 -0
- package/docs/MARKET.md +1 -1
- package/docs/NONCOMMERCIAL-NOTICE.md +34 -0
- package/docs/index.html +1257 -0
- package/index.js +202 -17
- package/install.ps1 +106 -5
- package/lib/atomic.js +83 -0
- package/lib/disciplines.js +300 -0
- package/lib/handoff.js +174 -0
- package/lib/lock.js +70 -0
- package/lib/tasks.js +3 -2
- package/package.json +4 -4
- package/template/.ai/llm.ps1 +62 -12
package/docs/index.html
ADDED
|
@@ -0,0 +1,1257 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="color-scheme" content="light">
|
|
7
|
+
<title>dsh-ai-collab · 插件介绍</title>
|
|
8
|
+
<meta name="description" content="dsh-ai-collab:为代码仓库增加一层与 AI 工具无关的协作层。跨工具统一项目进度、工作记录本地留存、AGENTS.md 分区、可加载的全局纪律。">
|
|
9
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%230d6b5b'/%3E%3Cpath d='M9 11h14M9 16h9M9 21h11' stroke='%238fe7d1' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E">
|
|
10
|
+
<style>
|
|
11
|
+
:root{
|
|
12
|
+
--paper:#f6f4ee;
|
|
13
|
+
--surface:#fffdf8;
|
|
14
|
+
--surface-2:#fbf8f1;
|
|
15
|
+
--ink:#151a1c;
|
|
16
|
+
--ink-2:#3d474b;
|
|
17
|
+
--muted:#5e696d;
|
|
18
|
+
--line:#e2ddd1;
|
|
19
|
+
--line-2:#d5cfc0;
|
|
20
|
+
--accent:#0d6b5b;
|
|
21
|
+
--accent-2:#128a74;
|
|
22
|
+
--accent-ink:#084f43;
|
|
23
|
+
--accent-soft:#e7f1ec;
|
|
24
|
+
--amber:#9a641d;
|
|
25
|
+
--amber-soft:#f8f0e0;
|
|
26
|
+
--dark:#0b1d18;
|
|
27
|
+
--radius:16px;
|
|
28
|
+
--shadow:0 1px 2px rgba(21,26,28,.04),0 14px 34px -22px rgba(21,26,28,.22);
|
|
29
|
+
--sans:"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,-apple-system,sans-serif;
|
|
30
|
+
--serif:"Iowan Old Style","Palatino Linotype",Georgia,"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;
|
|
31
|
+
--mono:"Cascadia Code","JetBrains Mono",Consolas,"Courier New",monospace;
|
|
32
|
+
}
|
|
33
|
+
*,*::before,*::after{box-sizing:border-box}
|
|
34
|
+
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
|
|
35
|
+
body{
|
|
36
|
+
margin:0;
|
|
37
|
+
background:var(--paper);
|
|
38
|
+
background-image:
|
|
39
|
+
radial-gradient(1100px 560px at 88% -80px, rgba(18,138,116,.07), transparent 70%),
|
|
40
|
+
radial-gradient(900px 520px at -6% 34%, rgba(154,100,29,.055), transparent 62%);
|
|
41
|
+
background-attachment:fixed;
|
|
42
|
+
color:var(--ink);
|
|
43
|
+
font-family:var(--sans);
|
|
44
|
+
font-size:16px;
|
|
45
|
+
line-height:1.8;
|
|
46
|
+
-webkit-font-smoothing:antialiased;
|
|
47
|
+
text-rendering:optimizeLegibility;
|
|
48
|
+
}
|
|
49
|
+
::selection{background:#bfe6d9;color:#0b1d18}
|
|
50
|
+
a{color:var(--accent);text-decoration:none}
|
|
51
|
+
a:hover{color:var(--accent-ink)}
|
|
52
|
+
:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px;border-radius:4px}
|
|
53
|
+
.skip{position:absolute;left:12px;top:-60px;z-index:99;background:var(--surface);border:1px solid var(--line);padding:8px 14px;border-radius:8px;font-size:13px}
|
|
54
|
+
.skip:focus{top:12px}
|
|
55
|
+
|
|
56
|
+
/* ---------- progress ---------- */
|
|
57
|
+
.progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:90;pointer-events:none}
|
|
58
|
+
.progress span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#0e6b5b,#2bb596);transform:scaleX(0);transform-origin:0 50%}
|
|
59
|
+
|
|
60
|
+
/* ---------- header ---------- */
|
|
61
|
+
.site-header{
|
|
62
|
+
position:fixed;inset:0 0 auto;height:64px;z-index:80;
|
|
63
|
+
display:flex;align-items:center;gap:14px;
|
|
64
|
+
padding:0 clamp(20px,4vw,48px);
|
|
65
|
+
border-bottom:1px solid transparent;
|
|
66
|
+
background:transparent;
|
|
67
|
+
transition:border-color .25s ease, background .25s ease;
|
|
68
|
+
}
|
|
69
|
+
.site-header.is-scrolled{background:rgba(246,244,238,.94);border-bottom-color:var(--line);-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%)}
|
|
70
|
+
.brand{display:inline-flex;align-items:center;gap:10px;color:#f4fbf8;font-weight:650;font-size:15px;letter-spacing:-.01em;transition:color .25s ease}
|
|
71
|
+
.brand:hover{color:#fff}
|
|
72
|
+
.brand .logo{width:28px;height:28px;display:block;border-radius:8px;box-shadow:0 2px 6px rgba(13,107,91,.28)}
|
|
73
|
+
.ver{font-family:var(--mono);font-size:10.5px;color:#9fded0;background:rgba(143,231,209,.08);border:1px solid rgba(143,231,209,.24);padding:2px 8px;border-radius:999px;letter-spacing:.02em;transition:color .25s ease,background .25s ease,border-color .25s ease}
|
|
74
|
+
.top-nav{margin-left:auto;display:flex;align-items:center;gap:26px}
|
|
75
|
+
.top-nav a{font-size:13px;color:#a9c1ba;position:relative;padding:4px 0;transition:color .2s ease}
|
|
76
|
+
.top-nav a::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1.5px;background:#8fe7d1;transform:scaleX(0);transform-origin:0 50%;transition:transform .22s ease}
|
|
77
|
+
.top-nav a:hover{color:#fff}
|
|
78
|
+
.top-nav a:hover::after{transform:scaleX(1)}
|
|
79
|
+
.header-right{display:flex;align-items:center;gap:16px;padding-left:22px;border-left:1px solid rgba(255,255,255,.16);transition:border-color .25s ease}
|
|
80
|
+
.npm-link{font-family:var(--mono);font-size:11.5px;color:#cfe0da;letter-spacing:.04em;display:inline-flex;align-items:center;gap:5px;transition:color .25s ease}
|
|
81
|
+
.npm-link:hover{color:#8fe7d1}
|
|
82
|
+
.npm-link .up{font-size:12px;color:#8fe7d1;transition:transform .2s ease}
|
|
83
|
+
.npm-link:hover .up{transform:translate(1px,-1px)}
|
|
84
|
+
.site-header.is-scrolled .brand{color:var(--ink)}
|
|
85
|
+
.site-header.is-scrolled .brand:hover{color:var(--ink)}
|
|
86
|
+
.site-header.is-scrolled .ver{color:var(--accent-ink);background:var(--accent-soft);border-color:#cfe4da}
|
|
87
|
+
.site-header.is-scrolled .top-nav a{color:var(--muted)}
|
|
88
|
+
.site-header.is-scrolled .top-nav a:hover{color:var(--ink)}
|
|
89
|
+
.site-header.is-scrolled .top-nav a::after{background:var(--accent)}
|
|
90
|
+
.site-header.is-scrolled .header-right{border-left-color:var(--line)}
|
|
91
|
+
.site-header.is-scrolled .npm-link{color:var(--ink-2)}
|
|
92
|
+
.site-header.is-scrolled .npm-link:hover{color:var(--accent)}
|
|
93
|
+
.site-header.is-scrolled .npm-link .up{color:var(--accent)}
|
|
94
|
+
|
|
95
|
+
/* ---------- hero ---------- */
|
|
96
|
+
.hero{position:relative;overflow:hidden;background:var(--dark);color:#eef5f2;padding:132px 0 108px}
|
|
97
|
+
.hero::before{
|
|
98
|
+
content:"";position:absolute;inset:0;
|
|
99
|
+
background:
|
|
100
|
+
radial-gradient(900px 520px at 80% -6%, rgba(18,138,116,.34), transparent 64%),
|
|
101
|
+
radial-gradient(620px 420px at 4% 104%, rgba(154,100,29,.20), transparent 68%);
|
|
102
|
+
}
|
|
103
|
+
.hero::after{
|
|
104
|
+
content:"";position:absolute;inset:0;
|
|
105
|
+
background-image:
|
|
106
|
+
linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
|
|
107
|
+
linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
|
|
108
|
+
background-size:56px 56px;
|
|
109
|
+
-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.85),transparent 82%);
|
|
110
|
+
mask-image:linear-gradient(180deg,rgba(0,0,0,.85),transparent 82%);
|
|
111
|
+
}
|
|
112
|
+
.container{width:100%;max-width:1180px;margin:0 auto;padding:0 32px;position:relative}
|
|
113
|
+
.hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:1.06fr .94fr;gap:56px;align-items:center}
|
|
114
|
+
.eyebrow{display:flex;align-items:center;gap:10px;margin:0;font-family:var(--mono);font-size:10.5px;letter-spacing:.19em;text-transform:uppercase;color:#8fc7b8}
|
|
115
|
+
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:#2bb596;box-shadow:0 0 0 4px rgba(43,181,150,.14)}
|
|
116
|
+
.hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(2.45rem,4.3vw,3.8rem);line-height:1.2;letter-spacing:.005em;margin:24px 0 24px;color:#f5faf8}
|
|
117
|
+
.hero h1 em{font-style:normal;color:#8fe7d1;white-space:nowrap}
|
|
118
|
+
.hero-lead{max-width:35em;margin:0;font-size:1.02rem;line-height:1.95;color:#bccfc9}
|
|
119
|
+
.hero-lead code{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#d8eee7;padding:1px 6px;border-radius:5px;font-size:.86em;font-family:var(--mono)}
|
|
120
|
+
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
|
|
121
|
+
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 21px;border-radius:10px;font-size:13.5px;font-weight:600;letter-spacing:.01em;transition:transform .2s ease, background .2s ease, border-color .2s ease}
|
|
122
|
+
.btn:hover{transform:translateY(-1px)}
|
|
123
|
+
.btn-primary{background:#17a189;color:#04130f;box-shadow:0 12px 26px -12px rgba(43,181,150,.65)}
|
|
124
|
+
.btn-primary:hover{background:#2bb596;color:#04130f}
|
|
125
|
+
.btn-primary .arr{font-size:14px;opacity:.8}
|
|
126
|
+
.btn-ghost{border:1px solid rgba(255,255,255,.22);color:#e7f2ee;background:rgba(255,255,255,.03)}
|
|
127
|
+
.btn-ghost:hover{border-color:rgba(143,231,209,.5);background:rgba(143,231,209,.06);color:#f2fbf8}
|
|
128
|
+
.hero-chips{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;margin:32px 0 0;padding:0;font-size:12px;color:#93aca4}
|
|
129
|
+
.hero-chips li{display:inline-flex;align-items:center;gap:7px}
|
|
130
|
+
.hero-chips li::before{content:"";width:4px;height:4px;border-radius:50%;background:#4d7a6c}
|
|
131
|
+
|
|
132
|
+
/* terminal */
|
|
133
|
+
.hero-panel{position:relative}
|
|
134
|
+
.terminal{
|
|
135
|
+
background:#07130f;border:1px solid rgba(143,231,209,.16);border-radius:16px;overflow:hidden;
|
|
136
|
+
box-shadow:0 44px 80px -34px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
|
|
137
|
+
}
|
|
138
|
+
.term-bar{display:flex;align-items:center;gap:7px;padding:11px 15px;border-bottom:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025)}
|
|
139
|
+
.term-bar .dot{width:8px;height:8px;border-radius:50%;background:#3a4a44}
|
|
140
|
+
.term-bar .dot.r{background:#7a3f3a}.term-bar .dot.y{background:#7a673a}.term-bar .dot.g{background:#3a6f5c}
|
|
141
|
+
.term-title{font-family:var(--mono);font-size:10.5px;color:#7f9a90;margin-left:7px;letter-spacing:.03em}
|
|
142
|
+
.term-badge{margin-left:auto;font-family:var(--mono);font-size:9px;letter-spacing:.14em;color:#6f8f84;border:1px solid rgba(143,231,209,.18);padding:2px 7px;border-radius:999px}
|
|
143
|
+
.term-pre{margin:0;padding:20px 22px 22px;font-family:var(--mono);font-size:11.6px;line-height:1.95;color:#cfe0da;overflow-x:auto}
|
|
144
|
+
.term-pre .prompt{color:#8fe7d1}
|
|
145
|
+
.term-pre .cmd{color:#f1f7f4}
|
|
146
|
+
.term-pre .dim{color:#7c968c}
|
|
147
|
+
.term-pre .ok{color:#7fe0c8}
|
|
148
|
+
.term-pre .val{color:#e8d8a6}
|
|
149
|
+
.term-pre .warn{color:#e0b877}
|
|
150
|
+
.term-pre .gap{display:inline-block;height:9px}
|
|
151
|
+
.caret{display:inline-block;width:7px;height:13px;background:#8fe7d1;vertical-align:-2px;animation:blink 1.15s steps(1) infinite}
|
|
152
|
+
@keyframes blink{0%,55%{opacity:1}56%,100%{opacity:0}}
|
|
153
|
+
|
|
154
|
+
/* ---------- stats ---------- */
|
|
155
|
+
.stats-band{max-width:1180px;margin:-42px auto 0;padding:0 32px;position:relative;z-index:3}
|
|
156
|
+
.stats{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 24px 56px -34px rgba(13,31,26,.5)}
|
|
157
|
+
.stats > div{padding:21px 26px 22px}
|
|
158
|
+
.stats > div + div{border-left:1px solid var(--line)}
|
|
159
|
+
.stat-value{font-family:var(--serif);font-size:1.75rem;line-height:1.15;color:var(--ink)}
|
|
160
|
+
.stat-value small{font-family:var(--sans);font-size:12px;font-weight:500;color:var(--muted);margin-left:4px;letter-spacing:.02em}
|
|
161
|
+
.stat-label{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin-top:5px}
|
|
162
|
+
|
|
163
|
+
/* ---------- layout ---------- */
|
|
164
|
+
.layout{max-width:1180px;margin:0 auto;padding:64px 32px 40px;display:grid;grid-template-columns:228px minmax(0,1fr);gap:68px;align-items:start}
|
|
165
|
+
.sidebar{position:sticky;top:96px}
|
|
166
|
+
.toc-label{font-family:var(--mono);font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:#9a9486;margin:0 0 14px}
|
|
167
|
+
.toc ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--line-2)}
|
|
168
|
+
.toc a{display:flex;gap:10px;padding:6px 0 6px 15px;margin-left:-1px;border-left:2px solid transparent;font-size:13px;line-height:1.5;color:var(--muted);transition:color .18s,border-color .18s,background .18s}
|
|
169
|
+
.toc a .n{font-family:var(--mono);font-size:9.5px;color:#aca594;padding-top:3px}
|
|
170
|
+
.toc a:hover{color:var(--ink)}
|
|
171
|
+
.toc a.active{color:var(--accent-ink);border-left-color:var(--accent);font-weight:600;background:linear-gradient(90deg,rgba(13,107,91,.05),transparent 80%)}
|
|
172
|
+
.toc a.active .n{color:var(--accent)}
|
|
173
|
+
.side-card{margin-top:32px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:13px;font-size:12px;color:var(--muted)}
|
|
174
|
+
.side-card .sc-row{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:var(--ink-2);font-weight:600;font-size:12px}
|
|
175
|
+
.side-card .pulse{width:6px;height:6px;border-radius:50%;background:#18a37f;box-shadow:0 0 0 3px rgba(24,163,127,.13);flex:none}
|
|
176
|
+
.side-card p{margin:0 0 12px;line-height:1.65}
|
|
177
|
+
.print-btn{width:100%;background:transparent;border:1px solid var(--line);color:var(--ink-2);font-family:var(--sans);font-size:11.5px;padding:7px 10px;border-radius:8px;cursor:pointer;transition:background .18s,border-color .18s}
|
|
178
|
+
.print-btn:hover{background:var(--surface-2);border-color:var(--line-2)}
|
|
179
|
+
|
|
180
|
+
/* ---------- sections ---------- */
|
|
181
|
+
.sec{scroll-margin-top:88px;margin-bottom:88px}
|
|
182
|
+
.sec:last-child{margin-bottom:0}
|
|
183
|
+
.kicker{display:flex;align-items:center;gap:10px;margin:0 0 13px;font-family:var(--mono);font-size:10.5px;letter-spacing:.19em;text-transform:uppercase;color:var(--accent);font-weight:600}
|
|
184
|
+
.kicker .bar{width:22px;height:1px;background:var(--accent);opacity:.45}
|
|
185
|
+
h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.6rem,2.55vw,2.1rem);line-height:1.45;margin:0 0 16px;letter-spacing:.005em}
|
|
186
|
+
.lead{font-size:16px;line-height:1.95;color:var(--ink-2);max-width:63ch;margin:0 0 32px}
|
|
187
|
+
h3{font-size:1rem;line-height:1.6;margin:0 0 6px;font-weight:650}
|
|
188
|
+
.subhead{margin:30px 0 0;font-size:1.02rem;color:var(--ink)}
|
|
189
|
+
.subhead + .table-wrap{margin-top:12px}
|
|
190
|
+
.release + .subhead{margin-top:4px}
|
|
191
|
+
p{margin:0 0 14px}
|
|
192
|
+
.muted{color:var(--muted)}
|
|
193
|
+
strong{font-weight:650}
|
|
194
|
+
|
|
195
|
+
/* cards */
|
|
196
|
+
.cards-4{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
|
|
197
|
+
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:21px 21px 19px;box-shadow:var(--shadow);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
|
|
198
|
+
.card:hover{transform:translateY(-2px);border-color:#cbded5;box-shadow:0 18px 38px -24px rgba(13,31,26,.32)}
|
|
199
|
+
.card-no{display:inline-flex;font-family:var(--mono);font-size:10px;color:var(--accent);background:var(--accent-soft);padding:2px 7px;border-radius:5px;margin-bottom:13px;letter-spacing:.08em}
|
|
200
|
+
.card h3{font-size:1rem;margin-bottom:5px}
|
|
201
|
+
.card p{font-size:13.5px;line-height:1.8;color:var(--muted);margin:0}
|
|
202
|
+
|
|
203
|
+
/* quote */
|
|
204
|
+
.quote{margin:30px 0 0;padding:24px 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:flex-start}
|
|
205
|
+
.quote .mark{font-family:var(--serif);font-size:40px;line-height:.9;color:#c9c0ad;flex:none}
|
|
206
|
+
.quote p{font-family:var(--serif);font-size:1.08rem;line-height:1.8;color:var(--ink);margin:0;max-width:44em}
|
|
207
|
+
|
|
208
|
+
/* pillars */
|
|
209
|
+
.pillars{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:26px}
|
|
210
|
+
.pillar{padding:24px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(180deg,#fffefb,#fbf9f2);box-shadow:var(--shadow)}
|
|
211
|
+
.pillar-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:12px}
|
|
212
|
+
.pillar-icon{width:38px;height:38px;border-radius:10px;background:var(--accent-soft);border:1px solid #d3e7dd;display:flex;align-items:center;justify-content:center;flex:none;color:var(--accent)}
|
|
213
|
+
.pillar h3{font-family:var(--mono);font-size:14px;margin:1px 0 2px;color:var(--ink);letter-spacing:-.01em}
|
|
214
|
+
.pillar-role{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:#9a9486;margin:0}
|
|
215
|
+
.pillar p{font-size:13.5px;color:var(--ink-2);line-height:1.8;margin:0 0 4px}
|
|
216
|
+
.ticks{list-style:none;margin:14px 0 0;padding:0}
|
|
217
|
+
.ticks li{position:relative;padding-left:17px;font-size:12.5px;color:var(--muted);line-height:1.7;margin-bottom:4px}
|
|
218
|
+
.ticks li::before{content:"";position:absolute;left:1px;top:.62em;width:6px;height:6px;border-radius:50%;border:1.5px solid #7fb8a7}
|
|
219
|
+
|
|
220
|
+
/* flow */
|
|
221
|
+
.flow{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);margin:0;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}
|
|
222
|
+
.flow li{padding:16px 16px 17px;border-left:1px dashed var(--line-2);position:relative}
|
|
223
|
+
.flow li:first-child{border-left:0}
|
|
224
|
+
.flow .fnum{display:block;font-family:var(--mono);font-size:9.5px;color:var(--accent);letter-spacing:.1em;margin-bottom:7px}
|
|
225
|
+
.flow b{display:block;font-size:12.5px;margin-bottom:2px;color:var(--ink)}
|
|
226
|
+
.flow small{display:block;font-size:11px;line-height:1.6;color:var(--muted)}
|
|
227
|
+
.note{margin:18px 0 0;font-size:12.5px;color:var(--muted)}
|
|
228
|
+
.note code{font-size:.92em}
|
|
229
|
+
code{font-family:var(--mono);font-size:.87em;background:#efece3;border:1px solid #e5e0d4;padding:1px 5px;border-radius:4px;color:#284640;white-space:nowrap}
|
|
230
|
+
.lead code,.card code,.pillar code,.rule code,.zone code,.rel code,.limits code{white-space:normal;overflow-wrap:anywhere}
|
|
231
|
+
|
|
232
|
+
/* tables */
|
|
233
|
+
.table-wrap{margin-top:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow-x:auto;box-shadow:var(--shadow)}
|
|
234
|
+
table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:560px}
|
|
235
|
+
thead th{text-align:left;background:#f2efe7;color:#5d6669;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;padding:10px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
|
|
236
|
+
td{padding:12px 16px;border-bottom:1px solid #eee9de;vertical-align:top;color:var(--ink-2);line-height:1.7}
|
|
237
|
+
td code{white-space:normal;overflow-wrap:anywhere}
|
|
238
|
+
tbody tr:last-child td{border-bottom:0}
|
|
239
|
+
tbody td:first-child{color:var(--ink);font-weight:600;white-space:nowrap}
|
|
240
|
+
tbody tr:hover{background:#fbf8f1}
|
|
241
|
+
|
|
242
|
+
/* steps */
|
|
243
|
+
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:24px}
|
|
244
|
+
.step{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:19px;box-shadow:var(--shadow)}
|
|
245
|
+
.step-n{display:flex;justify-content:space-between;font-family:var(--mono);font-size:10px;color:var(--accent);letter-spacing:.08em;margin-bottom:9px}
|
|
246
|
+
.step h3{font-size:.95rem;margin-bottom:4px}
|
|
247
|
+
.step p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.75}
|
|
248
|
+
.pull{margin:26px 0 0;padding:19px 24px;border:1px solid #d3e7dd;background:linear-gradient(90deg,#eef6f2,#f9fbf9);border-radius:12px;font-family:var(--serif);font-size:1.05rem;color:#174a40;text-align:center}
|
|
249
|
+
|
|
250
|
+
/* records */
|
|
251
|
+
.cards-2{display:grid;grid-template-columns:1fr 1fr;gap:13px}
|
|
252
|
+
.flabel{font-family:var(--mono);font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;color:#9a9486;margin-bottom:7px}
|
|
253
|
+
.code-wrap{margin-top:20px;border-radius:14px;overflow:hidden;border:1px solid #1f372f;box-shadow:0 24px 48px -30px rgba(11,29,24,.6)}
|
|
254
|
+
pre.code{margin:0;padding:20px 22px;overflow:auto;background:#0d1b17;color:#dbe8e2;font-family:var(--mono);font-size:12.3px;line-height:1.9;position:relative;scrollbar-width:thin}
|
|
255
|
+
pre.code code{background:none;border:0;padding:0;color:inherit;font-size:inherit;white-space:pre;font-family:inherit}
|
|
256
|
+
pre.code .k{color:#8fd3c0}
|
|
257
|
+
pre.code .s{color:#e8d8a6}
|
|
258
|
+
pre.code .p{color:#7e948b}
|
|
259
|
+
pre.code .n{color:#f0aa72}
|
|
260
|
+
pre.code .c{color:#6d887d;font-style:italic}
|
|
261
|
+
pre.code .ann{color:#e0b877;font-size:9.5px;vertical-align:super;letter-spacing:.05em}
|
|
262
|
+
.copy{position:absolute;top:9px;right:10px;font-family:var(--sans);font-size:10.5px;color:#9fc2b6;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.13);border-radius:6px;padding:3px 8px;cursor:pointer;opacity:0;transition:opacity .18s,background .18s,color .18s}
|
|
263
|
+
pre.code:hover .copy,.copy:focus-visible{opacity:1}
|
|
264
|
+
.copy.done{color:#0b1d18;background:#8fe7d1;border-color:#8fe7d1;opacity:1}
|
|
265
|
+
.legend{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:7px 24px;margin:14px 0 0;padding:15px 18px;background:var(--surface-2);border:1px solid #ece6d9;border-radius:12px;font-size:12px;color:var(--muted)}
|
|
266
|
+
.legend li{display:flex;gap:8px;align-items:baseline;line-height:1.6}
|
|
267
|
+
.legend b{font-family:var(--mono);font-size:11px;color:var(--accent);flex:none}
|
|
268
|
+
.trace{display:grid;grid-template-columns:repeat(4,1fr);margin-top:28px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
|
|
269
|
+
.trace div{padding:16px 17px;border-left:1px dashed var(--line-2)}
|
|
270
|
+
.trace div:first-child{border-left:0}
|
|
271
|
+
.trace b{display:block;font-size:12.5px;margin-bottom:3px}
|
|
272
|
+
.trace span{display:block;font-size:11px;color:var(--muted);line-height:1.6}
|
|
273
|
+
.callout{margin:24px 0 0;padding:17px 21px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 12px 12px 0;font-size:13.5px;line-height:1.8;color:#234a41}
|
|
274
|
+
.callout strong{color:var(--accent-ink)}
|
|
275
|
+
.callout p:last-child{margin:0}
|
|
276
|
+
.callout.warn{background:var(--amber-soft);border-left-color:#c08a3e;color:#5d441d}
|
|
277
|
+
|
|
278
|
+
/* zones */
|
|
279
|
+
.file-mock{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow);margin-top:6px}
|
|
280
|
+
.file-head{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#f2efe7;border-bottom:1px solid var(--line);font-family:var(--mono);font-size:11.5px;color:#5f6a6d}
|
|
281
|
+
.file-head .fdots{display:flex;gap:4px;margin-right:4px}
|
|
282
|
+
.file-head .fdots i{width:6px;height:6px;border-radius:50%;background:#cfc7b6;display:block}
|
|
283
|
+
.file-head .fname{font-weight:600;color:#46504f}
|
|
284
|
+
.file-head .flen{margin-left:auto;font-size:10px;color:#9a9486;letter-spacing:.04em}
|
|
285
|
+
.file-body{padding:20px}
|
|
286
|
+
.zone{border-radius:12px;padding:17px 18px 15px;border:1px solid}
|
|
287
|
+
.zone.generated{background:#f0f7f3;border-color:#cfe3d9}
|
|
288
|
+
.zone.user{background:#fbf3e3;border-color:#e8dcc2}
|
|
289
|
+
.zone-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:7px}
|
|
290
|
+
.zone-top strong{font-size:13.5px;letter-spacing:.01em}
|
|
291
|
+
.tag{font-family:var(--mono);font-size:9.5px;letter-spacing:.03em;padding:1px 7px;border-radius:999px;border:1px solid;background:rgba(255,255,255,.65)}
|
|
292
|
+
.generated .tag{color:#0b6a58;border-color:#b9d8cb}
|
|
293
|
+
.user .tag{color:#8a5a1a;border-color:#e0cda5}
|
|
294
|
+
.zone p{font-size:13px;line-height:1.75;color:#44514d;margin:0 0 9px}
|
|
295
|
+
.zone ul{margin:0;padding-left:17px;font-size:12px;line-height:1.7;color:#5c6663;columns:2;column-gap:26px}
|
|
296
|
+
.zone li{margin-bottom:2px;break-inside:avoid}
|
|
297
|
+
.zone-marker{font-family:var(--mono);font-size:10px;color:#9b9485;margin:11px 0;padding-left:2px;word-break:break-all;line-height:1.6}
|
|
298
|
+
.marker-note{margin:14px 0 0;font-size:11.5px;color:#9a9486;line-height:1.7}
|
|
299
|
+
.marker-note code{font-size:.92em;white-space:normal}
|
|
300
|
+
|
|
301
|
+
/* discipline */
|
|
302
|
+
.loadmap{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}
|
|
303
|
+
.loadmap div{padding:16px 17px;border-left:1px dashed var(--line-2)}
|
|
304
|
+
.loadmap div:first-child{border-left:0}
|
|
305
|
+
.lm-k{display:block;font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
|
|
306
|
+
.loadmap b{display:block;font-size:12.5px;margin-bottom:2px}
|
|
307
|
+
.loadmap span{display:block;font-size:11px;color:var(--muted);line-height:1.6}
|
|
308
|
+
.rules{margin-top:26px;border-top:1px solid var(--line)}
|
|
309
|
+
.rule{display:grid;grid-template-columns:52px 1fr;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
|
|
310
|
+
.rule-n{width:33px;height:33px;border-radius:9px;background:var(--accent-soft);border:1px solid #cfe4da;color:var(--accent-ink);font-family:var(--mono);font-size:11.5px;display:flex;align-items:center;justify-content:center;margin-top:1px}
|
|
311
|
+
.rule h3{font-size:.96rem;margin:0 0 2px}
|
|
312
|
+
.rule p{font-size:13px;line-height:1.78;color:var(--muted);margin:0;max-width:64ch}
|
|
313
|
+
|
|
314
|
+
/* start */
|
|
315
|
+
.install-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
|
|
316
|
+
.install{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:17px;box-shadow:var(--shadow);display:flex;flex-direction:column}
|
|
317
|
+
.install-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
|
|
318
|
+
.install-badge{font-family:var(--mono);font-size:10px;background:var(--accent-soft);border:1px solid #d3e7dd;color:var(--accent-ink);padding:1px 7px;border-radius:5px}
|
|
319
|
+
.install h3{font-size:.92rem;margin:0}
|
|
320
|
+
.install .hint{font-size:11px;color:var(--muted);margin:0 0 12px;line-height:1.6}
|
|
321
|
+
pre.code.mini{font-size:10.8px;line-height:1.75;padding:13px 14px;border-radius:10px;margin-top:auto;white-space:pre-wrap;word-break:break-word;border:1px solid #1f372f}
|
|
322
|
+
pre.code.mini code{white-space:pre-wrap}
|
|
323
|
+
.install .copy{top:7px;right:7px}
|
|
324
|
+
.tools-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
|
|
325
|
+
.toolchip{display:flex;flex-direction:column;gap:1px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 12px;min-width:142px}
|
|
326
|
+
.toolchip b{font-family:var(--mono);font-size:11.5px;color:var(--accent-ink);font-weight:600}
|
|
327
|
+
.toolchip span{font-size:11px;color:var(--muted)}
|
|
328
|
+
|
|
329
|
+
/* status */
|
|
330
|
+
.release{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:26px}
|
|
331
|
+
.rel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:17px 19px;display:flex;flex-direction:column;gap:3px;box-shadow:var(--shadow)}
|
|
332
|
+
.rel-top{display:flex;align-items:center;justify-content:space-between;font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:#8b8475;margin-bottom:3px}
|
|
333
|
+
.badge-ok{font-family:var(--mono);font-size:9.5px;color:#0b6a58;background:#e7f1ec;border:1px solid #cfe4da;border-radius:999px;padding:1px 8px;letter-spacing:.02em;text-transform:none}
|
|
334
|
+
.badge-wait{color:#8a5a1a;background:#f8f0e0;border-color:#e6d5b4}
|
|
335
|
+
.rel b{font-size:1.02rem;line-height:1.5}
|
|
336
|
+
.rel span{font-size:12px;color:var(--muted);line-height:1.65}
|
|
337
|
+
.limits{list-style:none;margin:24px 0 0;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
|
|
338
|
+
.limits li{display:grid;grid-template-columns:23px 1fr;gap:10px;padding:12px 16px;border-top:1px solid #eee9de;font-size:13px;line-height:1.72;color:var(--ink-2)}
|
|
339
|
+
.limits li:first-child{border-top:0}
|
|
340
|
+
.limits .lm{width:17px;height:17px;border-radius:50%;background:#f8f0e0;color:#8a5a1a;font-family:var(--mono);font-size:9.5px;display:flex;align-items:center;justify-content:center;margin-top:3px}
|
|
341
|
+
.roadmap{margin:18px 0 0;font-size:12.5px;color:var(--muted);line-height:1.8}
|
|
342
|
+
.roadmap b{color:var(--ink-2);font-weight:600}
|
|
343
|
+
|
|
344
|
+
/* closing */
|
|
345
|
+
.closing{position:relative;overflow:hidden;background:var(--dark);border-radius:22px;padding:clamp(30px,5vw,52px);color:#eaf4ef;box-shadow:0 40px 70px -50px rgba(11,29,24,.9)}
|
|
346
|
+
.closing::before{content:"";position:absolute;inset:0;background:radial-gradient(700px 380px at 82% -10%,rgba(18,138,116,.4),transparent 68%),radial-gradient(500px 300px at 0% 110%,rgba(154,100,29,.18),transparent 70%)}
|
|
347
|
+
.closing::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:48px 48px;-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 90%);mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 90%)}
|
|
348
|
+
.closing > *{position:relative;z-index:1}
|
|
349
|
+
.closing .kicker{color:#8fc7b8}
|
|
350
|
+
.closing .kicker .bar{background:#8fc7b8}
|
|
351
|
+
.closing h2{color:#f6fbf8;font-size:clamp(1.45rem,2.6vw,1.95rem);line-height:1.55;max-width:25em;margin-bottom:14px}
|
|
352
|
+
.closing p{color:#b9cbc4;max-width:46em;font-size:14px;line-height:1.9}
|
|
353
|
+
.closing-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
|
|
354
|
+
.closing-chips span{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;border:1px solid rgba(143,231,209,.28);color:#9fded0;background:rgba(143,231,209,.06);padding:4px 12px;border-radius:999px}
|
|
355
|
+
|
|
356
|
+
/* footer */
|
|
357
|
+
.site-footer{margin-top:84px;border-top:1px solid var(--line);background:#f1eee6}
|
|
358
|
+
.foot-inner{max-width:1180px;margin:0 auto;padding:26px 32px;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:11.5px;color:#8b8a80;line-height:1.8}
|
|
359
|
+
.foot-inner a{color:#6f7a76;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9c2b2}
|
|
360
|
+
.foot-inner a:hover{color:var(--accent)}
|
|
361
|
+
.foot-links{display:flex;gap:16px;flex-wrap:wrap}
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
@media (max-width:1080px){
|
|
365
|
+
.hero-inner{grid-template-columns:1fr;gap:44px}
|
|
366
|
+
.hero-panel{max-width:560px;justify-self:center}
|
|
367
|
+
.layout{grid-template-columns:1fr;gap:34px;padding-top:48px}
|
|
368
|
+
.sidebar{position:static}
|
|
369
|
+
.toc ol{display:flex;flex-wrap:wrap;gap:6px;border-left:0}
|
|
370
|
+
.toc a{padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);margin:0;font-size:12px}
|
|
371
|
+
.toc a.active{border-color:#b9d8cb;background:var(--accent-soft)}
|
|
372
|
+
.toc a .n{display:none}
|
|
373
|
+
.side-card{display:none}
|
|
374
|
+
.top-nav{display:none}
|
|
375
|
+
.header-right{margin-left:auto}
|
|
376
|
+
}
|
|
377
|
+
@media (max-width:860px){
|
|
378
|
+
body{background-attachment:scroll}
|
|
379
|
+
.flow{grid-template-columns:1fr 1fr}
|
|
380
|
+
.flow li{border-top:1px dashed var(--line-2)}
|
|
381
|
+
.flow li:nth-child(odd){border-left:0}
|
|
382
|
+
.flow li:nth-child(-n+2){border-top:0}
|
|
383
|
+
.loadmap{grid-template-columns:1fr 1fr}
|
|
384
|
+
.loadmap div{border-top:1px dashed var(--line-2)}
|
|
385
|
+
.loadmap div:nth-child(odd){border-left:0}
|
|
386
|
+
.loadmap div:nth-child(-n+2){border-top:0}
|
|
387
|
+
.trace{grid-template-columns:1fr 1fr}
|
|
388
|
+
.trace div{border-top:1px dashed var(--line-2)}
|
|
389
|
+
.trace div:nth-child(odd){border-left:0}
|
|
390
|
+
.trace div:nth-child(-n+2){border-top:0}
|
|
391
|
+
.install-grid{grid-template-columns:1fr}
|
|
392
|
+
.steps{grid-template-columns:1fr}
|
|
393
|
+
.stats{grid-template-columns:1fr 1fr}
|
|
394
|
+
.stats > div:nth-child(3){border-left:0}
|
|
395
|
+
.stats > div:nth-child(n+3){border-top:1px solid var(--line)}
|
|
396
|
+
.pillars{grid-template-columns:1fr}
|
|
397
|
+
}
|
|
398
|
+
@media (max-width:640px){
|
|
399
|
+
body{font-size:15px}
|
|
400
|
+
.container{padding:0 20px}
|
|
401
|
+
.stats-band{padding:0 20px;margin-top:-28px}
|
|
402
|
+
.layout{padding:38px 20px 30px}
|
|
403
|
+
.hero{padding:108px 0 92px}
|
|
404
|
+
.hero h1{font-size:clamp(2.05rem,8.4vw,2.7rem)}
|
|
405
|
+
.hero-chips{gap:6px 14px;font-size:11.5px}
|
|
406
|
+
.cards-4,.cards-2,.release,.legend{grid-template-columns:1fr}
|
|
407
|
+
.zone ul{columns:1}
|
|
408
|
+
.flow{grid-template-columns:1fr}
|
|
409
|
+
.flow li{border-left:0}
|
|
410
|
+
.flow li + li{border-top:1px dashed var(--line-2)}
|
|
411
|
+
.trace{grid-template-columns:1fr}
|
|
412
|
+
.trace div{border-left:0}
|
|
413
|
+
.trace div + div{border-top:1px dashed var(--line-2)}
|
|
414
|
+
.loadmap{grid-template-columns:1fr}
|
|
415
|
+
.loadmap div{border-left:0}
|
|
416
|
+
.loadmap div + div{border-top:1px dashed var(--line-2)}
|
|
417
|
+
.sec{margin-bottom:64px}
|
|
418
|
+
.rule{grid-template-columns:44px 1fr;gap:12px}
|
|
419
|
+
.quote{padding:20px 0}
|
|
420
|
+
.quote .mark{font-size:30px}
|
|
421
|
+
.foot-inner{padding:22px 20px}
|
|
422
|
+
.file-body{padding:14px}
|
|
423
|
+
.term-pre{font-size:10.8px}
|
|
424
|
+
table{min-width:520px}
|
|
425
|
+
.copy{opacity:1}
|
|
426
|
+
}
|
|
427
|
+
@media (prefers-reduced-motion:reduce){
|
|
428
|
+
html{scroll-behavior:auto}
|
|
429
|
+
*,*::before,*::after{animation:none!important;transition:none!important}
|
|
430
|
+
}
|
|
431
|
+
@media (max-width:380px){
|
|
432
|
+
.ver{display:none}
|
|
433
|
+
.brand{font-size:14px}
|
|
434
|
+
}
|
|
435
|
+
@media print{
|
|
436
|
+
.site-header,.sidebar,.progress,.hero-actions,.copy,.site-footer{display:none!important}
|
|
437
|
+
body{background:#fff;font-size:10.5pt}
|
|
438
|
+
.hero{background:#fff;color:#111;padding:16pt 0 10pt}
|
|
439
|
+
.hero::before,.hero::after{display:none}
|
|
440
|
+
.hero h1,.hero h1 em{color:#111}
|
|
441
|
+
.hero-lead{color:#333}
|
|
442
|
+
.hero-lead code{color:#111;background:#f2f2f2;border-color:#ddd}
|
|
443
|
+
.hero-chips{color:#555}
|
|
444
|
+
.closing-chips span{color:#0d6b5b;border-color:#b9d8cb;background:#eef6f2}
|
|
445
|
+
.hero-inner{grid-template-columns:1fr;gap:12pt}
|
|
446
|
+
.hero-panel{display:none}
|
|
447
|
+
.stats-band{margin:0;padding:0}
|
|
448
|
+
.stats{box-shadow:none}
|
|
449
|
+
.layout{display:block;padding:12pt 0}
|
|
450
|
+
.sec{break-inside:auto;margin-bottom:18pt}
|
|
451
|
+
.card,.pillar,.step,.rel,.install,.file-mock,.table-wrap,.limits,.trace,.flow,.loadmap{box-shadow:none;break-inside:avoid}
|
|
452
|
+
.closing{background:#fff;border:1px solid #ccc;color:#111}
|
|
453
|
+
.closing h2,.closing p{color:#111}
|
|
454
|
+
.closing::before,.closing::after{display:none}
|
|
455
|
+
pre.code{background:#f7f5ef!important;color:#1a1a1a!important;border:1px solid #ccc}
|
|
456
|
+
pre.code .k{color:#0b5d4f!important}
|
|
457
|
+
pre.code .s{color:#6b4f12!important}
|
|
458
|
+
pre.code .p{color:#444!important}
|
|
459
|
+
pre.code .n{color:#8a4b12!important}
|
|
460
|
+
pre.code .c{color:#666!important}
|
|
461
|
+
pre.code .ann{color:#8a5a1a!important}
|
|
462
|
+
a{color:#111;text-decoration:none}
|
|
463
|
+
}
|
|
464
|
+
</style>
|
|
465
|
+
<noscript>
|
|
466
|
+
<style>
|
|
467
|
+
.site-header{background:rgba(246,244,238,.96);border-bottom-color:var(--line)}
|
|
468
|
+
.site-header .brand,.site-header .brand:hover{color:var(--ink)}
|
|
469
|
+
.site-header .ver{color:var(--accent-ink);background:var(--accent-soft);border-color:#cfe4da}
|
|
470
|
+
.site-header .top-nav a{color:var(--muted)}
|
|
471
|
+
.site-header .top-nav a:hover{color:var(--ink)}
|
|
472
|
+
.site-header .header-right{border-left-color:var(--line)}
|
|
473
|
+
.site-header .npm-link{color:var(--ink-2)}
|
|
474
|
+
.copy{display:none}
|
|
475
|
+
</style>
|
|
476
|
+
</noscript>
|
|
477
|
+
</head>
|
|
478
|
+
<body>
|
|
479
|
+
<a class="skip" href="#main">跳到正文</a>
|
|
480
|
+
<div class="progress" aria-hidden="true"><span id="progressBar"></span></div>
|
|
481
|
+
|
|
482
|
+
<header class="site-header" id="top">
|
|
483
|
+
<a class="brand" href="#top" aria-label="dsh-ai-collab 首页">
|
|
484
|
+
<svg class="logo" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="8" fill="#0d6b5b"/><path d="M9 11h14M9 16h9M9 21h11" stroke="#8fe7d1" stroke-width="2.6" stroke-linecap="round"/></svg>
|
|
485
|
+
<span>dsh-ai-collab</span>
|
|
486
|
+
</a>
|
|
487
|
+
<span class="ver">v0.5.0</span>
|
|
488
|
+
<nav class="top-nav" aria-label="页面导航">
|
|
489
|
+
<a href="#problem">问题</a>
|
|
490
|
+
<a href="#model">机制</a>
|
|
491
|
+
<a href="#records">记录</a>
|
|
492
|
+
<a href="#zones">分区</a>
|
|
493
|
+
<a href="#discipline">纪律</a>
|
|
494
|
+
<a href="#start">上手</a>
|
|
495
|
+
</nav>
|
|
496
|
+
<div class="header-right">
|
|
497
|
+
<a class="npm-link" href="https://www.npmjs.com/package/dsh-ai-collab" target="_blank" rel="noopener">npm <span class="up" aria-hidden="true">↗</span></a>
|
|
498
|
+
</div>
|
|
499
|
+
</header>
|
|
500
|
+
|
|
501
|
+
<section class="hero">
|
|
502
|
+
<div class="container hero-inner">
|
|
503
|
+
<div class="hero-copy">
|
|
504
|
+
<p class="eyebrow"><span class="dot"></span>DeepSeek Harness Bundle · 项目无关的 AI 协作层</p>
|
|
505
|
+
<h1>让每个 AI 会话,<br><em>接着上一棒</em>继续</h1>
|
|
506
|
+
<p class="hero-lead">
|
|
507
|
+
dsh-ai-collab 在仓库里放下两样东西:一个所有工具共用的 <code>AGENTS.md</code>,和一个只追加、可校验的 <code>.ai/</code> 工作记录层。
|
|
508
|
+
项目事实、当前进度、历史决策,从此只有一份。
|
|
509
|
+
</p>
|
|
510
|
+
<div class="hero-actions">
|
|
511
|
+
<a class="btn btn-primary" href="#problem">它解决什么 <span class="arr" aria-hidden="true">↓</span></a>
|
|
512
|
+
<a class="btn btn-ghost" href="#start">快速开始</a>
|
|
513
|
+
</div>
|
|
514
|
+
<ul class="hero-chips">
|
|
515
|
+
<li>数据只留本机</li>
|
|
516
|
+
<li>无需联网</li>
|
|
517
|
+
<li>MIT 许可</li>
|
|
518
|
+
<li>Windows 10 / 11</li>
|
|
519
|
+
</ul>
|
|
520
|
+
</div>
|
|
521
|
+
<div class="hero-panel">
|
|
522
|
+
<div class="terminal" role="img" aria-label="示例终端:读取项目状态与最近记录">
|
|
523
|
+
<div class="term-bar">
|
|
524
|
+
<span class="dot r"></span><span class="dot y"></span><span class="dot g"></span>
|
|
525
|
+
<span class="term-title">PowerShell — sample-firmware</span>
|
|
526
|
+
<span class="term-badge">LOCAL ONLY</span>
|
|
527
|
+
</div>
|
|
528
|
+
<pre class="term-pre"><span class="prompt">$</span> <span class="cmd">.ai\llm.cmd status</span>
|
|
529
|
+
<span class="dim">project</span> sample-firmware <span class="dim">phase</span> maintain
|
|
530
|
+
<span class="dim">focus</span> uart-dma <span class="dim">blockers</span> —
|
|
531
|
+
<span class="dim">last</span> fix · ok · <span class="val">2026-11-20T09:39+08:00</span>
|
|
532
|
+
<span class="val">"修正 DMA 环形缓冲边界,rebuild 0/0"</span>
|
|
533
|
+
|
|
534
|
+
<span class="prompt">$</span> <span class="cmd">.ai\llm.cmd tail -N 2</span>
|
|
535
|
+
<span class="ok">●</span> 11-20 09:39 <span class="warn">fix</span> 修正 DMA 环形缓冲边界
|
|
536
|
+
<span class="ok">●</span> 11-19 18:02 <span class="warn">build</span> rebuild 0/0,Code=124476
|
|
537
|
+
|
|
538
|
+
<span class="prompt">$</span> <span class="caret" aria-hidden="true"></span></pre>
|
|
539
|
+
</div>
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
</section>
|
|
543
|
+
|
|
544
|
+
<div class="stats-band">
|
|
545
|
+
<div class="stats" role="list">
|
|
546
|
+
<div role="listitem"><div class="stat-value">5<small>个</small></div><div class="stat-label">原生工具</div></div>
|
|
547
|
+
<div role="listitem"><div class="stat-value">3<small>条</small></div><div class="stat-label">命令开始交接</div></div>
|
|
548
|
+
<div role="listitem"><div class="stat-value">0<small>次</small></div><div class="stat-label">网络请求</div></div>
|
|
549
|
+
<div role="listitem"><div class="stat-value">100<small>%</small></div><div class="stat-label">数据本地留存</div></div>
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
<div class="layout">
|
|
554
|
+
<aside class="sidebar" aria-label="本页目录">
|
|
555
|
+
<p class="toc-label">本页目录</p>
|
|
556
|
+
<nav class="toc">
|
|
557
|
+
<ol>
|
|
558
|
+
<li><a href="#problem"><span class="n">01</span>问题:重新认识项目</a></li>
|
|
559
|
+
<li><a href="#model"><span class="n">02</span>机制:一个入口,一层协作层</a></li>
|
|
560
|
+
<li><a href="#progress"><span class="n">03</span>统一:同一份事实与历史</a></li>
|
|
561
|
+
<li><a href="#records"><span class="n">04</span>记录:本地留存与追溯</a></li>
|
|
562
|
+
<li><a href="#zones"><span class="n">05</span>分区:模板与事实各管各的</a></li>
|
|
563
|
+
<li><a href="#discipline"><span class="n">06</span>纪律:随会话加载</a></li>
|
|
564
|
+
<li><a href="#handoff"><span class="n">07</span>交接:接棒提示词与并发</a></li>
|
|
565
|
+
<li><a href="#start"><span class="n">08</span>上手:三条命令</a></li>
|
|
566
|
+
<li><a href="#status"><span class="n">09</span>边界与发布状态</a></li>
|
|
567
|
+
<li><a href="#summary"><span class="n">10</span>结语</a></li>
|
|
568
|
+
</ol>
|
|
569
|
+
</nav>
|
|
570
|
+
<div class="side-card">
|
|
571
|
+
<div class="sc-row"><span class="pulse" aria-hidden="true"></span>已发布 · 0.5.0</div>
|
|
572
|
+
<p>npm 已上架,社区市场已收录;脚手架当前支持 Windows。</p>
|
|
573
|
+
<button class="print-btn" type="button" id="printBtn" onclick="window.print()">打印 / 保存为 PDF</button>
|
|
574
|
+
</div>
|
|
575
|
+
</aside>
|
|
576
|
+
|
|
577
|
+
<main id="main" tabindex="-1">
|
|
578
|
+
|
|
579
|
+
<!-- 01 -->
|
|
580
|
+
<section class="sec" id="problem">
|
|
581
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>01 · 问题</p>
|
|
582
|
+
<h2>每个新会话,都在重新认识同一个项目</h2>
|
|
583
|
+
<p class="lead">多 AI 工具协作时,最贵的成本往往不是写代码,而是让每个新会话重新理解项目——构建命令、烧录地址、只读目录、上次改到哪、为什么这样改。</p>
|
|
584
|
+
|
|
585
|
+
<div class="cards-4">
|
|
586
|
+
<article class="card">
|
|
587
|
+
<span class="card-no">01</span>
|
|
588
|
+
<h3>重复交底</h3>
|
|
589
|
+
<p>构建、烧录、编码约定散落在聊天窗口与个人笔记里,换一个工具就要重讲一遍。</p>
|
|
590
|
+
</article>
|
|
591
|
+
<article class="card">
|
|
592
|
+
<span class="card-no">02</span>
|
|
593
|
+
<h3>进度断层</h3>
|
|
594
|
+
<p>上一个会话的结论只活在上下文里;窗口一关,项目就回到「未读」状态。</p>
|
|
595
|
+
</article>
|
|
596
|
+
<article class="card">
|
|
597
|
+
<span class="card-no">03</span>
|
|
598
|
+
<h3>工具割裂</h3>
|
|
599
|
+
<p>DSH、Claude Code、Cursor、Copilot 各记各的,没有一份共同的事实源。</p>
|
|
600
|
+
</article>
|
|
601
|
+
<article class="card">
|
|
602
|
+
<span class="card-no">04</span>
|
|
603
|
+
<h3>改动无账</h3>
|
|
604
|
+
<p>改了什么、怎么验证、下一步是什么,只剩人的记忆和零散的提交说明。</p>
|
|
605
|
+
</article>
|
|
606
|
+
</div>
|
|
607
|
+
|
|
608
|
+
<div class="quote">
|
|
609
|
+
<span class="mark" aria-hidden="true">“</span>
|
|
610
|
+
<p>最贵的不是写代码,而是让每个新会话重新理解项目。交底、记账、校验本来就要做——插件只是把它们变成仓库里的文件,而不是会话里的消耗品。</p>
|
|
611
|
+
</div>
|
|
612
|
+
</section>
|
|
613
|
+
|
|
614
|
+
<!-- 02 -->
|
|
615
|
+
<section class="sec" id="model">
|
|
616
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>02 · 机制</p>
|
|
617
|
+
<h2>一个入口,一层协作层</h2>
|
|
618
|
+
<p class="lead">它不改变工程结构,只在项目根增加两样东西。<code>AGENTS.md</code> 负责「说清楚」,<code>.ai/</code> 负责「记下来」。</p>
|
|
619
|
+
|
|
620
|
+
<div class="pillars">
|
|
621
|
+
<article class="pillar">
|
|
622
|
+
<div class="pillar-head">
|
|
623
|
+
<span class="pillar-icon" aria-hidden="true">
|
|
624
|
+
<svg width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6M9 17h4"/></svg>
|
|
625
|
+
</span>
|
|
626
|
+
<div>
|
|
627
|
+
<h3>AGENTS.md</h3>
|
|
628
|
+
<p class="pillar-role">唯一入口</p>
|
|
629
|
+
</div>
|
|
630
|
+
</div>
|
|
631
|
+
<p>所有工具开工先读:项目事实(构建、烧录、只读目录、编码约定)与固定动作(开工读什么、收工写什么)。纯文本、可 diff、可评审。</p>
|
|
632
|
+
<ul class="ticks">
|
|
633
|
+
<li>DSH、Cursor 3.x、Copilot 原生读取</li>
|
|
634
|
+
<li>Claude Code / Gemini 可一行转发</li>
|
|
635
|
+
<li>分 generated 与 user 两区维护</li>
|
|
636
|
+
</ul>
|
|
637
|
+
</article>
|
|
638
|
+
|
|
639
|
+
<article class="pillar">
|
|
640
|
+
<div class="pillar-head">
|
|
641
|
+
<span class="pillar-icon" aria-hidden="true">
|
|
642
|
+
<svg width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M8 13h8M8 16h5"/></svg>
|
|
643
|
+
</span>
|
|
644
|
+
<div>
|
|
645
|
+
<h3>.ai/</h3>
|
|
646
|
+
<p class="pillar-role">协作层</p>
|
|
647
|
+
</div>
|
|
648
|
+
</div>
|
|
649
|
+
<p>追加式日志、当前状态快照、版本级变更、schema 与归档。所有写入经由 <code>.ai\llm.cmd</code> 或 5 个原生工具,编码与格式由脚本保证。</p>
|
|
650
|
+
<ul class="ticks">
|
|
651
|
+
<li>log.jsonl 只追加,不改写</li>
|
|
652
|
+
<li>status.json 覆盖式,10 秒接手</li>
|
|
653
|
+
<li>changelog/ 存根因、数据与补丁</li>
|
|
654
|
+
</ul>
|
|
655
|
+
</article>
|
|
656
|
+
</div>
|
|
657
|
+
|
|
658
|
+
<ol class="flow" aria-label="一次会话的交接流程">
|
|
659
|
+
<li><span class="fnum">STEP 1</span><b>开始会话</b><small>任意工具进入项目</small></li>
|
|
660
|
+
<li><span class="fnum">STEP 2</span><b>读 AGENTS.md</b><small>事实、约束、固定动作</small></li>
|
|
661
|
+
<li><span class="fnum">STEP 3</span><b>status + tail</b><small>当前阶段与最近十条</small></li>
|
|
662
|
+
<li><span class="fnum">STEP 4</span><b>执行并 add</b><small>一行记录,带验证结果</small></li>
|
|
663
|
+
<li><span class="fnum">STEP 5</span><b>check 后交接</b><small>下一个工具从文件接手</small></li>
|
|
664
|
+
</ol>
|
|
665
|
+
<p class="note">与语言、框架、IDE 无关:嵌入式固件、桌面应用、脚本仓库、文档工程共用同一套协议。</p>
|
|
666
|
+
</section>
|
|
667
|
+
|
|
668
|
+
<!-- 03 -->
|
|
669
|
+
<section class="sec" id="progress">
|
|
670
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>03 · 统一进度</p>
|
|
671
|
+
<h2>同一份事实,同一份历史</h2>
|
|
672
|
+
<p class="lead">工具可以换,入口不变。每个工具开工前读同一份快照,收工后写同一条流水;人也不例外。</p>
|
|
673
|
+
|
|
674
|
+
<div class="table-wrap">
|
|
675
|
+
<table>
|
|
676
|
+
<thead>
|
|
677
|
+
<tr><th>工具</th><th>接入方式</th><th>参与方式</th></tr>
|
|
678
|
+
</thead>
|
|
679
|
+
<tbody>
|
|
680
|
+
<tr><td>DSH</td><td>Bundle 安装,5 个原生工具</td><td><code>ai_status</code> / <code>ai_log</code> / <code>ai_check</code> 直接读写</td></tr>
|
|
681
|
+
<tr><td>Claude Code</td><td>用户级 <code>CLAUDE.md</code> 转发,或 <code>entries -Publish</code></td><td>读 <code>AGENTS.md</code>,用 <code>llm.cmd</code> 记录</td></tr>
|
|
682
|
+
<tr><td>Cursor / Copilot</td><td>原生读取 <code>AGENTS.md</code></td><td>继承项目事实与纪律</td></tr>
|
|
683
|
+
<tr><td>Codex / 其他 CLI</td><td>任意 shell 调用 <code>.ai\llm.cmd</code></td><td><code>status</code> / <code>tail</code> / <code>add</code> / <code>check</code></td></tr>
|
|
684
|
+
<tr><td>人</td><td>同一条命令</td><td><code>tool: human</code>,决策与验收也入账</td></tr>
|
|
685
|
+
</tbody>
|
|
686
|
+
</table>
|
|
687
|
+
</div>
|
|
688
|
+
|
|
689
|
+
<div class="steps">
|
|
690
|
+
<article class="step">
|
|
691
|
+
<div class="step-n"><span>01 开工</span><span>≈ 10 秒</span></div>
|
|
692
|
+
<h3>先读状态</h3>
|
|
693
|
+
<p><code>status</code> 与 <code>tail -N 10</code>:当前阶段、焦点、阻塞、下一步,以及最近十条记录。</p>
|
|
694
|
+
</article>
|
|
695
|
+
<article class="step">
|
|
696
|
+
<div class="step-n"><span>02 收工</span><span>1 条记录</span></div>
|
|
697
|
+
<h3>追加流水</h3>
|
|
698
|
+
<p><code>add</code> 自动生成 id 与时间戳,刷新 <code>status.json</code>,并在需要时刷新看板与 <code>TASKS.md</code>。</p>
|
|
699
|
+
</article>
|
|
700
|
+
<article class="step">
|
|
701
|
+
<div class="step-n"><span>03 提交前</span><span>强制</span></div>
|
|
702
|
+
<h3>校验记录</h3>
|
|
703
|
+
<p><code>check</code> 检查必填字段、枚举、时区、时间单调与 id 唯一,可选扫描敏感信息。</p>
|
|
704
|
+
</article>
|
|
705
|
+
</div>
|
|
706
|
+
|
|
707
|
+
<p class="pull">换工具不换进度,换会话不换上下文。</p>
|
|
708
|
+
</section>
|
|
709
|
+
|
|
710
|
+
<!-- 04 -->
|
|
711
|
+
<section class="sec" id="records">
|
|
712
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>04 · 本地记录</p>
|
|
713
|
+
<h2>记录留在本地,半年后还能追溯</h2>
|
|
714
|
+
<p class="lead">聊天记录会消失,仓库里的文件不会。每次工作被压成一行可校验的 JSON,「当前状态」与「版本级细节」分开存放。</p>
|
|
715
|
+
|
|
716
|
+
<div class="cards-2">
|
|
717
|
+
<article class="card">
|
|
718
|
+
<div class="flabel">Append-only · log.jsonl</div>
|
|
719
|
+
<h3>只追加,不改写</h3>
|
|
720
|
+
<p>UTF-8 无 BOM、LF、一行一个 JSON 对象。写错就追加一条 <code>correction</code>,用 <code>corrects</code> 指向原记录;历史行永不修改或删除。</p>
|
|
721
|
+
</article>
|
|
722
|
+
<article class="card">
|
|
723
|
+
<div class="flabel">Snapshot · status.json</div>
|
|
724
|
+
<h3>覆盖式状态快照</h3>
|
|
725
|
+
<p><code>phase</code>、<code>focus</code>、<code>blockers</code>、<code>next</code>、<code>last_log</code>。新工具先读这一份,不必翻完整本流水。</p>
|
|
726
|
+
</article>
|
|
727
|
+
<article class="card">
|
|
728
|
+
<div class="flabel">Changelog · changelog/</div>
|
|
729
|
+
<h3>版本级细节</h3>
|
|
730
|
+
<p>根因、实测数据、补丁与已知限制。日志里的 <code>summary</code> 用 <code>refs</code> 指过去,不把单条记录撑大。</p>
|
|
731
|
+
</article>
|
|
732
|
+
<article class="card">
|
|
733
|
+
<div class="flabel">Validate · ai_check</div>
|
|
734
|
+
<h3>结构可校验</h3>
|
|
735
|
+
<p>必填字段、枚举、时区、<code>ts</code> 单调、<code>id</code> 唯一;超过 2 MB 或每季度归档到 <code>_archive/</code>,历史仍可检索。</p>
|
|
736
|
+
</article>
|
|
737
|
+
</div>
|
|
738
|
+
|
|
739
|
+
<div class="code-wrap">
|
|
740
|
+
<pre class="code json"><code><span class="p">{</span>
|
|
741
|
+
<span class="k">"id"</span><span class="p">:</span> <span class="s">"20261120T013921289-a3a5b4"</span><span class="p">,</span> <span class="ann">①</span>
|
|
742
|
+
<span class="k">"ts"</span><span class="p">:</span> <span class="s">"2026-11-20T09:39:21+08:00"</span><span class="p">,</span> <span class="ann">②</span>
|
|
743
|
+
<span class="k">"tool"</span><span class="p">:</span> <span class="s">"deepseek-harness"</span><span class="p">,</span>
|
|
744
|
+
<span class="k">"actor"</span><span class="p">:</span> <span class="s">"ai"</span><span class="p">,</span>
|
|
745
|
+
<span class="k">"action"</span><span class="p">:</span> <span class="s">"fix"</span><span class="p">,</span> <span class="ann">③</span>
|
|
746
|
+
<span class="k">"status"</span><span class="p">:</span> <span class="s">"ok"</span><span class="p">,</span>
|
|
747
|
+
<span class="k">"summary"</span><span class="p">:</span> <span class="s">"修正 DMA 环形缓冲边界,rebuild 0/0"</span><span class="p">,</span> <span class="ann">④</span>
|
|
748
|
+
<span class="k">"files_modified"</span><span class="p">:</span> <span class="p">[</span><span class="s">"src/uart_dma.c"</span><span class="p">],</span>
|
|
749
|
+
<span class="k">"verification"</span><span class="p">:</span> <span class="s">"rebuild 0/0, Code=124476"</span><span class="p">,</span> <span class="ann">⑤</span>
|
|
750
|
+
<span class="k">"refs"</span><span class="p">:</span> <span class="p">[</span><span class="s">".ai/changelog/2026-11-20-uart-dma.md"</span><span class="p">]</span>
|
|
751
|
+
<span class="p">}</span></code></pre>
|
|
752
|
+
</div>
|
|
753
|
+
|
|
754
|
+
<ul class="legend">
|
|
755
|
+
<li><b>①</b><span>唯一 id,供 correction 引用</span></li>
|
|
756
|
+
<li><b>②</b><span>ISO-8601 带时区,时间必须单调</span></li>
|
|
757
|
+
<li><b>③</b><span>status 五态;blocked / failed 必填 issue</span></li>
|
|
758
|
+
<li><b>④</b><span>一句话结论:做了什么 + 结果</span></li>
|
|
759
|
+
<li><b>⑤</b><span>怎么验的,以及细节在哪</span></li>
|
|
760
|
+
</ul>
|
|
761
|
+
|
|
762
|
+
<div class="trace" aria-label="追溯链">
|
|
763
|
+
<div><b>一行记录</b><span>谁、何时、做了什么</span></div>
|
|
764
|
+
<div><b>状态快照</b><span>现在到哪、卡在哪</span></div>
|
|
765
|
+
<div><b>版本变更</b><span>为什么、怎么验证</span></div>
|
|
766
|
+
<div><b>季度归档</b><span>历史仍可检索</span></div>
|
|
767
|
+
</div>
|
|
768
|
+
<p class="note">目标只有一个:任何时候都能回答——谁做的、改了什么、怎么验的、下一步是什么。</p>
|
|
769
|
+
|
|
770
|
+
<div class="callout">
|
|
771
|
+
<p><strong>工作记录不出工作区。</strong>插件不发起网络请求、不写注册表、不接触凭据;敏感值放 <code>.ai/private/</code>,文档只写键名。任务清单在插件进程内渲染,克隆来路不明的仓库并记录日志,也不会执行仓库里的脚本。</p>
|
|
772
|
+
</div>
|
|
773
|
+
</section>
|
|
774
|
+
|
|
775
|
+
<!-- 05 -->
|
|
776
|
+
<section class="sec" id="zones">
|
|
777
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>05 · 分区设置</p>
|
|
778
|
+
<h2>模板管纪律,项目管事实</h2>
|
|
779
|
+
<p class="lead"><code>AGENTS.md</code> 被两条标记切成两个区。插件升级时只重写 generated 区,项目事实与区外内容逐字节保留。</p>
|
|
780
|
+
|
|
781
|
+
<div class="file-mock">
|
|
782
|
+
<div class="file-head">
|
|
783
|
+
<span class="fdots" aria-hidden="true"><i></i><i></i><i></i></span>
|
|
784
|
+
<span class="fname">AGENTS.md</span>
|
|
785
|
+
<span class="flen">generated + user</span>
|
|
786
|
+
</div>
|
|
787
|
+
<div class="file-body">
|
|
788
|
+
<div class="zone generated">
|
|
789
|
+
<div class="zone-top">
|
|
790
|
+
<strong>generated 区 · §2–§7</strong>
|
|
791
|
+
<span class="tag">模板维护 · 升级时重写</span>
|
|
792
|
+
</div>
|
|
793
|
+
<p>开工 / 收工固定动作、目录与权限表、构建与验证、硬性约束、领域文档索引、多工具入口。</p>
|
|
794
|
+
<ul>
|
|
795
|
+
<li>开工 / 收工固定动作</li>
|
|
796
|
+
<li>目录与权限表</li>
|
|
797
|
+
<li>构建与验证方式</li>
|
|
798
|
+
<li>硬性约束与编码规则</li>
|
|
799
|
+
<li>领域文档索引</li>
|
|
800
|
+
<li>多工具入口与转发</li>
|
|
801
|
+
</ul>
|
|
802
|
+
</div>
|
|
803
|
+
|
|
804
|
+
<p class="zone-marker"><!-- dsh-ai-collab:generated:end --> <!-- dsh-ai-collab:user:start --></p>
|
|
805
|
+
|
|
806
|
+
<div class="zone user">
|
|
807
|
+
<div class="zone-top">
|
|
808
|
+
<strong>user 区 · §1 及之后追加</strong>
|
|
809
|
+
<span class="tag">项目维护 · 逐字节保留</span>
|
|
810
|
+
</div>
|
|
811
|
+
<p>项目名、根目录、MCU / 工具链、版本控制、日志位置,以及采样数据、分析方法、硬件与协议约束、决策记录。</p>
|
|
812
|
+
<ul>
|
|
813
|
+
<li>项目名与根目录</li>
|
|
814
|
+
<li>MCU / 工具链</li>
|
|
815
|
+
<li>版本控制与日志位置</li>
|
|
816
|
+
<li>采样数据与采集过程</li>
|
|
817
|
+
<li>硬件 / 协议约束</li>
|
|
818
|
+
<li>决策与验证结论</li>
|
|
819
|
+
</ul>
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
</div>
|
|
823
|
+
<p class="marker-note">实际文件由 HTML 注释标记分隔;上方两个区之间同时出现 generated 区的结束标记与 user 区的开始标记,文件末尾是 user 区的结束标记。</p>
|
|
824
|
+
|
|
825
|
+
<h3 class="subhead">分区规则</h3>
|
|
826
|
+
<div class="table-wrap">
|
|
827
|
+
<table>
|
|
828
|
+
<thead><tr><th>场景</th><th>行为</th></tr></thead>
|
|
829
|
+
<tbody>
|
|
830
|
+
<tr><td>重渲染范围</td><td>只替换 generated 区;user 区与区外内容逐字节保留</td></tr>
|
|
831
|
+
<tr><td>其它状态文件</td><td><code>placeholders.json</code> / <code>log.jsonl</code> / <code>status.json</code> 一律不动</td></tr>
|
|
832
|
+
<tr><td>无分区标记的文件</td><td>视为项目自有文件并冻结(含旧格式单行标记);参考渲染只写 <code>.ai\AGENTS.generated.md</code></td></tr>
|
|
833
|
+
<tr><td>显式迁移</td><td><code>-ForceAgents</code>:旧内容整体迁入 user 区,不删除;<code>-ResetAgents</code>:丢弃旧内容,破坏性</td></tr>
|
|
834
|
+
</tbody>
|
|
835
|
+
</table>
|
|
836
|
+
</div>
|
|
837
|
+
|
|
838
|
+
<p class="note">分区也发生在项目之间:每个仓库的 <code>.ai/</code> 只属于自己;兄弟项目共享的 <code>board.md</code> 只读汇总,不反写任何项目的记录。</p>
|
|
839
|
+
|
|
840
|
+
<div class="callout warn">
|
|
841
|
+
<p><strong>升级不再意味着「重新生成一份 AGENTS.md,再手工补回项目事实」。</strong>同一份 generated 区里还有 §3 权限表,把「哪些路径可写」也变成可评审的约定;user 区则由项目长期维护。</p>
|
|
842
|
+
</div>
|
|
843
|
+
</section>
|
|
844
|
+
|
|
845
|
+
<!-- 06 -->
|
|
846
|
+
<section class="sec" id="discipline">
|
|
847
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>06 · 全局纪律</p>
|
|
848
|
+
<h2>全局纪律,随每个会话加载</h2>
|
|
849
|
+
<p class="lead">纪律现在由插件管理,不再靠手抄。全局纪律驻留在 <code>$DSH_HOME/AGENTS.md</code>,DSH 在每个会话无条件注入;<code>ai_discipline global-migrate</code> 把它拆成 8 个可独立开关的模块(<code>g0.md</code>…<code>g7.md</code>),之后 <code>global-disable g7</code> 这样一条调用就能让某节纪律从提示词里真正消失。</p>
|
|
850
|
+
|
|
851
|
+
<div class="loadmap" aria-label="纪律加载链路">
|
|
852
|
+
<div><span class="lm-k">01 · 安装</span><b>$DSH_HOME/AGENTS.md</b><span>跨项目纪律,一份文件</span></div>
|
|
853
|
+
<div><span class="lm-k">02 · 注入</span><b>每个新会话</b><span>DSH 启动时自动加载</span></div>
|
|
854
|
+
<div><span class="lm-k">03 · 第 0 步</span><b>ai-ensure</b><span>接入 / 升级 / 刷新,幂等</span></div>
|
|
855
|
+
<div><span class="lm-k">04 · 落地</span><b>项目 AGENTS.md + .ai/</b><span>事实与记录各归其位</span></div>
|
|
856
|
+
</div>
|
|
857
|
+
|
|
858
|
+
<div class="callout">
|
|
859
|
+
<p><strong>全局文件只放跨项目纪律,没有任何项目事实。</strong>项目事实留在 <code><项目根>/AGENTS.md</code>。编辑全局文件对下一次请求立即生效,无需重启;插件代码升级才需要重启 DSH。</p>
|
|
860
|
+
<p><strong>能做什么、不能做什么:</strong>可以全局停用某一节纪律,也可以给单个项目追加更严的规则;但<strong>不能只对某个项目卸载全局纪律</strong>——DSH 注入全局文件是无条件的,项目级只能「加」不能「减」。</p>
|
|
861
|
+
</div>
|
|
862
|
+
|
|
863
|
+
<div class="rules">
|
|
864
|
+
<div class="rule">
|
|
865
|
+
<span class="rule-n">00</span>
|
|
866
|
+
<div><h3>第 0 步 · ai-ensure</h3><p>每个会话先保证接入与同步:缺骨架则生成、模板过期则升级、看板过期则刷新。临时或系统目录返回 <code>not-project</code>,不强行接入。</p></div>
|
|
867
|
+
</div>
|
|
868
|
+
<div class="rule">
|
|
869
|
+
<span class="rule-n">01</span>
|
|
870
|
+
<div><h3>先对齐,再动手</h3><p>动手前给出本轮目标、待定项、方案与取舍;确认后执行。纯只读查询例外。</p></div>
|
|
871
|
+
</div>
|
|
872
|
+
<div class="rule">
|
|
873
|
+
<span class="rule-n">02</span>
|
|
874
|
+
<div><h3>日志归属与看板边界</h3><p>详细记录只留在各自项目的 <code>.ai/</code>;跨项目看板只读汇总,禁止反写项目内容。</p></div>
|
|
875
|
+
</div>
|
|
876
|
+
<div class="rule">
|
|
877
|
+
<span class="rule-n">03</span>
|
|
878
|
+
<div><h3>默认只读与权限确认</h3><p>工程文件默认只读;写未列出的路径,先说明原因与影响范围,确认后更新权限表再动手。</p></div>
|
|
879
|
+
</div>
|
|
880
|
+
<div class="rule">
|
|
881
|
+
<span class="rule-n">04</span>
|
|
882
|
+
<div><h3>三步工作法</h3><p><code>status</code> + <code>tail</code> 开工,<code>add</code> 收工,<code>check</code> 校验。没写记录 = 这件事没做完。</p></div>
|
|
883
|
+
</div>
|
|
884
|
+
<div class="rule">
|
|
885
|
+
<span class="rule-n">05</span>
|
|
886
|
+
<div><h3>事实与模板同步</h3><p>generated 区归模板,user 区归项目;重渲染只替换 generated,事实逐字节保留。</p></div>
|
|
887
|
+
</div>
|
|
888
|
+
<div class="rule">
|
|
889
|
+
<span class="rule-n">06</span>
|
|
890
|
+
<div><h3>硬性边界</h3><p>临时目录、只读目录、工作区之外不接入;凭据、内网地址、客户信息不进日志。</p></div>
|
|
891
|
+
</div>
|
|
892
|
+
<div class="rule">
|
|
893
|
+
<span class="rule-n">07</span>
|
|
894
|
+
<div><h3>记录质量</h3><p><code>summary</code> 写「做了什么 + 结果 + 验证方式」;根因、数据与补丁放 changelog,用 <code>refs</code> 指过去。</p></div>
|
|
895
|
+
</div>
|
|
896
|
+
</div>
|
|
897
|
+
|
|
898
|
+
<div class="table-wrap">
|
|
899
|
+
<table>
|
|
900
|
+
<thead><tr><th>层级</th><th>文件</th><th>放什么</th><th>维护者</th></tr></thead>
|
|
901
|
+
<tbody>
|
|
902
|
+
<tr><td>用户级</td><td><code>$DSH_HOME/AGENTS.md</code></td><td>跨项目纪律,无项目事实</td><td>用户 / 模板</td></tr>
|
|
903
|
+
<tr><td>项目级</td><td><code><项目根>/AGENTS.md</code></td><td>项目事实 + 纪律路由</td><td>generated 模板 + user 区</td></tr>
|
|
904
|
+
<tr><td>证据级</td><td><code>.ai/log.jsonl</code> 等</td><td>每次工作的流水与验证</td><td>所有工具与人</td></tr>
|
|
905
|
+
</tbody>
|
|
906
|
+
</table>
|
|
907
|
+
</div>
|
|
908
|
+
|
|
909
|
+
<div class="code-wrap">
|
|
910
|
+
<pre class="code powershell"><code><span class="c"># 首次:把已有的全局 AGENTS.md 拆成可开关的模块(先备份,原文逐字节保留)</span>
|
|
911
|
+
ai_discipline action:global-migrate
|
|
912
|
+
|
|
913
|
+
<span class="c"># 日常:全局模块开关,改完立即重渲染 $DSH_HOME/AGENTS.md</span>
|
|
914
|
+
ai_discipline action:global-list
|
|
915
|
+
ai_discipline action:global-disable id:g7
|
|
916
|
+
ai_discipline action:global-enable id:g7
|
|
917
|
+
|
|
918
|
+
<span class="c"># 项目级:只对这个项目追加更严的规则,正文会内联进 AGENTS.md §8</span>
|
|
919
|
+
ai_discipline action:add id:no-force-push title:<span class="s">"禁止强推主干"</span> `
|
|
920
|
+
body:<span class="s">"推送前先确认远端状态;禁止 git push --force 到 main。"</span>
|
|
921
|
+
ai_discipline action:disable id:no-force-push <span class="c"># 只保留表行,不再约束</span></code></pre>
|
|
922
|
+
</div>
|
|
923
|
+
|
|
924
|
+
<div class="callout">
|
|
925
|
+
<p><strong>§8 是自检点。</strong>项目 <code>AGENTS.md</code> 的 generated 区里有一张纪律清单:全局行 <code>G0…G7</code> 只做索引(正文在全局文件里),项目行 <code>P-*</code> 的正文按「启用」内联。规则文件是纯 Markdown,人和工具都能改;<code>ai_check</code> 会报告漂移——启用了却没内联、停用了却还内联、注册表读不出来。</p>
|
|
926
|
+
</div>
|
|
927
|
+
</section>
|
|
928
|
+
|
|
929
|
+
<!-- 07 -->
|
|
930
|
+
<section class="sec" id="handoff">
|
|
931
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>07 · 交接与并发</p>
|
|
932
|
+
<h2>新会话先读一份「接棒提示词」</h2>
|
|
933
|
+
<p class="lead">原始日志是事件流,不适合当成开场白。插件维护一份 <code>.ai/SESSION_BOOT.md</code>:当前状态、最近记录、纪律清单、必读顺序,以及「读完请输出继承摘要」的指令。<code>ai_log</code>、<code>ai_init</code> 与自动接入都会重写它,<code>ai_handoff</code> 负责读取、重建和生成可粘贴的继承提示。</p>
|
|
934
|
+
|
|
935
|
+
<div class="loadmap" aria-label="交接链路">
|
|
936
|
+
<div><span class="lm-k">01 · 读取</span><b>SESSION_BOOT.md</b><span>接棒提示词与必读顺序</span></div>
|
|
937
|
+
<div><span class="lm-k">02 · 加载</span><b>status.json + log.jsonl</b><span>状态快照与最近流水</span></div>
|
|
938
|
+
<div><span class="lm-k">03 · 汇报</span><b>继承摘要</b><span>5–8 行,事实全部来自文件</span></div>
|
|
939
|
+
<div><span class="lm-k">04 · 开干</span><b>本轮任务</b><span>接着已有进度,不重新摸一遍</span></div>
|
|
940
|
+
</div>
|
|
941
|
+
|
|
942
|
+
<div class="code-wrap">
|
|
943
|
+
<pre class="code powershell"><code><span class="c"># 新会话开场:读接棒提示词(文件缺失时先生成再返回原文)</span>
|
|
944
|
+
ai_handoff action:read
|
|
945
|
+
|
|
946
|
+
<span class="c"># 或者直接要一段可粘贴给新会话的继承指令</span>
|
|
947
|
+
ai_handoff action:inherit
|
|
948
|
+
|
|
949
|
+
<span class="c"># 收工写记录时会自动重建 SESSION_BOOT.md</span>
|
|
950
|
+
& .ai\llm.cmd add -Tool deepseek-harness -Action fix -Status ok -Summary <span class="s">"…"</span></code></pre>
|
|
951
|
+
</div>
|
|
952
|
+
|
|
953
|
+
<h3 class="subhead">多会话同时写,不会写坏文件</h3>
|
|
954
|
+
<div class="table-wrap">
|
|
955
|
+
<table>
|
|
956
|
+
<thead><tr><th>风险</th><th>做法</th><th>结果</th></tr></thead>
|
|
957
|
+
<tbody>
|
|
958
|
+
<tr><td>两个会话同时写日志</td><td><code>.ai/.log.lock</code> 跨进程锁,append 与状态更新在同一临界区</td><td>12 个进程并发写入 → 12 条记录、id 全唯一、<code>rev=12</code></td></tr>
|
|
959
|
+
<tr><td>写到一半被读到</td><td>临时文件 + <code>fsync</code> + rename 原子替换(对占用/权限错误退避重试)</td><td>读者只会看到旧版或新版,没有半截文件</td></tr>
|
|
960
|
+
<tr><td><code>TASKS.md</code> 被并行覆盖</td><td><code>.ai/.tasks.lock</code> 内整份重渲染</td><td>清单始终与日志一致</td></tr>
|
|
961
|
+
<tr><td><code>AGENTS.md</code> 改坏</td><td>原子写 + 写前备份到 <code>.ai/backups/</code>(保留最近 10 份)</td><td>可回滚;<code>-ResetAgents</code> 也有备份</td></tr>
|
|
962
|
+
<tr><td>状态快照丢更新</td><td><code>status.json</code> 增加自增 <code>rev</code>,写入在锁内完成</td><td><code>rev</code> 可作为「有没有丢写」的快速判断</td></tr>
|
|
963
|
+
<tr><td>纪律与实际渲染不一致</td><td><code>ai_check</code> 审计 §8 漂移</td><td>启用未内联 / 停用仍内联 / 注册表损坏都会报错</td></tr>
|
|
964
|
+
</tbody>
|
|
965
|
+
</table>
|
|
966
|
+
</div>
|
|
967
|
+
|
|
968
|
+
<div class="callout">
|
|
969
|
+
<p><strong>边界要说清:</strong>这是插件与 <code>.ai/llm.cmd</code> 之间的<strong>协作锁</strong>,不是操作系统级保证。用编辑器或别的脚本直接改这些文件,仍然可以绕过锁;<code>initScript</code> 是可信配置,不要指向不可信代码。</p>
|
|
970
|
+
</div>
|
|
971
|
+
</section>
|
|
972
|
+
|
|
973
|
+
<!-- 08 -->
|
|
974
|
+
<section class="sec" id="start">
|
|
975
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>08 · 快速开始</p>
|
|
976
|
+
<h2>三条命令,开始交接</h2>
|
|
977
|
+
<p class="lead">安装一次,之后每个会话只重复三个动作:读状态、干活、写记录。</p>
|
|
978
|
+
|
|
979
|
+
<div class="install-grid">
|
|
980
|
+
<div class="install">
|
|
981
|
+
<div class="install-head"><span class="install-badge">A</span><h3>插件管理器</h3></div>
|
|
982
|
+
<p class="hint">推荐。选择本包绝对目录即可。</p>
|
|
983
|
+
<pre class="code mini"><code>plugin_manager
|
|
984
|
+
action: install_bundle
|
|
985
|
+
target: <包绝对路径></code></pre>
|
|
986
|
+
</div>
|
|
987
|
+
<div class="install">
|
|
988
|
+
<div class="install-head"><span class="install-badge">B</span><h3>命令行</h3></div>
|
|
989
|
+
<p class="hint">npm 包名或本地目录均可。</p>
|
|
990
|
+
<pre class="code mini"><code>dsh plugin --profile <profile> add dsh-ai-collab
|
|
991
|
+
|
|
992
|
+
# 或本地目录
|
|
993
|
+
dsh plugin --profile <profile> add "<包绝对路径>"</code></pre>
|
|
994
|
+
</div>
|
|
995
|
+
<div class="install">
|
|
996
|
+
<div class="install-head"><span class="install-badge">C</span><h3>profile patch</h3></div>
|
|
997
|
+
<p class="hint">仅开发调试;生产安装走 bundle。</p>
|
|
998
|
+
<pre class="code mini"><code>- insert:
|
|
999
|
+
- id: ai-collab
|
|
1000
|
+
name: dsh-ai-collab
|
|
1001
|
+
config:
|
|
1002
|
+
autoInit: true</code></pre>
|
|
1003
|
+
</div>
|
|
1004
|
+
</div>
|
|
1005
|
+
<p class="note">安装后重启 DSH;profile 内所有会话都会出现 7 个工具。首次进入某个项目时,先调用 <code>ai_init</code>(或把 <code>autoInit</code> 设为 <code>true</code>)生成 <code>.ai/</code> 与 <code>AGENTS.md</code>,之后按下面的动作循环。若包只进了依赖、未进 <code>dsh.profile.bundles</code>,需要手动补一行。</p>
|
|
1006
|
+
|
|
1007
|
+
<div class="code-wrap">
|
|
1008
|
+
<pre class="code powershell"><code><span class="c"># 开工:同步并读状态(约 10 秒)</span>
|
|
1009
|
+
& .ai\llm.cmd status
|
|
1010
|
+
& .ai\llm.cmd tail -N 10
|
|
1011
|
+
|
|
1012
|
+
<span class="c"># 收工:追加一条记录,然后校验</span>
|
|
1013
|
+
& .ai\llm.cmd add -Tool deepseek-harness -Action fix -Status ok `
|
|
1014
|
+
-Summary <span class="s">"修复 UART DMA 丢包,验证:rebuild 0/0"</span> `
|
|
1015
|
+
-Verification <span class="s">"rebuild 0/0, Code=124476"</span>
|
|
1016
|
+
& .ai\llm.cmd check</code></pre>
|
|
1017
|
+
</div>
|
|
1018
|
+
|
|
1019
|
+
<div class="tools-chips" aria-label="七个原生工具">
|
|
1020
|
+
<div class="toolchip"><b>ai_status</b><span>读状态与最近记录</span></div>
|
|
1021
|
+
<div class="toolchip"><b>ai_log</b><span>追加一条记录</span></div>
|
|
1022
|
+
<div class="toolchip"><b>ai_check</b><span>校验日志与状态</span></div>
|
|
1023
|
+
<div class="toolchip"><b>ai_board</b><span>跨项目只读看板</span></div>
|
|
1024
|
+
<div class="toolchip"><b>ai_init</b><span>幂等接入工作区</span></div>
|
|
1025
|
+
<div class="toolchip"><b>ai_discipline</b><span>纪律清单与开关</span></div>
|
|
1026
|
+
<div class="toolchip"><b>ai_handoff</b><span>跨会话交接摘要</span></div>
|
|
1027
|
+
</div>
|
|
1028
|
+
|
|
1029
|
+
<h3 class="subhead">常用命令</h3>
|
|
1030
|
+
<div class="table-wrap">
|
|
1031
|
+
<table>
|
|
1032
|
+
<thead><tr><th>命令</th><th>作用</th><th>何时用</th></tr></thead>
|
|
1033
|
+
<tbody>
|
|
1034
|
+
<tr><td><code>status</code></td><td>当前快照 + 最近记录</td><td>开工第一步</td></tr>
|
|
1035
|
+
<tr><td><code>tail -N 10</code></td><td>最近 N 条流水</td><td>快速回看上下文</td></tr>
|
|
1036
|
+
<tr><td><code>add</code></td><td>追加一条记录</td><td>收工时;自动刷新 status 与看板</td></tr>
|
|
1037
|
+
<tr><td><code>check</code></td><td>校验格式、枚举、时间、id、敏感信息</td><td>收工必跑</td></tr>
|
|
1038
|
+
<tr><td><code>board</code></td><td>刷新跨项目只读看板</td><td>父目录存在 <code>.ai\board.md</code> 时</td></tr>
|
|
1039
|
+
<tr><td><code>entries -Publish / -Remove</code></td><td>生成 / 收回 Claude、Gemini 转发文件</td><td>工具不认 AGENTS.md 时</td></tr>
|
|
1040
|
+
<tr><td><code>archive</code></td><td>归档旧日志到 <code>_archive/</code></td><td>超过 2 MB 或每季度</td></tr>
|
|
1041
|
+
<tr><td><code>doctor</code></td><td>环境与文件自检</td><td>接入异常时</td></tr>
|
|
1042
|
+
</tbody>
|
|
1043
|
+
</table>
|
|
1044
|
+
</div>
|
|
1045
|
+
|
|
1046
|
+
<h3 class="subhead">配置项</h3>
|
|
1047
|
+
<div class="table-wrap">
|
|
1048
|
+
<table>
|
|
1049
|
+
<thead><tr><th>配置</th><th>默认</th><th>含义</th></tr></thead>
|
|
1050
|
+
<tbody>
|
|
1051
|
+
<tr><td><code>autoInit</code></td><td><code>false</code></td><td>会话创建时对工作区跑 <code>ai-ensure</code>(排除临时 / 系统目录)</td></tr>
|
|
1052
|
+
<tr><td><code>maxTail</code></td><td><code>10</code></td><td><code>ai_status</code> 返回的最近记录条数</td></tr>
|
|
1053
|
+
<tr><td><code>initScript</code></td><td>包内 <code>ai-ensure.ps1</code></td><td>覆盖接入脚本(调试用)</td></tr>
|
|
1054
|
+
</tbody>
|
|
1055
|
+
</table>
|
|
1056
|
+
</div>
|
|
1057
|
+
</section>
|
|
1058
|
+
|
|
1059
|
+
<!-- 09 -->
|
|
1060
|
+
<section class="sec" id="status">
|
|
1061
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>09 · 边界与状态</p>
|
|
1062
|
+
<h2>已发布,边界清晰</h2>
|
|
1063
|
+
<p class="lead">0.5.0 已上 npm 并被社区插件市场收录;脚手架目前仅支持 Windows,只读工具与任务渲染本身与平台无关。</p>
|
|
1064
|
+
|
|
1065
|
+
<div class="release">
|
|
1066
|
+
<div class="rel">
|
|
1067
|
+
<div class="rel-top"><span>npm</span><span class="badge-ok">已发布</span></div>
|
|
1068
|
+
<b>dsh-ai-collab@0.5.0</b>
|
|
1069
|
+
<span>2026-11-23 上架,可直接安装</span>
|
|
1070
|
+
</div>
|
|
1071
|
+
<div class="rel">
|
|
1072
|
+
<div class="rel-top"><span>GitHub</span><span class="badge-ok">已就绪</span></div>
|
|
1073
|
+
<b>ZhuYw3927/dsh-ai-collab</b>
|
|
1074
|
+
<span>仓库与 tag 已推送,CI 可用</span>
|
|
1075
|
+
</div>
|
|
1076
|
+
<div class="rel">
|
|
1077
|
+
<div class="rel-top"><span>社区市场</span><span class="badge-ok">已收录</span></div>
|
|
1078
|
+
<b>PR #16419 已合并</b>
|
|
1079
|
+
<span>2026-11-19 收录;详情页与目录条目可访问</span>
|
|
1080
|
+
</div>
|
|
1081
|
+
<div class="rel">
|
|
1082
|
+
<div class="rel-top"><span>format-1 索引</span><span class="badge-ok badge-wait">待重建</span></div>
|
|
1083
|
+
<b>每日 catalog 构建</b>
|
|
1084
|
+
<span>下一次构建后进入索引,仅影响索引源用户</span>
|
|
1085
|
+
</div>
|
|
1086
|
+
</div>
|
|
1087
|
+
|
|
1088
|
+
<h3 class="subhead">0.5.0 更新摘要</h3>
|
|
1089
|
+
<div class="rules">
|
|
1090
|
+
<div class="rule">
|
|
1091
|
+
<span class="rule-n">新</span>
|
|
1092
|
+
<div><h3>纪律清单与开关</h3><p><code>AGENTS.md</code> 新增 generated 区 §8:全局 <code>G0…G7</code> 索引 + 项目 <code>P-*</code> 规则(启用内联)。新工具 <code>ai_discipline</code> 负责项目增删启停,以及全局模块的迁移与开关。</p></div>
|
|
1093
|
+
</div>
|
|
1094
|
+
<div class="rule">
|
|
1095
|
+
<span class="rule-n">新</span>
|
|
1096
|
+
<div><h3>跨会话交接</h3><p><code>.ai/SESSION_BOOT.md</code> + <code>ai_handoff</code>:接棒提示词、必读顺序、继承摘要要求;<code>ai_log</code> / <code>ai_init</code> / 自动接入时自动重建。</p></div>
|
|
1097
|
+
</div>
|
|
1098
|
+
<div class="rule">
|
|
1099
|
+
<span class="rule-n">固</span>
|
|
1100
|
+
<div><h3>并发与文件保护</h3><p>跨进程锁 + 原子写覆盖日志、状态(<code>rev</code>)、<code>TASKS.md</code>、<code>SESSION_BOOT.md</code> 与 <code>AGENTS.md</code>;<code>llm.ps1</code> 同步实现;<code>ai_check</code> 增加 §8 漂移审计。</p></div>
|
|
1101
|
+
</div>
|
|
1102
|
+
<div class="rule">
|
|
1103
|
+
<span class="rule-n">测</span>
|
|
1104
|
+
<div><h3>验证</h3><p>25 个测试全通过;12 进程并发写 12 条无丢失、<code>rev=12</code>;6 个 PowerShell <code>add</code> 并发无丢失;纪律增删启停与全局模块停用/恢复均实测。</p></div>
|
|
1105
|
+
</div>
|
|
1106
|
+
</div>
|
|
1107
|
+
|
|
1108
|
+
<h3 class="subhead">兼容性</h3>
|
|
1109
|
+
<div class="table-wrap">
|
|
1110
|
+
<table>
|
|
1111
|
+
<thead><tr><th>兼容性</th><th>要求</th></tr></thead>
|
|
1112
|
+
<tbody>
|
|
1113
|
+
<tr><td>DSH</td><td><code>0.2.1+</code>(在 <code>0.2.2-rc.3</code> 上实测)</td></tr>
|
|
1114
|
+
<tr><td>Node.js</td><td><code>>= 20</code>;DSH 内置 Electron Node 可用</td></tr>
|
|
1115
|
+
<tr><td>操作系统</td><td>Windows 10 / 11;包声明 <code>"os": ["win32"]</code></td></tr>
|
|
1116
|
+
<tr><td>网络 / 凭据</td><td>都不需要;数据只写工作区与本地日志目录</td></tr>
|
|
1117
|
+
<tr><td>许可证</td><td>MIT;另附 <a href="DISCLAIMER.md">免责声明</a> 与 <a href="NONCOMMERCIAL-NOTICE.md">建议性非商业声明</a>(不改变 MIT 权利)</td></tr>
|
|
1118
|
+
</tbody>
|
|
1119
|
+
</table>
|
|
1120
|
+
</div>
|
|
1121
|
+
|
|
1122
|
+
<ul class="limits">
|
|
1123
|
+
<li><span class="lm">1</span><span><strong>脚手架仅 Windows。</strong>macOS / Linux 返回 <code>unsupported-platform</code>;只读工具与任务渲染本身不依赖平台。</span></li>
|
|
1124
|
+
<li><span class="lm">2</span><span><strong>尚未导出 Config schema。</strong>配置在进程内归一化,非法值写入 <code>ai-collab-config.log</code>,不会静默沿用。</span></li>
|
|
1125
|
+
<li><span class="lm">3</span><span><strong>旧 AGENTS.md 被冻结。</strong>无分区标记的文件不会自动升级,需显式 <code>-ForceAgents</code> 或 <code>-ResetAgents</code>。</span></li>
|
|
1126
|
+
<li><span class="lm">4</span><span><strong>看板依赖目录布局。</strong>仅当兄弟项目共享父级 <code>.ai\board.md</code> 时生成跨项目看板。</span></li>
|
|
1127
|
+
<li><span class="lm">5</span><span><strong>生效时机不同。</strong>插件代码改动需重启 DSH;全局 <code>AGENTS.md</code> 编辑对下一次请求立即生效;项目 §8 纪律清单在下次 <code>ai-ensure</code> 渲染时刷新。</span></li>
|
|
1128
|
+
<li><span class="lm">6</span><span><strong>全局纪律只能整体开关。</strong>停用/启用会重渲染 <code>$DSH_HOME/AGENTS.md</code>,且必须先 <code>global-migrate</code>;不能只对某个项目停用某节全局纪律。</span></li>
|
|
1129
|
+
<li><span class="lm">7</span><span><strong>锁是协作式的。</strong>插件与 <code>.ai/llm.cmd</code> 遵守同一套锁协议;外部编辑器直接改文件仍可能绕过。单个项目日志建议不超过 2 MB 并及时 <code>archive</code>。</span></li>
|
|
1130
|
+
</ul>
|
|
1131
|
+
|
|
1132
|
+
<p class="roadmap"><b>下一步:</b>跨平台 Node 脚手架 · 导出 Config schema。市场详情页:<a href="https://awesome-dsh-plugin.com/p/ZhuYw3927/dsh-ai-collab/" target="_blank" rel="noopener">awesome-dsh-plugin.com/p/ZhuYw3927/dsh-ai-collab</a></p>
|
|
1133
|
+
</section>
|
|
1134
|
+
|
|
1135
|
+
<!-- 10 -->
|
|
1136
|
+
<section class="sec" id="summary">
|
|
1137
|
+
<div class="closing">
|
|
1138
|
+
<p class="kicker"><span class="bar" aria-hidden="true"></span>10 · 结语</p>
|
|
1139
|
+
<h2>它不发明新的工作流,只是让「交底、记账、校验」留在仓库里。</h2>
|
|
1140
|
+
<p>于是工具可以换、会话可以断、维护者可以更替,而项目的进度与判断依据不会丢。这就是 dsh-ai-collab 的全部野心:把一次性的会话成本,变成可继承的项目资产。</p>
|
|
1141
|
+
<div class="closing-chips">
|
|
1142
|
+
<span>统一</span><span>留存</span><span>可持续</span>
|
|
1143
|
+
</div>
|
|
1144
|
+
</div>
|
|
1145
|
+
</section>
|
|
1146
|
+
|
|
1147
|
+
</main>
|
|
1148
|
+
</div>
|
|
1149
|
+
|
|
1150
|
+
<footer class="site-footer">
|
|
1151
|
+
<div class="foot-inner">
|
|
1152
|
+
<div>本文基于项目 <code>AGENTS.md</code>、<code>dsh-ai-collab.md</code>、插件 README 与发布记录整理 · 2026-11-23 · 对应版本 0.5.0</div>
|
|
1153
|
+
<div class="foot-links">
|
|
1154
|
+
<a href="https://www.npmjs.com/package/dsh-ai-collab" target="_blank" rel="noopener">npm</a>
|
|
1155
|
+
<a href="https://github.com/ZhuYw3927/dsh-ai-collab" target="_blank" rel="noopener">GitHub</a>
|
|
1156
|
+
<a href="https://awesome-dsh-plugin.com/p/ZhuYw3927/dsh-ai-collab/" target="_blank" rel="noopener">插件市场</a>
|
|
1157
|
+
<a href="DISCLAIMER.md">免责声明</a>
|
|
1158
|
+
<a href="NONCOMMERCIAL-NOTICE.md">非商业声明</a>
|
|
1159
|
+
<a href="#top">回到顶部 ↑</a>
|
|
1160
|
+
</div>
|
|
1161
|
+
</div>
|
|
1162
|
+
</footer>
|
|
1163
|
+
|
|
1164
|
+
<script>
|
|
1165
|
+
(function () {
|
|
1166
|
+
document.documentElement.classList.add('js');
|
|
1167
|
+
|
|
1168
|
+
var bar = document.getElementById('progressBar');
|
|
1169
|
+
var header = document.querySelector('.site-header');
|
|
1170
|
+
var hero = document.querySelector('.hero');
|
|
1171
|
+
var links = Array.prototype.slice.call(document.querySelectorAll('.toc a'));
|
|
1172
|
+
var sections = links.map(function (a) {
|
|
1173
|
+
return document.getElementById(a.getAttribute('href').slice(1));
|
|
1174
|
+
}).filter(Boolean);
|
|
1175
|
+
|
|
1176
|
+
function onScroll() {
|
|
1177
|
+
var doc = document.documentElement;
|
|
1178
|
+
var max = doc.scrollHeight - doc.clientHeight;
|
|
1179
|
+
var p = max > 0 ? doc.scrollTop / max : 0;
|
|
1180
|
+
bar.style.transform = 'scaleX(' + p + ')';
|
|
1181
|
+
var threshold = hero ? Math.max(12, hero.offsetHeight - 80) : 12;
|
|
1182
|
+
header.classList.toggle('is-scrolled', doc.scrollTop > threshold);
|
|
1183
|
+
updateSpy();
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
var ticking = false;
|
|
1187
|
+
function requestScroll() {
|
|
1188
|
+
if (ticking) return;
|
|
1189
|
+
ticking = true;
|
|
1190
|
+
window.requestAnimationFrame(function () {
|
|
1191
|
+
ticking = false;
|
|
1192
|
+
onScroll();
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
function updateSpy() {
|
|
1197
|
+
if (!sections.length) return;
|
|
1198
|
+
var y = window.scrollY + 150;
|
|
1199
|
+
var current = sections[0];
|
|
1200
|
+
for (var i = 0; i < sections.length; i++) {
|
|
1201
|
+
var top = sections[i].getBoundingClientRect().top + window.scrollY;
|
|
1202
|
+
if (top <= y) current = sections[i];
|
|
1203
|
+
}
|
|
1204
|
+
var atBottom = window.innerHeight + window.scrollY >= document.body.offsetHeight - 4;
|
|
1205
|
+
if (atBottom) current = sections[sections.length - 1];
|
|
1206
|
+
links.forEach(function (a) {
|
|
1207
|
+
a.classList.toggle('active', a.getAttribute('href') === '#' + current.id);
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
window.addEventListener('scroll', requestScroll, { passive: true });
|
|
1212
|
+
window.addEventListener('resize', requestScroll);
|
|
1213
|
+
onScroll();
|
|
1214
|
+
|
|
1215
|
+
// copy buttons
|
|
1216
|
+
document.querySelectorAll('pre.code').forEach(function (pre) {
|
|
1217
|
+
var btn = document.createElement('button');
|
|
1218
|
+
btn.type = 'button';
|
|
1219
|
+
btn.className = 'copy';
|
|
1220
|
+
btn.textContent = '复制';
|
|
1221
|
+
btn.setAttribute('aria-label', '复制代码');
|
|
1222
|
+
pre.appendChild(btn);
|
|
1223
|
+
|
|
1224
|
+
btn.addEventListener('click', function () {
|
|
1225
|
+
var code = pre.querySelector('code');
|
|
1226
|
+
var text = (code ? code.innerText : pre.innerText).replace(/\n+$/, '');
|
|
1227
|
+
function done() {
|
|
1228
|
+
btn.textContent = '已复制';
|
|
1229
|
+
btn.classList.add('done');
|
|
1230
|
+
window.setTimeout(function () {
|
|
1231
|
+
btn.textContent = '复制';
|
|
1232
|
+
btn.classList.remove('done');
|
|
1233
|
+
}, 1600);
|
|
1234
|
+
}
|
|
1235
|
+
if (navigator.clipboard && window.isSecureContext) {
|
|
1236
|
+
navigator.clipboard.writeText(text).then(done, fallback);
|
|
1237
|
+
} else {
|
|
1238
|
+
fallback();
|
|
1239
|
+
}
|
|
1240
|
+
function fallback() {
|
|
1241
|
+
var ta = document.createElement('textarea');
|
|
1242
|
+
ta.value = text;
|
|
1243
|
+
ta.setAttribute('readonly', '');
|
|
1244
|
+
ta.style.position = 'absolute';
|
|
1245
|
+
ta.style.left = '-9999px';
|
|
1246
|
+
document.body.appendChild(ta);
|
|
1247
|
+
ta.select();
|
|
1248
|
+
try { document.execCommand('copy'); done(); } catch (e) { btn.textContent = '复制失败'; }
|
|
1249
|
+
document.body.removeChild(ta);
|
|
1250
|
+
}
|
|
1251
|
+
});
|
|
1252
|
+
});
|
|
1253
|
+
|
|
1254
|
+
})();
|
|
1255
|
+
</script>
|
|
1256
|
+
</body>
|
|
1257
|
+
</html>
|