@toloka-platform/sdk 0.1.0-preview.3 → 0.1.0-preview.4
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 +1 -1
- package/bin/toloka.js +7 -0
- package/dist/cli/toloka.js +74 -74
- package/dist/cli/toloka.js.jsc +0 -0
- package/dist/cli/toloka.js.jsc.sha256 +1 -1
- package/dist/cli/toloka.js.sha256 +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/limitations.md +1 -1
- package/package.json +3 -2
- package/src/authoring/index.ts +216 -171
- package/src/cli/auth.ts +5 -5
- package/src/cli/credentials.ts +8 -2
- package/src/cli/init.ts +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ curl -fsSL https://platform.toloka.ai/cli/install.sh | sh
|
|
|
58
58
|
bun add @toloka-platform/sdk@preview
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
The installer
|
|
61
|
+
The installer requires Bun 1.4.0, installs `@toloka-platform/sdk` globally, and exposes `toloka` through Bun's global binary directory. The published CLI includes matching precompiled bytecode. The project install makes SDK imports resolvable.
|
|
62
62
|
|
|
63
63
|
## Documentation
|
|
64
64
|
|
package/bin/toloka.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
|
|
4
|
+
const compiledEntry = new URL("../dist/cli/toloka.js", import.meta.url);
|
|
5
|
+
const sourceEntry = new URL("../src/cli/bin.ts", import.meta.url);
|
|
6
|
+
|
|
7
|
+
await import(existsSync(compiledEntry) ? compiledEntry.href : sourceEntry.href);
|