@outputai/cli 0.8.2-next.89b6f8c.0 → 0.8.2-next.aaa08cc.0
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.
|
@@ -452,6 +452,26 @@ export type GetWorkflowIdRunsRidHistory200 = {
|
|
|
452
452
|
/** @nullable */
|
|
453
453
|
nextPageToken?: string | null;
|
|
454
454
|
};
|
|
455
|
+
export type GetWorkflowIdHistoryStreamParams = {
|
|
456
|
+
/**
|
|
457
|
+
* Include decoded input/output payloads in events
|
|
458
|
+
*/
|
|
459
|
+
includePayloads?: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* Resume from this event ID (alternative to Last-Event-ID header)
|
|
462
|
+
*/
|
|
463
|
+
lastEventId?: number;
|
|
464
|
+
};
|
|
465
|
+
export type GetWorkflowIdRunsRidHistoryStreamParams = {
|
|
466
|
+
/**
|
|
467
|
+
* Include decoded input/output payloads in events
|
|
468
|
+
*/
|
|
469
|
+
includePayloads?: boolean;
|
|
470
|
+
/**
|
|
471
|
+
* Resume from this event ID (alternative to Last-Event-ID header)
|
|
472
|
+
*/
|
|
473
|
+
lastEventId?: number;
|
|
474
|
+
};
|
|
455
475
|
export type GetWorkflowCatalogId200 = {
|
|
456
476
|
/** Each workflow available in this catalog */
|
|
457
477
|
workflows?: Workflow[];
|
|
@@ -1043,6 +1063,65 @@ export type getWorkflowIdRunsRidHistoryResponseError = (getWorkflowIdRunsRidHist
|
|
|
1043
1063
|
export type getWorkflowIdRunsRidHistoryResponse = (getWorkflowIdRunsRidHistoryResponseSuccess | getWorkflowIdRunsRidHistoryResponseError);
|
|
1044
1064
|
export declare const getGetWorkflowIdRunsRidHistoryUrl: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryParams) => string;
|
|
1045
1065
|
export declare const getWorkflowIdRunsRidHistory: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryParams, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidHistoryResponse>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Opens a persistent SSE connection that delivers Temporal workflow history events in real time. Emits named events: `workflow` (metadata, once), `history` (event batches), `done` (terminal state), `server_error` (post-flush errors). The `done` event carries `{ reason, newRunId? }` where `reason` is the terminal Temporal event type (`WORKFLOW_EXECUTION_COMPLETED`, `WORKFLOW_EXECUTION_FAILED`, `WORKFLOW_EXECUTION_TIMED_OUT`, `WORKFLOW_EXECUTION_CANCELED`, `WORKFLOW_EXECUTION_TERMINATED`, `WORKFLOW_EXECUTION_CONTINUED_AS_NEW`) and `newRunId` is present only when the terminal event chains a follow-on run. `server_error` carries `{ error, message, workflowId, runId }`. Errors before the stream opens are returned as JSON HTTP responses (400/404); once open, failures arrive as a `server_error` event. Supports reconnect via `Last-Event-ID` header or `lastEventId` query param.
|
|
1068
|
+
|
|
1069
|
+
* @summary Stream workflow history events via Server-Sent Events
|
|
1070
|
+
*/
|
|
1071
|
+
export type getWorkflowIdHistoryStreamResponse200 = {
|
|
1072
|
+
data: string;
|
|
1073
|
+
status: 200;
|
|
1074
|
+
};
|
|
1075
|
+
export type getWorkflowIdHistoryStreamResponse400 = {
|
|
1076
|
+
data: BadRequestResponse;
|
|
1077
|
+
status: 400;
|
|
1078
|
+
};
|
|
1079
|
+
export type getWorkflowIdHistoryStreamResponse404 = {
|
|
1080
|
+
data: NotFoundResponse;
|
|
1081
|
+
status: 404;
|
|
1082
|
+
};
|
|
1083
|
+
export type getWorkflowIdHistoryStreamResponse500 = {
|
|
1084
|
+
data: InternalServerErrorResponse;
|
|
1085
|
+
status: 500;
|
|
1086
|
+
};
|
|
1087
|
+
export type getWorkflowIdHistoryStreamResponseSuccess = (getWorkflowIdHistoryStreamResponse200) & {
|
|
1088
|
+
headers: Headers;
|
|
1089
|
+
};
|
|
1090
|
+
export type getWorkflowIdHistoryStreamResponseError = (getWorkflowIdHistoryStreamResponse400 | getWorkflowIdHistoryStreamResponse404 | getWorkflowIdHistoryStreamResponse500) & {
|
|
1091
|
+
headers: Headers;
|
|
1092
|
+
};
|
|
1093
|
+
export type getWorkflowIdHistoryStreamResponse = (getWorkflowIdHistoryStreamResponseSuccess | getWorkflowIdHistoryStreamResponseError);
|
|
1094
|
+
export declare const getGetWorkflowIdHistoryStreamUrl: (id: string, params?: GetWorkflowIdHistoryStreamParams) => string;
|
|
1095
|
+
export declare const getWorkflowIdHistoryStream: (id: string, params?: GetWorkflowIdHistoryStreamParams, options?: ApiRequestOptions) => Promise<getWorkflowIdHistoryStreamResponse>;
|
|
1096
|
+
/**
|
|
1097
|
+
* Same as /workflow/{id}/history/stream but targets a specific run ID.
|
|
1098
|
+
* @summary Stream pinned-run workflow history events via Server-Sent Events
|
|
1099
|
+
*/
|
|
1100
|
+
export type getWorkflowIdRunsRidHistoryStreamResponse200 = {
|
|
1101
|
+
data: string;
|
|
1102
|
+
status: 200;
|
|
1103
|
+
};
|
|
1104
|
+
export type getWorkflowIdRunsRidHistoryStreamResponse400 = {
|
|
1105
|
+
data: BadRequestResponse;
|
|
1106
|
+
status: 400;
|
|
1107
|
+
};
|
|
1108
|
+
export type getWorkflowIdRunsRidHistoryStreamResponse404 = {
|
|
1109
|
+
data: NotFoundResponse;
|
|
1110
|
+
status: 404;
|
|
1111
|
+
};
|
|
1112
|
+
export type getWorkflowIdRunsRidHistoryStreamResponse500 = {
|
|
1113
|
+
data: InternalServerErrorResponse;
|
|
1114
|
+
status: 500;
|
|
1115
|
+
};
|
|
1116
|
+
export type getWorkflowIdRunsRidHistoryStreamResponseSuccess = (getWorkflowIdRunsRidHistoryStreamResponse200) & {
|
|
1117
|
+
headers: Headers;
|
|
1118
|
+
};
|
|
1119
|
+
export type getWorkflowIdRunsRidHistoryStreamResponseError = (getWorkflowIdRunsRidHistoryStreamResponse400 | getWorkflowIdRunsRidHistoryStreamResponse404 | getWorkflowIdRunsRidHistoryStreamResponse500) & {
|
|
1120
|
+
headers: Headers;
|
|
1121
|
+
};
|
|
1122
|
+
export type getWorkflowIdRunsRidHistoryStreamResponse = (getWorkflowIdRunsRidHistoryStreamResponseSuccess | getWorkflowIdRunsRidHistoryStreamResponseError);
|
|
1123
|
+
export declare const getGetWorkflowIdRunsRidHistoryStreamUrl: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryStreamParams) => string;
|
|
1124
|
+
export declare const getWorkflowIdRunsRidHistoryStream: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryStreamParams, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidHistoryStreamResponse>;
|
|
1046
1125
|
/**
|
|
1047
1126
|
* @summary Get a specific workflow catalog by ID
|
|
1048
1127
|
*/
|
|
@@ -231,6 +231,38 @@ export const getWorkflowIdRunsRidHistory = async (id, rid, params, options) => {
|
|
|
231
231
|
method: 'GET'
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
|
+
export const getGetWorkflowIdHistoryStreamUrl = (id, params) => {
|
|
235
|
+
const normalizedParams = new URLSearchParams();
|
|
236
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
237
|
+
if (value !== undefined) {
|
|
238
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
const stringifiedParams = normalizedParams.toString();
|
|
242
|
+
return stringifiedParams.length > 0 ? `/workflow/${id}/history/stream?${stringifiedParams}` : `/workflow/${id}/history/stream`;
|
|
243
|
+
};
|
|
244
|
+
export const getWorkflowIdHistoryStream = async (id, params, options) => {
|
|
245
|
+
return customFetchInstance(getGetWorkflowIdHistoryStreamUrl(id, params), {
|
|
246
|
+
...options,
|
|
247
|
+
method: 'GET'
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
export const getGetWorkflowIdRunsRidHistoryStreamUrl = (id, rid, params) => {
|
|
251
|
+
const normalizedParams = new URLSearchParams();
|
|
252
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
253
|
+
if (value !== undefined) {
|
|
254
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
const stringifiedParams = normalizedParams.toString();
|
|
258
|
+
return stringifiedParams.length > 0 ? `/workflow/${id}/runs/${rid}/history/stream?${stringifiedParams}` : `/workflow/${id}/runs/${rid}/history/stream`;
|
|
259
|
+
};
|
|
260
|
+
export const getWorkflowIdRunsRidHistoryStream = async (id, rid, params, options) => {
|
|
261
|
+
return customFetchInstance(getGetWorkflowIdRunsRidHistoryStreamUrl(id, rid, params), {
|
|
262
|
+
...options,
|
|
263
|
+
method: 'GET'
|
|
264
|
+
});
|
|
265
|
+
};
|
|
234
266
|
export const getGetWorkflowCatalogIdUrl = (id) => {
|
|
235
267
|
return `/workflow/catalog/${id}`;
|
|
236
268
|
};
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outputai/cli",
|
|
3
|
-
"version": "0.8.2-next.
|
|
3
|
+
"version": "0.8.2-next.aaa08cc.0",
|
|
4
4
|
"description": "CLI for Output.ai workflow generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"semver": "7.7.4",
|
|
37
37
|
"undici": "8.5.0",
|
|
38
38
|
"yaml": "^2.8.3",
|
|
39
|
-
"@outputai/credentials": "0.8.2-next.
|
|
40
|
-
"@outputai/
|
|
41
|
-
"@outputai/
|
|
39
|
+
"@outputai/credentials": "0.8.2-next.aaa08cc.0",
|
|
40
|
+
"@outputai/evals": "0.8.2-next.aaa08cc.0",
|
|
41
|
+
"@outputai/llm": "0.8.2-next.aaa08cc.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/cli-progress": "3.11.6",
|