@livedesk/hub 0.1.48 → 0.1.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/hub",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "LiveDesk local Hub API and browser frame bridge",
5
5
  "type": "module",
6
6
  "main": "src/server.js",
@@ -207,8 +207,8 @@ export const AGENT_TOOL_DEFINITIONS = Object.freeze([
207
207
  inputSchema: withRequiredInput({ path: { type: 'string', minLength: 1, maxLength: 600 }, recursive: { type: 'boolean' } }, ['path']),
208
208
  defaultPermission: taskPermission
209
209
  },
210
- {
211
- name: 'livedesk.list_directory',
210
+ {
211
+ name: 'livedesk.list_directory',
212
212
  description: 'List bounded file metadata from a directory on the selected Clients.',
213
213
  category: 'fileRead',
214
214
  readOnly: true,
@@ -218,11 +218,37 @@ export const AGENT_TOOL_DEFINITIONS = Object.freeze([
218
218
  supportsBatch: true,
219
219
  supportedPlatforms: ['windows', 'macos', 'linux'],
220
220
  inputSchema: withRequiredInput({ path: { type: 'string', minLength: 1, maxLength: 600 }, recursive: { type: 'boolean' }, maxEntries: { type: 'integer', minimum: 1, maximum: 500 } }, ['path']),
221
- defaultPermission: readTaskPermission
222
- },
223
- {
224
- name: 'livedesk.run_command',
225
- description: 'Run a bounded command through the selected Client command interpreter. This is an audited high-risk action.',
221
+ defaultPermission: readTaskPermission
222
+ },
223
+ {
224
+ name: 'livedesk.search_files',
225
+ description: 'Search file and folder names under one bounded Client directory without reading file contents.',
226
+ category: 'fileRead',
227
+ readOnly: true,
228
+ mutating: false,
229
+ risk: 'low',
230
+ reversible: true,
231
+ supportsBatch: true,
232
+ supportedPlatforms: ['windows', 'macos', 'linux'],
233
+ inputSchema: withRequiredInput({ path: { type: 'string', minLength: 1, maxLength: 600 }, query: { type: 'string', minLength: 1, maxLength: 160 }, maxResults: { type: 'integer', minimum: 1, maximum: 200 }, maxDepth: { type: 'integer', minimum: 0, maximum: 8 }, maxScannedEntries: { type: 'integer', minimum: 1, maximum: 5000 } }, ['path', 'query']),
234
+ defaultPermission: readTaskPermission
235
+ },
236
+ {
237
+ name: 'livedesk.create_directory',
238
+ description: 'Create a directory on the selected Clients. Safe Auto remains limited to the LiveDesk files directory.',
239
+ category: 'fileWrite',
240
+ readOnly: false,
241
+ mutating: true,
242
+ risk: 'medium',
243
+ reversible: true,
244
+ supportsBatch: true,
245
+ supportedPlatforms: ['windows', 'macos', 'linux'],
246
+ inputSchema: withRequiredInput({ path: { type: 'string', minLength: 1, maxLength: 600 } }, ['path']),
247
+ defaultPermission: taskPermission
248
+ },
249
+ {
250
+ name: 'livedesk.run_command',
251
+ description: 'Run a bounded PowerShell, cmd, sh, bash, zsh, or pwsh command on one selected Client. Choose the shell explicitly when syntax matters. This is an audited high-risk action.',
226
252
  category: 'shell',
227
253
  readOnly: false,
228
254
  mutating: true,
@@ -230,7 +256,7 @@ export const AGENT_TOOL_DEFINITIONS = Object.freeze([
230
256
  reversible: false,
231
257
  supportsBatch: false,
232
258
  supportedPlatforms: ['windows', 'macos', 'linux'],
233
- inputSchema: withRequiredInput({ command: { type: 'string', minLength: 1, maxLength: 4000 }, workingDirectory: { type: 'string', maxLength: 600 }, timeoutMs: { type: 'integer', minimum: 1000, maximum: 30000 } }, ['command']),
259
+ inputSchema: withRequiredInput({ command: { type: 'string', minLength: 1, maxLength: 16000 }, shell: { type: 'string', enum: ['auto', 'powershell', 'pwsh', 'cmd', 'sh', 'bash', 'zsh'] }, workingDirectory: { type: 'string', maxLength: 600 }, timeoutMs: { type: 'integer', minimum: 1000, maximum: 300000 } }, ['command']),
234
260
  defaultPermission: taskPermission
235
261
  },
236
262
  {
package/src/remote-hub.js CHANGED
@@ -1244,9 +1244,11 @@ const SUPPORTED_AGENT_OPERATIONS = new Set([
1244
1244
  'application.close',
1245
1245
  'file.read',
1246
1246
  'file.write',
1247
- 'file.delete',
1248
- 'file.list',
1249
- 'command.run',
1247
+ 'file.delete',
1248
+ 'file.list',
1249
+ 'file.search',
1250
+ 'directory.create',
1251
+ 'command.run',
1250
1252
  'script.run',
1251
1253
  'software.install',
1252
1254
  'network.status',
package/src/server.js CHANGED
@@ -1167,9 +1167,11 @@ async function dispatchAgentMcpTool(session, name, args = {}) {
1167
1167
  'livedesk.close_application': 'application.close',
1168
1168
  'livedesk.read_file': 'file.read',
1169
1169
  'livedesk.write_file': 'file.write',
1170
- 'livedesk.delete_file': 'file.delete',
1171
- 'livedesk.list_directory': 'file.list',
1172
- 'livedesk.run_command': 'command.run',
1170
+ 'livedesk.delete_file': 'file.delete',
1171
+ 'livedesk.list_directory': 'file.list',
1172
+ 'livedesk.search_files': 'file.search',
1173
+ 'livedesk.create_directory': 'directory.create',
1174
+ 'livedesk.run_command': 'command.run',
1173
1175
  'livedesk.run_script': 'script.run',
1174
1176
  'livedesk.install_software': 'software.install',
1175
1177
  'livedesk.get_network_status': 'network.status',