@toloka-platform/sdk 0.2.0-preview.4 → 0.2.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 +5 -6
- package/dist/cli/toloka.js +156 -137
- 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/authoring.md +2 -0
- package/docs/cli.md +16 -6
- package/docs/getting-started.md +4 -2
- package/docs/limitations.md +2 -2
- package/openapi/gen/api.ts +30 -0
- package/openapi/gen/models/gistingTrainingConfigurationGistTokens.ts +1 -1
- package/openapi/gen/models/gistingTrainingConfigurationInputGistTokens.ts +1 -1
- package/openapi/gen/models/index.ts +3 -0
- package/openapi/gen/models/listAudienceSpecializations200.ts +7 -0
- package/openapi/gen/models/listAudienceSpecializationsParams.ts +5 -0
- package/openapi/gen/models/specialization.ts +6 -0
- package/openapi/gen/models/trainingCostEstimateOneOfTwoseven.ts +0 -2
- package/openapi/gen/models/trainingRunQuote.ts +0 -2
- package/package.json +2 -2
- package/skills/catalog.json +10 -10
- package/skills/toloka-build/SKILL.md +1 -1
- package/skills/toloka-build/references/node-semantics.md +2 -2
- package/skills/toloka-build/references/workflow-and-cli.md +8 -5
- package/skills/toloka-fine-tuning/SKILL.md +3 -1
- package/skills/toloka-get-started/SKILL.md +3 -2
- package/skills/toloka-gisting/SKILL.md +5 -3
- package/skills/toloka-report-issue/references/report-template.md +1 -1
- package/src/checks/task-ui-typecheck.ts +4 -1
- package/src/cli/analytics.ts +1 -0
- package/src/cli/audience.ts +31 -0
- package/src/cli/auto-update.ts +363 -24
- package/src/cli/check.ts +51 -52
- package/src/cli/cli-entry.ts +31 -0
- package/src/cli/commands/audience.ts +22 -0
- package/src/cli/commands/training.ts +10 -2
- package/src/cli/context.ts +7 -2
- package/src/cli/init.ts +7 -2
- package/src/cli/models.ts +1 -21
- package/src/cli/native-runtime.ts +7 -0
- package/src/cli/program.ts +3 -1
- package/src/cli/skill.ts +34 -26
- package/src/cli/table.ts +21 -0
- package/src/cli/trainings.ts +1 -22
- package/src/cli/version.ts +12 -1
- package/src/client.ts +17 -0
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Build and operate Toloka pipeline projects as TypeScript source.
|
|
4
4
|
|
|
5
|
-
> **
|
|
5
|
+
> **Stable 0.2.0.** 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. Use `latest` to stay current, or pin `@toloka-platform/sdk@0.2.0` for reproducible installs. Read [limitations](./docs/limitations.md).
|
|
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
|
|
|
@@ -43,7 +43,7 @@ toloka init
|
|
|
43
43
|
|
|
44
44
|
## Install
|
|
45
45
|
|
|
46
|
-
Install the bytecode-cached CLI and add the
|
|
46
|
+
Install the bytecode-cached CLI and add the stable SDK to the project:
|
|
47
47
|
|
|
48
48
|
```sh
|
|
49
49
|
curl -fsSL https://platform.toloka.ai/cli/install.sh | sh
|
|
@@ -52,11 +52,10 @@ bun add @toloka-platform/sdk@latest
|
|
|
52
52
|
|
|
53
53
|
The installer requires Bun 1.4.0 or newer, installs `@toloka-platform/sdk` globally, and exposes `toloka` through Bun's global binary directory. The project install makes SDK imports resolvable.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
`latest` currently resolves to stable `0.2.0`. It includes Training (`toloka training`), the agent runbooks, and their bundled skills. For a reproducible project install, pin the current stable version:
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
|
|
59
|
-
bun add @toloka-platform/sdk@preview
|
|
58
|
+
bun add @toloka-platform/sdk@0.2.0
|
|
60
59
|
```
|
|
61
60
|
|
|
62
61
|
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.
|
|
@@ -72,7 +71,7 @@ For a guided first run, start a fresh coding-agent session and ask it to follow
|
|
|
72
71
|
| [Datasets](./docs/datasets.md) | columns, immutable schemas, loading rows, what plan refuses |
|
|
73
72
|
| [CLI](./docs/cli.md) | every command, flag, exit code, and the reconcile loop |
|
|
74
73
|
| [Troubleshooting](./docs/troubleshooting.md) | the failures you will actually hit, and what to do about each |
|
|
75
|
-
| [Limitations](./docs/limitations.md) |
|
|
74
|
+
| [Limitations](./docs/limitations.md) | current constraints and `0.x` compatibility expectations |
|
|
76
75
|
|
|
77
76
|
## Examples
|
|
78
77
|
|