sim 2.0.0-dev.6.1 → 2.0.0-preview.7.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.
Files changed (3) hide show
  1. package/README.md +12 -8
  2. package/dist/index.js +2155 -937
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -8,12 +8,7 @@ sim login
8
8
  sim workflows list
9
9
  ```
10
10
 
11
- Prerelease channels track the corresponding Sim environments:
12
-
13
- ```bash
14
- npm install --global sim@staging # staging
15
- npm install --global sim@dev # dev
16
- ```
11
+ Full documentation: **https://docs.sim.ai/cli**
17
12
 
18
13
  ## Profiles
19
14
 
@@ -108,6 +103,10 @@ Settings → API keys.
108
103
 
109
104
  ## Commands
110
105
 
106
+ The commands below are the common ones. The complete reference — every group,
107
+ subcommand, argument, and flag, generated from this package — is at
108
+ [docs.sim.ai/cli/commands](https://docs.sim.ai/cli/commands).
109
+
111
110
  Plural resource names are canonical, but every plural top-level resource group
112
111
  also accepts its singular form: for example, `sim table list`,
113
112
  `sim file get`, and `sim workflow get` are equivalent to their plural
@@ -142,7 +141,7 @@ sim tables list [--folder <path>]
142
141
  sim tables get <tableId>
143
142
  sim tables update <tableId> [--name <name>] [--description <text>] [--folder <path>]
144
143
  sim tables mv <tableId> <folder>
145
- sim tables columns <tableId>
144
+ sim tables columns create|update|delete|run <tableId>
146
145
  sim tables rows list <tableId> [--limit <n>]
147
146
  sim tables rows create <tableId> --data <json|@file>
148
147
  sim tables rows create <tableId> --rows <json|@file>
@@ -173,6 +172,8 @@ sim knowledge search --query <text> --kb <id>… [--search-mode vector|hybrid]
173
172
  sim knowledge documents list <knowledgeBaseId> [--search <text>]
174
173
  sim knowledge documents get <knowledgeBaseId> <documentId>
175
174
  sim knowledge documents upload <knowledgeBaseId> <path> [--tag <value>...]
175
+ sim knowledge documents update <knowledgeBaseId> <documentId> [--filename <name>] [--enabled]
176
+ sim knowledge documents batch-update <knowledgeBaseId> --operation enable|disable
176
177
  sim knowledge documents delete <knowledgeBaseId> <documentId> --yes
177
178
 
178
179
  sim billing status [--all-workspaces]
@@ -249,9 +250,12 @@ grammar is a tree; there's no honest flag encoding for it.
249
250
  sim tables rows query tbl_123 \
250
251
  --filter '{"all":[{"field":"status","op":"eq","value":"open"},
251
252
  {"field":"score","op":"gt","value":10}]}' \
252
- --sort score:desc --limit 50
253
+ --sort '[{"field":"score","direction":"desc"}]' --limit 50
253
254
  ```
254
255
 
256
+ `--sort` is JSON for the same reason: it is an ordered list of keys, each with a
257
+ `field` and a `direction` of `asc` or `desc`.
258
+
255
259
  Row columns are discovered at runtime from the returned data, unioned across the
256
260
  page so a sparse row doesn't hide a column.
257
261