@axiom-lattice/client-sdk 2.1.64 → 3.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/dist/abstract-client.d.ts +11 -1
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +28 -0
- package/dist/abstract-client.js.map +1 -1
- package/dist/index.d.ts +35 -2
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +10 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/workspace-client.d.ts +14 -0
- package/dist/workspace-client.d.ts.map +1 -1
- package/dist/workspace-client.js +13 -0
- package/dist/workspace-client.js.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2089,6 +2089,36 @@ var AbstractClient = class {
|
|
|
2089
2089
|
method: "DELETE"
|
|
2090
2090
|
}
|
|
2091
2091
|
);
|
|
2092
|
+
},
|
|
2093
|
+
localA2A: {
|
|
2094
|
+
list: async () => {
|
|
2095
|
+
const response = await this.makeRequest("/api/local-a2a");
|
|
2096
|
+
return response.data.records;
|
|
2097
|
+
},
|
|
2098
|
+
get: async (assistantId) => {
|
|
2099
|
+
const response = await this.makeRequest(`/api/local-a2a/${assistantId}`);
|
|
2100
|
+
return response.data;
|
|
2101
|
+
},
|
|
2102
|
+
start: async (assistantId) => {
|
|
2103
|
+
const response = await this.makeRequest(`/api/local-a2a/${assistantId}/start`, { method: "POST" });
|
|
2104
|
+
return response.data;
|
|
2105
|
+
},
|
|
2106
|
+
stop: async (assistantId) => {
|
|
2107
|
+
const response = await this.makeRequest(`/api/local-a2a/${assistantId}/stop`, { method: "POST" });
|
|
2108
|
+
return response.data;
|
|
2109
|
+
},
|
|
2110
|
+
restart: async (assistantId) => {
|
|
2111
|
+
const response = await this.makeRequest(`/api/local-a2a/${assistantId}/restart`, { method: "POST" });
|
|
2112
|
+
return response.data;
|
|
2113
|
+
},
|
|
2114
|
+
templates: {
|
|
2115
|
+
list: async () => {
|
|
2116
|
+
const response = await this.makeRequest(
|
|
2117
|
+
"/api/local-a2a/templates"
|
|
2118
|
+
);
|
|
2119
|
+
return response.data.records;
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2092
2122
|
}
|
|
2093
2123
|
};
|
|
2094
2124
|
/**
|
|
@@ -3853,6 +3883,19 @@ var WorkspaceClient = class {
|
|
|
3853
3883
|
}
|
|
3854
3884
|
return `${this.baseURL}/api/workspaces/${workspaceId}/projects/${projectId}/viewfile?${params}`;
|
|
3855
3885
|
}
|
|
3886
|
+
/**
|
|
3887
|
+
* Browse local filesystem directories for the folder picker.
|
|
3888
|
+
*
|
|
3889
|
+
* Restricted to the user's home directory for security.
|
|
3890
|
+
*/
|
|
3891
|
+
async browseFilesystem(fsPath) {
|
|
3892
|
+
const params = new URLSearchParams();
|
|
3893
|
+
if (fsPath) {
|
|
3894
|
+
params.set("path", fsPath);
|
|
3895
|
+
}
|
|
3896
|
+
const response = await this.request(`/api/filesystem/browse?${params}`);
|
|
3897
|
+
return response.data;
|
|
3898
|
+
}
|
|
3856
3899
|
};
|
|
3857
3900
|
|
|
3858
3901
|
// src/export-import.ts
|