@orq-ai/node 3.14.36 → 3.14.38
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/bin/mcp-server.js +210 -210
- package/bin/mcp-server.js.map +35 -35
- package/examples/package-lock.json +2 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +2 -6
- package/packages/orq-rc/README.md +1 -1
- package/packages/orq-rc/docs/sdks/agents/README.md +2 -0
- package/packages/orq-rc/docs/sdks/deployments/README.md +43 -43
- package/packages/orq-rc/examples/package-lock.json +2 -10
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +3 -27
- package/packages/orq-rc/package.json +3 -6
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +3 -3
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +1 -1
- package/packages/orq-rc/src/models/components/{deployments.ts → invokedeploymentrequest.ts} +822 -728
- package/packages/orq-rc/src/models/operations/createagent.ts +138 -3
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +78 -66
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +35 -35
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +80 -78
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +71 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +67 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +69 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +75 -1
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +79 -70
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +77 -1
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +10 -10
- package/packages/orq-rc/src/models/operations/updateagent.ts +145 -3
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/deployments.ts +17 -17
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -5,27 +5,31 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [invoke](#invoke) - Invoke
|
|
8
9
|
* [list](#list) - List all deployments
|
|
9
10
|
* [getConfig](#getconfig) - Get config
|
|
10
|
-
* [invoke](#invoke) - Invoke
|
|
11
11
|
* [stream](#stream) - Stream
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## invoke
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Invoke a deployment with a given payload
|
|
16
16
|
|
|
17
17
|
### Example Usage
|
|
18
18
|
|
|
19
|
-
<!-- UsageSnippet language="typescript" operationID="
|
|
19
|
+
<!-- UsageSnippet language="typescript" operationID="DeploymentInvoke" method="post" path="/v2/deployments/invoke" -->
|
|
20
20
|
```typescript
|
|
21
21
|
import { Orq } from "@orq-ai/node";
|
|
22
22
|
|
|
23
23
|
const orq = new Orq({
|
|
24
|
+
environment: "<value>",
|
|
25
|
+
contactId: "<id>",
|
|
24
26
|
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
25
27
|
});
|
|
26
28
|
|
|
27
29
|
async function run() {
|
|
28
|
-
const result = await orq.deployments.
|
|
30
|
+
const result = await orq.deployments.invoke({
|
|
31
|
+
key: "<key>",
|
|
32
|
+
});
|
|
29
33
|
|
|
30
34
|
console.log(result);
|
|
31
35
|
}
|
|
@@ -39,21 +43,25 @@ The standalone function version of this method:
|
|
|
39
43
|
|
|
40
44
|
```typescript
|
|
41
45
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
42
|
-
import {
|
|
46
|
+
import { deploymentsInvoke } from "@orq-ai/node/funcs/deploymentsInvoke.js";
|
|
43
47
|
|
|
44
48
|
// Use `OrqCore` for best tree-shaking performance.
|
|
45
49
|
// You can create one instance of it to use across an application.
|
|
46
50
|
const orq = new OrqCore({
|
|
51
|
+
environment: "<value>",
|
|
52
|
+
contactId: "<id>",
|
|
47
53
|
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
48
54
|
});
|
|
49
55
|
|
|
50
56
|
async function run() {
|
|
51
|
-
const res = await
|
|
57
|
+
const res = await deploymentsInvoke(orq, {
|
|
58
|
+
key: "<key>",
|
|
59
|
+
});
|
|
52
60
|
if (res.ok) {
|
|
53
61
|
const { value: result } = res;
|
|
54
62
|
console.log(result);
|
|
55
63
|
} else {
|
|
56
|
-
console.log("
|
|
64
|
+
console.log("deploymentsInvoke failed:", res.error);
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -64,29 +72,28 @@ run();
|
|
|
64
72
|
|
|
65
73
|
| Parameter | Type | Required | Description |
|
|
66
74
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [
|
|
75
|
+
| `request` | [components.InvokeDeploymentRequest](../../models/components/invokedeploymentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
76
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
69
77
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
70
78
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
79
|
|
|
72
80
|
### Response
|
|
73
81
|
|
|
74
|
-
**Promise\<[operations.
|
|
82
|
+
**Promise\<[operations.DeploymentInvokeResponseBody](../../models/operations/deploymentinvokeresponsebody.md)\>**
|
|
75
83
|
|
|
76
84
|
### Errors
|
|
77
85
|
|
|
78
|
-
| Error Type
|
|
79
|
-
|
|
|
80
|
-
| errors.
|
|
81
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
86
|
+
| Error Type | Status Code | Content Type |
|
|
87
|
+
| --------------- | --------------- | --------------- |
|
|
88
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
82
89
|
|
|
83
|
-
##
|
|
90
|
+
## list
|
|
84
91
|
|
|
85
|
-
|
|
92
|
+
Returns a list of your deployments. The deployments are returned sorted by creation date, with the most recent deployments appearing first.
|
|
86
93
|
|
|
87
94
|
### Example Usage
|
|
88
95
|
|
|
89
|
-
<!-- UsageSnippet language="typescript" operationID="
|
|
96
|
+
<!-- UsageSnippet language="typescript" operationID="Deployments" method="get" path="/v2/deployments" -->
|
|
90
97
|
```typescript
|
|
91
98
|
import { Orq } from "@orq-ai/node";
|
|
92
99
|
|
|
@@ -95,9 +102,7 @@ const orq = new Orq({
|
|
|
95
102
|
});
|
|
96
103
|
|
|
97
104
|
async function run() {
|
|
98
|
-
const result = await orq.deployments.
|
|
99
|
-
key: "<key>",
|
|
100
|
-
});
|
|
105
|
+
const result = await orq.deployments.list({});
|
|
101
106
|
|
|
102
107
|
console.log(result);
|
|
103
108
|
}
|
|
@@ -111,7 +116,7 @@ The standalone function version of this method:
|
|
|
111
116
|
|
|
112
117
|
```typescript
|
|
113
118
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
114
|
-
import {
|
|
119
|
+
import { deploymentsList } from "@orq-ai/node/funcs/deploymentsList.js";
|
|
115
120
|
|
|
116
121
|
// Use `OrqCore` for best tree-shaking performance.
|
|
117
122
|
// You can create one instance of it to use across an application.
|
|
@@ -120,14 +125,12 @@ const orq = new OrqCore({
|
|
|
120
125
|
});
|
|
121
126
|
|
|
122
127
|
async function run() {
|
|
123
|
-
const res = await
|
|
124
|
-
key: "<key>",
|
|
125
|
-
});
|
|
128
|
+
const res = await deploymentsList(orq, {});
|
|
126
129
|
if (res.ok) {
|
|
127
130
|
const { value: result } = res;
|
|
128
131
|
console.log(result);
|
|
129
132
|
} else {
|
|
130
|
-
console.log("
|
|
133
|
+
console.log("deploymentsList failed:", res.error);
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
|
|
@@ -138,39 +141,38 @@ run();
|
|
|
138
141
|
|
|
139
142
|
| Parameter | Type | Required | Description |
|
|
140
143
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
141
|
-
| `request` | [operations.
|
|
144
|
+
| `request` | [operations.DeploymentsRequest](../../models/operations/deploymentsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
142
145
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
143
146
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
144
147
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
145
148
|
|
|
146
149
|
### Response
|
|
147
150
|
|
|
148
|
-
**Promise\<[operations.
|
|
151
|
+
**Promise\<[operations.DeploymentsResponseBody](../../models/operations/deploymentsresponsebody.md)\>**
|
|
149
152
|
|
|
150
153
|
### Errors
|
|
151
154
|
|
|
152
|
-
| Error Type
|
|
153
|
-
|
|
|
154
|
-
| errors.
|
|
155
|
+
| Error Type | Status Code | Content Type |
|
|
156
|
+
| ------------------- | ------------------- | ------------------- |
|
|
157
|
+
| errors.HonoApiError | 500 | application/json |
|
|
158
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
155
159
|
|
|
156
|
-
##
|
|
160
|
+
## getConfig
|
|
157
161
|
|
|
158
|
-
|
|
162
|
+
Retrieve the deployment configuration
|
|
159
163
|
|
|
160
164
|
### Example Usage
|
|
161
165
|
|
|
162
|
-
<!-- UsageSnippet language="typescript" operationID="
|
|
166
|
+
<!-- UsageSnippet language="typescript" operationID="DeploymentGetConfig" method="post" path="/v2/deployments/get_config" -->
|
|
163
167
|
```typescript
|
|
164
168
|
import { Orq } from "@orq-ai/node";
|
|
165
169
|
|
|
166
170
|
const orq = new Orq({
|
|
167
|
-
environment: "<value>",
|
|
168
|
-
contactId: "<id>",
|
|
169
171
|
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
170
172
|
});
|
|
171
173
|
|
|
172
174
|
async function run() {
|
|
173
|
-
const result = await orq.deployments.
|
|
175
|
+
const result = await orq.deployments.getConfig({
|
|
174
176
|
key: "<key>",
|
|
175
177
|
});
|
|
176
178
|
|
|
@@ -186,25 +188,23 @@ The standalone function version of this method:
|
|
|
186
188
|
|
|
187
189
|
```typescript
|
|
188
190
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
189
|
-
import {
|
|
191
|
+
import { deploymentsGetConfig } from "@orq-ai/node/funcs/deploymentsGetConfig.js";
|
|
190
192
|
|
|
191
193
|
// Use `OrqCore` for best tree-shaking performance.
|
|
192
194
|
// You can create one instance of it to use across an application.
|
|
193
195
|
const orq = new OrqCore({
|
|
194
|
-
environment: "<value>",
|
|
195
|
-
contactId: "<id>",
|
|
196
196
|
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
197
197
|
});
|
|
198
198
|
|
|
199
199
|
async function run() {
|
|
200
|
-
const res = await
|
|
200
|
+
const res = await deploymentsGetConfig(orq, {
|
|
201
201
|
key: "<key>",
|
|
202
202
|
});
|
|
203
203
|
if (res.ok) {
|
|
204
204
|
const { value: result } = res;
|
|
205
205
|
console.log(result);
|
|
206
206
|
} else {
|
|
207
|
-
console.log("
|
|
207
|
+
console.log("deploymentsGetConfig failed:", res.error);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -215,14 +215,14 @@ run();
|
|
|
215
215
|
|
|
216
216
|
| Parameter | Type | Required | Description |
|
|
217
217
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
218
|
-
| `request` | [
|
|
218
|
+
| `request` | [operations.DeploymentGetConfigRequestBody](../../models/operations/deploymentgetconfigrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
219
219
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
220
220
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
221
221
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
222
222
|
|
|
223
223
|
### Response
|
|
224
224
|
|
|
225
|
-
**Promise\<[operations.
|
|
225
|
+
**Promise\<[operations.DeploymentGetConfigResponseBody](../../models/operations/deploymentgetconfigresponsebody.md)\>**
|
|
226
226
|
|
|
227
227
|
### Errors
|
|
228
228
|
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"..": {
|
|
20
20
|
"name": "@orq-ai/node",
|
|
21
|
-
"version": "4.0.0-rc.
|
|
21
|
+
"version": "4.0.0-rc.36",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
23
24
|
"zod": "^3.25.0 || ^4.0.0"
|
|
24
25
|
},
|
|
25
26
|
"bin": {
|
|
@@ -27,7 +28,6 @@
|
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@eslint/js": "^9.19.0",
|
|
30
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
31
31
|
"@stricli/core": "^1.1.1",
|
|
32
32
|
"@types/express": "^4.17.21",
|
|
33
33
|
"bun": "1.2.17",
|
|
@@ -37,14 +37,6 @@
|
|
|
37
37
|
"globals": "^15.14.0",
|
|
38
38
|
"typescript": "~5.8.3",
|
|
39
39
|
"typescript-eslint": "^8.26.0"
|
|
40
|
-
},
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
|
|
43
|
-
},
|
|
44
|
-
"peerDependenciesMeta": {
|
|
45
|
-
"@modelcontextprotocol/sdk": {
|
|
46
|
-
"optional": true
|
|
47
|
-
}
|
|
48
40
|
}
|
|
49
41
|
},
|
|
50
42
|
"node_modules/@esbuild/aix-ppc64": {
|
package/packages/orq-rc/jsr.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.36",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@orq-ai/node",
|
|
9
|
-
"version": "4.0.0-rc.
|
|
9
|
+
"version": "4.0.0-rc.36",
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
11
12
|
"zod": "^3.25.0 || ^4.0.0"
|
|
12
13
|
},
|
|
13
14
|
"bin": {
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
18
|
"@eslint/js": "^9.19.0",
|
|
18
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
19
19
|
"@stricli/core": "^1.1.1",
|
|
20
20
|
"@types/express": "^4.17.21",
|
|
21
21
|
"bun": "1.2.17",
|
|
@@ -25,14 +25,6 @@
|
|
|
25
25
|
"globals": "^15.14.0",
|
|
26
26
|
"typescript": "~5.8.3",
|
|
27
27
|
"typescript-eslint": "^8.26.0"
|
|
28
|
-
},
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
|
|
31
|
-
},
|
|
32
|
-
"peerDependenciesMeta": {
|
|
33
|
-
"@modelcontextprotocol/sdk": {
|
|
34
|
-
"optional": true
|
|
35
|
-
}
|
|
36
28
|
}
|
|
37
29
|
},
|
|
38
30
|
"node_modules/@eslint-community/eslint-utils": {
|
|
@@ -281,7 +273,6 @@
|
|
|
281
273
|
"version": "1.5.0",
|
|
282
274
|
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.5.0.tgz",
|
|
283
275
|
"integrity": "sha512-IJ+5iVVs8FCumIHxWqpwgkwOzyhtHVKy45s6Ug7Dv0MfRpaYisH8QQ87rIWeWdOzlk8sfhitZ7HCyQZk7d6b8w==",
|
|
284
|
-
"dev": true,
|
|
285
276
|
"license": "MIT",
|
|
286
277
|
"dependencies": {
|
|
287
278
|
"content-type": "^1.0.5",
|
|
@@ -1081,7 +1072,6 @@
|
|
|
1081
1072
|
"version": "3.1.2",
|
|
1082
1073
|
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
|
1083
1074
|
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
|
1084
|
-
"dev": true,
|
|
1085
1075
|
"license": "MIT",
|
|
1086
1076
|
"engines": {
|
|
1087
1077
|
"node": ">= 0.8"
|
|
@@ -1189,7 +1179,6 @@
|
|
|
1189
1179
|
"version": "1.0.5",
|
|
1190
1180
|
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
|
1191
1181
|
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
|
1192
|
-
"dev": true,
|
|
1193
1182
|
"license": "MIT",
|
|
1194
1183
|
"engines": {
|
|
1195
1184
|
"node": ">= 0.6"
|
|
@@ -1256,7 +1245,6 @@
|
|
|
1256
1245
|
"version": "2.0.0",
|
|
1257
1246
|
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
|
1258
1247
|
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
|
1259
|
-
"dev": true,
|
|
1260
1248
|
"license": "MIT",
|
|
1261
1249
|
"engines": {
|
|
1262
1250
|
"node": ">= 0.8"
|
|
@@ -1576,7 +1564,6 @@
|
|
|
1576
1564
|
"version": "3.0.5",
|
|
1577
1565
|
"resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz",
|
|
1578
1566
|
"integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==",
|
|
1579
|
-
"dev": true,
|
|
1580
1567
|
"license": "MIT",
|
|
1581
1568
|
"dependencies": {
|
|
1582
1569
|
"eventsource-parser": "^3.0.0"
|
|
@@ -1589,7 +1576,6 @@
|
|
|
1589
1576
|
"version": "3.0.0",
|
|
1590
1577
|
"resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz",
|
|
1591
1578
|
"integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==",
|
|
1592
|
-
"dev": true,
|
|
1593
1579
|
"license": "MIT",
|
|
1594
1580
|
"engines": {
|
|
1595
1581
|
"node": ">=18.0.0"
|
|
@@ -1975,7 +1961,6 @@
|
|
|
1975
1961
|
"version": "2.0.0",
|
|
1976
1962
|
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
|
1977
1963
|
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
|
1978
|
-
"dev": true,
|
|
1979
1964
|
"license": "MIT",
|
|
1980
1965
|
"dependencies": {
|
|
1981
1966
|
"depd": "2.0.0",
|
|
@@ -2042,7 +2027,6 @@
|
|
|
2042
2027
|
"version": "2.0.4",
|
|
2043
2028
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
|
2044
2029
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
|
2045
|
-
"dev": true,
|
|
2046
2030
|
"license": "ISC"
|
|
2047
2031
|
},
|
|
2048
2032
|
"node_modules/ipaddr.js": {
|
|
@@ -2540,7 +2524,6 @@
|
|
|
2540
2524
|
"version": "3.0.0",
|
|
2541
2525
|
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz",
|
|
2542
2526
|
"integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==",
|
|
2543
|
-
"dev": true,
|
|
2544
2527
|
"license": "MIT",
|
|
2545
2528
|
"dependencies": {
|
|
2546
2529
|
"bytes": "3.1.2",
|
|
@@ -2556,7 +2539,6 @@
|
|
|
2556
2539
|
"version": "0.6.3",
|
|
2557
2540
|
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
|
2558
2541
|
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
|
2559
|
-
"dev": true,
|
|
2560
2542
|
"license": "MIT",
|
|
2561
2543
|
"dependencies": {
|
|
2562
2544
|
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
|
@@ -2635,7 +2617,6 @@
|
|
|
2635
2617
|
"version": "2.1.2",
|
|
2636
2618
|
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
|
2637
2619
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
|
2638
|
-
"dev": true,
|
|
2639
2620
|
"license": "MIT"
|
|
2640
2621
|
},
|
|
2641
2622
|
"node_modules/semver": {
|
|
@@ -2723,7 +2704,6 @@
|
|
|
2723
2704
|
"version": "1.2.0",
|
|
2724
2705
|
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
|
2725
2706
|
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
|
2726
|
-
"dev": true,
|
|
2727
2707
|
"license": "ISC"
|
|
2728
2708
|
},
|
|
2729
2709
|
"node_modules/shebang-command": {
|
|
@@ -2829,7 +2809,6 @@
|
|
|
2829
2809
|
"version": "2.0.1",
|
|
2830
2810
|
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
|
2831
2811
|
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
|
2832
|
-
"dev": true,
|
|
2833
2812
|
"license": "MIT",
|
|
2834
2813
|
"engines": {
|
|
2835
2814
|
"node": ">= 0.8"
|
|
@@ -2878,7 +2857,6 @@
|
|
|
2878
2857
|
"version": "1.0.1",
|
|
2879
2858
|
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
|
2880
2859
|
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
|
2881
|
-
"dev": true,
|
|
2882
2860
|
"license": "MIT",
|
|
2883
2861
|
"engines": {
|
|
2884
2862
|
"node": ">=0.6"
|
|
@@ -2973,7 +2951,6 @@
|
|
|
2973
2951
|
"version": "1.0.0",
|
|
2974
2952
|
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
|
2975
2953
|
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
|
2976
|
-
"dev": true,
|
|
2977
2954
|
"license": "MIT",
|
|
2978
2955
|
"engines": {
|
|
2979
2956
|
"node": ">= 0.8"
|
|
@@ -3061,7 +3038,6 @@
|
|
|
3061
3038
|
"version": "3.24.3",
|
|
3062
3039
|
"resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz",
|
|
3063
3040
|
"integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==",
|
|
3064
|
-
"dev": true,
|
|
3065
3041
|
"license": "ISC",
|
|
3066
3042
|
"peerDependencies": {
|
|
3067
3043
|
"zod": "^3.24.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.36",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mcp": "bin/mcp-server.js"
|
|
@@ -19,14 +19,10 @@
|
|
|
19
19
|
"prepublishOnly": "npm run build"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
"peerDependenciesMeta": {
|
|
25
|
-
"@modelcontextprotocol/sdk": {"optional":true}
|
|
22
|
+
|
|
26
23
|
},
|
|
27
24
|
"devDependencies": {
|
|
28
25
|
"@eslint/js": "^9.19.0",
|
|
29
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
30
26
|
"@stricli/core": "^1.1.1",
|
|
31
27
|
"@types/express": "^4.17.21",
|
|
32
28
|
"bun": "1.2.17",
|
|
@@ -38,6 +34,7 @@
|
|
|
38
34
|
"typescript-eslint": "^8.26.0"
|
|
39
35
|
},
|
|
40
36
|
"dependencies": {
|
|
37
|
+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
41
38
|
"zod": "^3.25.0 || ^4.0.0"
|
|
42
39
|
}
|
|
43
40
|
}
|
|
@@ -33,7 +33,7 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
*/
|
|
34
34
|
export function deploymentsInvoke(
|
|
35
35
|
client: OrqCore,
|
|
36
|
-
request: components.
|
|
36
|
+
request: components.InvokeDeploymentRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -57,7 +57,7 @@ export function deploymentsInvoke(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: OrqCore,
|
|
60
|
-
request: components.
|
|
60
|
+
request: components.InvokeDeploymentRequest,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
@@ -77,7 +77,7 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) => components.
|
|
80
|
+
(value) => components.InvokeDeploymentRequest$outboundSchema.parse(value),
|
|
81
81
|
"Input validation failed",
|
|
82
82
|
);
|
|
83
83
|
if (!parsed.ok) {
|
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.0.0-rc.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
71
|
+
sdkVersion: "4.0.0-rc.36",
|
|
72
|
+
genVersion: "2.755.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.36 2.755.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -126,7 +126,7 @@ export function createMCPServer(deps: {
|
|
|
126
126
|
}) {
|
|
127
127
|
const server = new McpServer({
|
|
128
128
|
name: "Orq",
|
|
129
|
-
version: "4.0.0-rc.
|
|
129
|
+
version: "4.0.0-rc.36",
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
const client = new OrqCore({
|
|
@@ -168,9 +168,9 @@ export function createMCPServer(deps: {
|
|
|
168
168
|
tool(tool$evalsCreate);
|
|
169
169
|
tool(tool$evalsUpdate);
|
|
170
170
|
tool(tool$evalsDelete);
|
|
171
|
+
tool(tool$deploymentsInvoke);
|
|
171
172
|
tool(tool$deploymentsList);
|
|
172
173
|
tool(tool$deploymentsGetConfig);
|
|
173
|
-
tool(tool$deploymentsInvoke);
|
|
174
174
|
tool(tool$deploymentsStream);
|
|
175
175
|
tool(tool$agentsRetrieveTask);
|
|
176
176
|
tool(tool$agentsCreate);
|
|
@@ -7,7 +7,7 @@ import * as components from "../../models/components/index.js";
|
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request: components.
|
|
10
|
+
request: components.InvokeDeploymentRequest$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$deploymentsInvoke: ToolDefinition<typeof args> = {
|