@sorit/cli 0.1.1 → 0.1.3

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 +5 -3
  2. package/package.json +2 -2
  3. package/src/cli.ts +0 -2
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Sorit CLI
2
2
 
3
- Discover and call commerce, social and search APIs through your Sorit account.
3
+ **Sort it out. Reliable data for agents, without the overhead.**
4
+
5
+ Discover and query commerce, social and search data through one Sorit connection. Inspect the fields and price, then bring ready-to-use results into your agent’s workflow.
4
6
 
5
7
  ```sh
6
8
  bun install --global @sorit/cli
@@ -12,7 +14,7 @@ sorit run '<API_ID>' --input @input.json --idempotency-key "$SORIT_REQUEST_KEY"
12
14
  sorit get '<REQUEST_ID>' --wait
13
15
  ```
14
16
 
15
- Requires Bun 1.2+. The API server defaults to production at `https://sorit.dev`; no server configuration is needed. Create an API key at https://sorit.dev/app/keys and set `SORIT_API_KEY`. For local development, override the origin with an environment variable, for example `SORIT_URL=http://localhost:3010 sorit tools`. Failures exit with code 1. `run --wait` writes the accepted request ID to stderr before polling, so interrupted waits can be resumed.
17
+ Requires Bun 1.2+. The CLI connects to Sorit automatically. Create an API key at https://sorit.dev/app/keys and set `SORIT_API_KEY`. Failures exit with code 1. `run --wait` writes the accepted request ID to stderr before polling, so interrupted waits can be resumed.
16
18
 
17
19
  The CLI is written in TypeScript and runs directly on Bun without a separate build step. Source types cover each command's result, while HTTP response validation checks actual server data. From the repository root, check it independently with `pnpm exec tsc -p packages/cli/tsconfig.json`.
18
20
 
@@ -46,4 +48,4 @@ Use `--search` for keyword filtering in English or Chinese. `tools` groups avail
46
48
 
47
49
  Calls use your account's credits. `run` sends flat input to `POST /api/v1/run/{api-id}`; `get` reads `GET /api/v1/requests/{request-id}`. Reuse the same idempotency key and input for retries. Paid submissions are never automatically retried; a timeout or invalid submission response may mean the request was accepted, so preserve its identity. A polling timeout does not cancel the request and reports the exact resume command. Keep API keys in the environment; discovery and inspection do not transmit them.
48
50
 
49
- Agent instructions: https://sorit.dev/SKILL.md. REST reference: https://sorit.dev/en/docs/api/jobs.
51
+ Install the [Sorit Skill](https://github.com/sorit-ai/skills) with `npx skills add sorit-ai/skills`. REST reference: https://sorit.dev/en/docs/api/jobs.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sorit/cli",
3
- "version": "0.1.1",
4
- "description": "Discover and call Sorit data APIs from your terminal or AI agent",
3
+ "version": "0.1.3",
4
+ "description": "Reliable Sorit data for agents, through the command line",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "sorit": "src/cli.ts"
package/src/cli.ts CHANGED
@@ -83,9 +83,7 @@ function help(command?: CommandName) {
83
83
  ...(!spec ? [section("Commands", rows([...Object.entries(commands).map(([name, value]): [string, string] => [name, value.description]), ["help [command]", "Show help for a command."]]))] : []),
84
84
  section("Environment", rows([
85
85
  ["SORIT_API_KEY", "API key for run, get and balance."],
86
- ["SORIT_URL", "Optional origin override for local deployments."],
87
86
  ])),
88
- "API server: https://sorit.dev (default; no configuration required).",
89
87
  ...(spec?.notes ? [section("Notes", spec.notes.split("\n").map(line => ` ${line}`).join("\n"))] : []),
90
88
  section("Examples", (spec?.examples ?? ["sorit discover --tool tiktok", "sorit inspect <api-id>", "sorit run --help"]).map(line => ` ${line}`).join("\n")),
91
89
  "Docs: https://sorit.dev/en/docs/integrations",