langmart-gateway-type3 3.0.17 → 3.0.19
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/dist/automation-tools.js +19 -19
- package/dist/headless-session.js +1 -1
- package/package.json +1 -1
package/dist/automation-tools.js
CHANGED
|
@@ -60,7 +60,7 @@ class AutomationTools {
|
|
|
60
60
|
{
|
|
61
61
|
type: 'function',
|
|
62
62
|
function: {
|
|
63
|
-
name: '
|
|
63
|
+
name: 'automation_servers_list',
|
|
64
64
|
description: 'List all remote servers configured for deployments. Shows server names, hostnames, status, and connection info WITHOUT exposing credentials. Servers are numbered [1], [2], [3], etc. Use these numbers in subsequent tool calls.',
|
|
65
65
|
parameters: {
|
|
66
66
|
type: 'object',
|
|
@@ -82,14 +82,14 @@ class AutomationTools {
|
|
|
82
82
|
{
|
|
83
83
|
type: 'function',
|
|
84
84
|
function: {
|
|
85
|
-
name: '
|
|
85
|
+
name: 'automation_servers_test_connection',
|
|
86
86
|
description: 'Test SSH connectivity to a remote server. Returns success/failure with diagnostics and latency.',
|
|
87
87
|
parameters: {
|
|
88
88
|
type: 'object',
|
|
89
89
|
properties: {
|
|
90
90
|
server_id: {
|
|
91
91
|
type: 'string',
|
|
92
|
-
description: 'Server ID or sequence number (e.g., "1" for the first server from
|
|
92
|
+
description: 'Server ID or sequence number (e.g., "1" for the first server from automation_servers_list)'
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
required: ['server_id']
|
|
@@ -99,7 +99,7 @@ class AutomationTools {
|
|
|
99
99
|
{
|
|
100
100
|
type: 'function',
|
|
101
101
|
function: {
|
|
102
|
-
name: '
|
|
102
|
+
name: 'automation_servers_get_info',
|
|
103
103
|
description: 'Get detailed information about a specific server (without credentials).',
|
|
104
104
|
parameters: {
|
|
105
105
|
type: 'object',
|
|
@@ -117,7 +117,7 @@ class AutomationTools {
|
|
|
117
117
|
{
|
|
118
118
|
type: 'function',
|
|
119
119
|
function: {
|
|
120
|
-
name: '
|
|
120
|
+
name: 'automation_scripts_list',
|
|
121
121
|
description: 'List all available automation scripts. Scripts are numbered [1], [2], etc. Use script slugs or numbers in execute commands. Shows name, description, category, and required parameters.',
|
|
122
122
|
parameters: {
|
|
123
123
|
type: 'object',
|
|
@@ -135,14 +135,14 @@ class AutomationTools {
|
|
|
135
135
|
{
|
|
136
136
|
type: 'function',
|
|
137
137
|
function: {
|
|
138
|
-
name: '
|
|
138
|
+
name: 'automation_scripts_get_info',
|
|
139
139
|
description: 'Get detailed information about a script including its full content and parameter definitions.',
|
|
140
140
|
parameters: {
|
|
141
141
|
type: 'object',
|
|
142
142
|
properties: {
|
|
143
143
|
script: {
|
|
144
144
|
type: 'string',
|
|
145
|
-
description: 'Script slug (e.g., "deploy-type3-gateway") or sequence number from
|
|
145
|
+
description: 'Script slug (e.g., "deploy-type3-gateway") or sequence number from automation_scripts_list'
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
required: ['script']
|
|
@@ -152,7 +152,7 @@ class AutomationTools {
|
|
|
152
152
|
{
|
|
153
153
|
type: 'function',
|
|
154
154
|
function: {
|
|
155
|
-
name: '
|
|
155
|
+
name: 'automation_scripts_execute',
|
|
156
156
|
description: 'Execute a script on a remote server. The script is retrieved from the database and executed via SSH. Parameters are passed as environment variables. Returns execution output and status.',
|
|
157
157
|
parameters: {
|
|
158
158
|
type: 'object',
|
|
@@ -163,7 +163,7 @@ class AutomationTools {
|
|
|
163
163
|
},
|
|
164
164
|
server_id: {
|
|
165
165
|
type: 'string',
|
|
166
|
-
description: 'Target server ID or sequence number from
|
|
166
|
+
description: 'Target server ID or sequence number from automation_servers_list'
|
|
167
167
|
},
|
|
168
168
|
parameters: {
|
|
169
169
|
type: 'object',
|
|
@@ -177,7 +177,7 @@ class AutomationTools {
|
|
|
177
177
|
{
|
|
178
178
|
type: 'function',
|
|
179
179
|
function: {
|
|
180
|
-
name: '
|
|
180
|
+
name: 'automation_scripts_get_execution_logs',
|
|
181
181
|
description: 'Get execution history and logs for a script or server. Shows recent executions with status, output, and timing.',
|
|
182
182
|
parameters: {
|
|
183
183
|
type: 'object',
|
|
@@ -227,19 +227,19 @@ class AutomationTools {
|
|
|
227
227
|
async executeTool(toolName, args) {
|
|
228
228
|
try {
|
|
229
229
|
switch (toolName) {
|
|
230
|
-
case '
|
|
230
|
+
case 'automation_servers_list':
|
|
231
231
|
return await this.listServers(args);
|
|
232
|
-
case '
|
|
232
|
+
case 'automation_servers_test_connection':
|
|
233
233
|
return await this.testServerConnection(args);
|
|
234
|
-
case '
|
|
234
|
+
case 'automation_servers_get_info':
|
|
235
235
|
return await this.getServerInfo(args);
|
|
236
|
-
case '
|
|
236
|
+
case 'automation_scripts_list':
|
|
237
237
|
return await this.listScripts(args);
|
|
238
|
-
case '
|
|
238
|
+
case 'automation_scripts_get_info':
|
|
239
239
|
return await this.getScriptInfo(args);
|
|
240
|
-
case '
|
|
240
|
+
case 'automation_scripts_execute':
|
|
241
241
|
return await this.executeScript(args);
|
|
242
|
-
case '
|
|
242
|
+
case 'automation_scripts_get_execution_logs':
|
|
243
243
|
return await this.getExecutionLogs(args);
|
|
244
244
|
default:
|
|
245
245
|
return { success: false, error: `Unknown tool: ${toolName}` };
|
|
@@ -424,8 +424,8 @@ class AutomationTools {
|
|
|
424
424
|
output += '\n';
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
output += 'Use
|
|
428
|
-
output += 'Use
|
|
427
|
+
output += 'Use automation_scripts_get_info to see full script details.\n';
|
|
428
|
+
output += 'Use automation_scripts_execute to run a script on a server.';
|
|
429
429
|
return { success: true, output };
|
|
430
430
|
}
|
|
431
431
|
catch (error) {
|
package/dist/headless-session.js
CHANGED
|
@@ -600,7 +600,7 @@ You are operating in headless mode - all interactions are through this chat inte
|
|
|
600
600
|
else if (toolName.startsWith('web_')) {
|
|
601
601
|
result = await this.webTools.executeTool(toolName, args);
|
|
602
602
|
}
|
|
603
|
-
else if (toolName.startsWith('
|
|
603
|
+
else if (toolName.startsWith('automation_')) {
|
|
604
604
|
// Automation tools return AutomationToolResult which has same structure as ToolResult
|
|
605
605
|
const automationResult = await this.automationTools.executeTool(toolName, args);
|
|
606
606
|
result = {
|
package/package.json
CHANGED