@aiti-ai/ext-shared 0.0.0-stage → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/agent-accounts.test.mjs +227 -0
- package/agent-accounts.ts +324 -0
- package/agent-capability-contract.test.mjs +129 -0
- package/agent-interaction.test.mjs +194 -0
- package/agent-interaction.ts +340 -0
- package/agent-launch.test.mjs +262 -0
- package/agent-spawn-env.test.mjs +169 -0
- package/agent-spawn-env.ts +548 -0
- package/aiti-editor-inject.mjs +49 -0
- package/backend-queue.test.mjs +336 -0
- package/backend-queue.ts +469 -0
- package/blob-save-route.ts +128 -0
- package/cbc-model-catalog.ts +86 -0
- package/check-client.mjs +273 -0
- package/check-ext-globals.mjs +144 -0
- package/controlled-login-dialog.mjs +270 -0
- package/controlled-login.mjs +398 -0
- package/controlled-login.test.mjs +466 -0
- package/convert-saveas.test.mjs +39 -0
- package/convert-saveas.ts +170 -0
- package/copy-client-bundle.mjs +39 -0
- package/cursor-cli-store.ts +377 -0
- package/dedupe-fetch.test.mjs +71 -0
- package/dedupe-fetch.ts +58 -0
- package/deploy-commit.mjs +52 -0
- package/dev-pack.mjs +246 -0
- package/dock-icons.ts +127 -0
- package/esbuild-bin.test.mjs +53 -0
- package/esbuild-bin.ts +66 -0
- package/exec-async.test.mjs +86 -0
- package/exec-async.ts +179 -0
- package/ext-display-names.ts +91 -0
- package/ext-entry-contracts.test.mjs +131 -0
- package/ext-float-dock-core.test.mjs +348 -0
- package/ext-float-dock-core.ts +783 -0
- package/ext-float-dock-lite.ts +52 -0
- package/ext-float-dock.test.mjs +286 -0
- package/ext-float-dock.ts +740 -0
- package/ext-icons-deploy.mjs +24 -0
- package/ext-lazy.test.mjs +186 -0
- package/ext-lazy.tsx +183 -0
- package/ext-model-state.test.mjs +272 -0
- package/ext-model-state.ts +324 -0
- package/ext-protocol.mjs +113 -0
- package/ext-protocol.test.mjs +88 -0
- package/ext-session-usage.test.mjs +219 -0
- package/ext-session-usage.ts +507 -0
- package/external-cli-governance.ts +153 -0
- package/git-ops-client/api.mjs +56 -0
- package/git-ops-client/branch-panel.tsx +987 -0
- package/git-ops-client/i18n.mjs +328 -0
- package/host-tools-allow.test.mjs +46 -0
- package/host-tools-allow.ts +84 -0
- package/icons/alert.svg +1 -0
- package/icons/bookmark.svg +1 -0
- package/icons/bot.svg +1 -0
- package/icons/chart-column.svg +1 -0
- package/icons/check-circle.svg +1 -0
- package/icons/clipboard-list.svg +1 -0
- package/icons/clock.svg +1 -0
- package/icons/coffee.svg +1 -0
- package/icons/edit.svg +1 -0
- package/icons/eye.svg +1 -0
- package/icons/git-branch.svg +1 -0
- package/icons/git-commit-horizontal.svg +1 -0
- package/icons/globe.svg +1 -0
- package/icons/history.svg +1 -0
- package/icons/import.svg +1 -0
- package/icons/inbox.svg +1 -0
- package/icons/key-round.svg +1 -0
- package/icons/layout-grid.svg +1 -0
- package/icons/mail.svg +1 -0
- package/icons/message-circle.svg +1 -0
- package/icons/message-square.svg +1 -0
- package/icons/meter-vertical.svg +1 -0
- package/icons/mic.svg +1 -0
- package/icons/monitor.svg +1 -0
- package/icons/pen-line.svg +1 -0
- package/icons/plug.svg +1 -0
- package/icons/radio-dot.svg +1 -0
- package/icons/radio.svg +1 -0
- package/icons/refresh.svg +1 -0
- package/icons/rocket.svg +1 -0
- package/icons/search.svg +1 -0
- package/icons/shield.svg +1 -0
- package/icons/sparkles.svg +1 -0
- package/icons/square-kanban.svg +1 -0
- package/icons/terminal.svg +1 -0
- package/icons/users.svg +1 -0
- package/icons/volume-2.svg +1 -0
- package/icons/wand.svg +1 -0
- package/icons/wrench.svg +1 -0
- package/icons/x-circle.svg +1 -0
- package/icons/x.svg +1 -0
- package/ignore-semantics.ts +76 -0
- package/lazy-loading-metrics.mjs +61 -0
- package/new-session-cwd.test.mjs +389 -0
- package/new-session-cwd.ts +253 -0
- package/open-viewer-window.ts +65 -0
- package/overlay-back-client.test.mjs +123 -0
- package/overlay-back-client.ts +87 -0
- package/package.json +65 -4
- package/pi-fork-rpc/README.md +12 -0
- package/pi-fork-rpc/cli-resolve.test.mjs +42 -0
- package/pi-fork-rpc/cli-resolve.ts +79 -0
- package/pi-fork-rpc/remote-queue.test.mjs +100 -0
- package/pi-fork-rpc/remote-queue.ts +140 -0
- package/pi-fork-rpc/spec.ts +106 -0
- package/pi-fork-rpc/wire.test.mjs +260 -0
- package/pi-fork-rpc/wire.ts +367 -0
- package/popup-anchor.ts +45 -0
- package/provider-priority-contract.test.mjs +55 -0
- package/reconcile-deps.mjs +41 -0
- package/reload-instances.mjs +60 -0
- package/seed-tool.test.mjs +95 -0
- package/seed-tool.ts +88 -0
- package/session-recycle.ts +109 -0
- package/shared-copy-sync.test.mjs +115 -0
- package/soffice-locate.ts +171 -0
- package/soffice-panel.ts +239 -0
- package/sync-dir.mjs +91 -0
- package/sync-dir.test.mjs +101 -0
- package/sync-gate.test.mjs +93 -0
- package/sync-mirror.test.mjs +85 -0
- package/task-list.test.mjs +91 -0
- package/task-list.ts +118 -0
- package/test-rm-rf.mjs +33 -0
- package/ui-dialogs.test.mjs +198 -0
- package/ui-dialogs.ts +310 -0
- package/README.md +0 -3
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git-ops-client · 自带小词典(zh-CN / en / zh-TW;§2 不依赖各扩展 i18n 体系)。
|
|
3
|
+
* locale 归一:zh-TW/zh-HK → tw,其余 zh* → cn,其他 → en。
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const DICT = {
|
|
7
|
+
cn: {
|
|
8
|
+
branchChipTitle: "分支面板",
|
|
9
|
+
current: "当前",
|
|
10
|
+
head: "HEAD",
|
|
11
|
+
dirty: (n) => `● ${n} 未提交`,
|
|
12
|
+
dirtyShort: "未提交",
|
|
13
|
+
wtMode: "以 worktree 打开(结构性零覆盖)",
|
|
14
|
+
wtModeOn: "切换/新建将建 worktree,不原地检出",
|
|
15
|
+
filter: "过滤分支 / tag…",
|
|
16
|
+
branches: "分支",
|
|
17
|
+
remotes: (n) => `远程 ▸ (${n})`,
|
|
18
|
+
currentTag: "当前",
|
|
19
|
+
tags: "Tag",
|
|
20
|
+
tagCheckoutHint: "detached 检出",
|
|
21
|
+
createFromRef: "建分支",
|
|
22
|
+
newBranch: "新建分支",
|
|
23
|
+
newBranchPlaceholder: "新分支名(默认从 HEAD)",
|
|
24
|
+
createCheckout: "创建并检出",
|
|
25
|
+
createWt: "建 worktree",
|
|
26
|
+
graph: "图谱 · 最近 commit",
|
|
27
|
+
graphMore: "↓ 加载更多",
|
|
28
|
+
graphEmpty: "(空仓库)",
|
|
29
|
+
createAt: "在此 commit 创建分支",
|
|
30
|
+
from: "起点",
|
|
31
|
+
worktree: "Worktree",
|
|
32
|
+
worktreeMain: "main",
|
|
33
|
+
newWorktree: "+ 新建 worktree…",
|
|
34
|
+
worktreeBranchPlaceholder: "分支名",
|
|
35
|
+
worktreeRemoveTitle: "移除 worktree",
|
|
36
|
+
worktreeForceConfirm: "有未提交改动,强制移除?",
|
|
37
|
+
stash: "Stash",
|
|
38
|
+
stashEmpty: "(无 stash)",
|
|
39
|
+
stashApply: "应用(条目保留)",
|
|
40
|
+
stashPop: "应用并删除(pop)",
|
|
41
|
+
stashDrop: "丢弃",
|
|
42
|
+
stashExpand: "文件清单(部分提取)",
|
|
43
|
+
stashExtract: "提取勾选文件",
|
|
44
|
+
stashExtractNote: "已跟踪 restore --source / 未跟踪自第三父;条目保留不 drop",
|
|
45
|
+
stashPartTitle: "部分暂存",
|
|
46
|
+
stashPartHint: "stash push -- paths",
|
|
47
|
+
stashPartBtn: "仅暂存勾选文件",
|
|
48
|
+
stashPartNote: "未勾选文件留在工作区",
|
|
49
|
+
stashInteractive: "块级 -p(终端交互)",
|
|
50
|
+
stashInteractiveDone: "已在 aiti-cmd 打开交互终端,请在该终端内逐 hunk y/n/d",
|
|
51
|
+
stashInteractiveFail: "块级终端启动失败",
|
|
52
|
+
dropConfirmTitle: "丢弃 stash 条目",
|
|
53
|
+
dropConfirmNote: "gc 前可用 git stash apply <sha> 找回",
|
|
54
|
+
// ── commit 详情卡(图谱点行;docs/aiti-git-ops-commit-card-plan.md)──
|
|
55
|
+
commitView: "查看 commit",
|
|
56
|
+
commitBack: "← 返回图谱",
|
|
57
|
+
commitMergeNote: (p) => `merge · 与第一父 ${p} 对比`,
|
|
58
|
+
commitFiles: (n) => `变更文件 (${n})`,
|
|
59
|
+
commitCopySha: "复制 sha",
|
|
60
|
+
commitCopySubject: "复制说明",
|
|
61
|
+
commitBranch: "建分支",
|
|
62
|
+
commitTag: "打 tag",
|
|
63
|
+
commitTagPlaceholder: "tag 名",
|
|
64
|
+
commitTagDone: (n) => `tag ${n} 已创建`,
|
|
65
|
+
commitCheckout: "检出",
|
|
66
|
+
commitCheckoutTitle: "检出此 commit(detached HEAD)",
|
|
67
|
+
commitPick: "摘取",
|
|
68
|
+
commitPickTitle: "cherry-pick 到当前分支",
|
|
69
|
+
commitPickDone: "cherry-pick 完成",
|
|
70
|
+
commitPickAbort: "终止 cherry-pick",
|
|
71
|
+
commitPickAbortTitle: "git cherry-pick --abort(回到摘取前状态)",
|
|
72
|
+
commitPickConflict: "cherry-pick 冲突(仓库处于中间态):",
|
|
73
|
+
commitReview: "Git Review",
|
|
74
|
+
commitReviewTitle: "在 Git Review 中审阅此 commit(Monaco 工作区)",
|
|
75
|
+
commitAtNew: "@ 新会话",
|
|
76
|
+
commitAtNewTitle: "新会话引用此 commit(预填解读请求)",
|
|
77
|
+
commitFileDiffTitle: "查看此 commit 中该文件的 diff",
|
|
78
|
+
commitCopyPath: "复制路径",
|
|
79
|
+
commitOpenFile: "打开(工作区版本)",
|
|
80
|
+
commitAtFile: "@ 到新会话",
|
|
81
|
+
commitReviewFile: "Git Review 此文件",
|
|
82
|
+
commitDiffTruncated: "diff 过大已截断——用 Git Review 看完整版",
|
|
83
|
+
commitLoadFail: "commit 读取失败",
|
|
84
|
+
conflictTitle: "切换到",
|
|
85
|
+
conflictDesc: (n) => `会覆盖 ${n} 个未提交文件(dirty ∩ affected 预检):`,
|
|
86
|
+
conflictWt: "以 worktree 打开(推荐)",
|
|
87
|
+
conflictStash: "stash 后切换(可恢复)",
|
|
88
|
+
cancel: "取消",
|
|
89
|
+
close: "关闭",
|
|
90
|
+
detachHint: "detached",
|
|
91
|
+
noRepo: "非 git 目录",
|
|
92
|
+
loading: "加载中…",
|
|
93
|
+
errPrefix: "操作失败",
|
|
94
|
+
// ── 新建会话「分支 / Worktree」选择器(docs/pi-web-new-session-branch-worktree-plan.md)──
|
|
95
|
+
pickerLabel: "分支 / Worktree",
|
|
96
|
+
pickerFollow: "跟随工作区",
|
|
97
|
+
pickerSendExec: "发送时执行",
|
|
98
|
+
pickerWtOn: "worktree 模式:开",
|
|
99
|
+
pickerWtOff: "worktree 模式:关",
|
|
100
|
+
pickerBranchWtHint: "发送时在 worktree 打开",
|
|
101
|
+
pickerBranchCheckoutHint: "发送时切换当前工作区 · 与未提交改动冲突会先询问",
|
|
102
|
+
pickerRemoteHint: "发送时先建同名本地分支,不 checkout",
|
|
103
|
+
pickerManage: "管理分支…",
|
|
104
|
+
pickerClear: "清除(跟随工作区)",
|
|
105
|
+
pickerEngineAbsent: "git 引擎缺席:仅 worktree 可用,worktree 模式强制开启",
|
|
106
|
+
pickerAbortCheckout: "已取消发送:目标分支与未提交改动冲突——先处理改动,或改用 worktree 模式",
|
|
107
|
+
pickerQueryFail: "工作区状态查询失败,无法执行分支/Worktree 意图",
|
|
108
|
+
},
|
|
109
|
+
en: {
|
|
110
|
+
branchChipTitle: "Branch panel",
|
|
111
|
+
current: "current",
|
|
112
|
+
head: "HEAD",
|
|
113
|
+
dirty: (n) => `● ${n} uncommitted`,
|
|
114
|
+
dirtyShort: "uncommitted",
|
|
115
|
+
wtMode: "Open as worktree (structurally zero-overwrite)",
|
|
116
|
+
wtModeOn: "Switch/create will create a worktree instead of in-place checkout",
|
|
117
|
+
filter: "Filter branches / tags…",
|
|
118
|
+
branches: "Branches",
|
|
119
|
+
remotes: (n) => `Remotes ▸ (${n})`,
|
|
120
|
+
currentTag: "current",
|
|
121
|
+
tags: "Tags",
|
|
122
|
+
tagCheckoutHint: "detached checkout",
|
|
123
|
+
createFromRef: "branch",
|
|
124
|
+
newBranch: "New branch",
|
|
125
|
+
newBranchPlaceholder: "Branch name (from HEAD)",
|
|
126
|
+
createCheckout: "Create & checkout",
|
|
127
|
+
createWt: "New worktree",
|
|
128
|
+
graph: "Graph · recent commits",
|
|
129
|
+
graphMore: "↓ Load more",
|
|
130
|
+
graphEmpty: "(empty repo)",
|
|
131
|
+
createAt: "Create branch at this commit",
|
|
132
|
+
from: "from",
|
|
133
|
+
worktree: "Worktrees",
|
|
134
|
+
worktreeMain: "main",
|
|
135
|
+
newWorktree: "+ New worktree…",
|
|
136
|
+
worktreeBranchPlaceholder: "Branch name",
|
|
137
|
+
worktreeRemoveTitle: "Remove worktree",
|
|
138
|
+
worktreeForceConfirm: "Has uncommitted changes. Force remove?",
|
|
139
|
+
stash: "Stash",
|
|
140
|
+
stashEmpty: "(no stash)",
|
|
141
|
+
stashApply: "Apply (keep entry)",
|
|
142
|
+
stashPop: "Apply & drop (pop)",
|
|
143
|
+
stashDrop: "Drop",
|
|
144
|
+
stashExpand: "Files (partial restore)",
|
|
145
|
+
stashExtract: "Restore checked files",
|
|
146
|
+
stashExtractNote: "tracked: restore --source / untracked: 3rd parent; entry kept",
|
|
147
|
+
stashPartTitle: "Partial stash",
|
|
148
|
+
stashPartHint: "stash push -- paths",
|
|
149
|
+
stashPartBtn: "Stash checked only",
|
|
150
|
+
stashPartNote: "Unchecked files stay in worktree",
|
|
151
|
+
stashInteractive: "Hunk-level -p (terminal)",
|
|
152
|
+
stashInteractiveDone: "Interactive terminal opened in aiti-cmd — answer y/n/d per hunk there",
|
|
153
|
+
stashInteractiveFail: "Failed to start interactive terminal",
|
|
154
|
+
dropConfirmTitle: "Drop stash entry",
|
|
155
|
+
dropConfirmNote: "recoverable before gc via git stash apply <sha>",
|
|
156
|
+
// ── Commit card (graph row click) ──
|
|
157
|
+
commitView: "View commit",
|
|
158
|
+
commitBack: "← Back to graph",
|
|
159
|
+
commitMergeNote: (p) => `merge · diff vs first parent ${p}`,
|
|
160
|
+
commitFiles: (n) => `Changed files (${n})`,
|
|
161
|
+
commitCopySha: "Copy sha",
|
|
162
|
+
commitCopySubject: "Copy subject",
|
|
163
|
+
commitBranch: "Branch",
|
|
164
|
+
commitTag: "Tag",
|
|
165
|
+
commitTagPlaceholder: "tag name",
|
|
166
|
+
commitTagDone: (n) => `tag ${n} created`,
|
|
167
|
+
commitCheckout: "Checkout",
|
|
168
|
+
commitCheckoutTitle: "Checkout this commit (detached HEAD)",
|
|
169
|
+
commitPick: "Cherry-pick",
|
|
170
|
+
commitPickTitle: "cherry-pick onto current branch",
|
|
171
|
+
commitPickDone: "cherry-pick done",
|
|
172
|
+
commitPickAbort: "Abort cherry-pick",
|
|
173
|
+
commitPickAbortTitle: "git cherry-pick --abort (restore pre-pick state)",
|
|
174
|
+
commitPickConflict: "cherry-pick conflict (repo in mid-state):",
|
|
175
|
+
commitReview: "Git Review",
|
|
176
|
+
commitReviewTitle: "Review this commit in Git Review (Monaco workspace)",
|
|
177
|
+
commitAtNew: "@ New session",
|
|
178
|
+
commitAtNewTitle: "Reference this commit in a new session (prefilled)",
|
|
179
|
+
commitFileDiffTitle: "View this file's diff in this commit",
|
|
180
|
+
commitCopyPath: "Copy path",
|
|
181
|
+
commitOpenFile: "Open (worktree version)",
|
|
182
|
+
commitAtFile: "@ New session",
|
|
183
|
+
commitReviewFile: "Git Review this file",
|
|
184
|
+
commitDiffTruncated: "diff truncated — open Git Review for the full view",
|
|
185
|
+
commitLoadFail: "Failed to load commit",
|
|
186
|
+
conflictTitle: "Switch to",
|
|
187
|
+
conflictDesc: (n) => `Would overwrite ${n} uncommitted file(s) (dirty ∩ affected precheck):`,
|
|
188
|
+
conflictWt: "Open as worktree (recommended)",
|
|
189
|
+
conflictStash: "Stash then switch (recoverable)",
|
|
190
|
+
cancel: "Cancel",
|
|
191
|
+
close: "Close",
|
|
192
|
+
detachHint: "detached",
|
|
193
|
+
noRepo: "Not a git repo",
|
|
194
|
+
loading: "Loading…",
|
|
195
|
+
errPrefix: "Operation failed",
|
|
196
|
+
// ── New-session branch / worktree picker ──
|
|
197
|
+
pickerLabel: "Branch / Worktree",
|
|
198
|
+
pickerFollow: "Follow workspace",
|
|
199
|
+
pickerSendExec: "applied on send",
|
|
200
|
+
pickerWtOn: "worktree mode: on",
|
|
201
|
+
pickerWtOff: "worktree mode: off",
|
|
202
|
+
pickerBranchWtHint: "Opens in a worktree on send",
|
|
203
|
+
pickerBranchCheckoutHint: "Switches the current workspace on send · asks first when uncommitted changes conflict",
|
|
204
|
+
pickerRemoteHint: "Creates the local branch on send (no checkout)",
|
|
205
|
+
pickerManage: "Manage branches…",
|
|
206
|
+
pickerClear: "Clear (follow workspace)",
|
|
207
|
+
pickerEngineAbsent: "git engine absent: worktrees only, worktree mode forced on",
|
|
208
|
+
pickerAbortCheckout: "Send aborted: the target branch conflicts with uncommitted changes — resolve them or switch to worktree mode",
|
|
209
|
+
pickerQueryFail: "Failed to query workspace state; branch/worktree intent cannot run",
|
|
210
|
+
},
|
|
211
|
+
tw: {
|
|
212
|
+
branchChipTitle: "分支面板",
|
|
213
|
+
current: "當前",
|
|
214
|
+
head: "HEAD",
|
|
215
|
+
dirty: (n) => `● ${n} 未提交`,
|
|
216
|
+
dirtyShort: "未提交",
|
|
217
|
+
wtMode: "以 worktree 開啟(結構性零覆蓋)",
|
|
218
|
+
wtModeOn: "切換/新建將建 worktree,不原地檢出",
|
|
219
|
+
filter: "過濾分支 / tag…",
|
|
220
|
+
branches: "分支",
|
|
221
|
+
remotes: (n) => `遠端 ▸ (${n})`,
|
|
222
|
+
currentTag: "當前",
|
|
223
|
+
tags: "Tag",
|
|
224
|
+
tagCheckoutHint: "detached 檢出",
|
|
225
|
+
createFromRef: "建分支",
|
|
226
|
+
newBranch: "新建分支",
|
|
227
|
+
newBranchPlaceholder: "新分支名(預設從 HEAD)",
|
|
228
|
+
createCheckout: "建立並檢出",
|
|
229
|
+
createWt: "建 worktree",
|
|
230
|
+
graph: "圖譜 · 最近 commit",
|
|
231
|
+
graphMore: "↓ 載入更多",
|
|
232
|
+
graphEmpty: "(空倉庫)",
|
|
233
|
+
createAt: "在此 commit 建立分支",
|
|
234
|
+
from: "起點",
|
|
235
|
+
worktree: "Worktree",
|
|
236
|
+
worktreeMain: "main",
|
|
237
|
+
newWorktree: "+ 新建 worktree…",
|
|
238
|
+
worktreeBranchPlaceholder: "分支名",
|
|
239
|
+
worktreeRemoveTitle: "移除 worktree",
|
|
240
|
+
worktreeForceConfirm: "有未提交變更,強制移除?",
|
|
241
|
+
stash: "Stash",
|
|
242
|
+
stashEmpty: "(無 stash)",
|
|
243
|
+
stashApply: "套用(條目保留)",
|
|
244
|
+
stashPop: "套用並刪除(pop)",
|
|
245
|
+
stashDrop: "丟棄",
|
|
246
|
+
stashExpand: "檔案清單(部分提取)",
|
|
247
|
+
stashExtract: "提取勾選檔案",
|
|
248
|
+
stashExtractNote: "已跟蹤 restore --source / 未跟蹤自第三父;條目保留不 drop",
|
|
249
|
+
stashPartTitle: "部分暫存",
|
|
250
|
+
stashPartHint: "stash push -- paths",
|
|
251
|
+
stashPartBtn: "僅暫存勾選檔案",
|
|
252
|
+
stashPartNote: "未勾選檔案留在工作區",
|
|
253
|
+
stashInteractive: "塊級 -p(終端互動)",
|
|
254
|
+
stashInteractiveDone: "已在 aiti-cmd 開啟互動終端,請在該終端內逐 hunk y/n/d",
|
|
255
|
+
stashInteractiveFail: "塊級終端啟動失敗",
|
|
256
|
+
dropConfirmTitle: "丟棄 stash 條目",
|
|
257
|
+
dropConfirmNote: "gc 前可用 git stash apply <sha> 找回",
|
|
258
|
+
// ── commit 詳情卡(圖譜點行)──
|
|
259
|
+
commitView: "查看 commit",
|
|
260
|
+
commitBack: "← 返回圖譜",
|
|
261
|
+
commitMergeNote: (p) => `merge · 與第一父 ${p} 對比`,
|
|
262
|
+
commitFiles: (n) => `變更檔案 (${n})`,
|
|
263
|
+
commitCopySha: "複製 sha",
|
|
264
|
+
commitCopySubject: "複製說明",
|
|
265
|
+
commitBranch: "建分支",
|
|
266
|
+
commitTag: "打 tag",
|
|
267
|
+
commitTagPlaceholder: "tag 名",
|
|
268
|
+
commitTagDone: (n) => `tag ${n} 已建立`,
|
|
269
|
+
commitCheckout: "檢出",
|
|
270
|
+
commitCheckoutTitle: "檢出此 commit(detached HEAD)",
|
|
271
|
+
commitPick: "摘取",
|
|
272
|
+
commitPickTitle: "cherry-pick 到當前分支",
|
|
273
|
+
commitPickDone: "cherry-pick 完成",
|
|
274
|
+
commitPickAbort: "終止 cherry-pick",
|
|
275
|
+
commitPickAbortTitle: "git cherry-pick --abort(回到摘取前狀態)",
|
|
276
|
+
commitPickConflict: "cherry-pick 衝突(倉庫處於中間態):",
|
|
277
|
+
commitReview: "Git Review",
|
|
278
|
+
commitReviewTitle: "在 Git Review 中審閱此 commit(Monaco 工作區)",
|
|
279
|
+
commitAtNew: "@ 新會話",
|
|
280
|
+
commitAtNewTitle: "新會話引用此 commit(預填解讀請求)",
|
|
281
|
+
commitFileDiffTitle: "查看此 commit 中該檔案的 diff",
|
|
282
|
+
commitCopyPath: "複製路徑",
|
|
283
|
+
commitOpenFile: "開啟(工作區版本)",
|
|
284
|
+
commitAtFile: "@ 到新會話",
|
|
285
|
+
commitReviewFile: "Git Review 此檔案",
|
|
286
|
+
commitDiffTruncated: "diff 過大已截斷——用 Git Review 看完整版",
|
|
287
|
+
commitLoadFail: "commit 讀取失敗",
|
|
288
|
+
conflictTitle: "切換到",
|
|
289
|
+
conflictDesc: (n) => `會覆蓋 ${n} 個未提交檔案(dirty ∩ affected 預檢):`,
|
|
290
|
+
conflictWt: "以 worktree 開啟(推薦)",
|
|
291
|
+
conflictStash: "stash 後切換(可恢復)",
|
|
292
|
+
cancel: "取消",
|
|
293
|
+
close: "關閉",
|
|
294
|
+
detachHint: "detached",
|
|
295
|
+
noRepo: "非 git 目錄",
|
|
296
|
+
loading: "載入中…",
|
|
297
|
+
errPrefix: "操作失敗",
|
|
298
|
+
// ── 新建會話「分支 / Worktree」選擇器 ──
|
|
299
|
+
pickerLabel: "分支 / Worktree",
|
|
300
|
+
pickerFollow: "跟隨工作區",
|
|
301
|
+
pickerSendExec: "發送時執行",
|
|
302
|
+
pickerWtOn: "worktree 模式:開",
|
|
303
|
+
pickerWtOff: "worktree 模式:關",
|
|
304
|
+
pickerBranchWtHint: "發送時在 worktree 開啟",
|
|
305
|
+
pickerBranchCheckoutHint: "發送時切換當前工作區 · 與未提交變更衝突會先詢問",
|
|
306
|
+
pickerRemoteHint: "發送時先建立同名本地分支,不 checkout",
|
|
307
|
+
pickerManage: "管理分支…",
|
|
308
|
+
pickerClear: "清除(跟隨工作區)",
|
|
309
|
+
pickerEngineAbsent: "git 引擎缺席:僅 worktree 可用,worktree 模式強制開啟",
|
|
310
|
+
pickerAbortCheckout: "已取消發送:目標分支與未提交變更衝突——先處理變更,或改用 worktree 模式",
|
|
311
|
+
pickerQueryFail: "工作區狀態查詢失敗,無法執行分支/Worktree 意圖",
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export function panelDict(locale) {
|
|
316
|
+
const l = String(locale || "");
|
|
317
|
+
if (/^zh-(tw|hk)|^zh_H(TW|HK)/i.test(l)) return DICT.tw;
|
|
318
|
+
if (/^zh/i.test(l)) return DICT.cn;
|
|
319
|
+
return DICT.en;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export function makeT(locale) {
|
|
323
|
+
const d = panelDict(locale);
|
|
324
|
+
return (key, ...args) => {
|
|
325
|
+
const v = d[key];
|
|
326
|
+
return typeof v === "function" ? v(...args) : (v ?? key);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* host-tools-allow · G1 白名单纯逻辑单测(docs/pi-web-ext-host-tools-gate-plan.md §G1)
|
|
3
|
+
* Run: node scripts/test-web-ext.mjs --only host-tools-allow
|
|
4
|
+
*/
|
|
5
|
+
import { test } from "node:test";
|
|
6
|
+
import assert from "node:assert/strict";
|
|
7
|
+
import {
|
|
8
|
+
parseHostToolsAllow, filterHostToolsByAllow, hostToolAllowed, HOST_TOOLS_READONLY_NAMES,
|
|
9
|
+
} from "./host-tools-allow.ts";
|
|
10
|
+
|
|
11
|
+
const TOOLS = [
|
|
12
|
+
{ name: "aiti_inbox" }, { name: "page_snapshot" }, { name: "bridge_status" },
|
|
13
|
+
{ name: "page_exec" }, { name: "form_fill" },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
test("parse:空/readonly→只读子集;*/all→全量;清单→精确集合;坏输入回退只读", () => {
|
|
17
|
+
assert.equal(parseHostToolsAllow(null), "readonly");
|
|
18
|
+
assert.equal(parseHostToolsAllow(""), "readonly");
|
|
19
|
+
assert.equal(parseHostToolsAllow(" readonly "), "readonly");
|
|
20
|
+
assert.equal(parseHostToolsAllow("*"), "all");
|
|
21
|
+
assert.equal(parseHostToolsAllow("all"), "all");
|
|
22
|
+
const custom = parseHostToolsAllow("aiti_inbox, page_exec;; page_logs");
|
|
23
|
+
assert.ok(custom instanceof Set);
|
|
24
|
+
assert.deepEqual([...custom].sort(), ["aiti_inbox", "page_exec", "page_logs"]);
|
|
25
|
+
assert.equal(parseHostToolsAllow(" , ;; "), "readonly"); // 全分隔符 → 回退缺省
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test("filter:只读子集排除写类(page_exec/form_fill);全量原样;清单精确", () => {
|
|
29
|
+
const ro = filterHostToolsByAllow(TOOLS, "readonly").map((t) => t.name);
|
|
30
|
+
assert.deepEqual(ro.sort(), ["aiti_inbox", "bridge_status", "page_snapshot"]);
|
|
31
|
+
for (const n of HOST_TOOLS_READONLY_NAMES) {
|
|
32
|
+
if (["page_exec", "form_fill"].includes(n)) throw new Error("写类不应进只读子集: " + n);
|
|
33
|
+
}
|
|
34
|
+
assert.equal(filterHostToolsByAllow(TOOLS, "all").length, TOOLS.length);
|
|
35
|
+
const custom = filterHostToolsByAllow(TOOLS, new Set(["page_exec"]));
|
|
36
|
+
assert.deepEqual(custom.map((t) => t.name), ["page_exec"]);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
test("hostToolAllowed:单工具判定(attach 转发校验语义)", () => {
|
|
40
|
+
assert.equal(hostToolAllowed("aiti_inbox", "readonly"), true);
|
|
41
|
+
assert.equal(hostToolAllowed("page_exec", "readonly"), false);
|
|
42
|
+
assert.equal(hostToolAllowed("form_fill", "readonly"), false);
|
|
43
|
+
assert.equal(hostToolAllowed("page_exec", "all"), true);
|
|
44
|
+
assert.equal(hostToolAllowed("page_exec", new Set(["page_exec"])), true);
|
|
45
|
+
assert.equal(hostToolAllowed("aiti_inbox", new Set(["page_exec"])), false);
|
|
46
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* G1 host tools 白名单(docs/pi-web-ext-host-tools-gate-plan.md §G1)
|
|
3
|
+
*
|
|
4
|
+
* 背景:桥 MCP 的 `aiti_*` 工具经 wireBridgeHostTools(omp) / aiti_bridge_req 转发(attach)
|
|
5
|
+
* 注入外部 agent 时零过滤——prompt injection 一跳即达页面执行/表单写等高危工具。
|
|
6
|
+
* G1 = 缺省只放行只读与人机交互类子集;`*`(或 "all")= 全量=旧现状;显式清单 = 精确集合。
|
|
7
|
+
*
|
|
8
|
+
* 消费方:aiti-omp-agent/host-tools-bridge.ts(tools/list 过滤)、aiti-attach-agent/index.ts
|
|
9
|
+
* (aiti_bridge_req 转发校验)。feature:`<extId>.hostToolsAllow`(string,缺省空=readonly 子集)。
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** 缺省只读/人机交互子集(无页面数据副作用;写类 page_exec/form_fill 默认排除) */
|
|
13
|
+
export const HOST_TOOLS_READONLY_NAMES: readonly string[] = [
|
|
14
|
+
"aiti_inbox", // 消息主通道拉取(G1 红线:保守清单必含 inbox 读类)
|
|
15
|
+
"aiti_hello", // agent 自我介绍/注册
|
|
16
|
+
"bridge_status", // 已连接页面快照
|
|
17
|
+
"page_snapshot", // 页面现场读取
|
|
18
|
+
"self_ui", // 弹窗/表单清单扫描
|
|
19
|
+
"page_logs", // console 日志读取
|
|
20
|
+
"page_network", // 网络完成态读取
|
|
21
|
+
"file_stat", // 文件元数据查询
|
|
22
|
+
"user_pick_element", // 人机点选(人参与,无数据副作用)
|
|
23
|
+
"user_confirm",
|
|
24
|
+
"user_choose",
|
|
25
|
+
"user_input",
|
|
26
|
+
"user_presence",
|
|
27
|
+
"user_notify",
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
const READONLY = new Set<string>(HOST_TOOLS_READONLY_NAMES);
|
|
31
|
+
|
|
32
|
+
export type HostToolsAllow = "all" | "readonly" | Set<string>;
|
|
33
|
+
|
|
34
|
+
/** 解析 feature 值:空/"readonly" → 只读子集;"*"/"all" → 全量;其余 = 逗号/空白分隔的显式名单 */
|
|
35
|
+
export function parseHostToolsAllow(value: string | null | undefined): HostToolsAllow {
|
|
36
|
+
const v = String(value ?? "").trim();
|
|
37
|
+
if (!v || v === "readonly") return "readonly";
|
|
38
|
+
if (v === "*" || v === "all") return "all";
|
|
39
|
+
const names = v.split(/[\s,;]+/).map((x) => x.trim()).filter(Boolean);
|
|
40
|
+
return names.length ? new Set(names) : "readonly";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** 按白名单过滤工具清单(omp tools/list 用) */
|
|
44
|
+
export function filterHostToolsByAllow<T extends { name: string }>(tools: T[], allow: HostToolsAllow): T[] {
|
|
45
|
+
if (allow === "all") return tools;
|
|
46
|
+
if (allow === "readonly") return tools.filter((t) => READONLY.has(t.name));
|
|
47
|
+
return tools.filter((t) => allow.has(t.name));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** 单工具判定(attach aiti_bridge_req 转发校验用) */
|
|
51
|
+
export function hostToolAllowed(name: string, allow: HostToolsAllow): boolean {
|
|
52
|
+
if (allow === "all") return true;
|
|
53
|
+
if (allow === "readonly") return READONLY.has(name);
|
|
54
|
+
return allow.has(name);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** 读 extman feature `<extId>.hostToolsAllow`(运行时经宿主 featureValue;缺席=缺省只读子集) */
|
|
58
|
+
export function readHostToolsAllow(extId: string): string | null {
|
|
59
|
+
try {
|
|
60
|
+
const reg = (globalThis as { __piWebExt?: { featureValue?: (extId: string, fid: string) => boolean | string } }).__piWebExt;
|
|
61
|
+
const v = reg?.featureValue?.(extId, "hostToolsAllow");
|
|
62
|
+
if (typeof v === "string" && v.trim()) return v.trim();
|
|
63
|
+
if (v === true) return "*";
|
|
64
|
+
} catch { /* 宿主缺席:按缺省处理 */ }
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** extman feature 声明(各消费扩展 features 数组追加;group 传 "Omp" 等分组名) */
|
|
69
|
+
export function hostToolsAllowFeature(group?: string): {
|
|
70
|
+
id: string; type: "string"; label: string; description: string; value: string; placeholder: string; group?: string;
|
|
71
|
+
} {
|
|
72
|
+
return {
|
|
73
|
+
id: "hostToolsAllow",
|
|
74
|
+
...(group ? { group } : {}),
|
|
75
|
+
type: "string",
|
|
76
|
+
label: "桥工具白名单",
|
|
77
|
+
description:
|
|
78
|
+
"注入 agent 的桥(aiti_*)工具白名单。留空 = 只读子集(消息/页面读/人机交互类;page_exec、form_fill " +
|
|
79
|
+
"等写类不注入——G1 安全缺省)。* = 全量(恢复旧现状,含页面执行/表单写)。也可给精确名单(逗号/空格分隔," +
|
|
80
|
+
"如 aiti_inbox, page_exec)。名单外工具 agent 调用会报 unknown host tool;改完下一轮会话生效。",
|
|
81
|
+
value: "",
|
|
82
|
+
placeholder: "留空=只读子集;*=全量;或 aiti_inbox, page_snapshot, page_exec",
|
|
83
|
+
};
|
|
84
|
+
}
|
package/icons/alert.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/></svg>
|
package/icons/bot.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>
|
package/icons/clock.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 7v5l3 3"/></svg>
|
package/icons/coffee.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 8h1a4 4 0 1 1 0 8h-1"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z"/><path d="M6 2v2"/><path d="M10 2v2"/><path d="M14 2v2"/></svg>
|
package/icons/edit.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4z"/></svg>
|
package/icons/eye.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/></svg>
|
package/icons/globe.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/></svg>
|
package/icons/import.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/><path d="M12 15V3"/></svg>
|
package/icons/inbox.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/></svg>
|
package/icons/mail.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="8" y="3" width="8" height="18" rx="2"/><rect x="10.75" y="13" width="2.5" height="5" rx="1" fill="currentColor" stroke="none"/></svg>
|
package/icons/mic.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"/></svg>
|
package/icons/plug.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5"/><path d="M9 8V2"/><path d="M15 8V2"/><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9"/><path d="M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5"/><circle cx="12" cy="12" r="2"/><path d="M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5"/><path d="M19.1 4.9C23 8.8 23 15.5 19.1 19.1"/></svg>
|
package/icons/radio.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9"/><path d="M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5"/><circle cx="12" cy="12" r="2"/><path d="M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5"/><path d="M19.1 4.9C23 8.8 23 15.5 19.1 19.1"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>
|
package/icons/rocket.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></svg>
|
package/icons/search.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
|
package/icons/shield.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/><path d="M4 17v2"/><path d="M5 18H3"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M8 7v7"/><path d="M12 7v4"/><path d="M16 7v9"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>
|
package/icons/users.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M15.54 8.46a5 5 0 0 1 0 7.07"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14"/></svg>
|
package/icons/wand.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"/><path d="m14 7 3 3"/><path d="M5 6v4"/><path d="M19 14v4"/><path d="M10 2v2"/><path d="M7 8H3"/><path d="M21 16h-4"/><path d="M11 3H9"/></svg>
|
package/icons/wrench.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>
|
package/icons/x.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
|