ugcinc 4.5.74 → 4.5.76
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.
|
@@ -78,17 +78,22 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
78
78
|
/**
|
|
79
79
|
* List all automation runs for the organization (across all templates)
|
|
80
80
|
* @param templateId - Optional filter to show runs from a specific automation only
|
|
81
|
+
* @param cursor - ISO timestamp cursor for pagination (created_at of last item)
|
|
81
82
|
*/
|
|
82
83
|
listAllRuns(params: {
|
|
83
84
|
limit?: number;
|
|
84
85
|
reviewStatus?: 'pending_review' | 'approved' | 'rejected' | 'all';
|
|
85
86
|
templateId?: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
cursor?: string;
|
|
88
|
+
}): Promise<ApiResponse<{
|
|
89
|
+
runs: Array<{
|
|
90
|
+
run: AutomationRun;
|
|
91
|
+
templateName: string;
|
|
92
|
+
nodeCount: number;
|
|
93
|
+
completedNodeCount: number;
|
|
94
|
+
}>;
|
|
95
|
+
hasMore: boolean;
|
|
96
|
+
}>>;
|
|
92
97
|
/**
|
|
93
98
|
* Update review status for a run
|
|
94
99
|
*/
|
|
@@ -81,6 +81,7 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
81
81
|
/**
|
|
82
82
|
* List all automation runs for the organization (across all templates)
|
|
83
83
|
* @param templateId - Optional filter to show runs from a specific automation only
|
|
84
|
+
* @param cursor - ISO timestamp cursor for pagination (created_at of last item)
|
|
84
85
|
*/
|
|
85
86
|
async listAllRuns(params) {
|
|
86
87
|
return this.request('/automations/list-all-runs', {
|
package/dist/render.js
CHANGED
|
@@ -234,9 +234,9 @@ async function getRenderJobStatus(jobId) {
|
|
|
234
234
|
if (data.status === 'error' || !response.ok) {
|
|
235
235
|
return { ok: false, code: response.status, message: data.error ?? data.message ?? 'Failed to get job status' };
|
|
236
236
|
}
|
|
237
|
-
//
|
|
237
|
+
// If completed but no download_url, something went wrong — don't silently construct a broken fallback URL
|
|
238
238
|
if (data.status === 'completed' && !data.download_url) {
|
|
239
|
-
|
|
239
|
+
return { ok: false, code: 500, message: `CRITICAL: Render job ${jobId} completed but has no download_url. This means the Vercel Blob upload failed silently.` };
|
|
240
240
|
}
|
|
241
241
|
return { ok: true, code: 200, message: "Job status retrieved", data };
|
|
242
242
|
}
|
|
@@ -57,11 +57,12 @@ exports.automationTools = [
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
name: 'list_all_automation_runs',
|
|
60
|
-
description: 'List all automation runs across all templates. Can filter by review status.',
|
|
60
|
+
description: 'List all automation runs across all templates. Can filter by review status. Supports cursor-based pagination.',
|
|
61
61
|
schema: zod_1.z.object({
|
|
62
62
|
limit: zod_1.z.number().optional().describe('Max number of runs to return'),
|
|
63
63
|
reviewStatus: zod_1.z.enum(['pending_review', 'approved', 'rejected', 'all']).optional().describe('Filter by review status'),
|
|
64
64
|
templateId: zod_1.z.string().optional().describe('Filter to a specific automation template'),
|
|
65
|
+
cursor: zod_1.z.string().optional().describe('ISO timestamp cursor for pagination (created_at of last item from previous page)'),
|
|
65
66
|
}),
|
|
66
67
|
execute: async (client, params) => {
|
|
67
68
|
return client.automations.listAllRuns(params);
|