lua-cli 3.5.0-alpha.1 → 3.5.0-alpha.3
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/README.md +1 -0
- package/dist/api/agent.api.service.d.ts +13 -0
- package/dist/api/agent.api.service.js +17 -0
- package/dist/api/agent.api.service.js.map +1 -1
- package/dist/api/chat.api.service.d.ts +2 -1
- package/dist/api/chat.api.service.js +7 -2
- package/dist/api/chat.api.service.js.map +1 -1
- package/dist/api/logs.api.service.d.ts +2 -1
- package/dist/api/logs.api.service.js +2 -0
- package/dist/api/logs.api.service.js.map +1 -1
- package/dist/api/unifiedto.api.service.d.ts +87 -0
- package/dist/api/unifiedto.api.service.js +107 -0
- package/dist/api/unifiedto.api.service.js.map +1 -0
- package/dist/api/webhook.api.service.js +1 -1
- package/dist/api/webhook.api.service.js.map +1 -1
- package/dist/cli/command-definitions.js +112 -16
- package/dist/cli/command-definitions.js.map +1 -1
- package/dist/commands/chat.js +51 -23
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/compile.d.ts +1 -2
- package/dist/commands/compile.js +2 -3
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/configure.d.ts +17 -1
- package/dist/commands/configure.js +29 -4
- package/dist/commands/configure.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/integrations.d.ts +17 -0
- package/dist/commands/integrations.js +2392 -0
- package/dist/commands/integrations.js.map +1 -0
- package/dist/commands/logs.js +33 -12
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/marketplace.js +3 -2
- package/dist/commands/marketplace.js.map +1 -1
- package/dist/commands/mcp.d.ts +19 -0
- package/dist/commands/mcp.js +3 -3
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/push.js +204 -215
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/sync.d.ts +5 -9
- package/dist/commands/sync.js +146 -102
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/test.js +41 -13
- package/dist/commands/test.js.map +1 -1
- package/dist/interfaces/mcp.d.ts +11 -0
- package/dist/interfaces/unifiedto.d.ts +95 -0
- package/dist/interfaces/unifiedto.js +6 -0
- package/dist/interfaces/unifiedto.js.map +1 -0
- package/dist/utils/auth-flows.d.ts +29 -1
- package/dist/utils/auth-flows.js +84 -1
- package/dist/utils/auth-flows.js.map +1 -1
- package/dist/utils/sandbox.d.ts +2 -2
- package/dist/utils/sandbox.js +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
package/README.md
CHANGED
|
@@ -319,6 +319,7 @@ lua logs # View and filter agent logs (interactive)
|
|
|
319
319
|
lua skills # Manage skills
|
|
320
320
|
lua webhooks # Manage webhooks
|
|
321
321
|
lua jobs # Manage scheduled jobs
|
|
322
|
+
lua integrations # Connect third-party accounts (Linear, Discord, etc.)
|
|
322
323
|
```
|
|
323
324
|
|
|
324
325
|
### Utilities
|
|
@@ -139,4 +139,17 @@ export default class AgentApi extends HttpClient {
|
|
|
139
139
|
* });
|
|
140
140
|
*/
|
|
141
141
|
updateAgentFeature(agentId: string, featureData: UpdateAgentFeatureRequest): Promise<ApiResponse<UpdateAgentFeatureResponse>>;
|
|
142
|
+
/**
|
|
143
|
+
* Updates the agent with partial data (without creating a new persona version)
|
|
144
|
+
* @param agentId - The full agent ID (e.g., baseAgent_agent_xxx)
|
|
145
|
+
* @param updateData - Partial update data (name, persona, metadata, etc.)
|
|
146
|
+
* @returns Promise resolving to an ApiResponse with the updated agent
|
|
147
|
+
* @throws Error if the API request fails
|
|
148
|
+
*/
|
|
149
|
+
updateAgent(agentId: string, updateData: {
|
|
150
|
+
name?: string;
|
|
151
|
+
persona?: string;
|
|
152
|
+
metadata?: any;
|
|
153
|
+
featuresOverride?: any;
|
|
154
|
+
}): Promise<ApiResponse<Agent>>;
|
|
142
155
|
}
|
|
@@ -171,5 +171,22 @@ export default class AgentApi extends HttpClient {
|
|
|
171
171
|
Authorization: `Bearer ${this.apiKey}`,
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Updates the agent with partial data (without creating a new persona version)
|
|
176
|
+
* @param agentId - The full agent ID (e.g., baseAgent_agent_xxx)
|
|
177
|
+
* @param updateData - Partial update data (name, persona, metadata, etc.)
|
|
178
|
+
* @returns Promise resolving to an ApiResponse with the updated agent
|
|
179
|
+
* @throws Error if the API request fails
|
|
180
|
+
*/
|
|
181
|
+
async updateAgent(agentId, updateData) {
|
|
182
|
+
const baseAgentId = agentId.split('_')[0];
|
|
183
|
+
const subAgentIdSuffix = agentId.replace(`${baseAgentId}_`, '');
|
|
184
|
+
return this.httpPatch(`/agents/${baseAgentId}/sub-agent`, {
|
|
185
|
+
id: subAgentIdSuffix,
|
|
186
|
+
...updateData,
|
|
187
|
+
}, {
|
|
188
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
174
191
|
}
|
|
175
192
|
//# sourceMappingURL=agent.api.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.api.service.js","sourceRoot":"","sources":["../../src/api/agent.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAyBtD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAG9C;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,OAAO,CAAiB,QAAQ,EAAE;YAC5C,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,CAAC,OAA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AAiB,OAAO,WAAW,EACnC,WAAW,EACX;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAe,EACf,WAAsC;QAEtC,OAAO,IAAI,CAAC,QAAQ,CAClB,iBAAiB,OAAO,WAAW,EACnC,WAAW,EACX;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,gBAAgB,CAAC,OAAe;QACpC,OAAO,IAAI,CAAC,OAAO,CAA2B,iBAAiB,OAAO,WAAW,EAAE;YACjF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAe,EACf,WAAsC;QAEtC,wDAAwD;QACxD,IAAI,WAAW,CAAC,MAAM,KAAK,SAAS,IAAI,WAAW,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;YACjF,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;QACnF,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CACjB,iBAAiB,OAAO,WAAW,EACnC,WAAW,EACX;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"agent.api.service.js","sourceRoot":"","sources":["../../src/api/agent.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAyBtD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAG9C;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,I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MG;IACH,KAAK,CAAC,WAAW,CACf,OAAe,EACf,UAAuF;QAEvF,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,WAAW,GAAG,EAAE,EAAE,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,WAAW,WAAW,YAAY,EAClC;YACE,EAAE,EAAE,gBAAgB;YACpB,GAAG,UAAU;SACd,EACD;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -23,7 +23,8 @@ export default class ChatApi extends HttpClient {
|
|
|
23
23
|
* @param agentId - The unique identifier of the agent to chat with
|
|
24
24
|
* @param chatData - The chat request data including message, conversation history, and context
|
|
25
25
|
* @param onChunk - Callback function to handle each text chunk as it arrives
|
|
26
|
+
* @param onPostprocessComplete - Optional callback for when post-processing completes (receives modified response)
|
|
26
27
|
* @returns Promise resolving when stream completes
|
|
27
28
|
*/
|
|
28
|
-
sendMessageStream(agentId: string, chatData: ChatRequest, onChunk: (text: string) => void): Promise<void>;
|
|
29
|
+
sendMessageStream(agentId: string, chatData: ChatRequest, onChunk: (text: string) => void, onPostprocessComplete?: (originalResponse: string, modifiedResponse: string) => void): Promise<void>;
|
|
29
30
|
}
|
|
@@ -26,9 +26,10 @@ export default class ChatApi extends HttpClient {
|
|
|
26
26
|
* @param agentId - The unique identifier of the agent to chat with
|
|
27
27
|
* @param chatData - The chat request data including message, conversation history, and context
|
|
28
28
|
* @param onChunk - Callback function to handle each text chunk as it arrives
|
|
29
|
+
* @param onPostprocessComplete - Optional callback for when post-processing completes (receives modified response)
|
|
29
30
|
* @returns Promise resolving when stream completes
|
|
30
31
|
*/
|
|
31
|
-
async sendMessageStream(agentId, chatData, onChunk) {
|
|
32
|
+
async sendMessageStream(agentId, chatData, onChunk, onPostprocessComplete) {
|
|
32
33
|
const response = await fetch(`${this.baseUrl}/chat/stream/${agentId}?channel=dev`, {
|
|
33
34
|
method: 'POST',
|
|
34
35
|
headers: {
|
|
@@ -61,10 +62,14 @@ export default class ChatApi extends HttpClient {
|
|
|
61
62
|
continue;
|
|
62
63
|
try {
|
|
63
64
|
const chunk = JSON.parse(line);
|
|
64
|
-
//
|
|
65
|
+
// Process text-delta chunks
|
|
65
66
|
if (chunk.type === 'text-delta' && chunk.textDelta) {
|
|
66
67
|
onChunk(chunk.textDelta);
|
|
67
68
|
}
|
|
69
|
+
// Process postprocess-complete event (emitted after stream when post-processors modify the response)
|
|
70
|
+
else if (chunk.type === 'postprocess-complete' && onPostprocessComplete) {
|
|
71
|
+
onPostprocessComplete(chunk.originalResponse, chunk.modifiedResponse);
|
|
72
|
+
}
|
|
68
73
|
}
|
|
69
74
|
catch (error) {
|
|
70
75
|
// Skip invalid JSON lines
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.api.service.js","sourceRoot":"","sources":["../../src/api/chat.api.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAItD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAG7C;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,WAAW,CAAC,OAAe,EAAE,QAAqB;QACtD,OAAO,IAAI,CAAC,QAAQ,CAAe,kBAAkB,OAAO,cAAc,EAAE,QAAQ,EAAE;YACpF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"chat.api.service.js","sourceRoot":"","sources":["../../src/api/chat.api.service.ts"],"names":[],"mappings":"AACA,O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olving to an ApiResponse containing logs and pagination
|
|
24
24
|
*/
|
|
25
25
|
getAgentLogs(agentId: string, limit: number, page: number, filters?: {
|
|
26
|
-
primitiveType?: "skill" | "job" | "webhook" | "preprocessor" | "postprocessor" | "user_message" | "agent_response";
|
|
26
|
+
primitiveType?: "skill" | "job" | "webhook" | "preprocessor" | "postprocessor" | "user_message" | "agent_response" | "mcp" | "mastra";
|
|
27
27
|
primitiveId?: string;
|
|
28
28
|
primitiveName?: string;
|
|
29
29
|
toolId?: string;
|
|
30
30
|
toolName?: string;
|
|
31
31
|
logType?: string;
|
|
32
|
+
userId?: string;
|
|
32
33
|
}): Promise<ApiResponse<LogsResponse>>;
|
|
33
34
|
}
|
|
@@ -39,6 +39,8 @@ export default class LogsApi extends HttpClient {
|
|
|
39
39
|
queryParams.append("toolName", filters.toolName);
|
|
40
40
|
if (filters.logType)
|
|
41
41
|
queryParams.append("logType", filters.logType);
|
|
42
|
+
if (filters.userId)
|
|
43
|
+
queryParams.append("userId", filters.userId);
|
|
42
44
|
return this.httpGet(`/developer/agents/${agentId}/logs?${queryParams.toString()}`, {
|
|
43
45
|
Authorization: `Bearer ${this.apiKey}`,
|
|
44
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.api.service.js","sourceRoot":"","sources":["../../src/api/logs.api.service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAItD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAG7C;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAe,EACf,KAAa,EACb,IAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"logs.api.service.js","sourceRoot":"","sources":["../../src/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CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC,OAAO,CACjB,qBAAqB,OAAO,SAAS,WAAW,CAAC,QAAQ,EAAE,EAAE,EAC7D;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { HttpClient } from "../common/http.client.js";
|
|
2
|
+
import { ApiResponse } from "../interfaces/common.js";
|
|
3
|
+
import { UnifiedToIntegrationResponse, UnifiedToAuthUrlResponse, UnifiedToConnectionResponse, WebhookEventInfo, CreateWebhookSubscriptionParams, WebhookSubscriptionResponse } from "../interfaces/unifiedto.js";
|
|
4
|
+
/**
|
|
5
|
+
* UnifiedTo API Service
|
|
6
|
+
* Handles all UnifiedTo integration-related API calls
|
|
7
|
+
*/
|
|
8
|
+
export default class UnifiedToApi extends HttpClient {
|
|
9
|
+
private apiKey;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of UnifiedToApi
|
|
12
|
+
* @param baseUrl - The base URL for the API
|
|
13
|
+
* @param apiKey - The API key for authentication
|
|
14
|
+
*/
|
|
15
|
+
constructor(baseUrl: string, apiKey: string);
|
|
16
|
+
/**
|
|
17
|
+
* Gets available third-party integrations
|
|
18
|
+
* @returns Promise resolving to an ApiResponse containing available integrations
|
|
19
|
+
*/
|
|
20
|
+
getAvailableIntegrations(): Promise<ApiResponse<UnifiedToIntegrationResponse[]>>;
|
|
21
|
+
/**
|
|
22
|
+
* Gets an OAuth authorization URL for a specific integration
|
|
23
|
+
* @param integrationType - The integration type (e.g., "googlecalendar", "linear")
|
|
24
|
+
* @param options - Authorization options
|
|
25
|
+
* @returns Promise resolving to an ApiResponse containing the auth URL
|
|
26
|
+
*/
|
|
27
|
+
getAuthUrl(integrationType: string, options: {
|
|
28
|
+
successRedirect: string;
|
|
29
|
+
failureRedirect: string;
|
|
30
|
+
scopes?: string[];
|
|
31
|
+
state?: string;
|
|
32
|
+
externalXref?: string;
|
|
33
|
+
}): Promise<ApiResponse<UnifiedToAuthUrlResponse>>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets all connections for an agent
|
|
36
|
+
* @param agentId - The agent ID
|
|
37
|
+
* @returns Promise resolving to an ApiResponse containing connections
|
|
38
|
+
*/
|
|
39
|
+
getConnections(agentId: string): Promise<ApiResponse<UnifiedToConnectionResponse[]>>;
|
|
40
|
+
/**
|
|
41
|
+
* Deletes a connection
|
|
42
|
+
* @param connectionId - The connection ID
|
|
43
|
+
* @param agentId - The agent ID
|
|
44
|
+
* @returns Promise resolving to an ApiResponse with success status
|
|
45
|
+
*/
|
|
46
|
+
deleteConnection(connectionId: string, agentId: string): Promise<ApiResponse<{
|
|
47
|
+
success: boolean;
|
|
48
|
+
message: string;
|
|
49
|
+
deletedWebhooksCount: number;
|
|
50
|
+
}>>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets available webhook events for an integration type (before connection is created)
|
|
53
|
+
* @param integrationType - The integration type (e.g., "linear", "googlecalendar")
|
|
54
|
+
* @returns Promise resolving to available webhook events
|
|
55
|
+
*/
|
|
56
|
+
getAvailableWebhookEventsByType(integrationType: string): Promise<ApiResponse<WebhookEventInfo[]>>;
|
|
57
|
+
/**
|
|
58
|
+
* Gets available webhook events for a connection
|
|
59
|
+
* @param agentId - The agent ID
|
|
60
|
+
* @param connectionId - The connection ID
|
|
61
|
+
* @returns Promise resolving to available webhook events
|
|
62
|
+
*/
|
|
63
|
+
getAvailableWebhookEvents(agentId: string, connectionId: string): Promise<ApiResponse<WebhookEventInfo[]>>;
|
|
64
|
+
/**
|
|
65
|
+
* Gets all webhook subscriptions for an agent
|
|
66
|
+
* @param agentId - The agent ID
|
|
67
|
+
* @returns Promise resolving to webhook subscriptions
|
|
68
|
+
*/
|
|
69
|
+
getWebhookSubscriptions(agentId: string): Promise<ApiResponse<WebhookSubscriptionResponse[]>>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a webhook subscription
|
|
72
|
+
* @param agentId - The agent ID
|
|
73
|
+
* @param params - Webhook subscription parameters
|
|
74
|
+
* @returns Promise resolving to the created webhook subscription
|
|
75
|
+
*/
|
|
76
|
+
createWebhookSubscription(agentId: string, params: CreateWebhookSubscriptionParams): Promise<ApiResponse<WebhookSubscriptionResponse>>;
|
|
77
|
+
/**
|
|
78
|
+
* Deletes a webhook subscription
|
|
79
|
+
* @param agentId - The agent ID
|
|
80
|
+
* @param webhookId - The webhook subscription ID
|
|
81
|
+
* @returns Promise resolving to success status
|
|
82
|
+
*/
|
|
83
|
+
deleteWebhookSubscription(agentId: string, webhookId: string): Promise<ApiResponse<{
|
|
84
|
+
success: boolean;
|
|
85
|
+
message: string;
|
|
86
|
+
}>>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { HttpClient } from "../common/http.client.js";
|
|
2
|
+
/**
|
|
3
|
+
* UnifiedTo API Service
|
|
4
|
+
* Handles all UnifiedTo integration-related API calls
|
|
5
|
+
*/
|
|
6
|
+
export default class UnifiedToApi extends HttpClient {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an instance of UnifiedToApi
|
|
9
|
+
* @param baseUrl - The base URL for the API
|
|
10
|
+
* @param apiKey - The API key for authentication
|
|
11
|
+
*/
|
|
12
|
+
constructor(baseUrl, apiKey) {
|
|
13
|
+
super(baseUrl);
|
|
14
|
+
this.apiKey = apiKey;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Gets available third-party integrations
|
|
18
|
+
* @returns Promise resolving to an ApiResponse containing available integrations
|
|
19
|
+
*/
|
|
20
|
+
async getAvailableIntegrations() {
|
|
21
|
+
return this.httpGet('/developer/unifiedto/integrations', { Authorization: `Bearer ${this.apiKey}` });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets an OAuth authorization URL for a specific integration
|
|
25
|
+
* @param integrationType - The integration type (e.g., "googlecalendar", "linear")
|
|
26
|
+
* @param options - Authorization options
|
|
27
|
+
* @returns Promise resolving to an ApiResponse containing the auth URL
|
|
28
|
+
*/
|
|
29
|
+
async getAuthUrl(integrationType, options) {
|
|
30
|
+
const params = new URLSearchParams();
|
|
31
|
+
params.append('integrationType', integrationType);
|
|
32
|
+
params.append('successRedirect', options.successRedirect);
|
|
33
|
+
params.append('failureRedirect', options.failureRedirect);
|
|
34
|
+
if (options.scopes && options.scopes.length > 0) {
|
|
35
|
+
params.append('scopes', options.scopes.join(','));
|
|
36
|
+
}
|
|
37
|
+
if (options.state) {
|
|
38
|
+
params.append('state', options.state);
|
|
39
|
+
}
|
|
40
|
+
if (options.externalXref) {
|
|
41
|
+
params.append('externalXref', options.externalXref);
|
|
42
|
+
}
|
|
43
|
+
return this.httpGet(`/developer/unifiedto/auth-url?${params.toString()}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Gets all connections for an agent
|
|
47
|
+
* @param agentId - The agent ID
|
|
48
|
+
* @returns Promise resolving to an ApiResponse containing connections
|
|
49
|
+
*/
|
|
50
|
+
async getConnections(agentId) {
|
|
51
|
+
return this.httpGet(`/developer/unifiedto/connections/${agentId}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Deletes a connection
|
|
55
|
+
* @param connectionId - The connection ID
|
|
56
|
+
* @param agentId - The agent ID
|
|
57
|
+
* @returns Promise resolving to an ApiResponse with success status
|
|
58
|
+
*/
|
|
59
|
+
async deleteConnection(connectionId, agentId) {
|
|
60
|
+
return this.httpDelete(`/developer/unifiedto/connections/${agentId}/${connectionId}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
61
|
+
}
|
|
62
|
+
// ==================== Webhook Subscription Methods ====================
|
|
63
|
+
/**
|
|
64
|
+
* Gets available webhook events for an integration type (before connection is created)
|
|
65
|
+
* @param integrationType - The integration type (e.g., "linear", "googlecalendar")
|
|
66
|
+
* @returns Promise resolving to available webhook events
|
|
67
|
+
*/
|
|
68
|
+
async getAvailableWebhookEventsByType(integrationType) {
|
|
69
|
+
return this.httpGet(`/developer/unifiedto/integrations/${integrationType}/webhook-events`, { Authorization: `Bearer ${this.apiKey}` });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Gets available webhook events for a connection
|
|
73
|
+
* @param agentId - The agent ID
|
|
74
|
+
* @param connectionId - The connection ID
|
|
75
|
+
* @returns Promise resolving to available webhook events
|
|
76
|
+
*/
|
|
77
|
+
async getAvailableWebhookEvents(agentId, connectionId) {
|
|
78
|
+
return this.httpGet(`/developer/unifiedto/webhooks/${agentId}/available/${connectionId}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Gets all webhook subscriptions for an agent
|
|
82
|
+
* @param agentId - The agent ID
|
|
83
|
+
* @returns Promise resolving to webhook subscriptions
|
|
84
|
+
*/
|
|
85
|
+
async getWebhookSubscriptions(agentId) {
|
|
86
|
+
return this.httpGet(`/developer/unifiedto/webhooks/${agentId}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Creates a webhook subscription
|
|
90
|
+
* @param agentId - The agent ID
|
|
91
|
+
* @param params - Webhook subscription parameters
|
|
92
|
+
* @returns Promise resolving to the created webhook subscription
|
|
93
|
+
*/
|
|
94
|
+
async createWebhookSubscription(agentId, params) {
|
|
95
|
+
return this.httpPost(`/developer/unifiedto/webhooks/${agentId}`, params, { Authorization: `Bearer ${this.apiKey}` });
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Deletes a webhook subscription
|
|
99
|
+
* @param agentId - The agent ID
|
|
100
|
+
* @param webhookId - The webhook subscription ID
|
|
101
|
+
* @returns Promise resolving to success status
|
|
102
|
+
*/
|
|
103
|
+
async deleteWebhookSubscription(agentId, webhookId) {
|
|
104
|
+
return this.httpDelete(`/developer/unifiedto/webhooks/${agentId}/${webhookId}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=unifiedto.api.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unifiedto.api.service.js","sourceRoot":"","sources":["../../src/api/unifiedto.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAWtD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU;IAGlD;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,wBAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CACjB,mCAAmC,EACnC,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,CAC3C,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,eAAuB,EACvB,OAMC;QAED,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;QAC1D,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChD,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACpD,CAAC;QACD,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,C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O,IAAI,CAAC,OAAO,CACjB,iCAAiC,OAAO,EAAE,EAC1C,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,CAC3C,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAe,EACf,MAAuC;QAEvC,OAAO,IAAI,CAAC,QAAQ,CAClB,iCAAiC,OAAO,EAAE,EAC1C,MAAM,EACN,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,CAC3C,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAe,EACf,SAAiB;QAEjB,OAAO,IAAI,CAAC,UAAU,CACpB,iCAAiC,OAAO,IAAI,SAAS,EAAE,EACvD,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,CAC3C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -92,7 +92,7 @@ export default class WebhookApi extends HttpClient {
|
|
|
92
92
|
* @throws Error if the webhook or version is not found or the publish operation fails
|
|
93
93
|
*/
|
|
94
94
|
async publishWebhookVersion(webhookId, version) {
|
|
95
|
-
return this.
|
|
95
|
+
return this.httpPost(`/developer/webhooks/${this.agentId}/${webhookId}/${version}/publish`, {}, {
|
|
96
96
|
Authorization: `Bearer ${this.apiKey}`,
|
|
97
97
|
});
|
|
98
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.api.service.js","sourceRoot":"","sources":["../../src/api/webhook.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AA2DtD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU;IAIhD;;;;;OAKG;IACH,YAAY,OAAe,EAAE,MAAc,EAAE,OAAe;QAC1D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM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C,uBAAuB,IAAI,CAAC,OAAO,IAAI,SAAS,WAAW,EAAE,EAAE,EAAE;YAC1H,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAuC,uBAAuB,IAAI,CAAC,OAAO,IAAI,SAAS,aAAa,EAAE,EAAE,EAAE;YAC5H,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,aAAa,CAAC,SAAiB;QACnC,OAAO,IAAI,CAAC,UAAU,CAAwB,uBAAuB,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE,EAAE;YAChG,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Command Definitions
|
|
3
3
|
* Centralized command structure for the CLI
|
|
4
4
|
*/
|
|
5
|
-
import { configureCommand, initCommand, destroyCommand, apiKeyCommand, compileCommand, testCommand, pushCommand, deployCommand, devCommand, chatCommand, chatClearCommand, envCommand, personaCommand, productionCommand, resourcesCommand, adminCommand, evalsCommand, docsCommand, channelsCommand, logsCommand, completionCommand, skillsCommand, webhooksCommand, jobsCommand, featuresCommand, preprocessorsCommand, postprocessorsCommand, marketplaceCommand, mcpCommand, syncCommand } from "../commands/index.js";
|
|
5
|
+
import { configureCommand, initCommand, destroyCommand, apiKeyCommand, compileCommand, testCommand, pushCommand, deployCommand, devCommand, chatCommand, chatClearCommand, envCommand, personaCommand, productionCommand, resourcesCommand, adminCommand, evalsCommand, docsCommand, channelsCommand, logsCommand, completionCommand, skillsCommand, webhooksCommand, jobsCommand, featuresCommand, preprocessorsCommand, postprocessorsCommand, marketplaceCommand, mcpCommand, syncCommand, integrationsCommand } from "../commands/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* Sets up authentication-related commands.
|
|
8
8
|
*
|
|
@@ -19,15 +19,33 @@ export function setupAuthCommands(program) {
|
|
|
19
19
|
.description("🔐 Authentication management")
|
|
20
20
|
.addHelpText('after', `
|
|
21
21
|
Examples:
|
|
22
|
-
$ lua auth configure
|
|
23
|
-
$ lua auth key
|
|
24
|
-
$ lua auth
|
|
25
|
-
$ lua auth
|
|
26
|
-
$ lua auth
|
|
22
|
+
$ lua auth configure Interactive setup (choose API key or email)
|
|
23
|
+
$ lua auth configure --api-key "lk_xxx..." Set API key directly (non-interactive)
|
|
24
|
+
$ lua auth configure --email user@example.com Request OTP via email
|
|
25
|
+
$ lua auth configure --email user@example.com --otp 123456 Complete OTP verification
|
|
26
|
+
$ lua auth key View your current API key (prompts for confirmation)
|
|
27
|
+
$ lua auth key --force View your current API key without confirmation
|
|
28
|
+
$ lua auth logout Remove stored credentials (prompts for confirmation)
|
|
29
|
+
$ lua auth logout --force Remove stored credentials without confirmation
|
|
27
30
|
`);
|
|
28
31
|
authCommand
|
|
29
32
|
.command("configure")
|
|
30
33
|
.description("Set up your API key")
|
|
34
|
+
.option("--api-key <key>", "Set API key directly (non-interactive)")
|
|
35
|
+
.option("--email <email>", "Email address for OTP authentication")
|
|
36
|
+
.option("--otp <code>", "OTP code received via email (use with --email)")
|
|
37
|
+
.addHelpText('after', `
|
|
38
|
+
Non-Interactive Modes:
|
|
39
|
+
--api-key <key> Set API key directly (for CI/CD or when you have a key from dashboard)
|
|
40
|
+
--email <email> Request OTP to be sent to email (step 1 of OTP flow)
|
|
41
|
+
--email <email> --otp <code> Verify OTP and generate API key (step 2 of OTP flow)
|
|
42
|
+
|
|
43
|
+
Examples:
|
|
44
|
+
$ lua auth configure Interactive setup
|
|
45
|
+
$ lua auth configure --api-key "lk_abc123..." Direct API key setup
|
|
46
|
+
$ lua auth configure --email user@example.com Request OTP (check email)
|
|
47
|
+
$ lua auth configure --email user@example.com --otp 123456 Complete OTP flow
|
|
48
|
+
`)
|
|
31
49
|
.action(configureCommand);
|
|
32
50
|
authCommand
|
|
33
51
|
.command("logout")
|
|
@@ -135,30 +153,32 @@ Examples:
|
|
|
135
153
|
.command("compile")
|
|
136
154
|
.description("📦 Compile skill to deployable format")
|
|
137
155
|
.option("--debug", "Enable debug mode with verbose logging and temp file preservation")
|
|
138
|
-
.option("--no-sync", "Skip drift detection check")
|
|
139
|
-
.option("--force-sync", "Auto-accept server state if drift detected")
|
|
156
|
+
.option("--no-sync", "Skip drift detection check entirely (silent)")
|
|
140
157
|
.action(compileCommand);
|
|
141
158
|
program
|
|
142
159
|
.command("sync")
|
|
143
160
|
.description("🔄 Sync local code with server state")
|
|
144
161
|
.option("--check", "Check for drift only, exit code 1 if drift found")
|
|
145
|
-
.option("--accept", "
|
|
162
|
+
.option("--accept", "Pull server state to local without prompting")
|
|
163
|
+
.option("--push", "Push local changes to server without prompting")
|
|
146
164
|
.addHelpText('after', `
|
|
147
165
|
Detects drift between server-deployed state and local code.
|
|
148
|
-
|
|
166
|
+
Resolves drift by syncing in either direction.
|
|
149
167
|
|
|
150
168
|
Currently syncs:
|
|
151
169
|
• Name - Agent name from LuaAgent definition
|
|
152
170
|
• Persona - Agent persona from LuaAgent definition
|
|
153
171
|
|
|
154
172
|
Options:
|
|
155
|
-
--check Check for drift only (CI validation)
|
|
156
|
-
--accept
|
|
173
|
+
--check Check for drift only (CI validation, exits with code 1 if drift found)
|
|
174
|
+
--accept Pull: Update local code from server state
|
|
175
|
+
--push Push: Create new persona version on server (includes name update)
|
|
157
176
|
|
|
158
177
|
Examples:
|
|
159
|
-
$ lua sync Interactive drift resolution
|
|
178
|
+
$ lua sync Interactive drift resolution (choose push or pull)
|
|
160
179
|
$ lua sync --check CI: Fail if drift detected
|
|
161
|
-
$ lua sync --accept CI:
|
|
180
|
+
$ lua sync --accept CI: Pull server state to local
|
|
181
|
+
$ lua sync --push CI: Push local name & persona to server
|
|
162
182
|
`)
|
|
163
183
|
.action(syncCommand);
|
|
164
184
|
program
|
|
@@ -384,15 +404,17 @@ Examples:
|
|
|
384
404
|
program
|
|
385
405
|
.command("logs")
|
|
386
406
|
.description("📊 View agent and skill logs")
|
|
387
|
-
.option("--type <type>", "Filter by type: all, skill, job, webhook, preprocessor, postprocessor, user_message, agent_response")
|
|
407
|
+
.option("--type <type>", "Filter by type: all, skill, job, webhook, preprocessor, postprocessor, user_message, agent_response, mcp, mastra")
|
|
388
408
|
.option("--name <name>", "Entity name to filter (requires --type)")
|
|
409
|
+
.option("--user-id <userId>", "Filter logs by user ID")
|
|
389
410
|
.option("--limit <n>", "Number of logs to show (default: 20)")
|
|
390
411
|
.option("--page <n>", "Page number for pagination")
|
|
391
412
|
.option("--json", "Output as JSON (for scripting)")
|
|
392
413
|
.addHelpText('after', `
|
|
393
414
|
Options:
|
|
394
|
-
--type <type> Filter by type: all, skill, job, webhook, preprocessor, postprocessor, user_message, agent_response
|
|
415
|
+
--type <type> Filter by type: all, skill, job, webhook, preprocessor, postprocessor, user_message, agent_response, mcp, mastra
|
|
395
416
|
--name <name> Entity name to filter (requires --type, not for message types)
|
|
417
|
+
--user-id <userId> Filter logs by user ID
|
|
396
418
|
--limit <n> Number of logs to show (default: 20)
|
|
397
419
|
--page <n> Page number for pagination
|
|
398
420
|
--json Output as JSON for scripting
|
|
@@ -402,6 +424,11 @@ Examples:
|
|
|
402
424
|
$ lua logs --type all --limit 50 Last 50 logs
|
|
403
425
|
$ lua logs --type skill --name mySkill --limit 10 Skill-specific logs
|
|
404
426
|
$ lua logs --type job --name healthCheck --json JSON output for CI
|
|
427
|
+
$ lua logs --type mcp View MCP tool execution logs
|
|
428
|
+
$ lua logs --type mastra View Mastra AI runtime logs
|
|
429
|
+
$ lua logs --user-id user-123 View all logs for a user
|
|
430
|
+
$ lua logs --user-id user-123 --type skill View skill logs for a user
|
|
431
|
+
$ lua logs --user-id user-123 --json > user-logs.json Export user logs
|
|
405
432
|
`)
|
|
406
433
|
.action(logsCommand);
|
|
407
434
|
program
|
|
@@ -566,6 +593,75 @@ Examples:
|
|
|
566
593
|
$ lua mcp delete --server-name old-server Delete a server
|
|
567
594
|
`)
|
|
568
595
|
.action(mcpCommand);
|
|
596
|
+
program
|
|
597
|
+
.command("integrations [action] [subaction]")
|
|
598
|
+
.description("🔗 Connect third-party integrations via Unified.to")
|
|
599
|
+
.option("--integration <type>", "Integration type (e.g., linear, googlecalendar)")
|
|
600
|
+
.option("--auth-method <method>", "Authentication method: 'oauth' or 'token'")
|
|
601
|
+
.option("--scopes <scopes>", "Comma-separated OAuth scopes (or 'all' for all scopes)")
|
|
602
|
+
.option("--hide-sensitive <bool>", "Hide sensitive data from MCP tools (default: true)")
|
|
603
|
+
.option("--connection-id <id>", "Connection ID to disconnect")
|
|
604
|
+
.option("--connection <id>", "Connection ID for trigger")
|
|
605
|
+
.option("--webhook-id <id>", "Trigger ID to delete")
|
|
606
|
+
.option("--object <type>", "Object type for webhook (e.g., task_task, calendar_event)")
|
|
607
|
+
.option("--event <type>", "Event type for webhook: created, updated, or deleted")
|
|
608
|
+
.option("--hook-url <url>", "Custom webhook URL (default: agent trigger)")
|
|
609
|
+
.option("--interval <minutes>", "Polling interval for virtual webhooks (60, 120, 240, 480, 720, 1440, 2880)")
|
|
610
|
+
.option("--triggers <events>", "Comma-separated triggers (e.g., task_task.created,task_task.updated)")
|
|
611
|
+
.option("--custom-webhook", "Use custom webhook URL instead of agent trigger")
|
|
612
|
+
.option("--json", "Output as JSON (for info and webhooks events commands)")
|
|
613
|
+
.addHelpText('after', `
|
|
614
|
+
Arguments:
|
|
615
|
+
action Optional: 'connect', 'update', 'list', 'available', 'info', 'disconnect', 'webhooks', or 'mcp'
|
|
616
|
+
subaction For info: <integration-type>
|
|
617
|
+
For webhooks: 'list', 'events', 'create', or 'delete'
|
|
618
|
+
For mcp: 'list', 'activate', or 'deactivate'
|
|
619
|
+
|
|
620
|
+
Options:
|
|
621
|
+
--integration <type> Integration type (linear, googlecalendar, hubspot, etc.)
|
|
622
|
+
--auth-method <method> Authentication method: 'oauth' or 'token'
|
|
623
|
+
--scopes <scopes> Comma-separated OAuth scopes, or 'all' for all available scopes
|
|
624
|
+
--hide-sensitive <bool> Hide sensitive data from MCP tools (default: true, use 'false' to show)
|
|
625
|
+
--triggers <events> Comma-separated triggers to enable (e.g., task_task.created,task_task.updated)
|
|
626
|
+
--custom-webhook Use custom webhook URL instead of agent trigger
|
|
627
|
+
--hook-url <url> Custom webhook URL (use with --custom-webhook)
|
|
628
|
+
--json Output as JSON (for info and webhooks events commands)
|
|
629
|
+
|
|
630
|
+
Webhook/Trigger Options:
|
|
631
|
+
--connection <id> Connection ID for webhook or MCP operations
|
|
632
|
+
--connection-id <id> Connection ID to disconnect
|
|
633
|
+
--webhook-id <id> Trigger ID to delete
|
|
634
|
+
--object <type> Object type (task_task, calendar_event, messaging_message, etc.)
|
|
635
|
+
--event <type> Event type: created, updated, or deleted
|
|
636
|
+
--interval <minutes> Polling interval for virtual webhooks (60=1h, 120=2h, etc.)
|
|
637
|
+
|
|
638
|
+
Note: Only 1 connection per integration type is allowed per agent.
|
|
639
|
+
|
|
640
|
+
Examples:
|
|
641
|
+
$ lua integrations Interactive management
|
|
642
|
+
$ lua integrations connect Connect a new integration (interactive)
|
|
643
|
+
$ lua integrations connect --integration linear Connect Linear (prompts for auth/scopes)
|
|
644
|
+
$ lua integrations connect --integration linear --auth-method oauth --scopes all
|
|
645
|
+
$ lua integrations connect --integration linear --triggers task_task.created,task_task.updated
|
|
646
|
+
$ lua integrations update --integration linear --scopes all Update Linear scopes
|
|
647
|
+
$ lua integrations available List available integrations
|
|
648
|
+
$ lua integrations list List connected integrations
|
|
649
|
+
$ lua integrations info linear Show Linear integration details
|
|
650
|
+
$ lua integrations info linear --json Output as JSON (for scripting)
|
|
651
|
+
$ lua integrations disconnect --connection-id abc123 Disconnect an integration
|
|
652
|
+
|
|
653
|
+
Webhook/Trigger Examples:
|
|
654
|
+
$ lua integrations webhooks list List all triggers
|
|
655
|
+
$ lua integrations webhooks events --integration linear List available events
|
|
656
|
+
$ lua integrations webhooks create Create trigger (interactive)
|
|
657
|
+
$ lua integrations webhooks delete --webhook-id wh_xyz789
|
|
658
|
+
|
|
659
|
+
MCP Server Examples:
|
|
660
|
+
$ lua integrations mcp list List connections with MCP server status
|
|
661
|
+
$ lua integrations mcp activate --connection abc123 Activate MCP server for a connection
|
|
662
|
+
$ lua integrations mcp deactivate --connection abc123 Deactivate MCP server for a connection
|
|
663
|
+
`)
|
|
664
|
+
.action(integrationsCommand);
|
|
569
665
|
program
|
|
570
666
|
.command("completion [shell]")
|
|
571
667
|
.description("🎯 Generate shell completion script")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-definitions.js","sourceRoot":"","sources":["../../src/cli/command-definitions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,UAAU,EACV,WAAW,
|
|
1
|
+
{"version":3,"file":"command-definitions.js","sourceRoot":"","sources":["../../src/cli/command-definitions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WA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