@toloka-platform/sdk 0.19.0 → 0.19.1
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 +15 -13
- package/dist/cli/toloka.js +108 -106
- 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/package.json +8 -7
- package/skills/catalog.json +5 -5
- package/src/cli/commands/auth.ts +2 -2
- package/src/cli/commands/batch-inference.ts +5 -5
- package/src/cli/commands/config.ts +4 -3
- package/src/cli/commands/dataset.ts +2 -2
- package/src/cli/commands/models.ts +1 -1
- package/src/cli/commands/pipeline.ts +1 -1
- package/src/cli/commands/report.ts +1 -1
- package/src/cli/commands/training.ts +16 -16
- package/src/cli/commands/ui.ts +1 -1
- package/src/cli/program.ts +3 -3
- package/src/transport.ts +18 -0
- package/docs/authoring.md +0 -320
- package/docs/cli-v2.md +0 -224
- package/docs/cli.md +0 -561
- package/docs/datasets.md +0 -213
- package/docs/getting-started.md +0 -147
- package/docs/limitations.md +0 -58
- package/docs/nodes.md +0 -104
- package/docs/testing-examples.md +0 -248
- package/docs/testing.md +0 -125
- package/docs/troubleshooting.md +0 -115
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Build and operate Toloka pipeline projects as TypeScript source.
|
|
4
4
|
|
|
5
|
-
> **Use the latest release.** The current supported release is published on `latest`. Because the SDK is still `0.x`, the authoring API, CLI surface, and generated source layout can change between minor releases. Read [
|
|
5
|
+
> **Use the latest release.** The current supported release is published on `latest`. Because the SDK is still `0.x`, the authoring API, CLI surface, and generated source layout can change between minor releases. Read the [SDK compatibility notes](https://platform.toloka.ai/docs/sdk#install).
|
|
6
6
|
|
|
7
7
|
A pipeline project is a graph of nodes that moves items from a dataset through deterministic code and human work and back into the dataset. This package lets you write that project as TypeScript, keep it in version control, and reconcile it onto the platform with one command.
|
|
8
8
|
|
|
@@ -50,7 +50,7 @@ curl -fsSL https://platform.toloka.ai/cli/install.sh | sh
|
|
|
50
50
|
toloka --version
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
The installer uses compatible Bun when available, otherwise installs a standalone executable with its runtime included. See [CLI setup](
|
|
53
|
+
The installer uses compatible Bun when available, otherwise installs a standalone executable with its runtime included. See [CLI setup](https://platform.toloka.ai/docs/cli#install) for `--bun` / `--native`, supported platforms, PATH, and updates.
|
|
54
54
|
|
|
55
55
|
**Bun is the recommended runtime and package manager for SDK development.** Add the SDK when authoring pipelines:
|
|
56
56
|
|
|
@@ -58,22 +58,24 @@ The installer uses compatible Bun when available, otherwise installs a standalon
|
|
|
58
58
|
bun add @toloka-platform/sdk@latest
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
For an existing project, run `bun i` to install its dependencies. Training-only workflows need neither the SDK nor a separate runtime. See [
|
|
61
|
+
For an existing project, run `bun i` to install its dependencies. Training-only workflows need neither the SDK nor a separate runtime. See [Pipelines as code](https://platform.toloka.ai/docs/sdk/pipelines) for the full authoring workflow.
|
|
62
62
|
|
|
63
63
|
For a guided first run, start a fresh coding-agent session and ask it to follow the [Toloka agent bootstrap](https://platform.toloka.ai/agents/SKILL.md). It routes to the data-labeling, fine-tuning, or gisting runbook and the matching packaged skill.
|
|
64
64
|
|
|
65
65
|
## Documentation
|
|
66
66
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
| [
|
|
70
|
-
| [
|
|
71
|
-
| [
|
|
72
|
-
| [
|
|
73
|
-
| [
|
|
74
|
-
| [
|
|
75
|
-
| [
|
|
76
|
-
| [
|
|
67
|
+
| Page | What it covers |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| [SDK overview](https://platform.toloka.ai/docs/sdk) | installation, entry points, and `0.x` compatibility |
|
|
70
|
+
| [Quickstart](https://platform.toloka.ai/docs/sdk/quickstart) | authenticate, list projects, add dataset rows, and export them |
|
|
71
|
+
| [Pipelines as code](https://platform.toloka.ai/docs/sdk/pipelines) | fields, node constructors, connections, and the check/plan/apply workflow |
|
|
72
|
+
| [Local testing](https://platform.toloka.ai/docs/sdk/testing) | Code node tests, labeling-interface scenarios, and `toloka check` |
|
|
73
|
+
| [Client methods](https://platform.toloka.ai/docs/sdk/reference/client-methods) | SDK resource operations and their API endpoints |
|
|
74
|
+
| [Pipeline nodes](https://platform.toloka.ai/docs/data/reference/nodes) | node types, settings, and behavior |
|
|
75
|
+
| [Datasets](https://platform.toloka.ai/docs/core/datasets) | create datasets, upload rows, define fields, filter, and export |
|
|
76
|
+
| [CLI](https://platform.toloka.ai/docs/cli) | installation, authentication, commands, and the reconciliation loop |
|
|
77
|
+
| [SDK errors](https://platform.toloka.ai/docs/sdk/errors) | HTTP failures, polling timeouts, and graph validation |
|
|
78
|
+
| [Pipeline troubleshooting](https://platform.toloka.ai/docs/data/guides/troubleshoot) | diagnose runs by symptom and recover from errors |
|
|
77
79
|
|
|
78
80
|
## Examples
|
|
79
81
|
|