@ornncompute/cli 0.2.23 → 0.2.24

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.
Files changed (3) hide show
  1. package/README.md +12 -0
  2. package/package.json +1 -1
  3. package/src/cli.mjs +3 -3
package/README.md CHANGED
@@ -9,6 +9,18 @@ metrics, and view billing readouts.
9
9
  For the end-user install, browser-login, command, and troubleshooting guide, see
10
10
  the [`docs/cli.md`](../../docs/cli.md) guide.
11
11
 
12
+ ## 0.2.24 storage compatibility update
13
+
14
+ Version 0.2.24 restores file uploads against the current Ornn API, including
15
+ completion and cancellation. Run `ornn update`, then use the existing command:
16
+
17
+ ```bash
18
+ ornn storage files upload <drive-id> ./data.json --destination datasets/data.json
19
+ ```
20
+
21
+ Uploads update the Ornn-managed volume. Connected external source buckets are
22
+ not modified.
23
+
12
24
  ## Install
13
25
 
14
26
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -4484,7 +4484,7 @@ async function putSignedStorageUpload({
4484
4484
  async function cancelStorageUploadSession({ driveId, env, fetchImpl, uploadId }) {
4485
4485
  try {
4486
4486
  await cliRequest({
4487
- endpoint: `/v1/orchestrator/drives/${encodeURIComponent(driveId)}/file-uploads/${encodeURIComponent(uploadId)}`,
4487
+ endpoint: `/v1/orchestrator/drives/${encodeURIComponent(driveId)}/uploads/${encodeURIComponent(uploadId)}`,
4488
4488
  env,
4489
4489
  fetchImpl,
4490
4490
  method: "DELETE",
@@ -4613,7 +4613,7 @@ async function storage(rawArgs, context) {
4613
4613
  try {
4614
4614
  session = await cliRequest({
4615
4615
  body: { path: destination, content_type: contentType, size_bytes: fileInfo.size },
4616
- endpoint: `/v1/orchestrator/drives/${encodeURIComponent(id)}/file-upload-url`,
4616
+ endpoint: `/v1/orchestrator/drives/${encodeURIComponent(id)}/uploads`,
4617
4617
  env: context.env,
4618
4618
  fetchImpl: context.fetchImpl,
4619
4619
  method: "POST",
@@ -4647,7 +4647,7 @@ async function storage(rawArgs, context) {
4647
4647
  } finally {
4648
4648
  progress?.finish();
4649
4649
  }
4650
- const completionEndpoint = `/v1/orchestrator/drives/${encodeURIComponent(id)}/file-uploads/${encodeURIComponent(session.upload_id)}/complete`;
4650
+ const completionEndpoint = `/v1/orchestrator/drives/${encodeURIComponent(id)}/uploads/${encodeURIComponent(session.upload_id)}`;
4651
4651
  try {
4652
4652
  result = await cliRequest({
4653
4653
  body: { uploaded_generation: uploadedGeneration },