@opentabs-dev/opentabs-plugin-temporal-cloud 0.0.85
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 +53 -0
- package/dist/adapter.iife.js +15747 -0
- package/dist/adapter.iife.js.map +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/temporal-api.d.ts +5 -0
- package/dist/temporal-api.d.ts.map +1 -0
- package/dist/temporal-api.js +87 -0
- package/dist/temporal-api.js.map +1 -0
- package/dist/tools/count-workflows.d.ts +8 -0
- package/dist/tools/count-workflows.d.ts.map +1 -0
- package/dist/tools/count-workflows.js +30 -0
- package/dist/tools/count-workflows.js.map +1 -0
- package/dist/tools/get-schedule.d.ts +25 -0
- package/dist/tools/get-schedule.d.ts.map +1 -0
- package/dist/tools/get-schedule.js +23 -0
- package/dist/tools/get-schedule.js.map +1 -0
- package/dist/tools/get-settings.d.ts +15 -0
- package/dist/tools/get-settings.d.ts.map +1 -0
- package/dist/tools/get-settings.js +42 -0
- package/dist/tools/get-settings.js.map +1 -0
- package/dist/tools/get-task-queue.d.ts +15 -0
- package/dist/tools/get-task-queue.d.ts.map +1 -0
- package/dist/tools/get-task-queue.js +31 -0
- package/dist/tools/get-task-queue.js.map +1 -0
- package/dist/tools/get-workflow-history.d.ts +18 -0
- package/dist/tools/get-workflow-history.d.ts.map +1 -0
- package/dist/tools/get-workflow-history.js +38 -0
- package/dist/tools/get-workflow-history.js.map +1 -0
- package/dist/tools/get-workflow.d.ts +27 -0
- package/dist/tools/get-workflow.d.ts.map +1 -0
- package/dist/tools/get-workflow.js +24 -0
- package/dist/tools/get-workflow.js.map +1 -0
- package/dist/tools/list-schedules.d.ts +19 -0
- package/dist/tools/list-schedules.d.ts.map +1 -0
- package/dist/tools/list-schedules.js +33 -0
- package/dist/tools/list-schedules.js.map +1 -0
- package/dist/tools/list-workflows.d.ts +26 -0
- package/dist/tools/list-workflows.d.ts.map +1 -0
- package/dist/tools/list-workflows.js +38 -0
- package/dist/tools/list-workflows.js.map +1 -0
- package/dist/tools/schemas.d.ts +290 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +234 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tools.json +790 -0
- package/package.json +56 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OpenTabsPlugin } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import type { ToolDefinition } from '@opentabs-dev/plugin-sdk';
|
|
3
|
+
declare class TemporalCloudPlugin extends OpenTabsPlugin {
|
|
4
|
+
readonly name = "temporal-cloud";
|
|
5
|
+
readonly description = "OpenTabs plugin for Temporal Cloud";
|
|
6
|
+
readonly displayName = "Temporal Cloud";
|
|
7
|
+
readonly urlPatterns: string[];
|
|
8
|
+
readonly homepage = "https://cloud.temporal.io";
|
|
9
|
+
readonly tools: ToolDefinition[];
|
|
10
|
+
isReady(): Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: TemporalCloudPlugin;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAW/D,cAAM,mBAAoB,SAAQ,cAAc;IAC9C,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,WAAW,wCAAwC;IAC5D,SAAkB,WAAW,oBAAoB;IACjD,QAAQ,CAAC,WAAW,WAA0D;IAC9E,SAAkB,QAAQ,+BAA+B;IACzD,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,CAS9B;IAEI,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;CAIlC;;AAED,wBAAyC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OpenTabsPlugin } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { isAuthenticated, waitForAuth } from './temporal-api.js';
|
|
3
|
+
import { listWorkflows } from './tools/list-workflows.js';
|
|
4
|
+
import { getWorkflow } from './tools/get-workflow.js';
|
|
5
|
+
import { getWorkflowHistory } from './tools/get-workflow-history.js';
|
|
6
|
+
import { countWorkflows } from './tools/count-workflows.js';
|
|
7
|
+
import { listSchedules } from './tools/list-schedules.js';
|
|
8
|
+
import { getSchedule } from './tools/get-schedule.js';
|
|
9
|
+
import { getTaskQueue } from './tools/get-task-queue.js';
|
|
10
|
+
import { getSettings } from './tools/get-settings.js';
|
|
11
|
+
class TemporalCloudPlugin extends OpenTabsPlugin {
|
|
12
|
+
name = 'temporal-cloud';
|
|
13
|
+
description = 'OpenTabs plugin for Temporal Cloud';
|
|
14
|
+
displayName = 'Temporal Cloud';
|
|
15
|
+
urlPatterns = ['*://cloud.temporal.io/*', '*://*.web.tmprl.cloud/*'];
|
|
16
|
+
homepage = 'https://cloud.temporal.io';
|
|
17
|
+
tools = [
|
|
18
|
+
listWorkflows,
|
|
19
|
+
getWorkflow,
|
|
20
|
+
getWorkflowHistory,
|
|
21
|
+
countWorkflows,
|
|
22
|
+
listSchedules,
|
|
23
|
+
getSchedule,
|
|
24
|
+
getTaskQueue,
|
|
25
|
+
getSettings,
|
|
26
|
+
];
|
|
27
|
+
async isReady() {
|
|
28
|
+
if (isAuthenticated())
|
|
29
|
+
return true;
|
|
30
|
+
return waitForAuth();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export default new TemporalCloudPlugin();
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,mBAAoB,SAAQ,cAAc;IACrC,IAAI,GAAG,gBAAgB,CAAC;IACxB,WAAW,GAAG,oCAAoC,CAAC;IAC1C,WAAW,GAAG,gBAAgB,CAAC;IACxC,WAAW,GAAG,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CAAC;IAC5D,QAAQ,GAAG,2BAA2B,CAAC;IAChD,KAAK,GAAqB;QACjC,aAAa;QACb,WAAW;QACX,kBAAkB;QAClB,cAAc;QACd,aAAa;QACb,WAAW;QACX,YAAY;QACZ,WAAW;KACZ,CAAC;IAEF,KAAK,CAAC,OAAO;QACX,IAAI,eAAe,EAAE;YAAE,OAAO,IAAI,CAAC;QACnC,OAAO,WAAW,EAAE,CAAC;IACvB,CAAC;CACF;AAED,eAAe,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const isAuthenticated: () => boolean;
|
|
2
|
+
export declare const waitForAuth: () => Promise<boolean>;
|
|
3
|
+
export declare const resolveNamespace: (namespace?: string) => string;
|
|
4
|
+
export declare const api: <T>(namespace: string, path: string, query?: Record<string, string | number | boolean | undefined>) => Promise<T>;
|
|
5
|
+
//# sourceMappingURL=temporal-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-api.d.ts","sourceRoot":"","sources":["../src/temporal-api.ts"],"names":[],"mappings":"AA+DA,eAAO,MAAM,eAAe,QAAO,OAA6B,CAAC;AAEjE,eAAO,MAAM,WAAW,QAAa,OAAO,CAAC,OAAO,CAOnD,CAAC;AAUF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,KAAG,MAQrD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAU,CAAC,EACzB,WAAW,MAAM,EACjB,MAAM,MAAM,EACZ,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,KAC5D,OAAO,CAAC,CAAC,CAuBX,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ToolError, buildQueryString, fetchJSON, getAuthCache, setAuthCache, clearAuthCache, findLocalStorageEntry, getCurrentUrl, waitUntil, } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
const AUTH0_CLIENT_ID = 'nTmmPY5xUpQnSr7gRZh7s33hNamtCeDg';
|
|
3
|
+
const AUTH0_AUDIENCE = 'https://saas-api.tmprl.cloud';
|
|
4
|
+
const getToken = () => {
|
|
5
|
+
const entry = findLocalStorageEntry(key => key.startsWith(`@@auth0spajs@@::${AUTH0_CLIENT_ID}::`) && key.includes(AUTH0_AUDIENCE));
|
|
6
|
+
if (!entry)
|
|
7
|
+
return null;
|
|
8
|
+
try {
|
|
9
|
+
const data = JSON.parse(entry.value);
|
|
10
|
+
if (!data.body?.access_token)
|
|
11
|
+
return null;
|
|
12
|
+
if (data.expiresAt && data.expiresAt * 1000 < Date.now())
|
|
13
|
+
return null;
|
|
14
|
+
return data.body.access_token;
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const getAuth = () => {
|
|
21
|
+
const cached = getAuthCache('temporal-cloud');
|
|
22
|
+
if (cached) {
|
|
23
|
+
const freshToken = getToken();
|
|
24
|
+
if (freshToken && freshToken !== cached.token) {
|
|
25
|
+
const updated = { token: freshToken };
|
|
26
|
+
setAuthCache('temporal-cloud', updated);
|
|
27
|
+
return updated;
|
|
28
|
+
}
|
|
29
|
+
return cached;
|
|
30
|
+
}
|
|
31
|
+
const token = getToken();
|
|
32
|
+
if (!token)
|
|
33
|
+
return null;
|
|
34
|
+
const auth = { token };
|
|
35
|
+
setAuthCache('temporal-cloud', auth);
|
|
36
|
+
return auth;
|
|
37
|
+
};
|
|
38
|
+
export const isAuthenticated = () => getAuth() !== null;
|
|
39
|
+
export const waitForAuth = async () => {
|
|
40
|
+
try {
|
|
41
|
+
await waitUntil(() => isAuthenticated(), { interval: 500, timeout: 5000 });
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const getDefaultNamespace = () => {
|
|
49
|
+
const url = getCurrentUrl();
|
|
50
|
+
const match = url.match(/\/namespaces\/([^/]+)/);
|
|
51
|
+
if (match?.[1])
|
|
52
|
+
return match[1];
|
|
53
|
+
const hostMatch = url.match(/^https?:\/\/([^.]+)\.web\.tmprl\.cloud/);
|
|
54
|
+
return hostMatch?.[1] ?? null;
|
|
55
|
+
};
|
|
56
|
+
export const resolveNamespace = (namespace) => {
|
|
57
|
+
const ns = namespace || getDefaultNamespace();
|
|
58
|
+
if (!ns) {
|
|
59
|
+
throw ToolError.validation('No namespace specified and none detected from the current page URL. Pass a namespace parameter explicitly.');
|
|
60
|
+
}
|
|
61
|
+
return ns;
|
|
62
|
+
};
|
|
63
|
+
export const api = async (namespace, path, query) => {
|
|
64
|
+
const auth = getAuth();
|
|
65
|
+
if (!auth)
|
|
66
|
+
throw ToolError.auth('Not authenticated — please log in to Temporal Cloud.');
|
|
67
|
+
const baseUrl = `https://${namespace}.web.tmprl.cloud/api/v1`;
|
|
68
|
+
const qs = query ? buildQueryString(query) : '';
|
|
69
|
+
const url = qs ? `${baseUrl}${path}?${qs}` : `${baseUrl}${path}`;
|
|
70
|
+
try {
|
|
71
|
+
const result = await fetchJSON(url, {
|
|
72
|
+
method: 'GET',
|
|
73
|
+
headers: { Authorization: `Bearer ${auth.token}` },
|
|
74
|
+
});
|
|
75
|
+
return result;
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
if (err instanceof ToolError) {
|
|
79
|
+
if (err.category === 'auth') {
|
|
80
|
+
clearAuthCache('temporal-cloud');
|
|
81
|
+
}
|
|
82
|
+
throw err;
|
|
83
|
+
}
|
|
84
|
+
throw ToolError.internal(`Temporal API error: ${err instanceof Error ? err.message : String(err)}`);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=temporal-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-api.js","sourceRoot":"","sources":["../src/temporal-api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,SAAS,GACV,MAAM,0BAA0B,CAAC;AAElC,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAC3D,MAAM,cAAc,GAAG,8BAA8B,CAAC;AActD,MAAM,QAAQ,GAAG,GAAkB,EAAE;IACnC,MAAM,KAAK,GAAG,qBAAqB,CACjC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,mBAAmB,eAAe,IAAI,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,CAC9F,CAAC;IACF,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,K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AG,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,IAAI,EAAE,CAAC;IAEjE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,SAAS,CAAI,GAAG,EAAE;YACrC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,EAAE;SACnD,CAAC,CAAC;QACH,OAAO,MAAW,CAAC;IACrB,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,IAAI,GAAG,YAAY,SAAS,EAAE,CAAC;YAC7B,IAAI,GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;gBAC5B,cAAc,CAAC,gBAAgB,CAAC,CAAC;YACnC,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;QACD,MAAM,SAAS,CAAC,QAAQ,CAAC,uBAAuB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACtG,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const countWorkflows: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
query: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
count: z.ZodString;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
//# sourceMappingURL=count-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count-workflows.d.ts","sourceRoot":"","sources":["../../src/tools/count-workflows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;kBAyBzB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam } from './schemas.js';
|
|
5
|
+
export const countWorkflows = defineTool({
|
|
6
|
+
name: 'count_workflows',
|
|
7
|
+
displayName: 'Count Workflows',
|
|
8
|
+
description: 'Count workflow executions matching an optional visibility query. Useful for getting a quick overview of workflow states without fetching full execution data.',
|
|
9
|
+
summary: 'Count workflows matching a query',
|
|
10
|
+
icon: 'hash',
|
|
11
|
+
group: 'Workflows',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
query: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Temporal visibility query filter (e.g., ExecutionStatus="Failed" AND CloseTime > "2024-01-01")'),
|
|
18
|
+
}),
|
|
19
|
+
output: z.object({
|
|
20
|
+
count: z.string().describe('Number of matching workflow executions'),
|
|
21
|
+
}),
|
|
22
|
+
handle: async (params) => {
|
|
23
|
+
const ns = resolveNamespace(params.namespace);
|
|
24
|
+
const data = await api(ns, `/namespaces/${ns}/workflow-count`, {
|
|
25
|
+
query: params.query,
|
|
26
|
+
});
|
|
27
|
+
return { count: data.count ?? '0' };
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=count-workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count-workflows.js","sourceRoot":"","sources":["../../src/tools/count-workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACvC,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EACT,+JAA+J;IACjK,OAAO,EAAE,kCAAkC;IAC3C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,cAAc;QACzB,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,gGAAgG,CAAC;KAC9G,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;KACrE,CAAC;IACF,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAqB,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE;YACjF,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC,CAAC;QACH,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,GAAG,EAAE,CAAC;IACtC,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getSchedule: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
schedule_id: z.ZodString;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
schedule_id: z.ZodString;
|
|
7
|
+
workflow_type: z.ZodString;
|
|
8
|
+
workflow_id: z.ZodString;
|
|
9
|
+
task_queue: z.ZodString;
|
|
10
|
+
spec_summary: z.ZodString;
|
|
11
|
+
overlap_policy: z.ZodString;
|
|
12
|
+
catchup_window: z.ZodString;
|
|
13
|
+
paused: z.ZodBoolean;
|
|
14
|
+
notes: z.ZodString;
|
|
15
|
+
action_count: z.ZodString;
|
|
16
|
+
recent_actions: z.ZodArray<z.ZodObject<{
|
|
17
|
+
schedule_time: z.ZodString;
|
|
18
|
+
actual_time: z.ZodString;
|
|
19
|
+
workflow_id: z.ZodString;
|
|
20
|
+
run_id: z.ZodString;
|
|
21
|
+
status: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
next_action_times: z.ZodArray<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
//# sourceMappingURL=get-schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-schedule.d.ts","sourceRoot":"","sources":["../../src/tools/get-schedule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;kBAqBtB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam, scheduleDetailSchema, mapScheduleDetail } from './schemas.js';
|
|
5
|
+
export const getSchedule = defineTool({
|
|
6
|
+
name: 'get_schedule',
|
|
7
|
+
displayName: 'Get Schedule',
|
|
8
|
+
description: 'Get detailed information about a specific schedule including its spec (interval/cron), action configuration, policies, pause state, and recent execution history.',
|
|
9
|
+
summary: 'Get schedule details and recent actions',
|
|
10
|
+
icon: 'calendar-clock',
|
|
11
|
+
group: 'Schedules',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
schedule_id: z.string().describe('Schedule ID'),
|
|
15
|
+
}),
|
|
16
|
+
output: scheduleDetailSchema,
|
|
17
|
+
handle: async (params) => {
|
|
18
|
+
const ns = resolveNamespace(params.namespace);
|
|
19
|
+
const data = await api(ns, `/namespaces/${ns}/schedules/${encodeURIComponent(params.schedule_id)}`);
|
|
20
|
+
return mapScheduleDetail(data, params.schedule_id);
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=get-schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-schedule.js","sourceRoot":"","sources":["../../src/tools/get-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAA0B,MAAM,cAAc,CAAC;AAE/G,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;IACpC,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EACT,mKAAmK;IACrK,OAAO,EAAE,yCAAyC;IAClD,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;KAChD,CAAC;IACF,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,GAAG,CACpB,EAAE,EACF,eAAe,EAAE,cAAc,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CACxE,CAAC;QACF,OAAO,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IACrD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getSettings: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
version: z.ZodString;
|
|
6
|
+
disable_write_actions: z.ZodBoolean;
|
|
7
|
+
workflow_terminate_disabled: z.ZodBoolean;
|
|
8
|
+
workflow_cancel_disabled: z.ZodBoolean;
|
|
9
|
+
workflow_signal_disabled: z.ZodBoolean;
|
|
10
|
+
workflow_reset_disabled: z.ZodBoolean;
|
|
11
|
+
workflow_pause_disabled: z.ZodBoolean;
|
|
12
|
+
start_workflow_disabled: z.ZodBoolean;
|
|
13
|
+
batch_actions_disabled: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
//# sourceMappingURL=get-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-settings.d.ts","sourceRoot":"","sources":["../../src/tools/get-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;kBAgDtB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam } from './schemas.js';
|
|
5
|
+
export const getSettings = defineTool({
|
|
6
|
+
name: 'get_settings',
|
|
7
|
+
displayName: 'Get Settings',
|
|
8
|
+
description: 'Get the Temporal UI settings for a namespace. Shows which actions are enabled/disabled (terminate, cancel, signal, reset, etc.), the server version, and codec configuration.',
|
|
9
|
+
summary: 'Get namespace UI settings and capabilities',
|
|
10
|
+
icon: 'settings',
|
|
11
|
+
group: 'Infrastructure',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
}),
|
|
15
|
+
output: z.object({
|
|
16
|
+
version: z.string().describe('Temporal server version'),
|
|
17
|
+
disable_write_actions: z.boolean().describe('Whether all write actions are disabled'),
|
|
18
|
+
workflow_terminate_disabled: z.boolean().describe('Whether workflow terminate is disabled'),
|
|
19
|
+
workflow_cancel_disabled: z.boolean().describe('Whether workflow cancel is disabled'),
|
|
20
|
+
workflow_signal_disabled: z.boolean().describe('Whether workflow signal is disabled'),
|
|
21
|
+
workflow_reset_disabled: z.boolean().describe('Whether workflow reset is disabled'),
|
|
22
|
+
workflow_pause_disabled: z.boolean().describe('Whether workflow pause is disabled'),
|
|
23
|
+
start_workflow_disabled: z.boolean().describe('Whether starting workflows is disabled'),
|
|
24
|
+
batch_actions_disabled: z.boolean().describe('Whether batch actions are disabled'),
|
|
25
|
+
}),
|
|
26
|
+
handle: async (params) => {
|
|
27
|
+
const ns = resolveNamespace(params.namespace);
|
|
28
|
+
const data = await api(ns, '/settings');
|
|
29
|
+
return {
|
|
30
|
+
version: data.Version ?? '',
|
|
31
|
+
disable_write_actions: data.DisableWriteActions ?? false,
|
|
32
|
+
workflow_terminate_disabled: data.WorkflowTerminateDisabled ?? false,
|
|
33
|
+
workflow_cancel_disabled: data.WorkflowCancelDisabled ?? false,
|
|
34
|
+
workflow_signal_disabled: data.WorkflowSignalDisabled ?? false,
|
|
35
|
+
workflow_reset_disabled: data.WorkflowResetDisabled ?? false,
|
|
36
|
+
workflow_pause_disabled: data.WorkflowPauseDisabled ?? false,
|
|
37
|
+
start_workflow_disabled: data.StartWorkflowDisabled ?? false,
|
|
38
|
+
batch_actions_disabled: data.BatchActionsDisabled ?? false,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=get-settings.js.map
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,QAAQ,CAAC,wCAAwC,CAAC;QACvF,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;KACnF,CAAC;IACF,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,GAAG,CAUnB,EAAE,EAAE,WAAW,CAAC,CAAC;QAEpB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE;YAC3B,qBAAqB,EAAE,IAAI,CAAC,mBAAmB,IAAI,KAAK;YACxD,2BAA2B,EAAE,IAAI,CAAC,yBAAyB,IAAI,KAAK;YACpE,wBAAwB,EAAE,IAAI,CAAC,sBAAsB,IAAI,KAAK;YAC9D,wBAAwB,EAAE,IAAI,CAAC,sBAAsB,IAAI,KAAK;YAC9D,uBAAuB,EAAE,IAAI,CAAC,qBAAqB,IAAI,KAAK;YAC5D,uBAAuB,EAAE,IAAI,CAAC,qBAAqB,IAAI,KAAK;YAC5D,uBAAuB,EAAE,IAAI,CAAC,qBAAqB,IAAI,KAAK;YAC5D,sBAAsB,EAAE,IAAI,CAAC,oBAAoB,IAAI,KAAK;SAC3D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getTaskQueue: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
task_queue: z.ZodString;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
pollers: z.ZodArray<z.ZodObject<{
|
|
7
|
+
identity: z.ZodString;
|
|
8
|
+
last_access_time: z.ZodString;
|
|
9
|
+
rate_per_second: z.ZodNumber;
|
|
10
|
+
worker_version_capabilities_build_id: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
rate_limit_per_second: z.ZodNumber;
|
|
13
|
+
rate_limit_source: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
//# sourceMappingURL=get-task-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-queue.d.ts","sourceRoot":"","sources":["../../src/tools/get-task-queue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,YAAY;;;;;;;;;;;;kBA8BvB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam, taskQueuePollerSchema, mapPoller } from './schemas.js';
|
|
5
|
+
export const getTaskQueue = defineTool({
|
|
6
|
+
name: 'get_task_queue',
|
|
7
|
+
displayName: 'Get Task Queue',
|
|
8
|
+
description: 'Get information about a task queue including active pollers (workers), their identities, last access times, build IDs, and rate limits. Useful for debugging worker connectivity issues.',
|
|
9
|
+
summary: 'Get task queue pollers and worker info',
|
|
10
|
+
icon: 'server',
|
|
11
|
+
group: 'Infrastructure',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
task_queue: z.string().describe('Task queue name'),
|
|
15
|
+
}),
|
|
16
|
+
output: z.object({
|
|
17
|
+
pollers: z.array(taskQueuePollerSchema).describe('Active pollers (workers) on this queue'),
|
|
18
|
+
rate_limit_per_second: z.number().describe('Effective rate limit per second (0 = unlimited)'),
|
|
19
|
+
rate_limit_source: z.string().describe('Source of the rate limit (e.g., RATE_LIMIT_SOURCE_SYSTEM)'),
|
|
20
|
+
}),
|
|
21
|
+
handle: async (params) => {
|
|
22
|
+
const ns = resolveNamespace(params.namespace);
|
|
23
|
+
const data = await api(ns, `/namespaces/${ns}/task-queues/${encodeURIComponent(params.task_queue)}`);
|
|
24
|
+
return {
|
|
25
|
+
pollers: (data.pollers ?? []).map(mapPoller),
|
|
26
|
+
rate_limit_per_second: data.effectiveRateLimit?.requestsPerSecond ?? 0,
|
|
27
|
+
rate_limit_source: data.effectiveRateLimit?.rateLimitSource ?? '',
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=get-task-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-queue.js","sourceRoot":"","sources":["../../src/tools/get-task-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,SAAS,EAAkB,MAAM,cAAc,CAAC;AAEhG,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;IACrC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EACT,0LAA0L;IAC5L,OAAO,EAAE,wCAAwC;IACjD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,cAAc;QACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;KACnD,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAC1F,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;QAC7F,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;KACpG,CAAC;IACF,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,GAAG,CAGnB,EAAE,EAAE,eAAe,EAAE,gBAAgB,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAEjF,OAAO;YACL,OAAO,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;YAC5C,qBAAqB,EAAE,IAAI,CAAC,kBAAkB,EAAE,iBAAiB,IAAI,CAAC;YACtE,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE,eAAe,IAAI,EAAE;SAClE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getWorkflowHistory: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
workflow_id: z.ZodString;
|
|
5
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
next_page_token: z.ZodOptional<z.ZodString>;
|
|
8
|
+
wait_new_event: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
+
events: z.ZodArray<z.ZodObject<{
|
|
11
|
+
event_id: z.ZodString;
|
|
12
|
+
event_type: z.ZodString;
|
|
13
|
+
event_time: z.ZodString;
|
|
14
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
next_page_token: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
//# sourceMappingURL=get-workflow-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflow-history.d.ts","sourceRoot":"","sources":["../../src/tools/get-workflow-history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;kBAqC7B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam, historyEventSchema, mapHistoryEvent } from './schemas.js';
|
|
5
|
+
export const getWorkflowHistory = defineTool({
|
|
6
|
+
name: 'get_workflow_history',
|
|
7
|
+
displayName: 'Get Workflow History',
|
|
8
|
+
description: 'Get the event history for a workflow execution. Events include workflow started, activity scheduled/started/completed/failed, timer fired, signals received, and more. Essential for debugging workflow behavior and understanding failures.',
|
|
9
|
+
summary: 'Get workflow event history for debugging',
|
|
10
|
+
icon: 'clock',
|
|
11
|
+
group: 'Workflows',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
workflow_id: z.string().describe('Workflow ID'),
|
|
15
|
+
run_id: z.string().optional().describe('Run ID (optional — uses latest run if omitted)'),
|
|
16
|
+
page_size: z.number().int().min(1).max(1000).optional().describe('Max events per page (default 100, max 1000)'),
|
|
17
|
+
next_page_token: z.string().optional().describe('Pagination token from a previous response'),
|
|
18
|
+
wait_new_event: z.boolean().optional().describe('Long-poll for new events (default false)'),
|
|
19
|
+
}),
|
|
20
|
+
output: z.object({
|
|
21
|
+
events: z.array(historyEventSchema).describe('History events'),
|
|
22
|
+
next_page_token: z.string().describe('Token for next page (empty if no more events)'),
|
|
23
|
+
}),
|
|
24
|
+
handle: async (params) => {
|
|
25
|
+
const ns = resolveNamespace(params.namespace);
|
|
26
|
+
const data = await api(ns, `/namespaces/${ns}/workflows/${encodeURIComponent(params.workflow_id)}/history`, {
|
|
27
|
+
'execution.runId': params.run_id,
|
|
28
|
+
maximumPageSize: params.page_size ?? 100,
|
|
29
|
+
nextPageToken: params.next_page_token,
|
|
30
|
+
waitNewEvent: params.wait_new_event,
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
events: (data.history?.events ?? []).map(mapHistoryEvent),
|
|
34
|
+
next_page_token: data.nextPageToken ?? '',
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=get-workflow-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflow-history.js","sourceRoot":"","sources":["../../src/tools/get-workflow-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAwB,MAAM,cAAc,CAAC;AAEzG,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EACT,8OAA8O;IAChP,OAAO,EAAE,0CAA0C;IACnD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;QAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;QACxF,SAAS,EAAE,C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
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getWorkflow: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
workflow_id: z.ZodString;
|
|
5
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
workflow_id: z.ZodString;
|
|
8
|
+
run_id: z.ZodString;
|
|
9
|
+
type: z.ZodString;
|
|
10
|
+
status: z.ZodString;
|
|
11
|
+
task_queue: z.ZodString;
|
|
12
|
+
start_time: z.ZodString;
|
|
13
|
+
execution_time: z.ZodString;
|
|
14
|
+
close_time: z.ZodString;
|
|
15
|
+
history_length: z.ZodString;
|
|
16
|
+
history_size_bytes: z.ZodString;
|
|
17
|
+
state_transition_count: z.ZodString;
|
|
18
|
+
first_run_id: z.ZodString;
|
|
19
|
+
execution_timeout: z.ZodString;
|
|
20
|
+
run_timeout: z.ZodString;
|
|
21
|
+
task_timeout: z.ZodString;
|
|
22
|
+
memo: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
23
|
+
search_attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
24
|
+
parent_workflow_id: z.ZodString;
|
|
25
|
+
parent_run_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
//# sourceMappingURL=get-workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/get-workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;kBAuBtB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam, workflowDetailSchema, mapWorkflowDetail } from './schemas.js';
|
|
5
|
+
export const getWorkflow = defineTool({
|
|
6
|
+
name: 'get_workflow',
|
|
7
|
+
displayName: 'Get Workflow',
|
|
8
|
+
description: 'Get detailed information about a specific workflow execution including configuration, status, history length, search attributes, and memo fields. Useful for debugging workflow state.',
|
|
9
|
+
summary: 'Get workflow execution details',
|
|
10
|
+
icon: 'file-text',
|
|
11
|
+
group: 'Workflows',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
workflow_id: z.string().describe('Workflow ID'),
|
|
15
|
+
run_id: z.string().optional().describe('Run ID (optional — uses latest run if omitted)'),
|
|
16
|
+
}),
|
|
17
|
+
output: workflowDetailSchema,
|
|
18
|
+
handle: async (params) => {
|
|
19
|
+
const ns = resolveNamespace(params.namespace);
|
|
20
|
+
const data = await api(ns, `/namespaces/${ns}/workflows/${encodeURIComponent(params.workflow_id)}`, { 'execution.runId': params.run_id });
|
|
21
|
+
return mapWorkflowDetail(data);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=get-workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflow.js","sourceRoot":"","sources":["../../src/tools/get-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAA0B,MAAM,cAAc,CAAC;AAE/G,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;IACpC,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EACT,wLAAwL;IAC1L,OAAO,EAAE,gCAAgC;IACzC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;QAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;KACzF,CAAC;IACF,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,GAAG,CACpB,EAAE,EACF,eAAe,EAAE,cAAc,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,EACvE,EAAE,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,CACrC,CAAC;QACF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const listSchedules: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
next_page_token: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
schedules: z.ZodArray<z.ZodObject<{
|
|
8
|
+
schedule_id: z.ZodString;
|
|
9
|
+
workflow_type: z.ZodString;
|
|
10
|
+
task_queue: z.ZodString;
|
|
11
|
+
spec_summary: z.ZodString;
|
|
12
|
+
overlap_policy: z.ZodString;
|
|
13
|
+
state: z.ZodString;
|
|
14
|
+
recent_actions_count: z.ZodNumber;
|
|
15
|
+
next_action_times: z.ZodArray<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
next_page_token: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
//# sourceMappingURL=list-schedules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schedules.d.ts","sourceRoot":"","sources":["../../src/tools/list-schedules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;kBAgCxB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { api, resolveNamespace } from '../temporal-api.js';
|
|
4
|
+
import { namespaceParam, scheduleSchema, mapScheduleListEntry } from './schemas.js';
|
|
5
|
+
export const listSchedules = defineTool({
|
|
6
|
+
name: 'list_schedules',
|
|
7
|
+
displayName: 'List Schedules',
|
|
8
|
+
description: 'List all schedules in a namespace. Shows schedule IDs, workflow types, intervals/crons, recent action counts, and next scheduled times.',
|
|
9
|
+
summary: 'List all schedules in the namespace',
|
|
10
|
+
icon: 'calendar',
|
|
11
|
+
group: 'Schedules',
|
|
12
|
+
input: z.object({
|
|
13
|
+
namespace: namespaceParam,
|
|
14
|
+
page_size: z.number().int().min(1).max(200).optional().describe('Results per page (default 100, max 200)'),
|
|
15
|
+
next_page_token: z.string().optional().describe('Pagination token from a previous response'),
|
|
16
|
+
}),
|
|
17
|
+
output: z.object({
|
|
18
|
+
schedules: z.array(scheduleSchema).describe('Schedule entries'),
|
|
19
|
+
next_page_token: z.string().describe('Token for next page (empty if no more results)'),
|
|
20
|
+
}),
|
|
21
|
+
handle: async (params) => {
|
|
22
|
+
const ns = resolveNamespace(params.namespace);
|
|
23
|
+
const data = await api(ns, `/namespaces/${ns}/schedules`, {
|
|
24
|
+
maximumPageSize: params.page_size ?? 100,
|
|
25
|
+
nextPageToken: params.next_page_token,
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
schedules: (data.schedules ?? []).map(mapScheduleListEntry),
|
|
29
|
+
next_page_token: data.nextPageToken ?? '',
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=list-schedules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schedules.js","sourceRoot":"","sources":["../../src/tools/list-schedules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAA6B,MAAM,cAAc,CAAC;AAE/G,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC;IACtC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EACT,yIAAyI;IAC3I,OAAO,EAAE,qCAAqC;IAC9C,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QAC1G,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;KAC7F,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAC/D,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;KACvF,CAAC;IACF,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,GAAG,CAGnB,EAAE,EAAE,eAAe,EAAE,YAAY,EAAE;YACpC,eAAe,EAAE,MAAM,CAAC,SAAS,IAAI,GAAG;YACxC,aAAa,EAAE,MAAM,CAAC,eAAe;SACtC,CAAC,CAAC;QAEH,OAAO;YACL,SAAS,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC;YAC3D,eAAe,EAAE,IAAI,CAAC,aAAa,IAAI,EAAE;SAC1C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const listWorkflows: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
4
|
+
query: z.ZodOptional<z.ZodString>;
|
|
5
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
next_page_token: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
+
workflows: z.ZodArray<z.ZodObject<{
|
|
9
|
+
workflow_id: z.ZodString;
|
|
10
|
+
run_id: z.ZodString;
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
status: z.ZodString;
|
|
13
|
+
task_queue: z.ZodString;
|
|
14
|
+
start_time: z.ZodString;
|
|
15
|
+
execution_time: z.ZodString;
|
|
16
|
+
close_time: z.ZodString;
|
|
17
|
+
history_length: z.ZodString;
|
|
18
|
+
memo: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
19
|
+
parent_workflow_id: z.ZodString;
|
|
20
|
+
parent_run_id: z.ZodString;
|
|
21
|
+
root_workflow_id: z.ZodString;
|
|
22
|
+
root_run_id: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
next_page_token: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
//# sourceMappingURL=list-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-workflows.d.ts","sourceRoot":"","sources":["../../src/tools/list-workflows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;kBAqCxB,CAAC"}
|