@ornncompute/cli 1.0.119 → 1.0.120

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.119",
3
+ "version": "1.0.120",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,11 +28,30 @@ function geolocate(request, query, signal) {
28
28
  ...signal ? { signal } : {}
29
29
  });
30
30
  }
31
+
32
+ // ../../packages/api-client/dist/orchestrator/shell.js
33
+ var sessionsPath = "/v1/orchestrator/shell/sessions";
34
+ function createShellSession(fetcher) {
35
+ return fetcher(sessionsPath, { method: "POST" });
36
+ }
37
+ function getCurrentShellSession(fetcher) {
38
+ return fetcher(`${sessionsPath}/current`, { method: "GET" });
39
+ }
40
+ function closeShellSession(fetcher, id) {
41
+ return fetcher(`${sessionsPath}/${encodeURIComponent(id)}`, { method: "DELETE" });
42
+ }
43
+ function shellSessionAttachPath(id) {
44
+ return `${sessionsPath}/${encodeURIComponent(id)}/attach`;
45
+ }
31
46
  export {
47
+ closeShellSession,
48
+ createShellSession,
32
49
  geolocate,
50
+ getCurrentShellSession,
33
51
  getHardwareCatalog,
34
52
  getSoftwareCatalog,
35
53
  hardwareCatalogPath,
36
54
  listLocalityRegions,
37
- localityGeolocatePath
55
+ localityGeolocatePath,
56
+ shellSessionAttachPath
38
57
  };