@mondaydotcomorg/atp-client 0.19.18 → 0.19.19
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/dist/client.d.ts +4 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/core/api-operations.d.ts +4 -2
- package/dist/core/api-operations.d.ts.map +1 -1
- package/dist/core/api-operations.js +3 -3
- package/dist/core/api-operations.js.map +1 -1
- package/dist/core/in-process-session.d.ts +1 -1
- package/dist/core/in-process-session.d.ts.map +1 -1
- package/dist/core/in-process-session.js +2 -2
- package/dist/core/in-process-session.js.map +1 -1
- package/dist/core/index.cjs +7 -5
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +7 -5
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +3 -2
- package/src/core/api-operations.ts +4 -4
- package/src/core/in-process-session.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -272,13 +272,14 @@ var InProcessSession = class {
|
|
|
272
272
|
});
|
|
273
273
|
return await this.server.handleSearch(ctx);
|
|
274
274
|
}
|
|
275
|
-
async explore(path) {
|
|
275
|
+
async explore(path, options) {
|
|
276
276
|
await this.ensureInitialized();
|
|
277
277
|
const ctx = this.createContext({
|
|
278
278
|
method: "POST",
|
|
279
279
|
path: "/api/explore",
|
|
280
280
|
body: {
|
|
281
|
-
path
|
|
281
|
+
path,
|
|
282
|
+
...options
|
|
282
283
|
}
|
|
283
284
|
});
|
|
284
285
|
return await this.server.handleExplore(ctx);
|
|
@@ -439,14 +440,15 @@ var APIOperations = class {
|
|
|
439
440
|
/**
|
|
440
441
|
* Explores the API filesystem at the given path.
|
|
441
442
|
*/
|
|
442
|
-
async exploreAPI(path) {
|
|
443
|
+
async exploreAPI(path, options) {
|
|
443
444
|
await this.session.ensureInitialized();
|
|
444
445
|
if (this.inProcessSession) {
|
|
445
|
-
return await this.inProcessSession.explore(path);
|
|
446
|
+
return await this.inProcessSession.explore(path, options);
|
|
446
447
|
}
|
|
447
448
|
const url = `${this.session.getBaseUrl()}/api/explore`;
|
|
448
449
|
const body = JSON.stringify({
|
|
449
|
-
path
|
|
450
|
+
path,
|
|
451
|
+
...options
|
|
450
452
|
});
|
|
451
453
|
const headers = await this.session.prepareHeaders("POST", url, body);
|
|
452
454
|
const response = await fetch(url, {
|
|
@@ -1507,8 +1509,8 @@ var AgentToolProtocolClient = class {
|
|
|
1507
1509
|
/**
|
|
1508
1510
|
* Explores the API filesystem at the given path.
|
|
1509
1511
|
*/
|
|
1510
|
-
async exploreAPI(path) {
|
|
1511
|
-
return await this.apiOps.exploreAPI(path);
|
|
1512
|
+
async exploreAPI(path, options) {
|
|
1513
|
+
return await this.apiOps.exploreAPI(path, options);
|
|
1512
1514
|
}
|
|
1513
1515
|
/**
|
|
1514
1516
|
* Executes code on the server with real-time streaming events via SSE.
|