@ornncompute/cli 1.0.167 → 1.0.169
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 +2 -7
- package/package.json +1 -1
- package/vendor/api-client/commerce.js +4 -0
- package/vendor/api-client/gateway.js +9 -80
package/README.md
CHANGED
|
@@ -470,13 +470,8 @@ request conflicts, and an expired incomplete request requires a new key.
|
|
|
470
470
|
The upload replay contract requires the matching gateway/orchestrator release;
|
|
471
471
|
see [the service contract](../../services/orchestrator/README.md#file-upload-replay-and-usage).
|
|
472
472
|
|
|
473
|
-
|
|
474
|
-
the
|
|
475
|
-
local key, obtains a 15-minute certificate through the gateway and launches
|
|
476
|
-
OpenSSH with normal host-key verification. Nodes configured for the staff SSH
|
|
477
|
-
relay connect through Orchestrator automatically. For a supplier jump host,
|
|
478
|
-
OpenSSH uses your existing gateway credentials for the first hop and the
|
|
479
|
-
certificate for the node hop. Temporary files are removed when the command exits.
|
|
473
|
+
For `ornn admin ssh <node-id>`, including private nodes and CA trust setup, see
|
|
474
|
+
the [staff SSH procedure](../../docs/cli.md#staff-ssh).
|
|
480
475
|
|
|
481
476
|
Gateway-bound connections resolve their gateway before producing SSH commands.
|
|
482
477
|
Forwarded endpoints remain a single SSH destination. Supplier-provided jump hosts
|
package/package.json
CHANGED
|
@@ -232,6 +232,9 @@ function getReservationUsage(request, input, signal) {
|
|
|
232
232
|
...signal ? { signal } : {}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
+
function createReservation(request, input) {
|
|
236
|
+
return request(BASE2, { method: "POST", body: input });
|
|
237
|
+
}
|
|
235
238
|
|
|
236
239
|
// ../../packages/api-client/dist/commerce/query.js
|
|
237
240
|
function queryString(input) {
|
|
@@ -1061,6 +1064,7 @@ export {
|
|
|
1061
1064
|
createGTMDealComment,
|
|
1062
1065
|
createGTMTask,
|
|
1063
1066
|
createGTMTaskComment,
|
|
1067
|
+
createReservation,
|
|
1064
1068
|
createSupplierAccountSession,
|
|
1065
1069
|
createSupplierIntakeLink,
|
|
1066
1070
|
createSupplierPaymentAccount,
|
|
@@ -46,67 +46,6 @@ function createPylonIssue(request, body) {
|
|
|
46
46
|
return request("/v1/staff/support/issues", { method: "POST", body });
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
// ../../packages/api-client/dist/gateway/github.js
|
|
50
|
-
var base = "/v1/staff/github";
|
|
51
|
-
function query(input) {
|
|
52
|
-
const pairs = Object.entries(input).filter(([, value]) => value !== void 0);
|
|
53
|
-
return pairs.length ? `?${pairs.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join("&")}` : "";
|
|
54
|
-
}
|
|
55
|
-
function listGithubWorkflows(request, input, signal) {
|
|
56
|
-
return request(`${base}/actions/workflows${query(input)}`, {
|
|
57
|
-
method: "GET",
|
|
58
|
-
...signal ? { signal } : {}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function listGithubEnvironments(request, input, signal) {
|
|
62
|
-
return request(`${base}/environments${query(input)}`, {
|
|
63
|
-
method: "GET",
|
|
64
|
-
...signal ? { signal } : {}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function listGithubWorkflowRuns(request, workflowFile, input, signal) {
|
|
68
|
-
return request(`${base}/actions/workflows/${encodeURIComponent(workflowFile)}/runs${query(input)}`, { method: "GET", ...signal ? { signal } : {} });
|
|
69
|
-
}
|
|
70
|
-
function listGithubPendingDeployments(request, runId, signal) {
|
|
71
|
-
return request(`${base}/actions/runs/${encodeURIComponent(runId)}/pending_deployments`, {
|
|
72
|
-
method: "GET",
|
|
73
|
-
...signal ? { signal } : {}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function listGithubRunJobs(request, runId, attempt, input, signal) {
|
|
77
|
-
return request(`${base}/actions/runs/${encodeURIComponent(runId)}/attempts/${attempt}/jobs${query(input)}`, { method: "GET", ...signal ? { signal } : {} });
|
|
78
|
-
}
|
|
79
|
-
function listGithubCommits(request, input, signal) {
|
|
80
|
-
return request(`${base}/commits${query(input)}`, {
|
|
81
|
-
method: "GET",
|
|
82
|
-
...signal ? { signal } : {}
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function getGithubCommit(request, sha, signal) {
|
|
86
|
-
return request(`${base}/commits/${encodeURIComponent(sha)}`, {
|
|
87
|
-
method: "GET",
|
|
88
|
-
...signal ? { signal } : {}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function listGithubCommitPulls(request, sha, input, signal) {
|
|
92
|
-
return request(`${base}/commits/${encodeURIComponent(sha)}/pulls${query(input)}`, {
|
|
93
|
-
method: "GET",
|
|
94
|
-
...signal ? { signal } : {}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function getGithubPull(request, number, signal) {
|
|
98
|
-
return request(`${base}/pulls/${encodeURIComponent(number)}`, {
|
|
99
|
-
method: "GET",
|
|
100
|
-
...signal ? { signal } : {}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function getGithubJobLog(fetcher, jobId, signal) {
|
|
104
|
-
return fetcher(`${base}/actions/jobs/${jobId}/logs`, {
|
|
105
|
-
method: "GET",
|
|
106
|
-
...signal ? { signal } : {}
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
49
|
// ../../packages/api-client/dist/gateway/supplier-intake.js
|
|
111
50
|
function exchangeSupplierIntakeAccess(fetcher, init = {}) {
|
|
112
51
|
return fetcher("/v1/supplier-intake/access", { ...init, method: "POST" });
|
|
@@ -135,7 +74,7 @@ function submitSupplierIntake(fetcher, init = {}) {
|
|
|
135
74
|
|
|
136
75
|
// ../../packages/api-client/dist/gateway/compute.js
|
|
137
76
|
var compute = "/v1/workflows/compute";
|
|
138
|
-
function
|
|
77
|
+
function query(input) {
|
|
139
78
|
const params = new URLSearchParams();
|
|
140
79
|
for (const [key, value] of Object.entries(input))
|
|
141
80
|
if (value !== void 0 && value !== null)
|
|
@@ -164,25 +103,25 @@ function getReservationClusterCredentials(request, kind, id, signal) {
|
|
|
164
103
|
});
|
|
165
104
|
}
|
|
166
105
|
function getReservationClusterEligibility(request, id, input) {
|
|
167
|
-
return request(`${compute}/tenants/me/reservations/${encodeURIComponent(id)}/cluster-eligible-machines${
|
|
106
|
+
return request(`${compute}/tenants/me/reservations/${encodeURIComponent(id)}/cluster-eligible-machines${query(input)}`, { method: "GET" });
|
|
168
107
|
}
|
|
169
108
|
function teardownReservationCluster(request, kind, id, options) {
|
|
170
109
|
return request(clusterPath(kind, id, "cluster/teardown"), { ...options, method: "POST" });
|
|
171
110
|
}
|
|
172
111
|
function getReservationLiveMetrics(request, id, input, signal) {
|
|
173
|
-
return request(`${reservationPath(id, "live-metrics")}${
|
|
112
|
+
return request(`${reservationPath(id, "live-metrics")}${query(input)}`, {
|
|
174
113
|
method: "GET",
|
|
175
114
|
...signal ? { signal } : {}
|
|
176
115
|
});
|
|
177
116
|
}
|
|
178
117
|
function getReservationTelemetryHistory(request, id, input, signal) {
|
|
179
|
-
return request(`${reservationPath(id, "telemetry-history")}${
|
|
118
|
+
return request(`${reservationPath(id, "telemetry-history")}${query(input)}`, {
|
|
180
119
|
method: "GET",
|
|
181
120
|
...signal ? { signal } : {}
|
|
182
121
|
});
|
|
183
122
|
}
|
|
184
123
|
function getReservationLogs(request, id, input, signal) {
|
|
185
|
-
return request(`${reservationPath(id, "logs")}${
|
|
124
|
+
return request(`${reservationPath(id, "logs")}${query(input)}`, {
|
|
186
125
|
method: "GET",
|
|
187
126
|
...signal ? { signal } : {}
|
|
188
127
|
});
|
|
@@ -197,13 +136,13 @@ function getReservationStorageAttachment(request, id, signal) {
|
|
|
197
136
|
});
|
|
198
137
|
}
|
|
199
138
|
function detachReservationStorage(request, id, input = {}, options) {
|
|
200
|
-
return request(`${reservationPath(id, "storage-attachment")}${
|
|
139
|
+
return request(`${reservationPath(id, "storage-attachment")}${query(input)}`, {
|
|
201
140
|
...options,
|
|
202
141
|
method: "DELETE"
|
|
203
142
|
});
|
|
204
143
|
}
|
|
205
144
|
function listAccountSshKeys(request, input) {
|
|
206
|
-
return request(`${compute}/nodes/organizations/me/ssh-keys${
|
|
145
|
+
return request(`${compute}/nodes/organizations/me/ssh-keys${query(input)}`, { method: "GET" });
|
|
207
146
|
}
|
|
208
147
|
function createAccountSshKey(request, body, options) {
|
|
209
148
|
return request(`${compute}/nodes/organizations/me/ssh-keys`, {
|
|
@@ -245,8 +184,8 @@ function pushStaffNodeKeys(request, id, body) {
|
|
|
245
184
|
});
|
|
246
185
|
}
|
|
247
186
|
function getStaffNodeReservationAccess(request, id, input = {}, signal) {
|
|
248
|
-
const
|
|
249
|
-
return request(`/v1/staff/internal/nodes/${encodeURIComponent(id)}/reservation-access${
|
|
187
|
+
const query2 = input.reservation_id === void 0 ? "" : `?reservation_id=${encodeURIComponent(input.reservation_id)}`;
|
|
188
|
+
return request(`/v1/staff/internal/nodes/${encodeURIComponent(id)}/reservation-access${query2}`, {
|
|
250
189
|
method: "GET",
|
|
251
190
|
...signal ? { signal } : {}
|
|
252
191
|
});
|
|
@@ -291,9 +230,6 @@ export {
|
|
|
291
230
|
detachReservationStorage,
|
|
292
231
|
exchangeSupplierIntakeAccess,
|
|
293
232
|
getCliStatus,
|
|
294
|
-
getGithubCommit,
|
|
295
|
-
getGithubJobLog,
|
|
296
|
-
getGithubPull,
|
|
297
233
|
getPylonAccount,
|
|
298
234
|
getReservationCluster,
|
|
299
235
|
getReservationClusterCredentials,
|
|
@@ -309,13 +245,6 @@ export {
|
|
|
309
245
|
linkPylonIssue,
|
|
310
246
|
listAccountSshKeys,
|
|
311
247
|
listClusters,
|
|
312
|
-
listGithubCommitPulls,
|
|
313
|
-
listGithubCommits,
|
|
314
|
-
listGithubEnvironments,
|
|
315
|
-
listGithubPendingDeployments,
|
|
316
|
-
listGithubRunJobs,
|
|
317
|
-
listGithubWorkflowRuns,
|
|
318
|
-
listGithubWorkflows,
|
|
319
248
|
listSupportThreads,
|
|
320
249
|
pushStaffNodeKeys,
|
|
321
250
|
releaseSupplierIntakeEditor,
|