Repository navigation
Expand file tree
/
Copy pathdsh-plugin.json
More file actions
170 lines (170 loc) · 5.65 KB
/
Copy pathdsh-plugin.json
File metadata and controls
170 lines (170 loc) · 5.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"$schema": "https://raw.githubusercontent.com/T-Auto/dsh-std/8a15541117cb3c13ddb8f2468308691b6051d162/packages/manifest/schema/dsh-plugin-0.15.schema.json",
"manifestVersion": "0.15",
"id": "dsh-ops.native",
"name": "dsh-ops",
"version": "0.5.7",
"license": "MIT",
"facets": {
"host": {
"entry": "lib/index.js",
"apiVersion": "v1alpha1"
}
},
"requires": {
"contracts": [
{
"apiVersion": "tools.dsh/v1alpha1",
"kind": "Tool"
}
]
},
"permissions": [
{
"name": "dsh-ops.process.spawn",
"scope": "subprocess",
"reason": "Start fixed trusted native file operations through DSH subprocess and policy checks, or confined Bash/PTC execution."
},
{
"name": "dsh-ops.fs.read",
"scope": "filesystem-read",
"reason": "Read the native worker executable and runtime provenance."
},
{
"name": "dsh-ops.fs.write",
"scope": "dsh-home",
"reason": "Install runtime receipts; native file operations do not create audit records in read-only mode."
}
],
"contributes": {
"x-display": [
{
"icon": "./docs/assets/icon.png",
"title": "dsh-ops",
"description": "Provides optional Bash and native Rust tools for DSH to improve token efficiency; PowerShell remains host-managed",
"locales": [
"locale/en.json",
"locale/zh.json"
]
}
],
"x-prompt-sections": [
{
"name": "dsh-ops:repository-tooling:mode-standard",
"order": 3250,
"summary": "Standard-preset routing: prefer the resident OPS file tools and ops_bash, replacing read/glob/grep once their OPS counterparts are visible; published only for Standard-preset sessions when the row is on and promptPolicy is enabled."
},
{
"name": "dsh-ops:repository-tooling:mode-ptc",
"order": 3251,
"summary": "PTC-preset routing: scoped progressive PTC SDK guidance for PTC-preset sessions; absent outside PTC-only presentation. PTC rows publish no native routing text."
},
{
"name": "dsh-ops:repository-tooling:mode-cordis",
"order": 3252,
"summary": "Cordis-preset routing: prefer the resident OPS file tools and ops_bash, replacing read/glob/grep once their OPS counterparts are visible; published only for Cordis-preset sessions when the row is on and promptPolicy is enabled."
}
],
"x-tool-namespaces": [
{
"serverName": "dsh-ops",
"transport": "in-process",
"source": "native Rust file worker",
"publicPrefix": "ops_",
"tools": [
"inspect_local_file",
"grep",
"glob",
"replace",
"write_file",
"edit_file",
"diff",
"stat",
"copy",
"move",
"remove",
"read_files",
"read_table",
"read_docx",
"read_pdf",
"result"
],
"shellPermission": "Per-call DSH sandbox policy and native subprocess"
},
{
"serverName": "dsh-ops",
"transport": "in-process",
"source": "the plugin's bash layer via host subprocess",
"publicPrefix": "ops_",
"tools": [
"bash"
],
"shellPermission": "Mode row enabled with the matching preset AND publishBashTool AND authoritative per-session DSH policy; restricted modes require host confinement"
},
{
"serverName": "dsh-ops",
"transport": "in-process",
"source": "PTC SDK selection and native Rust batch worker",
"publicPrefix": "ops_",
"tools": [
"batch",
"load_sdk"
],
"shellPermission": "PTC-only scoped bindings: load_sdk selects permitted APIs for the next model step; batch requires configured or selected publication and per-call DSH policy, with host confinement in restricted modes"
},
{
"serverName": "dsh-ops",
"transport": "in-process",
"source": "scoped Native discovery controller",
"publicPrefix": "ops_",
"tools": [
"discover_tools"
],
"shellPermission": "Scoped Native discovery selection only; selecting a capability does not execute it or authorize its later calls"
}
],
"x-components": [
{
"id": "dsh-ops",
"entry": "dsh-ops",
"defaultEnabled": true,
"platforms": [
"win32",
"linux",
"darwin"
],
"targets": [
"win32-x64",
"linux-x64",
"darwin-arm64",
"darwin-x64"
],
"presentation": "One row configures every feature: the five preset modes, discovery, capture and the TUI link each carry their own switch and settings on the row page.",
"tools": [
"ops_bash",
"ops_inspect_local_file",
"ops_glob",
"ops_grep",
"ops_read_files",
"ops_result",
"ops_replace",
"ops_write_file",
"ops_edit_file",
"ops_diff",
"ops_stat",
"ops_copy",
"ops_move",
"ops_remove",
"ops_read_table",
"ops_read_docx",
"ops_read_pdf",
"ops_batch",
"ops_load_sdk",
"ops_discover_tools"
],
"notes": "A feature that is switched off in the row page is not mounted at all, exactly like the old per-row switch. Legacy component specifiers (mode-*, discovery, panel, tui, shell, file, ptc, hide-official, background) remain exported so a saved override still loads its module, but they are no longer inserted by the bundle."
}
]
},
"subscriptions": []
}