@ardrive/turbo-sdk 1.44.0-alpha.3 → 1.44.0-alpha.5
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/lib/cjs/cli/cli.js +2 -3
- package/lib/cjs/cli/entrypoint.js +36 -0
- package/lib/cjs/common/chunked.js +3 -0
- package/lib/cjs/common/upload.js +8 -1
- package/lib/esm/cli/cli.js +2 -3
- package/lib/esm/cli/entrypoint.js +33 -0
- package/lib/esm/common/chunked.js +3 -0
- package/lib/esm/common/upload.js +8 -1
- package/lib/types/cli/entrypoint.d.ts +26 -0
- package/lib/types/cli/entrypoint.d.ts.map +1 -0
- package/lib/types/common/chunked.d.ts.map +1 -1
- package/lib/types/common/upload.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/cjs/cli/cli.js
CHANGED
|
@@ -30,6 +30,7 @@ const revokeCredits_js_1 = require("./commands/revokeCredits.js");
|
|
|
30
30
|
const shareCredits_js_1 = require("./commands/shareCredits.js");
|
|
31
31
|
const tokenPrice_js_1 = require("./commands/tokenPrice.js");
|
|
32
32
|
const x402UploadUnsignedData_js_1 = require("./commands/x402UploadUnsignedData.js");
|
|
33
|
+
const entrypoint_js_1 = require("./entrypoint.js");
|
|
33
34
|
const options_js_1 = require("./options.js");
|
|
34
35
|
const utils_js_1 = require("./utils.js");
|
|
35
36
|
(0, utils_js_1.applyOptions)(commander_1.program
|
|
@@ -225,8 +226,6 @@ const utils_js_1 = require("./utils.js");
|
|
|
225
226
|
}, null, 2));
|
|
226
227
|
});
|
|
227
228
|
});
|
|
228
|
-
if (process.argv[1]
|
|
229
|
-
process.argv[1].includes('cli/cli') // Running from source
|
|
230
|
-
) {
|
|
229
|
+
if ((0, entrypoint_js_1.isCliEntrypoint)(process.argv[1])) {
|
|
231
230
|
commander_1.program.parse(process.argv);
|
|
232
231
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.isCliEntrypoint = isCliEntrypoint;
|
|
19
|
+
/**
|
|
20
|
+
* Whether `scriptPath` (pass `process.argv[1]`) is the Turbo CLI, so the CLI
|
|
21
|
+
* parses arguments only when it is the script Node was asked to run.
|
|
22
|
+
*
|
|
23
|
+
* Node reports `process.argv[1]` with the platform separator. On Windows,
|
|
24
|
+
* npm's `turbo.cmd`, `turbo.ps1` and Git Bash shims all run
|
|
25
|
+
* `node ...\node_modules\@ardrive\turbo-sdk\lib\esm\cli\cli.js`, so the path
|
|
26
|
+
* holds backslashes and is normalized before matching.
|
|
27
|
+
*/
|
|
28
|
+
function isCliEntrypoint(scriptPath) {
|
|
29
|
+
if (scriptPath === undefined) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
const normalizedPath = scriptPath.replace(/\\/g, '/');
|
|
33
|
+
return (normalizedPath.includes('bin/turbo') || // npm symlink in a bin or .bin directory
|
|
34
|
+
normalizedPath.includes('cli/cli') // cli/cli.js or cli/cli.ts, run directly or through a Windows shim
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -300,6 +300,9 @@ class ChunkedUploader {
|
|
|
300
300
|
...chunkingHeader,
|
|
301
301
|
},
|
|
302
302
|
signal,
|
|
303
|
+
// The service answers 201 when the item is already stored and it could
|
|
304
|
+
// not sign a fresh receipt. The status poll that follows reports it.
|
|
305
|
+
allowedStatuses: [200, 201, 202],
|
|
303
306
|
});
|
|
304
307
|
this.logger.debug(`Confirming upload to Turbo with uploadId ${uploadId} for up to ${maxWaitTimeMs / 1000 / 60} minutes.`);
|
|
305
308
|
const startTime = Date.now();
|
package/lib/cjs/common/upload.js
CHANGED
|
@@ -186,7 +186,7 @@ class TurboUnauthenticatedUploadService {
|
|
|
186
186
|
maxMUSDCAmount,
|
|
187
187
|
unsignedData: true,
|
|
188
188
|
};
|
|
189
|
-
|
|
189
|
+
const response = await this.httpService.post({
|
|
190
190
|
data: dataBuffer,
|
|
191
191
|
// Only reached when no signer was supplied; the x402 path recomputes this
|
|
192
192
|
// from `unsignedData`. Both must name the same route.
|
|
@@ -195,8 +195,15 @@ class TurboUnauthenticatedUploadService {
|
|
|
195
195
|
headers: tags !== undefined
|
|
196
196
|
? { 'x-data-item-tags': JSON.stringify(tags) }
|
|
197
197
|
: undefined,
|
|
198
|
+
// The service answers a stored, paid-for upload with 201. Refusing it
|
|
199
|
+
// reported a settled payment as a failure, and a retry paid again.
|
|
200
|
+
allowedStatuses: [200, 201, 202],
|
|
198
201
|
x402Options,
|
|
199
202
|
});
|
|
203
|
+
// The service nests the signed receipt (winc, timestamp, signature and the
|
|
204
|
+
// rest) under `receipt`. Lift those fields to the top level, where every
|
|
205
|
+
// other upload method returns them.
|
|
206
|
+
return { ...response.receipt, ...response };
|
|
200
207
|
}
|
|
201
208
|
}
|
|
202
209
|
exports.TurboUnauthenticatedUploadService = TurboUnauthenticatedUploadService;
|
package/lib/esm/cli/cli.js
CHANGED
|
@@ -28,6 +28,7 @@ import { revokeCredits } from './commands/revokeCredits.js';
|
|
|
28
28
|
import { shareCredits } from './commands/shareCredits.js';
|
|
29
29
|
import { tokenPrice } from './commands/tokenPrice.js';
|
|
30
30
|
import { x402UploadUnsignedFile } from './commands/x402UploadUnsignedData.js';
|
|
31
|
+
import { isCliEntrypoint } from './entrypoint.js';
|
|
31
32
|
import { addArNSControllerOptions, arnsActionPriceOptions, arnsActionStatusOptions, arnsFiatQuoteOptions, arnsPriceOptions, arnsPurchaseStatusOptions, buyArNSNameOptions, extendArNSLeaseOptions, globalOptions, increaseArNSUndernamesOptions, listSharesOptions, optionMap, removeArNSControllerOptions, removeArNSRecordMetadataOptions, removeArNSRecordOptions, revokeCreditsOptions, setArNSRecordMetadataOptions, setArNSRecordOptions, shareCreditsOptions, transferArNSAntOptions, transferArNSRecordOptions, upgradeArNSNameOptions, uploadFileOptions, uploadFolderOptions, walletOptions, } from './options.js';
|
|
32
33
|
import { applyOptions, runCommand } from './utils.js';
|
|
33
34
|
applyOptions(program
|
|
@@ -223,8 +224,6 @@ applyOptions(program
|
|
|
223
224
|
}, null, 2));
|
|
224
225
|
});
|
|
225
226
|
});
|
|
226
|
-
if (process.argv[1]
|
|
227
|
-
process.argv[1].includes('cli/cli') // Running from source
|
|
228
|
-
) {
|
|
227
|
+
if (isCliEntrypoint(process.argv[1])) {
|
|
229
228
|
program.parse(process.argv);
|
|
230
229
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Whether `scriptPath` (pass `process.argv[1]`) is the Turbo CLI, so the CLI
|
|
18
|
+
* parses arguments only when it is the script Node was asked to run.
|
|
19
|
+
*
|
|
20
|
+
* Node reports `process.argv[1]` with the platform separator. On Windows,
|
|
21
|
+
* npm's `turbo.cmd`, `turbo.ps1` and Git Bash shims all run
|
|
22
|
+
* `node ...\node_modules\@ardrive\turbo-sdk\lib\esm\cli\cli.js`, so the path
|
|
23
|
+
* holds backslashes and is normalized before matching.
|
|
24
|
+
*/
|
|
25
|
+
export function isCliEntrypoint(scriptPath) {
|
|
26
|
+
if (scriptPath === undefined) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
const normalizedPath = scriptPath.replace(/\\/g, '/');
|
|
30
|
+
return (normalizedPath.includes('bin/turbo') || // npm symlink in a bin or .bin directory
|
|
31
|
+
normalizedPath.includes('cli/cli') // cli/cli.js or cli/cli.ts, run directly or through a Windows shim
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -294,6 +294,9 @@ export class ChunkedUploader {
|
|
|
294
294
|
...chunkingHeader,
|
|
295
295
|
},
|
|
296
296
|
signal,
|
|
297
|
+
// The service answers 201 when the item is already stored and it could
|
|
298
|
+
// not sign a fresh receipt. The status poll that follows reports it.
|
|
299
|
+
allowedStatuses: [200, 201, 202],
|
|
297
300
|
});
|
|
298
301
|
this.logger.debug(`Confirming upload to Turbo with uploadId ${uploadId} for up to ${maxWaitTimeMs / 1000 / 60} minutes.`);
|
|
299
302
|
const startTime = Date.now();
|
package/lib/esm/common/upload.js
CHANGED
|
@@ -183,7 +183,7 @@ export class TurboUnauthenticatedUploadService {
|
|
|
183
183
|
maxMUSDCAmount,
|
|
184
184
|
unsignedData: true,
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
const response = await this.httpService.post({
|
|
187
187
|
data: dataBuffer,
|
|
188
188
|
// Only reached when no signer was supplied; the x402 path recomputes this
|
|
189
189
|
// from `unsignedData`. Both must name the same route.
|
|
@@ -192,8 +192,15 @@ export class TurboUnauthenticatedUploadService {
|
|
|
192
192
|
headers: tags !== undefined
|
|
193
193
|
? { 'x-data-item-tags': JSON.stringify(tags) }
|
|
194
194
|
: undefined,
|
|
195
|
+
// The service answers a stored, paid-for upload with 201. Refusing it
|
|
196
|
+
// reported a settled payment as a failure, and a retry paid again.
|
|
197
|
+
allowedStatuses: [200, 201, 202],
|
|
195
198
|
x402Options,
|
|
196
199
|
});
|
|
200
|
+
// The service nests the signed receipt (winc, timestamp, signature and the
|
|
201
|
+
// rest) under `receipt`. Lift those fields to the top level, where every
|
|
202
|
+
// other upload method returns them.
|
|
203
|
+
return { ...response.receipt, ...response };
|
|
197
204
|
}
|
|
198
205
|
}
|
|
199
206
|
// NOTE: to avoid redundancy, we use inheritance here - but generally prefer composition over inheritance
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Whether `scriptPath` (pass `process.argv[1]`) is the Turbo CLI, so the CLI
|
|
18
|
+
* parses arguments only when it is the script Node was asked to run.
|
|
19
|
+
*
|
|
20
|
+
* Node reports `process.argv[1]` with the platform separator. On Windows,
|
|
21
|
+
* npm's `turbo.cmd`, `turbo.ps1` and Git Bash shims all run
|
|
22
|
+
* `node ...\node_modules\@ardrive\turbo-sdk\lib\esm\cli\cli.js`, so the path
|
|
23
|
+
* holds backslashes and is normalized before matching.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isCliEntrypoint(scriptPath: string | undefined): boolean;
|
|
26
|
+
//# sourceMappingURL=entrypoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../../src/cli/entrypoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CASvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunked.d.ts","sourceRoot":"","sources":["../../../src/common/chunked.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EACL,SAAS,EAET,iBAAiB,EACjB,WAAW,EAEX,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EAGvB,MAAM,aAAa,CAAC;AAKrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAK7C,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAK5C,eAAO,MAAM,iBAAiB,QAAiB,CAAC;AAChD,eAAO,MAAM,iBAAiB,QAAU,CAAC;AACzC,eAAO,MAAM,qBAAqB,QAAoB,CAAC;AAKvD;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqB;IAEnD;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAA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