@openserv-labs/client 1.1.4 → 2.0.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.
- package/README.md +58 -60
- package/dist/client.d.ts +12 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +21 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/provision.d.ts +20 -2
- package/dist/provision.d.ts.map +1 -1
- package/dist/provision.js +57 -114
- package/dist/triggers-api.d.ts +33 -32
- package/dist/triggers-api.d.ts.map +1 -1
- package/dist/triggers-api.js +32 -58
- package/dist/types.d.ts +4 -9
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -3
- package/dist/workflow.d.ts +12 -2
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workflow.js +14 -0
- package/dist/workflows-api.d.ts +25 -4
- package/dist/workflows-api.d.ts.map +1 -1
- package/dist/workflows-api.js +100 -28
- package/package.json +1 -1
package/dist/triggers-api.d.ts
CHANGED
|
@@ -18,81 +18,95 @@ export interface InputSchema {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Configuration for a webhook trigger.
|
|
21
|
+
* Discriminated on `type: "webhook"`.
|
|
21
22
|
*/
|
|
22
23
|
export interface WebhookTriggerConfig {
|
|
23
24
|
type: "webhook";
|
|
25
|
+
/** Trigger ID (used when syncing existing triggers) */
|
|
26
|
+
id?: string;
|
|
24
27
|
/** Display name for the trigger (shown in listings and UI) */
|
|
25
28
|
name?: string;
|
|
26
29
|
/** Description of what this trigger does */
|
|
27
30
|
description?: string;
|
|
28
|
-
/** Input schema for webhook payload validation */
|
|
29
|
-
input?: InputSchema;
|
|
30
31
|
/** Whether to wait for workflow completion before responding */
|
|
31
32
|
waitForCompletion?: boolean;
|
|
32
33
|
/** Timeout in seconds (default: 180) */
|
|
33
34
|
timeout?: number;
|
|
35
|
+
/** JSON Schema for webhook payload validation */
|
|
36
|
+
inputSchema?: Record<string, unknown>;
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
39
|
* Configuration for an x402 (paid) trigger.
|
|
40
|
+
* Discriminated on `type: "x402"`.
|
|
37
41
|
*/
|
|
38
42
|
export interface X402TriggerConfig {
|
|
39
43
|
type: "x402";
|
|
44
|
+
/** Trigger ID (used when syncing existing triggers) */
|
|
45
|
+
id?: string;
|
|
40
46
|
/** Display name for the service (e.g., "AI Research Assistant") - shown in x402-services listing */
|
|
41
47
|
name?: string;
|
|
42
48
|
/** Description of what this service does - shown in x402-services listing */
|
|
43
49
|
description?: string;
|
|
44
50
|
/** Price in USD (e.g., "0.01") */
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
|
|
51
|
+
x402Pricing: string;
|
|
52
|
+
/** Wallet address to receive payments */
|
|
53
|
+
x402WalletAddress?: string;
|
|
48
54
|
/** Timeout in seconds (default: 180) */
|
|
49
55
|
timeout?: number;
|
|
50
|
-
/**
|
|
51
|
-
|
|
56
|
+
/** JSON Schema for request validation */
|
|
57
|
+
inputSchema?: Record<string, unknown>;
|
|
58
|
+
/** x402 triggers always wait for completion */
|
|
59
|
+
waitForCompletion: true;
|
|
52
60
|
}
|
|
53
61
|
/**
|
|
54
62
|
* Configuration for a cron (scheduled) trigger.
|
|
63
|
+
* Discriminated on `type: "cron"`.
|
|
55
64
|
*/
|
|
56
65
|
export interface CronTriggerConfig {
|
|
57
66
|
type: "cron";
|
|
67
|
+
/** Trigger ID (used when syncing existing triggers) */
|
|
68
|
+
id?: string;
|
|
58
69
|
/** Display name for the trigger (shown in listings and UI) */
|
|
59
70
|
name?: string;
|
|
60
71
|
/** Description of what this trigger does */
|
|
61
72
|
description?: string;
|
|
62
73
|
/** Cron expression (e.g., "0 9 * * *" for daily at 9 AM) */
|
|
63
74
|
schedule: string;
|
|
64
|
-
/** Timezone (default: "UTC") */
|
|
65
|
-
timezone
|
|
75
|
+
/** Timezone as IANA time zone name (default: "UTC") */
|
|
76
|
+
timezone: string;
|
|
66
77
|
}
|
|
67
78
|
/**
|
|
68
79
|
* Configuration for a manual trigger.
|
|
80
|
+
* Discriminated on `type: "manual"`.
|
|
69
81
|
*/
|
|
70
82
|
export interface ManualTriggerConfig {
|
|
71
83
|
type: "manual";
|
|
84
|
+
/** Trigger ID (used when syncing existing triggers) */
|
|
85
|
+
id?: string;
|
|
72
86
|
/** Display name for the trigger (shown in listings and UI) */
|
|
73
87
|
name?: string;
|
|
74
88
|
/** Description of what this trigger does */
|
|
75
89
|
description?: string;
|
|
76
90
|
}
|
|
77
91
|
/**
|
|
78
|
-
*
|
|
92
|
+
* Discriminated union of all trigger configurations.
|
|
93
|
+
* Discriminate on the `type` field to narrow to a specific trigger type.
|
|
79
94
|
*/
|
|
80
95
|
export type TriggerConfig = WebhookTriggerConfig | X402TriggerConfig | CronTriggerConfig | ManualTriggerConfig;
|
|
81
96
|
/**
|
|
82
97
|
* Factory functions for creating type-safe trigger configurations.
|
|
98
|
+
* Each factory accepts user-friendly parameters and returns a flat,
|
|
99
|
+
* properly typed config with API-ready field names.
|
|
83
100
|
*
|
|
84
101
|
* @example
|
|
85
102
|
* ```typescript
|
|
86
|
-
* import { triggers
|
|
103
|
+
* import { triggers } from '@openserv-labs/client';
|
|
87
104
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* input: { query: { type: 'string' } },
|
|
91
|
-
* waitForCompletion: true
|
|
92
|
-
* });
|
|
105
|
+
* const webhook = triggers.webhook({ waitForCompletion: true });
|
|
106
|
+
* // { type: 'webhook', waitForCompletion: true, timeout: 180 }
|
|
93
107
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
108
|
+
* const x402 = triggers.x402({ price: '0.01' });
|
|
109
|
+
* // { type: 'x402', x402Pricing: '0.01', timeout: 180 }
|
|
96
110
|
* ```
|
|
97
111
|
*/
|
|
98
112
|
export declare const triggers: {
|
|
@@ -153,19 +167,6 @@ export declare const triggers: {
|
|
|
153
167
|
* @returns JSON Schema compliant object
|
|
154
168
|
*/
|
|
155
169
|
export declare function inputSchemaToJsonSchema(input: InputSchema): Record<string, unknown>;
|
|
156
|
-
/**
|
|
157
|
-
* Convert a trigger configuration to API props format.
|
|
158
|
-
* @param config - The trigger configuration
|
|
159
|
-
* @returns Props object for the trigger API
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* ```typescript
|
|
163
|
-
* const config = triggers.x402({ price: '0.01' });
|
|
164
|
-
* const props = triggerConfigToProps(config);
|
|
165
|
-
* // props = { x402Pricing: '0.01', timeout: 180 }
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
export declare function triggerConfigToProps(config: TriggerConfig): Record<string, unknown>;
|
|
169
170
|
/**
|
|
170
171
|
* API for managing workflow triggers.
|
|
171
172
|
*
|
|
@@ -198,7 +199,7 @@ export declare class TriggersAPI {
|
|
|
198
199
|
* @param params.name - Display name for the trigger (e.g., "AI Research Assistant")
|
|
199
200
|
* @param params.description - Description of what this trigger does
|
|
200
201
|
* @param params.integrationConnectionId - Integration connection ID (e.g., from getOrCreateConnection)
|
|
201
|
-
* @param params.props - Trigger properties
|
|
202
|
+
* @param params.props - Trigger properties
|
|
202
203
|
* @param params.trigger_name - Optional specific trigger name
|
|
203
204
|
* @returns The created trigger
|
|
204
205
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-api.d.ts","sourceRoot":"","sources":["../src/triggers-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAMvC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,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ACG,GAAG,CAAC,MAAM,EAAE;QAChB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,OAAO,CAAC;IAYpB;;;;;OAKG;IACG,IAAI,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAiDvE;;;;;;;;;OASG;IACG,MAAM,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC,OAAO,CAAC;IAkBpB;;;;;OAKG;IACG,MAAM,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,IAAI,CAAC;IAMjB;;;;;OAKG;IACG,QAAQ,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBjB;;;;;;;OAOG;IACG,IAAI,CAAC,MAAM,EAAE;QACjB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,OAAO,CAAC;CAQrB"}
|
package/dist/triggers-api.js
CHANGED
|
@@ -2,25 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TriggersAPI = exports.triggers = void 0;
|
|
4
4
|
exports.inputSchemaToJsonSchema = inputSchemaToJsonSchema;
|
|
5
|
-
exports.triggerConfigToProps = triggerConfigToProps;
|
|
6
5
|
// ============================================================================
|
|
7
6
|
// Trigger Factory Functions
|
|
8
7
|
// ============================================================================
|
|
9
8
|
/**
|
|
10
9
|
* Factory functions for creating type-safe trigger configurations.
|
|
10
|
+
* Each factory accepts user-friendly parameters and returns a flat,
|
|
11
|
+
* properly typed config with API-ready field names.
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```typescript
|
|
14
|
-
* import { triggers
|
|
15
|
+
* import { triggers } from '@openserv-labs/client';
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* input: { query: { type: 'string' } },
|
|
19
|
-
* waitForCompletion: true
|
|
20
|
-
* });
|
|
17
|
+
* const webhook = triggers.webhook({ waitForCompletion: true });
|
|
18
|
+
* // { type: 'webhook', waitForCompletion: true, timeout: 180 }
|
|
21
19
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* const x402 = triggers.x402({ price: '0.01' });
|
|
21
|
+
* // { type: 'x402', x402Pricing: '0.01', timeout: 180 }
|
|
24
22
|
* ```
|
|
25
23
|
*/
|
|
26
24
|
exports.triggers = {
|
|
@@ -31,7 +29,13 @@ exports.triggers = {
|
|
|
31
29
|
*/
|
|
32
30
|
webhook: (opts) => ({
|
|
33
31
|
type: "webhook",
|
|
34
|
-
...opts,
|
|
32
|
+
...(opts?.name && { name: opts.name }),
|
|
33
|
+
...(opts?.description && { description: opts.description }),
|
|
34
|
+
waitForCompletion: opts?.waitForCompletion ?? false,
|
|
35
|
+
timeout: opts?.timeout ?? 180,
|
|
36
|
+
...(opts?.input && {
|
|
37
|
+
inputSchema: inputSchemaToJsonSchema(opts.input),
|
|
38
|
+
}),
|
|
35
39
|
}),
|
|
36
40
|
/**
|
|
37
41
|
* Create an x402 (paid) trigger configuration.
|
|
@@ -43,7 +47,17 @@ exports.triggers = {
|
|
|
43
47
|
*/
|
|
44
48
|
x402: (opts) => ({
|
|
45
49
|
type: "x402",
|
|
46
|
-
...opts,
|
|
50
|
+
...(opts.name && { name: opts.name }),
|
|
51
|
+
...(opts.description && { description: opts.description }),
|
|
52
|
+
x402Pricing: opts.price,
|
|
53
|
+
waitForCompletion: true,
|
|
54
|
+
timeout: opts.timeout ?? 180,
|
|
55
|
+
...(opts.walletAddress && {
|
|
56
|
+
x402WalletAddress: opts.walletAddress,
|
|
57
|
+
}),
|
|
58
|
+
...(opts.input && {
|
|
59
|
+
inputSchema: inputSchemaToJsonSchema(opts.input),
|
|
60
|
+
}),
|
|
47
61
|
}),
|
|
48
62
|
/**
|
|
49
63
|
* Create a cron (scheduled) trigger configuration.
|
|
@@ -54,7 +68,10 @@ exports.triggers = {
|
|
|
54
68
|
*/
|
|
55
69
|
cron: (opts) => ({
|
|
56
70
|
type: "cron",
|
|
57
|
-
...opts,
|
|
71
|
+
...(opts.name && { name: opts.name }),
|
|
72
|
+
...(opts.description && { description: opts.description }),
|
|
73
|
+
schedule: opts.schedule,
|
|
74
|
+
timezone: opts.timezone || "UTC",
|
|
58
75
|
}),
|
|
59
76
|
/**
|
|
60
77
|
* Create a manual trigger configuration.
|
|
@@ -63,7 +80,8 @@ exports.triggers = {
|
|
|
63
80
|
*/
|
|
64
81
|
manual: (opts) => ({
|
|
65
82
|
type: "manual",
|
|
66
|
-
...opts,
|
|
83
|
+
...(opts?.name && { name: opts.name }),
|
|
84
|
+
...(opts?.description && { description: opts.description }),
|
|
67
85
|
}),
|
|
68
86
|
};
|
|
69
87
|
// ============================================================================
|
|
@@ -96,50 +114,6 @@ function inputSchemaToJsonSchema(input) {
|
|
|
96
114
|
required,
|
|
97
115
|
};
|
|
98
116
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Convert a trigger configuration to API props format.
|
|
101
|
-
* @param config - The trigger configuration
|
|
102
|
-
* @returns Props object for the trigger API
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```typescript
|
|
106
|
-
* const config = triggers.x402({ price: '0.01' });
|
|
107
|
-
* const props = triggerConfigToProps(config);
|
|
108
|
-
* // props = { x402Pricing: '0.01', timeout: 180 }
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
function triggerConfigToProps(config) {
|
|
112
|
-
switch (config.type) {
|
|
113
|
-
case "webhook":
|
|
114
|
-
return {
|
|
115
|
-
waitForCompletion: config.waitForCompletion ?? false,
|
|
116
|
-
timeout: config.timeout ?? 180,
|
|
117
|
-
...(config.input && {
|
|
118
|
-
inputSchema: inputSchemaToJsonSchema(config.input),
|
|
119
|
-
}),
|
|
120
|
-
};
|
|
121
|
-
case "x402":
|
|
122
|
-
return {
|
|
123
|
-
x402Pricing: config.price,
|
|
124
|
-
timeout: config.timeout ?? 180,
|
|
125
|
-
...(config.walletAddress && {
|
|
126
|
-
x402WalletAddress: config.walletAddress,
|
|
127
|
-
}),
|
|
128
|
-
...(config.input && {
|
|
129
|
-
inputSchema: inputSchemaToJsonSchema(config.input),
|
|
130
|
-
}),
|
|
131
|
-
};
|
|
132
|
-
case "cron":
|
|
133
|
-
return {
|
|
134
|
-
schedule: config.schedule,
|
|
135
|
-
timezone: config.timezone || "UTC",
|
|
136
|
-
};
|
|
137
|
-
case "manual":
|
|
138
|
-
return {};
|
|
139
|
-
default:
|
|
140
|
-
return {};
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
117
|
/**
|
|
144
118
|
* API for managing workflow triggers.
|
|
145
119
|
*
|
|
@@ -174,7 +148,7 @@ class TriggersAPI {
|
|
|
174
148
|
* @param params.name - Display name for the trigger (e.g., "AI Research Assistant")
|
|
175
149
|
* @param params.description - Description of what this trigger does
|
|
176
150
|
* @param params.integrationConnectionId - Integration connection ID (e.g., from getOrCreateConnection)
|
|
177
|
-
* @param params.props - Trigger properties
|
|
151
|
+
* @param params.props - Trigger properties
|
|
178
152
|
* @param params.trigger_name - Optional specific trigger name
|
|
179
153
|
* @returns The created trigger
|
|
180
154
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TriggerConfig } from "./triggers-api";
|
|
1
2
|
export interface Agent {
|
|
2
3
|
id: number;
|
|
3
4
|
name: string;
|
|
@@ -56,13 +57,6 @@ export interface VerifyResponse {
|
|
|
56
57
|
success: boolean;
|
|
57
58
|
apiKey: string;
|
|
58
59
|
}
|
|
59
|
-
export interface TriggerDefinition {
|
|
60
|
-
id?: string;
|
|
61
|
-
name: string;
|
|
62
|
-
type?: "x402" | "webhook" | "cron" | "manual";
|
|
63
|
-
integrationConnectionId?: string;
|
|
64
|
-
props?: Record<string, unknown>;
|
|
65
|
-
}
|
|
66
60
|
export interface OutputOption {
|
|
67
61
|
name: string;
|
|
68
62
|
type: "text" | "file" | "json";
|
|
@@ -100,8 +94,9 @@ export interface EdgeDefinition {
|
|
|
100
94
|
export interface WorkflowConfig {
|
|
101
95
|
name: string;
|
|
102
96
|
goal?: string;
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
/** Agent IDs to include in the workspace. Optional -- if omitted, derived from tasks[].agentId. If provided, merged with task-derived IDs. */
|
|
98
|
+
agentIds?: (number | string)[];
|
|
99
|
+
triggers?: TriggerConfig[];
|
|
105
100
|
tasks?: TaskDefinition[];
|
|
106
101
|
edges?: EdgeDefinition[];
|
|
107
102
|
}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAMpD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IAC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O,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/types.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// ============================================================================
|
|
3
|
-
// API Response Types (raw platform responses)
|
|
4
|
-
// ============================================================================
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PlatformClient } from "./client";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TriggerConfig } from "./triggers-api";
|
|
3
|
+
import type { TaskDefinition, EdgeDefinition, WorkflowData, Trigger, Task, Edge, Agent } from "./types";
|
|
3
4
|
export declare class Workflow {
|
|
4
5
|
readonly id: number;
|
|
5
6
|
readonly name: string;
|
|
@@ -15,10 +16,19 @@ export declare class Workflow {
|
|
|
15
16
|
* Sync the workflow with a new configuration (declarative update)
|
|
16
17
|
*/
|
|
17
18
|
sync(config: {
|
|
18
|
-
triggers?:
|
|
19
|
+
triggers?: TriggerConfig[];
|
|
19
20
|
tasks?: TaskDefinition[];
|
|
20
21
|
edges?: EdgeDefinition[];
|
|
21
22
|
}): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Add an agent to this workflow's workspace.
|
|
25
|
+
*
|
|
26
|
+
* Required before assigning tasks to agents not yet in the workspace.
|
|
27
|
+
* Called automatically by sync() when tasks reference new agents.
|
|
28
|
+
*
|
|
29
|
+
* @param agentId - The agent ID to add
|
|
30
|
+
*/
|
|
31
|
+
addAgent(agentId: number): Promise<void>;
|
|
22
32
|
/**
|
|
23
33
|
* Set the workflow to running state
|
|
24
34
|
*/
|
package/dist/workflow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,qBAAa,QAAQ;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,OAAO,CAAC,MAAM,CAAiB;gBAEnB,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc;IAYtD;;OAEG;IACG,IAAI,CAAC,MAAM,EAAE;QACjB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;QAC3B,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;QACzB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;KAC1B,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBjB;;;;;;;OAOG;IACG,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9C;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAIlC"}
|
package/dist/workflow.js
CHANGED
|
@@ -39,6 +39,20 @@ class Workflow {
|
|
|
39
39
|
this.edges = updated.edges;
|
|
40
40
|
this.status = updated.status;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Add an agent to this workflow's workspace.
|
|
44
|
+
*
|
|
45
|
+
* Required before assigning tasks to agents not yet in the workspace.
|
|
46
|
+
* Called automatically by sync() when tasks reference new agents.
|
|
47
|
+
*
|
|
48
|
+
* @param agentId - The agent ID to add
|
|
49
|
+
*/
|
|
50
|
+
async addAgent(agentId) {
|
|
51
|
+
await this.client.workflows.addAgent({ id: this.id, agentId });
|
|
52
|
+
// Refresh agents list
|
|
53
|
+
const updated = await this.client.workflows.get({ id: this.id });
|
|
54
|
+
this.agents = updated.agents;
|
|
55
|
+
}
|
|
42
56
|
/**
|
|
43
57
|
* Set the workflow to running state
|
|
44
58
|
*/
|
package/dist/workflows-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PlatformClient } from "./client";
|
|
2
|
-
import type { WorkflowConfig,
|
|
2
|
+
import type { WorkflowConfig, TaskDefinition, EdgeDefinition, Edge } from "./types";
|
|
3
|
+
import type { TriggerConfig } from "./triggers-api";
|
|
3
4
|
import { Workflow } from "./workflow";
|
|
4
5
|
/**
|
|
5
6
|
* API for managing workflows on the OpenServ platform.
|
|
@@ -114,12 +115,32 @@ export declare class WorkflowsAPI {
|
|
|
114
115
|
id: number | string;
|
|
115
116
|
edges: Edge[];
|
|
116
117
|
}): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Add an agent to an existing workflow's workspace.
|
|
120
|
+
*
|
|
121
|
+
* This is required before assigning tasks to agents that aren't yet
|
|
122
|
+
* members of the workspace. Called automatically by sync() when tasks
|
|
123
|
+
* reference agents not already in the workspace.
|
|
124
|
+
*
|
|
125
|
+
* @param params - Parameters object
|
|
126
|
+
* @param params.id - The workflow ID
|
|
127
|
+
* @param params.agentId - The agent ID to add
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* // Add an agent to a workspace so it can be assigned tasks
|
|
132
|
+
* await client.workflows.addAgent({ id: workflowId, agentId: 456 });
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
addAgent(params: {
|
|
136
|
+
id: number | string;
|
|
137
|
+
agentId: number;
|
|
138
|
+
}): Promise<void>;
|
|
117
139
|
/**
|
|
118
140
|
* Sync workflow with declarative configuration.
|
|
119
141
|
*
|
|
120
142
|
* This allows updating triggers, tasks, and edges in a single call.
|
|
121
|
-
*
|
|
122
|
-
* as the sync endpoint has known limitations.
|
|
143
|
+
* This is the recommended approach for creating and updating workflows.
|
|
123
144
|
*
|
|
124
145
|
* @param params - Parameters object
|
|
125
146
|
* @param params.id - The workflow ID
|
|
@@ -129,7 +150,7 @@ export declare class WorkflowsAPI {
|
|
|
129
150
|
*/
|
|
130
151
|
sync(params: {
|
|
131
152
|
id: number | string;
|
|
132
|
-
triggers?:
|
|
153
|
+
triggers?: TriggerConfig[];
|
|
133
154
|
tasks?: TaskDefinition[];
|
|
134
155
|
edges?: EdgeDefinition[];
|
|
135
156
|
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-api.d.ts","sourceRoot":"","sources":["../src/workflows-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EACV,cAAc,EAEd,
|
|
1
|
+
{"version":3,"file":"workflows-api.d.ts","sourceRoot":"","sources":["../src/workflows-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EACV,cAAc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